/* AInsteinWP Theme Supreme — Template Components CSS
 * Load order: main.css → templates.css → client.css
 *
 * NEW components for PHP page-templates and partials.
 * Base components (cta-banner, feature-grid, testimonials, content-block)
 * are already defined in main.css and NOT duplicated here.
 */

/* ═══════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════ */

.section-inner {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3.75rem);
}
.max-w {
  max-width: 1320px;
  margin-inline: auto;
}

/* Grid helpers — mobile-first */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ═══════════════════════════════════════════════════════════
   HERO EYEBROW — optional eyebrow inside .hero-content
   Base .hero styles live in main.css
   ═══════════════════════════════════════════════════════════ */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════════
   CONTENT ALTERNATING — text + image, flips every other
   Used by: template-industry.php, template-payment.php
   ═══════════════════════════════════════════════════════════ */

.content-alt {
  position: relative;
}
.content-alt:nth-child(even) {
  background: var(--off-white);
}

.content-alt-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3.75rem);
}
@media (min-width: 900px) {
  .content-alt-inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  /* Reverse: image left, text right */
  .content-alt.reverse .content-alt-inner {
    direction: rtl;
  }
  .content-alt.reverse .content-alt-inner > * {
    direction: ltr;
  }
}

.content-alt-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.content-alt-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.content-alt-text .check-list {
  margin: 1rem 0;
}
.content-alt-text .btn {
  margin-top: 0.75rem;
}

.content-alt-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.content-alt-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}
.content-alt-image:hover img {
  transform: scale(1.02);
}


/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS — equipment with specs
   Used by: template-feature.php (kvittoskrivare, kassadator, etc.)
   ═══════════════════════════════════════════════════════════ */

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gray-200);
}

.product-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-50);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.5rem;
}
.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Expandable specifications */
.product-specs {
  border-top: 1px solid var(--gray-100);
  margin: 1rem 1.5rem 0;
  padding-bottom: 0.5rem;
}
.product-specs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.product-specs summary::-webkit-details-marker {
  display: none;
}
.product-specs summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.product-specs[open] summary::after {
  content: '\2212';
}

.product-specs-list {
  padding: 0 0 0.75rem;
}
.product-specs-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}
.product-specs-list dd {
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 0.15rem;
}


/* ═══════════════════════════════════════════════════════════
   OVERVIEW GRID — child page cards (bransch, integration, etc.)
   Used by: overview-grid.php partial
   ═══════════════════════════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.overview-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.overview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gray-200);
}
.overview-card:hover::before {
  transform: scaleX(1);
}

.overview-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-50);
}
.overview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.overview-card:hover .overview-card-image img {
  transform: scale(1.05);
}

.overview-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.overview-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.overview-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.overview-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-hover);
  margin-top: 0.75rem;
}
.overview-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.overview-card:hover .overview-card-link svg {
  transform: translateX(4px);
}

/* Icon variant (no image, just icon + text) */
.overview-card--icon {
  padding: 1.75rem;
}
.overview-card--icon .overview-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(24, 64, 93, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.overview-card--icon .overview-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
}


/* ═══════════════════════════════════════════════════════════
   TEMPLATE REVEAL ANIMATIONS
   Extends the base .reveal from main.css
   ═══════════════════════════════════════════════════════════ */

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   GOOGLE REVIEWS — horizontal scroller with star ratings
   Used by: template-startsida.php
   ═══════════════════════════════════════════════════════════ */

.google-reviews {
  background: var(--off-white);
}

.review-scroller {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 1.5rem;
  scrollbar-width: none;
}
.review-scroller::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .review-card { flex: 0 0 380px; }
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-200);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-author strong {
  font-size: 0.88rem;
  color: var(--navy);
}
.review-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.google-reviews-cta .btn {
  gap: 6px;
}


/* ═══════════════════════════════════════════════════════════
   GOOGLE MAP — embedded map with navy surround
   Used by: template-startsida.php
   ═══════════════════════════════════════════════════════════ */

.google-map-section {
  background: var(--navy);
  color: #fff;
}
.google-map-section .section-eyebrow {
  color: var(--gold-light);
}
.google-map-section .section-eyebrow::before {
  background: var(--gold-light);
}
.google-map-section .section-title {
  color: #fff;
}
.google-map-section .section-intro {
  color: rgba(255,255,255,0.6);
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}


/* ═══════════════════════════════════════════════════════════
   HERO-SECTION — Alternative hero layout (text + image side by side)
   Used by: template-fjarrhjalp, template-kortterminal,
            template-kvittoskrivare, template-om-joboffice, template-streckkod
   ═══════════════════════════════════════════════════════════ */

