/* ==========================================================================
   AFT Care — Design System
   Direction: warm, human, grounded care. Editorial warmth over corporate SaaS.
   Type: Fraunces (display) + Lexend (body, reading-accessibility tuned) + IBM Plex Sans Arabic.
   Accessibility-first: WCAG AA contrast, visible focus, reduced-motion, semantic.
   ========================================================================== */

/* ------------------------------- Tokens --------------------------------- */
:root {
  /* Warm care palette */
  --cream:        #faf5ec;
  --cream-deep:   #f2e9d8;
  --sand:         #e9ddc7;
  --paper:        #ffffff;

  --evergreen:        #14433b;
  --evergreen-700:    #1c5a4e;
  --evergreen-300:    #6e9a8f;

  --terracotta:       #c25a3d;
  --terracotta-deep:  #a8472d;
  --ochre:            #e6a94e;

  --ink:        #1e2b26;
  --ink-soft:   #46544e;
  --line:       #e2d6bf;

  /* Roles */
  --bg:           var(--cream);
  --surface:      var(--paper);
  --primary:      var(--evergreen);
  --accent:       var(--terracotta);
  --accent-text:  var(--terracotta-deep);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Lexend", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-ar:      "IBM Plex Sans Arabic", "Lexend", system-ui, sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.86rem, 0.82rem + 0.2vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.8vw, 2.9rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 4.2rem);

  /* Space + shape */
  --radius:    18px;
  --radius-lg: 32px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 6px rgba(20, 67, 59, 0.06);
  --shadow:    0 18px 40px -22px rgba(20, 67, 59, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(20, 67, 59, 0.45);
  --container:  1180px;
  --ease:       cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Soft warm wash for atmosphere, not a flat fill */
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(230, 169, 78, 0.16), transparent 60%),
    radial-gradient(900px 520px at -6% 12%, rgba(110, 154, 143, 0.16), transparent 55%);
  background-attachment: fixed;
}

html[lang="ar"] body { font-family: var(--font-ar); }

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--evergreen-700); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }
ul, ol { padding-inline-start: 1.2em; }

/* --------------------------- Accessibility ------------------------------ */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--evergreen); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); z-index: 200;
  transition: top 0.2s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ------------------------------ Layout ---------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, transparent, rgba(233, 221, 199, 0.5) 12%, rgba(233, 221, 199, 0.5) 88%, transparent); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--evergreen); letter-spacing: -0.015em; font-optical-sizing: auto; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.3; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }
