/* ==========================================================================
   Dr. Rose Wellness — Stylesheet
   ========================================================================== */

/* Lora, Raleway, and Vazirmatn are loaded via <link rel="preconnect">/<link rel="stylesheet">
   in each page's <head> instead of @import here — @import is render-blocking because the
   browser can't discover the font request until it has fetched and parsed this whole file. */

/* ---- Design Tokens ---- */
:root {
  /* Colors */
  --color-sage-900: #3D4A37;
  --color-sage-700: #5F7A5C;
  --color-sage-500: #7C9678;
  --color-sage-300: #A9BBA0;
  --color-sage-100: #E4E7DD;
  --color-cream: #F6F3EC;
  --color-cream-dark: #EFEADD;
  --color-terracotta: #B8674A;
  --color-terracotta-dark: #9C5439;
  --color-charcoal: #33362E;
  --color-charcoal-soft: #55584E;
  --color-border: #D8D3C4;
  --color-border-subtle: #E8E4DB;
  --color-white: #FFFFFF;

  /* Typography */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Raleway', 'Helvetica Neue', Arial, sans-serif;

  --fs-h1: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

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

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 24px;
  --transition: 220ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* Deliberately not repeating overflow-x:hidden on body: overflow-x on a
   non-root element forces the UA to compute its overflow-y as "auto" per
   spec, which turns body into a scroll container and breaks
   position:sticky for every descendant relative to the real viewport.
   html's overflow-x:hidden alone already clips horizontal overflow at the
   root/viewport level, so this isn't needed on body too. */
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img, picture, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Base ---- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-sage-900);
  line-height: 1.2;
  font-weight: 500;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { color: var(--color-charcoal-soft); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  background: var(--color-sage-900);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  z-index: 1000;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  left: var(--space-4);
  top: var(--space-4);
}

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section--tight { padding-block: var(--space-16); }
.section--snug { padding-block: var(--space-12); }
.section--sage { background: var(--color-sage-100); }
.section--dark { background: var(--color-sage-700); color: var(--color-white); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--color-sage-500);
  margin-block: var(--space-4);
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

.section-divider {
  width: 64px;
  height: 1px;
  background: var(--color-sage-300);
  margin: var(--space-4) auto var(--space-1);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  min-height: 42px;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--color-sage-700);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-sage-900); }

.btn--outline {
  background: transparent;
  color: var(--color-sage-900);
  border: 1.5px solid var(--color-sage-500);
}
.btn--outline:hover {
  background: var(--color-sage-900);
  color: var(--color-white);
  border-color: var(--color-sage-900);
}

.btn--on-dark {
  background: var(--color-white);
  color: var(--color-sage-900);
}
.btn--on-dark:hover { background: var(--color-cream); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 44px;
}
.badge--soon {
  background: var(--color-cream-dark);
  color: var(--color-sage-700);
  border: 1.5px dashed var(--color-sage-300);
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.is-scrolled { border-color: var(--color-border); }

/* Transparent overlay header for pages with a full-bleed hero */
.has-hero .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(246, 243, 236, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
}
.has-hero .site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.95);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-sage-900);
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}
.logo img { height: 76px; width: auto; display: block; }
.logo span { color: var(--color-terracotta); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-charcoal);
  position: relative;
  padding-block: var(--space-1);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--color-terracotta);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--color-sage-900); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-actions .btn {
  padding: var(--space-1) var(--space-3);
  min-height: 32px;
}

.lang-switch {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-sage-900);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-sage-300);
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(51, 54, 46, 0.12);
}
[lang="fa"] {
  font-family: 'Vazirmatn', 'Raleway', 'Helvetica Neue', Arial, sans-serif;
}
.lang-switch:hover { background: var(--color-white); border-color: var(--color-sage-500); }

.header-instagram {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-terracotta-dark);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-sage-300);
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
  min-height: 32px;
  box-shadow: 0 1px 4px rgba(51, 54, 46, 0.12);
}
.header-instagram svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 999px;
  background: var(--color-terracotta);
  color: var(--color-white);
}
.header-instagram:hover { color: var(--color-terracotta-dark); background: var(--color-white); border-color: var(--color-sage-500); }
.header-instagram:hover svg { background: var(--color-terracotta-dark); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-sage-900);
  color: rgba(255,255,255,0.85);
  padding-block: var(--space-16) var(--space-8);
}
.site-footer p { color: rgba(255,255,255,0.85); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer-grid a:hover { color: var(--color-white); }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.footer-cta { margin-top: var(--space-4); }
.footer-right { text-align: end; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.footer-nav a:not(:first-child)::before {
  content: '|';
  margin-inline-end: var(--space-2);
  color: rgba(255,255,255,0.35);
}
.footer-email { margin-bottom: var(--space-4); }
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.85);
}
.footer-instagram svg { width: 18px; height: 18px; }
.footer-instagram:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-small);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ---- Hero (full-bleed photo background) ---- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(246, 243, 236, 0.94) 0%,
    rgba(246, 243, 236, 0.82) 28%,
    rgba(246, 243, 236, 0.35) 52%,
    rgba(246, 243, 236, 0) 68%);
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy { padding-top: var(--space-24); }
.hero-lead {
  font-size: 1.05rem;
  max-width: 40ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
/* The outline button sits directly on the hero photo, so a fully
   transparent fill (fine elsewhere .btn--outline is used, on flat
   backgrounds) loses contrast against busier parts of the image —
   give it the same frosted-chip backing as .lang-switch instead. */
.hero-actions .btn--outline {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--color-sage-300);
  box-shadow: 0 1px 4px rgba(51, 54, 46, 0.12);
}
.hero-actions .btn--outline:hover {
  background: var(--color-white);
}