.hero-section {
  background: var(--navy, #0e1c35);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
}

.hero-section .hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.75rem);
}

@media (min-width: 768px) {
  .hero-section .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

.hero-section .hero-text h1 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-section .hero-text h1 span {
  color: var(--gold, #c8a55c);
}

.hero-section .hero-text p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-section .hero-text .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-section .hero-text .btn svg {
  width: 18px;
  height: 18px;
}

.hero-section .hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section .hero-image .img-fade {
  max-width: 480px;
  width: 100%;
}

/* White plate for product photos in hero (not SVG illustrations) */
.hero-section .hero-image .img-fade:has(img) {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(22, 22, 63, 0.08);
}

.hero-section .hero-image .img-fade img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}


/* ═══════════════════════════════════════════════════════════
   CONTENT TABLES — styled data tables
   Used by: template-kortterminal, template-kassadator,
            template-streckkod, template-expresskassa
   ═══════════════════════════════════════════════════════════ */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.content-table thead {
  background: var(--navy);
  color: #fff;
}

.content-table th {
  padding: 0.875rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.content-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.content-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.content-table td {
  padding: 0.875rem 1.25rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.content-table tbody tr:last-child td {
  border-bottom: none;
}

.content-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.content-table tbody tr {
  transition: background 0.2s ease;
}

.content-table tbody tr:hover {
  background: rgba(232, 150, 12, 0.04);
}

/* First column emphasis */
.content-table td:first-child {
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 600px) {
  .content-table th,
  .content-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}


/* ═══════════════════════════════════════════════════════════
   TIMELINE — vertical timeline for Om JobOffice
   Used by: template-om-joboffice.php
   ═══════════════════════════════════════════════════════════ */

.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--navy-muted, #2c2c5e));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.875rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(232, 150, 12, 0.15);
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════
   QUOTE BLOCK — styled blockquote for testimonials/quotes
   Used by: template-om-joboffice.php
   ═══════════════════════════════════════════════════════════ */

.quote-block {
  position: relative;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.2;
}

.quote-block p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}


/* ═══════════════════════════════════════════════════════════
   HERO-SECTION ENHANCEMENTS — polish the side-by-side hero
   ═══════════════════════════════════════════════════════════ */

/* Subtle gold accent line under hero */
.hero-section::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 40%, transparent 100%);
}

/* Second CTA button in hero */
.hero-section .hero-text .btn + .btn {
  margin-left: 0.75rem;
}

/* Hero image subtle float animation */
@media (min-width: 768px) {
  .hero-section .hero-image .img-fade {
    animation: heroFloat 6s ease-in-out infinite;
  }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section .hero-image .img-fade {
    animation: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   INTERNAL LINK CARDS — enhanced diff-card links
   Used by: kortterminal, utrustning (Läs mer sections)
   ═══════════════════════════════════════════════════════════ */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.link-card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.link-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--navy);
}

.link-card:hover::before {
  transform: scaleX(1);
}


/* ═══════════════════════════════════════════════════════════
   DESIGN ELEVATION — Startsida-inspired visual polish
   Brings template page components up to startsida quality.
   Added: 2026-04-30
   ═══════════════════════════════════════════════════════════ */

/* --- Hero section depth & atmosphere --- */
.hero-section {
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(232,150,12,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-section .container,
.hero-section .hero-inner {
  position: relative;
  z-index: 1;
}

/* --- Content-alt image framing — depth via shadow --- */
.content-alt-image {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.content-alt:nth-child(even) .content-alt-image {
  border-color: var(--gray-200);
}

/* --- Content section subtle top accent on even rows --- */
.content-section:nth-child(even) {
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

/* --- Product card image area: gradient placeholder --- */
.product-card-image {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--off-white) 100%);
  border-bottom: 1px solid var(--gray-100);
}

/* --- Content table header: gradient for depth --- */
.content-table thead {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.content-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}
.content-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

/* --- FAQ on template pages: wrap in subtle container --- */
.content-section .faq-list {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 0.5rem 2rem;
  border: 1px solid var(--gray-100);
}
.content-section:nth-child(even) .faq-list {
  background: var(--white);
}

/* --- Quote block polish: add subtle shadow --- */
.quote-block {
  box-shadow: var(--shadow-sm);
}

/* --- Timeline item hover effect --- */
.timeline-item {
  transition: transform 0.3s ease;
}
.timeline-item:hover {
  transform: translateX(4px);
}
.timeline-item:hover .timeline-year {
  color: var(--gold);
}

/* --- Overview card: subtle gradient on image placeholder --- */
.overview-card-image {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--off-white) 100%);
}