.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .lead { margin-top: 1rem; }
.text-center { text-align: center; }
.text-center .eyebrow, .text-center .section-head { margin-inline: auto; }
.text-center .lead { margin-inline: auto; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  padding: 0.95em 1.6em; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--terracotta-deep); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--evergreen); border-color: var(--evergreen-300); }
.btn--ghost:hover { background: var(--evergreen); color: #fff; border-color: var(--evergreen); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--evergreen); box-shadow: var(--shadow); }
.btn--light:hover { color: var(--terracotta-deep); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
html[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 236, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(226, 214, 191, 0.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--evergreen); font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span small { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: inline-block; padding: 0.55em 0.85em; border-radius: 100px;
  color: var(--evergreen); text-decoration: none; font-weight: 500; font-size: var(--step--1);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background: rgba(20, 67, 59, 0.07); }
.nav-links a.active { background: var(--evergreen); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch { display: inline-flex; align-items: center; background: rgba(20, 67, 59, 0.07); border-radius: 100px; padding: 3px; gap: 2px; }
.lang-button {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  padding: 0.35em 0.8em; border-radius: 100px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-button.active { background: #fff; color: var(--evergreen); box-shadow: var(--shadow-sm); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--evergreen); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1rem 1.25rem 1.75rem; gap: 0.25rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform 0.35s var(--ease); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.active { transform: translateY(0); }
  .nav-links a { padding: 0.9em 1em; font-size: 1.05rem; }
}

/* -------------------------------- Hero ---------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 1.1rem 0 1.2rem; max-width: 16ch; }
.hero h1 .accent { color: var(--terracotta); font-style: italic; }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-assure { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--ink-soft); font-size: var(--step--1); }
.hero-assure span { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; }
.hero-assure svg { width: 1.15em; height: 1.15em; color: var(--evergreen-700); flex: none; }

.hero-media { position: relative; }
.hero-media .photo {
  position: relative; z-index: 2; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  border: 8px solid #fff;
}
.hero-blob { position: absolute; z-index: 1; inset: -12% -10% auto auto; width: 78%; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, var(--ochre), var(--terracotta)); border-radius: 46% 54% 62% 38% / 54% 42% 58% 46%; filter: blur(2px); opacity: 0.85; animation: morph 14s var(--ease) infinite; }
.hero-badge {
  position: absolute; z-index: 3; bottom: -22px; left: -22px;
  background: #fff; border-radius: var(--radius); padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.75rem; max-width: 250px;
}
html[dir="rtl"] .hero-badge { left: auto; right: -22px; }
.hero-badge .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--terracotta); line-height: 1; }
.hero-badge small { display: block; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.3; }

@keyframes morph {
  0%, 100% { border-radius: 46% 54% 62% 38% / 54% 42% 58% 46%; }
  50% { border-radius: 60% 40% 38% 62% / 42% 58% 46% 54%; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; order: -1; }
}

/* ----------------------------- Trust bar -------------------------------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.5); }
.trustbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; }
.trustbar p { font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; }
.trustbar ul { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; list-style: none; padding: 0; margin: 0; }
.trustbar li { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: var(--evergreen); font-size: var(--step--1); }
.trustbar svg { width: 1.2em; height: 1.2em; color: var(--terracotta); }

/* ----------------------------- Card grids ------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 2rem); position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(20, 67, 59, 0.08); color: var(--evergreen-700);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); }
.card .more { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; color: var(--terracotta-deep); text-decoration: none; font-size: var(--step--1); }
.card .more svg { width: 1.05em; transition: transform 0.25s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }
html[dir="rtl"] .card .more svg { transform: scaleX(-1); }
html[dir="rtl"] .card:hover .more svg { transform: scaleX(-1) translateX(4px); }
.card--accent .icon { background: rgba(194, 90, 61, 0.12); color: var(--terracotta-deep); }

/* --------------------------- Split / feature ---------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--evergreen); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 16px; height: 16px; }
.feature-list strong { display: block; color: var(--evergreen); font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.feature-list span { color: var(--ink-soft); }

/* ------------------------------- Stats ---------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1.2rem; }
.stat .num { font-family: var(--font-display); font-size: var(--step-3); color: var(--terracotta); line-height: 1; }
.stat p { color: var(--ink-soft); margin-top: 0.4rem; font-size: var(--step--1); }

/* ---------------------------- Testimonial ------------------------------- */
.quote { max-width: 50ch; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.4; color: var(--evergreen); font-style: italic; }
.quote .mark { font-family: var(--font-display); font-size: 4rem; color: var(--ochre); line-height: 0.5; display: block; height: 0.6em; }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-weight: 600; color: var(--ink); }
.quote cite small { display: block; color: var(--ink-soft); font-weight: 400; }

/* --------------------------- Areas served ------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 0.55em 1.1em; font-size: var(--step--1); font-weight: 500; color: var(--ink); }

/* ------------------------------ CTA band -------------------------------- */
.cta-band { background: var(--evergreen); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, rgba(230,169,78,0.5), transparent 60%); border-radius: 50%; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band .lead { color: rgba(255,255,255,0.85); }
.cta-band .hero-cta { margin-top: 2rem; position: relative; z-index: 2; }
.cta-band a.tel { color: #fff; font-family: var(--font-display); font-size: var(--step-2); text-decoration: none; }

/* ------------------------------- Footer --------------------------------- */
.site-footer { background: #10342d; color: rgba(255,255,255,0.78); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--ochre); }
.footer-brand img { width: 46px; margin-bottom: 0.9rem; }
.footer-brand p { font-size: var(--step--1); max-width: 30ch; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; font-size: var(--step--1); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 1.1em; height: 1.1em; color: var(--ochre); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ------------------------------- Forms ---------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 0.4rem; color: var(--evergreen); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.8em 1em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--evergreen-300); box-shadow: 0 0 0 3px rgba(110,154,143,0.25); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.8rem; }

/* --------------------------- Page hero (sub) ---------------------------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; }
.page-hero h1 { margin: 0.8rem 0 0.9rem; max-width: 20ch; }
.page-hero .lead { max-width: 62ch; }
.breadcrumbs { font-size: var(--step--1); color: var(--ink-soft); display: flex; gap: 0.5em; flex-wrap: wrap; align-items: center; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta-deep); }
.breadcrumbs [aria-current] { color: var(--evergreen); font-weight: 600; }
.breadcrumbs .sep { opacity: 0.5; }
html[dir="rtl"] .breadcrumbs .sep { transform: scaleX(-1); display: inline-block; }

/* ------------------------------- Prose ---------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; color: var(--evergreen-700); }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: 0.5em; }
.prose a { color: var(--terracotta-deep); font-weight: 500; }
.prose strong { color: var(--evergreen); }
.callout { background: rgba(20,67,59,0.05); border-inline-start: 4px solid var(--evergreen); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; }
.callout--accent { background: rgba(194,90,61,0.08); border-color: var(--terracotta); }
.callout strong { color: var(--evergreen); }

/* FAQ disclosure */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq + .faq { margin-top: 0.8rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-size: var(--step-1); color: var(--evergreen); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--terracotta); transition: transform 0.25s var(--ease); flex: none; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.3rem 1.3rem; color: var(--ink-soft); }
.faq .faq-body > * + * { margin-top: 0.8rem; }

/* ----------------------------- Article card ----------------------------- */
.article-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; }
.article-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.article-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.article-card .tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta-deep); font-weight: 700; }
.article-card h3 { font-size: var(--step-1); margin: 0.5rem 0; }
.article-card p { color: var(--ink-soft); font-size: var(--step--1); flex: 1; }
.article-card .more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.4em; color: var(--terracotta-deep); font-weight: 600; font-size: var(--step--1); }

/* --------------------------- Reveal on scroll --------------------------- */
/* Gated behind .has-js so content is always visible without JavaScript. */
.has-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .has-js [data-reveal] { opacity: 1; transform: none; } }

/* Staggered hero load */
.load-stagger > * { opacity: 0; animation: rise 0.8s var(--ease) forwards; }
.load-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.load-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.load-stagger > *:nth-child(3) { animation-delay: 0.25s; }
.load-stagger > *:nth-child(4) { animation-delay: 0.35s; }
.load-stagger > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .load-stagger > * { opacity: 1; animation: none; } }

/* Utility */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1.2rem; }
.maxw-prose { max-width: 72ch; }