/* ---- Pillars ---- */
.section-lead {
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}
.leaf-icon { color: var(--color-sage-500); margin-bottom: var(--space-4); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.pillars-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pillars-grid--2 { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-2); }
.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-sage-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.pillar h3 { margin-bottom: var(--space-2); font-size: 1.15rem; }
.pillar p { font-size: var(--fs-small); }

.pillars-grid--2 .pillar-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.pillars-grid--2 .pillar-icon {
  width: auto;
  height: auto;
  background: none;
  margin-inline: 0;
  margin-bottom: 0;
}
.pillars-grid--2 .pillar-icon svg { width: 26px; height: 26px; }
.pillars-grid--2 .pillar h3 { margin-bottom: 0; }

/* ---- About Teaser ---- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.about-media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, var(--color-sage-100), var(--color-sage-100) 10px, var(--color-cream-dark) 10px, var(--color-cream-dark) 20px);
  border: 1.5px dashed var(--color-sage-300);
  overflow: hidden;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
}
.about-media--photo {
  border: none;
  background: none;
}
.about-media--lg {
  width: 110%;
  margin-inline: -5%;
}
.about-media--fit {
  aspect-ratio: auto;
  align-self: stretch;
}
.about-media--top {
  align-self: start;
}
.about-media--portrait { aspect-ratio: 3 / 4.1; }
.about-media--badge {
  aspect-ratio: auto;
  width: fit-content;
  margin-inline: auto;
  border: none;
  background: var(--color-white);
  padding: var(--space-2);
  box-shadow: 0 8px 28px rgba(51, 54, 46, 0.14);
}
.about-media--badge img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
}
.about-media--compact {
  max-width: 340px;
  margin-inline: auto 0;
  box-shadow: 0 8px 28px rgba(51, 54, 46, 0.14);
}
.about-teaser--tight { gap: var(--space-8); }
.about-copy p { margin-block: var(--space-4) var(--space-8); max-width: 52ch; }

.focus-list {
  list-style: disc;
  padding-inline-start: 1.25rem;
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  column-count: 2;
  column-gap: var(--space-8);
}
.focus-list li {
  margin-bottom: var(--space-1);
}
.focus-list li::marker { color: var(--color-terracotta); }

.section-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--color-sage-900);
  font-size: 1.1rem;
}

.treatment-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.treatment-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: start;
}
.treatment-card h3 { margin-bottom: 0; font-size: 1.15rem; }
.treatment-card p { font-size: var(--fs-small); }
.treatment-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.treatment-card-title svg { width: 20px; height: 20px; color: var(--color-terracotta); flex-shrink: 0; }

@media (max-width: 1024px) {
  .treatment-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .treatment-cards { grid-template-columns: 1fr; }
}

/* ---- FAQ / Accordion ---- */
.faq-category-title {
  text-align: center;
  margin-bottom: var(--space-8);
}

.accordion {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Each question/answer is its own card. The card itself is never clipped
   with overflow:hidden — that would break the sticky question below, since
   overflow other than "visible" on an ancestor makes position:sticky stick
   relative to that ancestor's own (non-scrolling) box instead of the page.
   Rounded corners are handled by rounding the summary/panel directly. */
.accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

/* The question stays pinned just below the sticky site header while its
   answer scrolls underneath — important on mobile, where a long answer
   can be taller than the viewport and it's easy to lose track of which
   question you're reading. 110px = the site header's rendered height. */
.accordion-item summary {
  position: sticky;
  top: 110px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-6) var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-md);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-sage-900);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { color: var(--color-terracotta-dark); }
.accordion-item summary:focus-visible { outline: 2px solid var(--color-terracotta); outline-offset: -2px; }
.accordion-item[open] summary {
  color: var(--color-terracotta-dark);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 2px 6px rgba(51, 54, 46, 0.1);
}

.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-sage-500);
  transition: transform var(--transition);
}
.accordion-item[open] .accordion-icon { transform: rotate(180deg); }