/* --- Button outline variant for light backgrounds --- */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(232, 150, 12, 0.04);
}

/* --- Breadcrumb on hero-section background --- */
.breadcrumb-nav + .hero-section {
  margin-top: -1px;
}

/* --- Content-block h2 subtle accent underline --- */
.content-block h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  margin-top: 0.75rem;
  opacity: 0.6;
}

/* --- Check-list enhanced spacing on template pages --- */
.content-section .check-list li {
  padding: 8px 0;
}

/* --- Product specs list: subtle background --- */
.product-specs[open] {
  background: var(--gray-50);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* --- Link grid: better responsive behavior --- */
@media (min-width: 600px) {
  .link-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* --- CTA banner buttons alignment --- */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --- Content-alt section: subtle gold accent on text side --- */
.content-alt-text .section-eyebrow {
  color: var(--gold);
}
.content-alt-text .section-eyebrow::before {
  background: var(--gold);
}

/* --- Diff card polish: gold top accent on hover --- */
.diff-card {
  position: relative;
  overflow: hidden;
}
.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.diff-card:hover::before {
  transform: scaleX(1);
}

/* --- Hero image: subtle border for SVG illustrations --- */
.hero-section .hero-image svg {
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
}

/* --- Scrollbar hint gradient for horizontal scrollers --- */
.table-responsive {
  position: relative;
}
.table-responsive::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
@media (max-width: 768px) {
  .table-responsive::after {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   STEPS GRID — Numbered process steps in card grid
   Reusable across template pages (fjärrhjälp, guide, etc.)
   ═══════════════════════════════════════════════════════════ */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 600px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.step-card:hover::after {
  transform: scaleX(1);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 2px 8px rgba(232, 150, 12, 0.25);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Step connector arrows (desktop only) */
@media (min-width: 1000px) {
  .step-card:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 2.75rem;
    right: -0.85rem;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gold-light);
    border-top: 2px solid var(--gold-light);
    transform: rotate(45deg);
    opacity: 0.5;
    z-index: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   INFO HIGHLIGHT CARD — Accent card for key information
   ═══════════════════════════════════════════════════════════ */

.info-highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.info-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(232,150,12,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.info-highlight h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.info-highlight p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.info-highlight .check-list {
  margin: 1rem 0;
  position: relative;
  z-index: 1;
}
.info-highlight .check-list li {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.info-highlight .check-list li svg {
  color: var(--gold-light);
}

/* Section intro text — centered below heading */
.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
}
.section-header-centered {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-header-centered .section-eyebrow {
  justify-content: center;
}
.section-header-centered .section-eyebrow::before {
  display: none;
}
.section-header-centered h2::after {
  margin-left: auto;
  margin-right: auto;
}
.section-header-centered .section-intro {
  margin-left: auto;
  margin-right: auto;
}


/* ═══════════════════════════════════════════════════════════
   ACCENT STRIP — full-width navy break between white sections
   Used by: template-om-joboffice (reusable)
   ═══════════════════════════════════════════════════════════ */

.accent-strip {
  background: var(--navy);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.accent-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 100%, rgba(232,150,12,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.accent-strip .container {
  position: relative;
  z-index: 1;
}
.accent-strip .section-eyebrow {
  color: var(--gold-light);
}
.accent-strip .section-eyebrow::before {
  background: var(--gold-light);
}
.accent-strip h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.accent-strip p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 600px;
}
.accent-strip .stat-row {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.accent-strip .stat-item {
  text-align: left;
}
.accent-strip .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.accent-strip .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   VERTICAL TIMELINE — styled year-by-year timeline
   Used by: template-om-joboffice (reusable)
   ═══════════════════════════════════════════════════════════ */

.timeline-vertical {
  position: relative;
  padding-left: 3rem;
  max-width: 700px;
}
.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light) 60%, var(--gray-200));
}
.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white, #fff);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.timeline-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

/* Timeline on off-white background */
.content-section:nth-child(even) .timeline-item::before {
  border-color: var(--off-white);
}


/* ═══════════════════════════════════════════════════════════
   QUOTE BANNER — full-width hero-style quote
   Used by: template-om-joboffice (reusable)
   ═══════════════════════════════════════════════════════════ */

.quote-banner {
  background: var(--navy);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.quote-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(232,150,12,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.quote-banner-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.75rem);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .quote-banner-inner {
    grid-template-columns: auto 1fr;
    gap: 3rem;
  }
}
.quote-banner-photo {
  text-align: center;
}
.quote-banner-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(232,150,12,0.3);
}
.quote-banner blockquote {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 0;
  position: relative;
}
.quote-banner blockquote::before {
  content: '\201C';
  position: absolute;
  top: -1.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}
.quote-banner cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-light);
}


/* ═══════════════════════════════════════════════════════════
   SECTION VISUAL — decorative icon panel for 2-col layouts
   Used by: template-om-joboffice (reusable for any template)
   ═══════════════════════════════════════════════════════════ */

.section-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.visual-icon-ring {
  width: clamp(160px, 18vw, 220px);
  height: clamp(160px, 18vw, 220px);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--off-white) 0%, var(--gray-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
}
.visual-icon-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(232,150,12,0.18);
}
.visual-icon-ring svg {
  width: 60%;
  height: 60%;
}

/* When visual is on off-white background, reverse the gradient */
.content-section:nth-child(even) .visual-icon-ring {
  background: linear-gradient(145deg, #fff 0%, var(--gray-50) 100%);
}

/* Reverse column order on alternate sections (image left, text right) */
@media (min-width: 768px) {
  .content-block.reverse {
    direction: rtl;
  }
  .content-block.reverse > * {
    direction: ltr;
  }
}


/* ===============================================================
   COMPARISON TABLE - styled data table (kassadator, streckkod)
   =============================================================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}
.comparison-table thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}
.comparison-table thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}
.comparison-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text);
  vertical-align: top;
}
.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--navy);
}
.comparison-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}
.comparison-table tbody tr:hover {
  background: rgba(232, 150, 12, 0.04);
}
@media (max-width: 600px) {
  .comparison-table thead { display: none; }
  .comparison-table tbody tr {
    display: block;
    padding: 1rem;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    background: #fff;
  }
  .comparison-table tbody td {
    display: block;
    padding: 0.25rem 0;
    border: none;
  }
  .comparison-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--navy);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
    opacity: 0.6;
  }
}

/* ===============================================================
   FEATURE CARDS - 3-column card grid with icon, heading, text
   Used by: kvittoskrivare kvittohantering section
   =============================================================== */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 600px) {
  .feature-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .feature-cards { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.feature-card:hover::after {
  transform: scaleX(1);
}
.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232,150,12,0.12), rgba(232,150,12,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.feature-card-icon svg {
  width: 26px;
  height: 26px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-card .btn {
  margin-top: 1rem;
}

/* White plate for product photos in content-alt (transparent PNGs) */
.content-alt-image .img-fade:has(img) {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(22, 22, 63, 0.06);
}


/* ===============================================================
   SPECS COLUMNS - side-by-side spec & tillval lists
   Used by: kassadator (FEC, WavePOS), product detail pages
   =============================================================== */
.specs-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 600px) {
  .specs-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
.specs-columns h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.specs-columns .check-list {
  margin: 0;
}

/* Product CTA - bigger button with generous spacing */
.product-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.product-cta .btn {
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
}

/* ===============================================================
   BTN-SECONDARY FIX — dark text on light backgrounds
   Base btn-secondary is white text for dark sections (hero, footer).
   Inside content-alt / product-cta / diff-grid we need dark text.
   =============================================================== */
.content-alt .btn-secondary,
.product-cta .btn-secondary,
.diff-grid .btn-secondary {
  color: var(--navy);
  border-color: var(--gray-200);
}
.content-alt .btn-secondary:hover,
.product-cta .btn-secondary:hover,
.diff-grid .btn-secondary:hover {
  border-color: var(--navy);
  background: rgba(22, 22, 63, 0.04);
  color: var(--navy);
}


/* ===============================================================
   IMAGE-CTA — CTA button placed 15px below product image
   Used on all utrustning product sections
   =============================================================== */
.image-cta {
  margin-top: 15px;
  text-align: center;
}
.image-cta .btn {
  font-size: 1.15rem;
  padding: 1.05rem 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .image-cta .btn {
    width: auto;
  }
}


/* ===============================================================
   PRICING PAGE FIXES
   =============================================================== */

/* Pricing cards need overflow visible for badge */
.pricing-cards .diff-card {
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Badge fully visible */
.pricing-cards .diff-card .pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 1;
}

/* Package name in CTA — own line, bigger */
.pricing-cards .btn .pkg-name {
  display: block;
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 2px;
}

/* Rådgivning section — navy bg centered */
.cta-advice {
  background: var(--navy);
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-md);
}
.cta-advice h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.75rem;
}
.cta-advice p {
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Hårdvara section — force 2 columns */
.hardware-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .hardware-intro {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
