/* ============================================================
   HEARTFUL — Design System
   ============================================================ */

:root {
  color-scheme: light;
  /* Palette */
  --teal: #0F4C5C;
  --teal-deep: #0a3a47;
  --teal-soft: #1a6378;
  --sage: #A8C5B0;
  --sage-soft: #c5dbcb;
  --sage-pale: #e3edd9;
  --cream: #F5EFE6;
  --cream-warm: #f9f4ec;
  --cream-deep: #ebe2d2;
  --amber: #D4915C;
  --amber-deep: #b97644;
  --amber-soft: #e5ad7e;
  --ink: #1A1A1A;
  --ink-soft: #4a4a4a;
  --ink-mute: #7a7470;
  --line: rgba(15, 76, 92, 0.12);
  --line-soft: rgba(15, 76, 92, 0.06);

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Reem Kufi", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 2px 12px rgba(15, 76, 92, 0.05);
  --shadow-lift: 0 8px 32px rgba(15, 76, 92, 0.10);
  --shadow-warm: 0 0 28px rgba(212, 145, 92, 0.32);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--cream);
}
html body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* Subtle global gradient pulse */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 700px at 10% 0%, rgba(168, 197, 176, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 90%, rgba(15, 76, 92, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: gradientShift 22s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0%   { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0.7; transform: translate3d(0, 18px, 0); }
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  letter-spacing: -0.015em;
  color: var(--teal);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.1rem; line-height: 1.3; }

p { text-wrap: pretty; }
.lead { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.55; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--amber);
}
.arabic {
  font-family: var(--arabic);
  direction: rtl;
  unicode-bidi: isolate;
}

/* ============================================================
   Layout
   ============================================================ */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
section { position: relative; z-index: 1; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }
  .section-pad-sm { padding: 56px 0; }
  .wrap { padding: 0 20px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: 0.005em;
  transition: transform 0.25s ease, box-shadow 0.4s ease, background 0.3s ease, color 0.3s ease;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 0 0 rgba(212, 145, 92, 0);
}
.btn-primary:hover {
  background: var(--amber-deep);
  box-shadow: var(--shadow-warm), 0 1px 0 rgba(255,255,255,0.2) inset;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding: 12px 0;
}
.btn-ghost::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.25s ease;
}
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-lg { padding: 18px 32px; font-size: 1.02rem; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.3s ease, box-shadow 0.35s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px;
  display: inline-grid;
  place-items: center;
  overflow: visible;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--amber);
  transition: right 0.3s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-ctas { display: flex; gap: 10px; }
.nav-ctas .btn { padding: 10px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--teal);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 1.5px;
  background: var(--teal);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-ctas .btn-secondary { display: none; }
}
@media (max-width: 640px) {
  .nav-ctas .btn-primary { padding: 9px 14px; font-size: 0.85rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  margin-bottom: 22px;
}
.hero h1 {
  margin-bottom: 22px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber-deep);
}
.hero .lead {
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.trust-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.trust-strip .dot {
  width: 3px; height: 3px;
  background: var(--ink-mute);
  border-radius: 50%;
  opacity: 0.5;
}

/* Hero photo carousel */
.hero-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--line-soft);
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(15, 76, 92, 0.18));
  pointer-events: none;
  z-index: 3;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ph-fill {
  width: 100%; height: 100%;
}
.ph-caption {
  width: 100%;
}
.ph-eyebrow {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.ph-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}
.hero-slide image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease-in-out, transform 5s ease-out;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
  z-index: 2;
}
.hero-slide .ph-fill {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
}

/* Floating geometric overlay */
.geo-overlay {
  position: absolute;
  inset: -10%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.08;
  animation: slowSpin 60s linear infinite;
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 4;
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  max-width: 70%;
}

.hero-stage-aux {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--teal);
  box-shadow: var(--shadow-soft);
  z-index: 5;
  padding: 16px;
}
.hero-stage-aux .arabic {
  font-size: 1.4rem;
  color: var(--amber-deep);
  margin-bottom: 4px;
}