.accordion-panel {
  padding: var(--space-2) var(--space-6) var(--space-6);
  max-width: 68ch;
}
.accordion-panel p { margin-bottom: var(--space-3); }
.accordion-panel p:last-child { margin-bottom: 0; }

.accordion-list {
  list-style: disc;
  padding-inline-start: 1.25rem;
  margin-block: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.accordion-list li::marker { color: var(--color-terracotta); }

/* ---- Schedule Table ---- */
.table-responsive {
  overflow-x: auto;
  margin-block: var(--space-8);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}
.schedule-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--color-white);
}
.schedule-table th,
.schedule-table td {
  padding: var(--space-4) var(--space-6);
  text-align: start;
  border-bottom: 1px solid var(--color-border-subtle);
}
.schedule-table thead th {
  background: var(--color-sage-700);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
[dir="rtl"] .schedule-table thead th {
  font-family: 'Vazirmatn', 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  text-transform: none;
}
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table .table-link {
  color: var(--color-terracotta);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (hover: hover) {
  .schedule-table tbody tr:hover { background: var(--color-cream); }
  .schedule-table .table-link:hover { color: var(--color-terracotta-dark); }
}

/* Below 600px the table no longer fits comfortably even with horizontal
   scroll (4 columns of clinic info), so it's restacked into a list of
   cards — one per day — with each value's column header reintroduced as
   an inline label via data-label, since the table's own header row is
   hidden. */
@media (max-width: 600px) {
  .table-responsive { overflow-x: visible; border: none; }
  .schedule-table { min-width: 0; }
  .schedule-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td {
    display: block;
    width: 100%;
  }
  .schedule-table tr {
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .schedule-table tr:last-child { margin-bottom: 0; }
  .schedule-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    text-align: end;
  }
  .schedule-table td::before {
    content: attr(data-label);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-sage-900);
    text-align: start;
  }
  [dir="rtl"] .schedule-table td::before {
    font-family: 'Vazirmatn', 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  }
}

/* ---- Quote Banner ---- */
.quote-banner .quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.5vw + 0.8rem, 1.5rem);
  max-width: 44ch;
  margin-inline: auto;
  color: var(--color-white);
}

.quote-banner .cta-text {
  max-width: 44ch;
  margin-inline: auto;
  margin-top: var(--space-4);
  margin-bottom: var(--space-8);
  font-size: 1rem;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border);
}
.mobile-menu a {
  padding-block: var(--space-3);
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .btn {
  align-self: center;
  justify-content: center;
  margin-top: var(--space-2);
  border-bottom: none;
}

/* ---- Page Intro (non-hero pages) ---- */
.page-intro { padding-top: var(--space-8); padding-bottom: var(--space-4);}
.page-intro-lead {
  max-width: 56ch;
  margin-inline: auto;
  margin-top: var(--space-4);
  font-size: 1.05rem;
}

/* ---- Timeline ---- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-16);
}
.timeline-item {
  position: relative;
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-sage-300);
}
.timeline-marker {
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-terracotta);
  border: 2px solid var(--color-sage-100);
}
.timeline-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.timeline-item h3 { margin-bottom: var(--space-2); }
.timeline-item p { font-size: var(--fs-small); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding-block: var(--space-16); }
  .page-intro { padding-top: var(--space-8); padding-bottom: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }

  .about-teaser {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .about-teaser .about-media { order: -1; }
  .about-media--fit { aspect-ratio: 4 / 3.2; align-self: auto; }
  .focus-list { column-count: 1; }
  .hero-lead { max-width: none; }
  .timeline { grid-template-columns: 1fr; gap: var(--space-8); }

  .hero { min-height: 58vh; background-position: 65% center; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(246, 243, 236, 0.95) 0%,
      rgba(246, 243, 236, 0.9) 45%,
      rgba(246, 243, 236, 0.55) 75%,
      rgba(246, 243, 236, 0.35) 100%);
  }
}

@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero { min-height: 54vh; }
}

[dir="rtl"] .skip-link:focus {
  left: auto;
  right: var(--space-4);
}

[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .accordion-item summary {
  font-family: 'Vazirmatn', 'Raleway', 'Helvetica Neue', Arial, sans-serif;
}

[dir="rtl"] .quote-banner .quote-text {
  font-family: 'Vazirmatn', 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-style: normal;
}
[dir="rtl"] h1 {
  font-size: calc(var(--fs-h1) * 0.85);
}



/* Farsi hero copy sits on the right (RTL flex reversal), so the cream
   fade needs to come from the right instead of the left. hero_fa.png
   is a mirrored image (subject on the left), so the focal position
   mirrors too. */
[dir="rtl"] .hero::before {
  background: linear-gradient(270deg,
    rgba(246, 243, 236, 0.94) 0%,
    rgba(246, 243, 236, 0.82) 28%,
    rgba(246, 243, 236, 0.35) 52%,
    rgba(246, 243, 236, 0) 68%);
}
[dir="rtl"] .hero {
  background-position: 30% center;
}
