/* ===== AETHIRO SERVICE PAGES — Design Tokens & Components ===== */

/* --- Type Scale (fluid) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* --- Spacing (4px base) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content Widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* --- Fonts --- */
  --font-display: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ===== AETHIRO BRAND PALETTE ===== */
/* Derived from Aethiro's existing site: dark charcoal text, leaf green accent, clean white */

:root, [data-theme="light"] {
  --color-bg:             #f8f9fa;
  --color-surface:        #ffffff;
  --color-surface-2:      #f1f3f5;
  --color-surface-offset: #e9ecef;
  --color-divider:        #dee2e6;
  --color-border:         #ced4da;

  --color-text:           #1a2332;
  --color-text-muted:     #6c757d;
  --color-text-faint:     #adb5bd;
  --color-text-inverse:   #ffffff;

  /* Aethiro Green (from logo leaf) */
  --color-primary:        #2d7a3a;
  --color-primary-hover:  #236330;
  --color-primary-active: #1a4c24;
  --color-primary-light:  #e8f5e9;
  --color-primary-highlight: #d4edda;

  /* Aethiro Navy (from logo text) */
  --color-navy:           #1a2332;
  --color-navy-light:     #2d3748;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 35, 50, 0.12);
}

[data-theme="dark"] {
  --color-bg:             #0f1419;
  --color-surface:        #161b22;
  --color-surface-2:      #1c2128;
  --color-surface-offset: #21262d;
  --color-divider:        #30363d;
  --color-border:         #3d444d;

  --color-text:           #e6edf3;
  --color-text-muted:     #8b949e;
  --color-text-faint:     #484f58;
  --color-text-inverse:   #0f1419;

  --color-primary:        #4ade80;
  --color-primary-hover:  #86efac;
  --color-primary-active: #22c55e;
  --color-primary-light:  rgba(74, 222, 128, 0.1);
  --color-primary-highlight: rgba(74, 222, 128, 0.15);

  --color-navy:           #e6edf3;
  --color-navy-light:     #c9d1d9;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0f1419;
    --color-surface:        #161b22;
    --color-surface-2:      #1c2128;
    --color-surface-offset: #21262d;
    --color-divider:        #30363d;
    --color-border:         #3d444d;
    --color-text:           #e6edf3;
    --color-text-muted:     #8b949e;
    --color-text-faint:     #484f58;
    --color-text-inverse:   #0f1419;
    --color-primary:        #4ade80;
    --color-primary-hover:  #86efac;
    --color-primary-active: #22c55e;
    --color-primary-light:  rgba(74, 222, 128, 0.1);
    --color-primary-highlight: rgba(74, 222, 128, 0.15);
    --color-navy:           #e6edf3;
    --color-navy-light:     #c9d1d9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--content-default);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-3) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-1) 0;
  position: relative;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-primary);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.theme-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
  color: var(--color-text);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-text-inverse);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45, 122, 58, 0.15), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(45, 122, 58, 0.08), transparent 50%);
  pointer-events: none;
}