@media (max-width: 1024px) {
  .hero { padding: 130px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-stage { max-width: 460px; margin: 0 auto; }
}

/* ============================================================
   Photo placeholders — Islamic geometric mood cards
   ============================================================ */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--ph-a, var(--sage)) 0%, var(--ph-b, var(--teal)) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  display: flex;
  align-items: flex-end;
  padding: 26px;
}
.ph::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23F5EFE6' stroke-width='0.7' opacity='0.55'><polygon points='100,12 168,52 168,132 100,172 32,132 32,52'/><polygon points='100,40 144,64 144,116 100,140 56,116 56,64'/><circle cx='100' cy='92' r='28'/><circle cx='100' cy='92' r='14'/><line x1='32' y1='52' x2='168' y2='132'/><line x1='168' y1='52' x2='32' y2='132'/><line x1='100' y1='12' x2='100' y2='172'/></g></svg>");
  background-size: 280px 280px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(60% 80% at 80% 100%, rgba(0, 0, 0, 0.22), transparent 60%);
  pointer-events: none;
}
.ph > * { position: relative; z-index: 2; }
.ph-cream { --ph-a: #ecd6b2; --ph-b: #b97644; color: #fff8ee; }
.ph-sage  { --ph-a: #c5dbcb; --ph-b: #4f7d68; }
.ph-teal  { --ph-a: #3c8395; --ph-b: #0a3a47; }
.ph-warm  { --ph-a: #e5ad7e; --ph-b: #8a4a25; }
.ph-dusk  { --ph-a: #b8c9d0; --ph-b: #3d5560; }

/* ============================================================
   Problem section
   ============================================================ */
.problem {
  background: var(--cream-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.problem-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.problem-head h2 { margin: 14px 0 16px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  border: 1px solid var(--line-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.problem-card .icon {
  width: 44px; height: 44px;
  color: var(--amber-deep);
  margin-bottom: 22px;
}
.problem-card h3 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
.problem-card p { color: var(--ink-soft); }

@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   How it works
   ============================================================ */
.how-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: end;
}
.how-head h2 { max-width: 9ch; }
.how-head .lead { max-width: 480px; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding: 36px 22px 28px;
  border-radius: var(--r-lg);
  background: var(--cream-warm);
  border: 1px solid var(--line-soft);
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  color: var(--amber-deep);
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }

.step-connector {
  position: absolute;
  top: 78px;
  left: 0; right: 0;
  height: 2px;
  pointer-events: none;
  z-index: 0;
}
.step-connector svg { width: 100%; height: 100%; overflow: visible; }
.step-connector path {
  stroke: var(--amber);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 4 6;
  stroke-dashoffset: 0;
}

@media (max-width: 1024px) {
  .how-head { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Therapists
   ============================================================ */
.therapists {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}
.therapists-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
  gap: 40px;
  flex-wrap: wrap;
}
.therapists-head h2 { max-width: 14ch; }
.therapists-head .lead { max-width: 480px; }

.therapist-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 28px 30px;
  margin: 0 -28px;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
}
.therapist-row::-webkit-scrollbar { height: 6px; }
.therapist-row::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }

.therapist-card {
  flex: 0 0 290px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.therapist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.therapist-photo {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.therapist-photo .ph { width: 100%; height: 100%; }
.therapist-card .view-profile {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--teal);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.therapist-card:hover .view-profile {
  opacity: 1;
  transform: translateY(0);
}
.therapist-info { padding: 22px; }
.therapist-info .name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--teal);
  margin-bottom: 2px;
}
.therapist-info .creds {
  font-size: 0.8rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.therapist-info .meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.therapist-info .meta-row {
  display: flex;
  gap: 8px;
}
.therapist-info .meta-label {
  color: var(--ink-mute);
  width: 80px;
  flex-shrink: 0;
}
.therapist-info .statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.therapist-foot {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   Specialties
   ============================================================ */
.specialties {
  background: var(--cream);
}
.specialties-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.specialties-head h2 { margin: 14px 0 16px; }

.spec-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}
.spec-pill {
  padding: 14px 22px;
  border-radius: var(--r-pill);
  background: var(--cream-warm);
  border: 1px solid var(--line);
  color: var(--teal);
  font-size: 0.98rem;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.spec-pill .desc {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: max-width 0.5s ease, opacity 0.3s ease;
}
.spec-pill:hover {
  background: var(--cream);
  border-color: var(--amber);
  transform: translateY(-2px);
}
.spec-pill:hover .desc {
  max-width: 320px;
  opacity: 1;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* ============================================================
   For Therapists
   ============================================================ */
.for-therapists {
  background: var(--sage-pale);
  position: relative;
  overflow: hidden;
}
.for-therapists::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15, 76, 92, 0.06), transparent 70%);
  pointer-events: none;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.ft-left h2 { margin: 14px 0 20px; }
.ft-left .lead { max-width: 460px; margin-bottom: 32px; color: var(--ink-soft); }

.ft-benefits {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--cream-warm);
  padding: 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
}
.ft-benefit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.ft-benefit .icon {
  width: 44px; height: 44px;
  background: var(--cream);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal);
  flex-shrink: 0;
}
.ft-benefit h4 { font-family: var(--sans); font-size: 1.02rem; color: var(--teal); font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
.ft-benefit p { font-size: 0.94rem; color: var(--ink-soft); }

@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials { background: var(--cream); }
.testimonials-head { text-align: center; margin-bottom: 56px; }
.testimonials-head h2 { margin-top: 14px; }

.test-stage {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.test-track {
  position: relative;
  min-height: 280px;
}
.test-card {
  background: var(--cream-warm);
  border: 1px solid var(--teal);
  border-radius: var(--r-lg);
  padding: 48px 56px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.test-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.test-quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--teal);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 22px;
  text-wrap: balance;
}
.test-quote::before {
  content: "“";
  font-size: 3rem;
  color: var(--amber);
  display: block;
  line-height: 0.5;
  margin-bottom: 18px;
}
.test-meta {
  font-size: 0.88rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.test-meta .name { color: var(--ink); font-weight: 500; }

.test-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}
.test-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--teal);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.test-arrow:hover { background: var(--cream-warm); border-color: var(--amber); }
.test-dots { display: flex; gap: 8px; }
.test-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s ease, width 0.3s ease;
}
.test-dot.active { background: var(--amber); width: 22px; border-radius: 4px; }

@media (max-width: 640px) {
  .test-card { padding: 32px 26px; }
  .test-quote { font-size: 1.2rem; }
}

/* ============================================================
   Stats / Numbers (small companion strip)
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px;
  background: var(--cream-warm);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  margin-top: 80px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num sup { font-size: 0.5em; color: var(--amber-deep); margin-left: 2px; vertical-align: super; }
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 28px; }
}

/* ============================================================
   Insurance
   ============================================================ */
.insurance {
  background: var(--cream-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ins-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.ins-head p { color: var(--ink-soft); margin-top: 14px; }

.ins-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ins-logo {
  background: var(--cream);
  aspect-ratio: 5 / 2;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-mute);
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.ins-logo:hover {
  filter: grayscale(0) opacity(1);
  color: var(--teal);
  background: var(--cream-warm);
}
.ins-logo .ins-sub { font-size: 0.65rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--sans); margin-top: 2px; display: block; text-align: center; }
@media (max-width: 1024px) { .ins-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .ins-logos { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--cream); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.faq-head { position: sticky; top: 120px; }
.faq-head .lead { margin-top: 18px; max-width: 360px; }

.faq-list {
  border-top: 1px solid var(--line-soft);
}
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--teal);
  font-weight: 400;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--amber-deep); }
.faq-q .plus {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease;
}
.faq-q .plus::before { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-q .plus::after { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-item.open .faq-q .plus::before { transform: rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--ink-soft);
  font-size: 1rem;
}
.faq-a-inner { padding: 0 0 28px; max-width: 70ch; }
.faq-item.open .faq-a { max-height: 400px; }

@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: relative; top: 0; }
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  background: var(--teal);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 140px 0;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23F5EFE6' stroke-width='0.6'><polygon points='60,8 102,32 102,88 60,112 18,88 18,32'/><polygon points='60,28 86,42 86,78 60,92 34,78 34,42'/><circle cx='60' cy='60' r='14'/></g></svg>");
  background-size: 240px 240px;
  opacity: 0.08;
  pointer-events: none;
}
.final-cta h2 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  max-width: 18ch;
  margin: 0 auto 14px;
}
.final-cta .lead { color: rgba(245, 239, 230, 0.78); max-width: 580px; margin: 0 auto 36px; }
.final-cta .arabic {
  font-size: 1.6rem;
  color: var(--amber-soft);
  opacity: 0.85;
  margin-bottom: 24px;
}
.final-cta .btn-secondary { color: var(--cream); border-color: var(--cream); }
.final-cta .btn-secondary:hover { background: var(--cream); color: var(--teal); }
.final-cta-ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--cream-warm);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
  max-width: 540px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--ink-soft); max-width: 320px; font-size: 0.94rem; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-soft); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.83rem;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.footer-bottom .arabic {
  font-size: 1.1rem;
  color: var(--teal);
  opacity: 0.5;
}
.footer-legal { display: flex; gap: 22px; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Section divider (animated SVG)
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 200px;
  height: 28px;
  color: var(--amber);
}
.section-divider svg { width: 100%; height: 100%; overflow: visible; }
.section-divider path, .section-divider circle, .section-divider line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.6s ease;
}
.section-divider.in path,
.section-divider.in circle,
.section-divider.in line {
  stroke-dashoffset: 0;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   Form pages (signup)
   ============================================================ */
.signup {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}
.signup-left {
  background: var(--cream-warm);
  padding: 120px 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.signup-left .geo-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%230F4C5C' stroke-width='0.6'><polygon points='60,8 102,32 102,88 60,112 18,88 18,32'/></g></svg>");
  background-size: 200px 200px;
  opacity: 0.07;
  pointer-events: none;
}
.signup-left-content { position: relative; z-index: 2; max-width: 460px; }
.signup-left .eyebrow { margin-bottom: 22px; }
.signup-left h1 { margin-bottom: 18px; font-size: clamp(2rem, 3.6vw, 3rem); }
.signup-left .lead { margin-bottom: 40px; }

.signup-image {
  position: relative;
  z-index: 2;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 30px;
  box-shadow: var(--shadow-lift);
  max-width: 460px;
}

.signup-right {
  background: var(--cream);
  padding: 120px 64px 64px;
  overflow-y: auto;
}
.signup-form-wrap { max-width: 520px; margin: 0 auto; }

.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
}
.progress-step {
  flex: 1;
  height: 4px;
  background: var(--cream-deep);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.progress-step.done::after,
.progress-step.current::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform-origin: left;
  animation: fill 0.5s ease forwards;
}
.signup-therapist .progress-step.done::after,
.signup-therapist .progress-step.current::after { background: var(--sage); }
@keyframes fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.step-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.step-title { font-family: var(--serif); font-size: 1.9rem; color: var(--teal); margin-bottom: 8px; }
.step-sub { color: var(--ink-soft); margin-bottom: 28px; }

.field {
  margin-bottom: 22px;
  position: relative;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: transparent;
}
.field-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  width: 0;
  transition: width 0.4s ease;
}
.field input:focus ~ .field-underline,
.field select:focus ~ .field-underline,
.field textarea:focus ~ .field-underline { width: 100%; }
.signup-therapist .field-underline { background: var(--sage); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder { color: var(--ink-mute); opacity: 0.6; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 0.94rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.check-pill input { accent-color: var(--amber); }
.signup-therapist .check-pill input { accent-color: var(--teal); }
.check-pill:has(input:checked) {
  border-color: var(--amber);
  background: var(--cream-warm);
}
.signup-therapist .check-pill:has(input:checked) {
  border-color: var(--teal);
  background: var(--sage-pale);
}

.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-row .check-pill { flex: 1 1 auto; }

.slider-row { margin: 28px 0; }
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 10px;
}
.slider-row input[type=range] {
  width: 100%;
  accent-color: var(--amber);
}
.signup-therapist .slider-row input[type=range] { accent-color: var(--teal); }

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  gap: 12px;
}
.form-actions .btn-back {
  color: var(--ink-mute);
  background: transparent;
  padding: 14px 0;
  font-size: 0.95rem;
}
.form-actions .btn-back:hover { color: var(--teal); }