/* ── Fix 1: Theme-aware hero gradient & section separation ── */
[data-theme="light"] .hero,
[data-theme="light"] .page-hero {
  background: linear-gradient(160deg, #e8f5e9 0%, #f0faf0 60%, #ffffff 100%);
  color: var(--color-text);
}
[data-theme="dark"] .hero,
[data-theme="dark"] .page-hero {
  background: linear-gradient(160deg, #0a1f14 0%, #0d1a2e 60%, #111827 100%);
  color: #ffffff;
}
/* Ensure first content section below hero contrasts visibly in both themes */
[data-theme="light"] .section:first-of-type,
[data-theme="light"] .section.alt:first-of-type {
  background: #ffffff;
}
[data-theme="dark"] .section:first-of-type,
[data-theme="dark"] .section.alt:first-of-type {
  background: #1a2332;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  padding: var(--space-1) var(--space-3);
  background: rgba(45, 122, 58, 0.15);
  border-radius: var(--radius-full);
  border: 1px solid rgba(45, 122, 58, 0.25);
}

[data-theme="dark"] .hero-badge,
.dark-mode .hero-badge {
  color: var(--color-primary);
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

.hero-tagline {
  font-size: var(--text-lg);
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.hero-description {
  font-size: var(--text-base);
  line-height: 1.7;
  opacity: 0.8;
  max-width: 60ch;
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cta-section .btn-primary svg,
.cta-section .btn-secondary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Floating icon decoration on hero */
.hero-icon-float {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 15vw, 220px);
  height: clamp(120px, 15vw, 220px);
  opacity: 0.08;
  color: var(--color-primary);
}

/* ===== CONTENT SECTIONS ===== */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) 0;
}

.section--alt {
  background: var(--color-surface-2);
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 65ch;
}

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

/* --- Process steps --- */
.process-list {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.process-list li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.process-list li::before {
  content: counter(step);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-display);
}

.process-list li span {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.5;
  padding-top: var(--space-1);
}

/* --- Benefits grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.benefit-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  margin-top: 2px;
}

.benefit-card p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.5;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--content-default);
  margin-inline: auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  gap: var(--space-4);
}

.faq-question:hover {
  background: var(--color-surface-2);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --- CTA Section --- */
.cta-section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: var(--text-base);
  opacity: 0.8;
  margin-bottom: var(--space-8);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.btn-primary svg,
.btn-secondary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Nav & footer btn-primary: compact + always white text ── */
.header-nav .btn-primary {
  padding: 10px 20px;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  min-width: max-content;
  color: #ffffff !important;
  background: #1a5c2e;
  margin-left: var(--space-2);
}
.header-nav .btn-primary:hover {
  color: #ffffff !important;
  background: #143f20;
}
[data-theme="dark"] .header-nav .btn-primary {
  background: var(--color-primary);
  color: #0a1a0e !important;
}
[data-theme="dark"] .header-nav .btn-primary:hover {
  background: var(--color-primary-hover);
  color: #0a1a0e !important;
}
.site-footer .btn-primary {
  color: #ffffff !important;
  white-space: nowrap;
}
.site-footer .btn-primary:hover {
  color: #ffffff !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Light mode: btn-secondary outside hero sections ── */
[data-theme="light"] .btn-secondary {
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.5);
}
/* Extra specificity for cta-section — --color-navy is pale #e6edf3 in light mode */
[data-theme="light"] .cta-section .btn-secondary {
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .cta-section .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.5);
}

/* ── Fix 2: Theme-aware secondary button visibility in hero ── */
[data-theme="dark"] .hero .btn-secondary,
[data-theme="dark"] .page-hero .btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background: transparent;
}
[data-theme="dark"] .hero .btn-secondary:hover,
[data-theme="dark"] .page-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}
[data-theme="light"] .hero .btn-secondary,
[data-theme="light"] .page-hero .btn-secondary {
  border: 2px solid rgba(0, 0, 0, 0.45);
  color: #1a1a1a;
  background: transparent;
}
[data-theme="light"] .hero .btn-secondary:hover,
[data-theme="light"] .page-hero .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-4) 0;
  font-weight: 500;
}

.back-link:hover {
  color: var(--color-primary);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: var(--space-4);
  max-width: 36ch;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-acknowledgement-wrap {
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.footer-acknowledgement {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  line-height: 1.6;
  max-width: 680px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ===== INDEX PAGE — Service Cards Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-5);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ===== WHO IS THIS FOR — highlight box ===== */
.who-box {
  padding: var(--space-6);
  background: var(--color-primary-light);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--color-primary);
}

.who-box p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 767px) {
  .header-nav {
    display: none;
  }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4);
    gap: var(--space-3);
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 1rem + 3vw, 2.5rem);
  }
  .hero-icon-float {
    display: none;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding: var(--space-4) 0 var(--space-2);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: var(--color-text-faint);
}

/* ===== RELATED SERVICES ===== */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.related-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Fix 10: What changes cards ── */
.changes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.change-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.change-problem,
.change-solution {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
}
.change-problem {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.change-solution {
  background: var(--color-primary-light);
}
.change-problem p,
.change-solution p {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
  color: var(--color-text);
}
.change-problem p { color: var(--color-text-muted); }
.change-icon--problem { color: var(--color-text-faint); flex-shrink: 0; margin-top: 3px; }
.change-icon--solution { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }

/* ── Fix 3 (updated by Fix 1): Hero text colour guards ── */
[data-theme="light"] .hero-description,
[data-theme="light"] .hero-tagline {
  color: var(--color-text);
}
[data-theme="dark"] .hero-description,
[data-theme="dark"] .hero-tagline {
  color: rgba(255, 255, 255, 0.9);
}