.confirm-screen {
  text-align: center;
  padding: 60px 0;
}
.confirm-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cream-warm);
  margin: 0 auto 28px;
  display: grid; place-items: center;
  color: var(--amber-deep);
}
.signup-therapist .confirm-icon { color: var(--teal); background: var(--sage-pale); }
.confirm-screen h2 { margin-bottom: 14px; }
.confirm-screen p { color: var(--ink-soft); max-width: 420px; margin: 0 auto; }

.divider-or {
  text-align: center;
  margin: 24px 0;
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}
.divider-or::before, .divider-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--line-soft);
}
.divider-or::before { left: 0; }
.divider-or::after  { right: 0; }

.google-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  color: var(--teal);
  transition: background 0.2s ease;
}
.google-btn:hover { background: var(--cream-warm); }
.google-btn svg { width: 18px; height: 18px; }

.signup-nav {
  position: absolute;
  top: 36px;
  left: 64px;
  z-index: 10;
}
.signup-back {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.signup-back:hover { color: var(--teal); }

@media (max-width: 960px) {
  .signup { grid-template-columns: 1fr; }
  .signup-left { padding: 100px 32px 48px; }
  .signup-right { padding: 48px 32px 64px; }
  .signup-image { margin-top: 20px; max-width: 100%; }
  .signup-nav { left: 28px; top: 24px; }
}
