/* core block resets, placed first so every site rule below wins */
:where(.elie-page) .wp-block-image, :where(.elie-page) figure { margin: 0; }
:where(.elie-page) .wp-block-image img { vertical-align: bottom; }
:where(.elie-page) .wp-block-buttons, :where(.elie-page) .wp-block-group { margin: 0; }
:where(.elie-page) ul.wp-block-list, :where(.elie-page) ol.wp-block-list { margin: 0; }
:where(.elie-page) p, :where(.elie-page) h1, :where(.elie-page) h2, :where(.elie-page) h3 { margin: 0; }
/* Blocksy spaces every child of a flow-layout group; the site uses grid gaps instead */
:where(.elie-page) :is(.is-layout-flow, .is-layout-constrained) > * { margin-block: 0; }
/* Layout: one 1080px column; full-width slate bands carry the interactive moments; logical properties so Arabic mirrors cleanly.
   Colour: taken from Elie's own logo and brand cards. Wordmark slate-teal #3C6078, logo periwinkle #C0D2EA, mist ring #DAE5F0,
   tagline steel #6E8DAA, deep navy from his gift-voucher cards. Kept low in saturation; one warm clay for small marks only. */
:root {
  --paper: #f4f6f8;      /* his white cards, a breath of blue-grey */
  --card: #ffffff;
  --ink: #1d2c38;        /* wordmark slate, darkened for body text */
  --muted: #52667a;
  --line: #d6dfe8;
  --deep: #22384d;       /* voucher-card navy, softened */
  --on-deep: #eef3f8;
  --on-deep-muted: #b5c6d8;
  --brand: #c0d2ea;      /* logo periwinkle */
  --mist: #dae5f0;       /* logo outer ring */
  --brand-ink: #3c6078;  /* wordmark slate-teal */
  --sea: #6e8daa;        /* tagline steel */
  --amber: #b5826b;      /* warm clay, used sparingly */
  --amber-ink: #8a5a45;
  --amber-wash: #f1e4dc;
  --trip: #a9483a;
  --serif: "Young Serif", "El Messiri", Georgia, serif;
  --display: "Young Serif", "El Messiri", Georgia, serif;
  --body: "Schibsted Grotesk", "Alexandria", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.35rem + 3.4vw, 3.7rem);
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111a22; --card: #17222c; --ink: #e4eaf0; --muted: #9db0c2; --line: #29384a;
    --deep: #182b3c; --on-deep: #e4eaf0; --on-deep-muted: #a7b9cb; --brand: #4f6d8c; --mist: #22344a;
    --brand-ink: #a9c3de; --sea: #8fa9c4; --amber: #c99782; --amber-ink: #dcae99; --amber-wash: #3a2a23; --trip: #d9705f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111a22; --card: #17222c; --ink: #e4eaf0; --muted: #9db0c2; --line: #29384a;
  --deep: #182b3c; --on-deep: #e4eaf0; --on-deep-muted: #a7b9cb; --brand: #4f6d8c; --mist: #22344a;
  --brand-ink: #a9c3de; --sea: #8fa9c4; --amber: #c99782; --amber-ink: #dcae99; --amber-wash: #3a2a23; --trip: #d9705f;
  color-scheme: dark;
}

/* reset for sub-pages that do not get the host skeleton */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
:lang(ar), [lang="ar"] { line-height: 1.85; }

/* language switching */
:root:not([data-lang="ar"]) .ar { display: none !important; }
:root[data-lang="ar"] .en { display: none !important; }

.wrap {
  max-width: 1080px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 68ch; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, h1 .ar, h2 .ar, h3 .ar { line-height: 1.45; }
h1 { font-size: var(--step-3); letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  font-size: var(--step--1); font-weight: 600; color: var(--brand-ink);
  text-transform: uppercase; letter-spacing: 0.09em;
}
.eyebrow.ar, .eyebrow :lang(ar) { text-transform: none; letter-spacing: 0; }
.muted { color: var(--muted); }
.lead { font-size: var(--step-1); line-height: 1.55; }

/* draft banner */
.draft {
  background: var(--amber-wash); color: var(--ink); font-size: var(--step--1);
  padding-block: 8px;
}
mark.tbd {
  background: var(--amber-wash); color: inherit; padding: 0 3px; border-radius: 3px;
  border-bottom: 1.5px dashed var(--amber);
}

/* header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-inline-end: auto; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--brand-ink); line-height: 1.2; white-space: nowrap; }
.brand-sub { font-size: 0.68rem; color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.16em; }
.brand-sub.ar { text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; }
.logo { width: 38px; height: 38px; color: var(--brand-ink); flex-shrink: 0; }
.brand-name .ar { font-family: "El Messiri", serif; font-weight: 600; font-size: 1.15rem; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 0.95rem; color: var(--muted);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.lang-btn {
  font: inherit; font-size: 0.9rem; background: none; border: 1px solid var(--line); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--amber); }
.head-row .nav { display: none; }
.nav-row { display: block; border-top: 1px solid var(--line); }
.nav-row .nav { flex-wrap: wrap; row-gap: 2px; padding-block: 6px; }
@media (max-width: 600px) { .nav-row .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
@media (max-width: 900px) { .head-row .btn, .head-row .elie-btn > .wp-block-button__link { display: none; } }


/* buttons */
.btn, .elie-btn > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid transparent; font-size: 0.98rem; cursor: pointer;
  font-family: inherit;
}
.btn-primary, .elie-btn.b-primary > .wp-block-button__link { background: var(--brand-ink); color: var(--paper); }
.btn-primary:hover, .elie-btn.b-primary > .wp-block-button__link:hover { background: color-mix(in srgb, var(--brand-ink) 85%, var(--ink)); }
.btn-ghost, .elie-btn.b-ghost > .wp-block-button__link { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover, .elie-btn.b-ghost > .wp-block-button__link:hover { border-color: var(--amber); }
.btn-amber, .elie-btn.b-amber > .wp-block-button__link { background: var(--amber); color: #1d1410; }
.btn-light, .elie-btn.b-light > .wp-block-button__link { background: var(--on-deep); color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.wa-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fbf6a; box-shadow: 0 0 0 3px color-mix(in srgb, #3fbf6a 30%, transparent); }

/* sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 32px; }
.head-block { display: grid; gap: 12px; max-width: 64ch; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 52ch; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--step--1); color: var(--muted); padding: 0; margin: 0; list-style: none; }
.facts li, .facts .li { display: flex; gap: 8px; align-items: baseline; }
.facts li::before, .facts .li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); transform: translateY(-2px); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }

/* photo slot */
.photo-slot {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius);
  border: 1.5px dashed var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px),
    var(--card);
  display: grid; place-items: end start; padding: 16px; color: var(--muted); font-size: var(--step--1);
}
.photo-slot.wide { aspect-ratio: 16 / 9; }

/* two kinds of pain */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.split > div { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--deep); min-width: 0; }
.split > div.alarm { border-top-color: var(--amber); }
.split .tag { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 680px) { .split { grid-template-columns: 1fr; } }
.note { font-size: 0.98rem; color: var(--muted); border-inline-start: 3px solid var(--line); padding-inline-start: 14px; max-width: 70ch; }

/* generator band */
.band { background: var(--deep); color: var(--on-deep); }
.band .muted, .band .note { color: var(--on-deep-muted); }
.band .eyebrow { color: var(--amber); }
.band .note { border-inline-start-color: color-mix(in srgb, var(--on-deep) 25%, transparent); }
.moteur-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 820px) { .moteur-grid { grid-template-columns: 1fr; } }
.panel {
  background: color-mix(in srgb, var(--deep) 70%, #000); border-radius: 14px; padding: 20px;
  border: 1px solid color-mix(in srgb, var(--on-deep) 14%, transparent); display: grid; gap: 16px;
}
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.readout { font-family: var(--body); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.readout small { font-size: 1rem; color: var(--on-deep-muted); font-weight: 500; }
.lamp { display: flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--on-deep-muted); }
.lamp i { width: 12px; height: 12px; border-radius: 50%; background: #4fbf72; box-shadow: 0 0 10px #4fbf72; transition: background .2s, box-shadow .2s; }
.panel.tripped .lamp i { background: var(--trip); box-shadow: 0 0 12px var(--trip); }
.meter { position: relative; height: 18px; border-radius: 999px; background: color-mix(in srgb, var(--on-deep) 10%, transparent); overflow: hidden; }
.meter-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--amber); border-radius: 999px; transition: width .35s ease, background .2s; }
.panel.tripped .meter-fill { background: var(--trip); }
.loads { display: grid; gap: 8px; }
.load {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: start;
  font: inherit; font-size: 0.95rem; color: var(--on-deep); background: transparent; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--on-deep) 20%, transparent); border-radius: 8px; padding: 9px 12px;
}
.load[aria-pressed="true"] { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 16%, transparent); }
.load.fixed { cursor: default; opacity: .85; border-style: dashed; }
.load .amp { font-variant-numeric: tabular-nums; color: var(--on-deep-muted); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.status { min-height: 3.2em; font-size: 0.98rem; }
.panel-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.panel-foot .btn, .panel-foot .elie-btn > .wp-block-button__link { padding: 8px 14px; font-size: 0.9rem; }
.panel .btn-ghost, .panel .elie-btn.b-ghost > .wp-block-button__link { color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { .meter-fill, .lamp i { transition: none; } }

/* rows list (conditions) */
.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.1rem; }
.row .body { display: grid; gap: 8px; min-width: 0; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips a, .chips li > span, .chips .li > span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 0.95rem; }
.chips a:hover { border-color: var(--amber); }

/* offers */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 56px); }
.offer { display: grid; gap: 10px; align-content: start; min-width: 0; }
.offer .where { font-size: var(--step--1); color: var(--brand-ink); font-weight: 600; }
@media (max-width: 700px) { .offers { grid-template-columns: 1fr; } }
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.package { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.package .price { font-family: var(--display); font-size: 2.1rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.package ul, .package .ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 4px; }
@media (max-width: 700px) { .packages { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li, .steps .li { counter-increment: s; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before, .steps .li::before {
  content: counter(s); font-family: var(--display); font-weight: 400; font-size: 1.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--brand); color: var(--brand-ink);
}
.steps li > div, .steps .li > div { display: grid; gap: 4px; min-width: 0; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.timeline li, .timeline .li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.timeline .yr { font-family: var(--display); font-weight: 400; font-variant-numeric: tabular-nums; color: var(--brand-ink); }

/* quotes */
.quote { margin: 0; display: grid; gap: 14px; max-width: 46rem; }
.quote blockquote, .quote .blockquote { margin: 0; font-family: var(--display); font-size: var(--step-2); font-weight: 400; line-height: 1.25; }
.quote cite, .quote .cite { font-style: normal; color: var(--muted); font-size: 0.98rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); align-items: start; }
.two > * { min-width: 0; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* details list */
.info { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.info dt, .info dd, .info .dt, .info .dd { padding-block: 14px; border-bottom: 1px solid var(--line); margin: 0; }
.info dt, .info .dt { color: var(--muted); font-size: 0.95rem; }
.info dd, .info .dd { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
@media (max-width: 560px) { .info { grid-template-columns: 1fr; } .info dt, .info .dt { border-bottom: 0; padding-bottom: 0; } }
.copy-btn { font: inherit; font-size: 0.85rem; border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary, .faq .summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker, .faq .summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq .summary::after { content: "+"; color: var(--brand-ink); font-weight: 700; }
.faq details[open] summary::after, .faq details[open] .summary::after { content: "–"; }
.faq details > div { padding-top: 10px; color: var(--muted); max-width: 70ch; }

/* page head */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); max-width: 18ch; }
.page-head .lead { color: var(--muted); max-width: 60ch; }

/* cta band */
.cta { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 22ch; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 96px; font-size: 0.95rem; color: var(--muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* floating whatsapp */
.wa-float {
  position: fixed; z-index: 8;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(16px + env(safe-area-inset-right, 0px));
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

/* photos */
.photo { margin: 0; display: grid; gap: 8px; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; background: var(--card); }
.photo.wide-ish img { aspect-ratio: 4 / 3; object-position: 30% 35%; }
.photo.banner img { aspect-ratio: 21 / 9; object-position: 50% 60%; }
.photo figcaption, .photo .figcaption { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 600px) { .photo.banner img { aspect-ratio: 16 / 10; } }
.hero .photo img { box-shadow: none; border-radius: 160px 160px var(--radius) var(--radius); }

/* Arabic type */
[lang="ar"], :root[data-lang="ar"] body { font-family: "Alexandria", "Schibsted Grotesk", system-ui, sans-serif; }
h1 .ar, h2 .ar, h3 .ar, .quote .ar, h1[lang="ar"] { font-family: "El Messiri", serif; font-weight: 600; }
.split > div { border-top-color: var(--brand-ink); }
.split > div.alarm { border-top-color: var(--sea); }

/* hero video */
.hero-media { position: relative; margin: 0; }
.hero-media video, .hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 180px 180px var(--radius) var(--radius); background: var(--card); }
.hero-media .inset { position: absolute; inset-inline-start: -28px; bottom: -28px; width: 42%; border-radius: var(--radius); border: 6px solid var(--paper); aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 760px) { .hero-media .inset { inset-inline-start: 12px; bottom: -20px; width: 36%; } }
.motion-toggle { position: absolute; top: 14px; inset-inline-end: 14px; font: inherit; font-size: 0.8rem; background: color-mix(in srgb, var(--paper) 80%, transparent); color: var(--ink); border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; }

/* textured band */
.band { background-color: var(--deep); background-image: linear-gradient(color-mix(in srgb, var(--deep) 86%, transparent), color-mix(in srgb, var(--deep) 92%, transparent)), url("../img/breath-water.jpg"); background-size: cover; background-position: center; }
.water { margin: 0; }
.water img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .water img { aspect-ratio: 16 / 9; } }

/* nervous system states */
.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 16px; }
.state { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.state h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 10px; vertical-align: middle; }
.state-safe h3::before { background: var(--brand-ink); }
.state-fight h3::before { background: var(--amber); }
.state-fawn h3::before { background: var(--brand); border: 1px solid var(--sea); }
.state-freeze h3::before { background: var(--sea); }
.state-fawn h3::before { background: var(--brand); }

/* glossary */
.glossary { margin: 0; display: grid; border-top: 1px solid var(--line); }
.glossary dt, .glossary .dt { font-family: var(--display); font-size: 1.2rem; padding-top: 18px; }
.glossary dd, .glossary .dd { margin: 4px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.dialogue li > div p, .dialogue .li > div p { font-size: 1rem; }

/* breathing pause */
.pause { display: grid; justify-items: center; gap: 14px; text-align: center; padding-block: 12px; }
.pause-ring { width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, var(--on-deep) 30%, transparent); }
.pause-dot { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--brand) 0%, color-mix(in srgb, var(--brand) 50%, var(--deep)) 70%); transform: scale(1); transition: transform 4s ease-in-out; }
.pause.in .pause-dot { transform: scale(2.6); transition-duration: 4s; }
.pause.out .pause-dot { transform: scale(1); transition-duration: 6s; }
.pause-word { font-family: var(--display); font-size: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .pause-dot { transition: none !important; } }

/* logo circles as a quiet motif behind page openings, after Elie's brand cards */
.hero, .page-head { position: relative; overflow: clip; }
.hero::before, .page-head::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(62vw, 720px); aspect-ratio: 1; border-radius: 50%;
  inset-inline-end: -14vw; top: -18%;
  background: radial-gradient(circle at 50% 50%, transparent 0 57%, var(--mist) 57.2% 58.4%, transparent 58.6%),
              radial-gradient(circle at 50% 30%, var(--brand) 0 13%, transparent 13.3%);
  opacity: .55;
}
.page-head::before { width: min(48vw, 520px); top: -30%; }
main { position: relative; z-index: 0; }
.logo { color: var(--brand-ink); }

/* reviews */
.reviews-head { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; }
.reviews-head > .stack, .reviews-head > .head-block { min-width: 0; flex: 1 1 28rem; }
.rating-badge { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px 10px 12px; }
.rating-badge:hover { border-color: var(--brand-ink); }
.rating-num { font-family: var(--display); font-size: 2rem; line-height: 1; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--ink); }
.rating-text { display: grid; gap: 2px; font-size: 0.92rem; color: var(--muted); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; direction: ltr; unicode-bidi: isolate; }
.star-off { color: var(--line); }
.review-grid { columns: 3 18rem; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.review blockquote, .review .blockquote { margin: 0; }
.review blockquote p, .review .blockquote p { font-size: 1.02rem; line-height: 1.6; }
.review figcaption, .review .figcaption { font-size: 0.9rem; color: var(--muted); }
.review figcaption strong, .review .figcaption strong { color: var(--ink); font-weight: 600; }

/* Google map on the Visit page (live site only) */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 4 / 3; max-width: 100%; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* hero portrait framed by the rings of Elie's logo */
.hero-portrait { position: relative; margin: 0; width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 1; }
.hero-portrait img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; display: block; background: var(--card); }
.hero-portrait .ring { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-portrait .ring-outer { inset: 0; border: 1.5px solid var(--brand-ink); opacity: .35; }
.hero-portrait .ring-outer::after { content: ""; position: absolute; inset: 4.5%; border-radius: 50%; background: var(--mist); z-index: -1; }
.hero-portrait .ring-dot { width: 21%; aspect-ratio: 1; top: -2%; inset-inline-end: 6%; background: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand-ink) 45%, transparent); }
.hero .hero-grid { align-items: center; }
.hero::before { display: none; }
@media (max-width: 760px) { .hero-portrait { max-width: 320px; } }

/* v2 components from Elie's wireframes */
.pathways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 20px; }
.pathway { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.pathway > h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li, .ticks .li { position: relative; padding-inline-start: 26px; }
.ticks li::before, .ticks .li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--brand-ink); background: var(--brand); }
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 20px; }
.resource { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--brand); min-width: 0; }
.river { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.river > div { padding: 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.river .bank { background: var(--card); }
.river .channel { background: var(--mist); }
@media (max-width: 680px) { .river { grid-template-columns: 1fr; } }
.timeline.story li, .timeline.story .li { grid-template-columns: 6.5rem minmax(0, 1fr); align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.phases { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .98rem; }
.phases th, .phases td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.phases th { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--card); }
.phases tr:last-child td { border-bottom: 0; }
.phases td:first-child { font-weight: 600; white-space: nowrap; }
.ph-n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: var(--ink); font-family: var(--display); font-weight: 400; margin-inline-end: 8px; }
.intake { display: grid; gap: 26px; max-width: 760px; }
.intake fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; display: grid; gap: 16px; background: var(--card); min-width: 0; }
.intake legend { font-family: var(--display); font-size: 1.25rem; padding: 0 6px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 500; font-size: .95rem; }
.intake input[type=text], .intake input[type=email], .intake input[type=tel], .intake input[type=number], .intake textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; }
.intake input:focus-visible, .intake textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--brand-ink); background: var(--mist); }
.form-error { color: var(--trip); font-weight: 500; }
.intake-done { display: grid; gap: 16px; max-width: 760px; }
.summary { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; max-height: 420px; overflow: auto; }

@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; }
  table.phases { min-width: 0; }
  .phases thead { display: none; }
  .phases, .phases tbody, .phases tr, .phases td { display: block; width: 100%; }
  .phases tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; padding: 6px 0; }
  .phases td { border: 0; padding: 6px 16px; }
  .phases td:first-child { white-space: normal; }
}

/* generated visuals */
.pathway .wp-block-image.card-img img { width: calc(100% + 2 * clamp(20px, 3vw, 32px)); max-width: none; margin: calc(-1 * clamp(20px, 3vw, 32px)) calc(-1 * clamp(20px, 3vw, 32px)) 4px; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; background: var(--mist); height: auto; }
.pathway { overflow: hidden; }
.wp-block-image.res-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; background: var(--mist); height: auto; margin-bottom: 6px; }
.resource { border-top: 0; padding-top: 0; }
.v2-banner { margin-top: 28px; }
.v2-banner img { aspect-ratio: 2 / 1; object-position: 50% 50%; }
@media (max-width: 600px) { .v2-banner img { aspect-ratio: 4 / 3; } }
.photo.square img { aspect-ratio: 1; max-width: 420px; }

/* ---------- WordPress / Blocksy adaptation ---------- */
.elie-page { position: relative; z-index: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; }
.elie-page :where(a) { color: inherit; }
.elie-page h1, .elie-page h2, .elie-page h3 { color: inherit; }
.elie-page h1, .elie-page h2 { font-family: var(--display); font-weight: 400; }
.elie-page h3 { font-family: var(--body); }
.elie-page .pathway > h3 { font-family: var(--display); }

/* Arabic blocks */
h1.ar, h2.ar, h3.ar, .blockquote .ar, .quote p.ar { font-family: "El Messiri", serif; font-weight: 600; line-height: 1.45; }
p.ar, li.ar, .wp-block-list.ar { line-height: 1.85; }
:root[data-lang="ar"] .elie-page { font-family: "Alexandria", "Schibsted Grotesk", system-ui, sans-serif; }

/* buttons */
.elie-btn > .wp-block-button__link { line-height: 1.2; }
.elie-btn.is-wa > .wp-block-button__link::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3fbf6a; box-shadow: 0 0 0 3px color-mix(in srgb, #3fbf6a 30%, transparent); }
.wp-block-buttons.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* phases table as a core Table block */
.wp-block-table.phases { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.wp-block-table.phases table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .98rem; margin: 0; }
.wp-block-table.phases thead { border-bottom: 0; }
.wp-block-table.phases th, .wp-block-table.phases td { border: 0; border-bottom: 1px solid var(--line); }
.wp-block-table.phases tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .wp-block-table.phases { border: 0; overflow: visible; }
  .wp-block-table.phases table { min-width: 0; }
  .wp-block-table.phases tr { border: 1px solid var(--line); }
  .wp-block-table.phases td { border: 0; }
}

/* FAQ built with Details blocks */
.faq .wp-block-details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq .wp-block-details > p { padding-top: 10px; color: var(--muted); max-width: 70ch; }

/* hero portrait: the logo rings drawn with CSS so the image stays a normal, swappable Image block */
.wp-block-image.hero-portrait { background: radial-gradient(circle closest-side, var(--mist) 0 90.6%, transparent 91%); border-radius: 50%; }
.wp-block-image.hero-portrait::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--brand-ink); opacity: .35; pointer-events: none; }
.wp-block-image.hero-portrait::after { content: ""; position: absolute; width: 21%; aspect-ratio: 1; top: -2%; inset-inline-end: 6%; border-radius: 50%; background: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand-ink) 45%, transparent); pointer-events: none; }

/* Blocksy chrome in Elie's colors */
:root:root {
  --theme-palette-color-1: var(--brand-ink); --theme-palette-color-2: var(--deep);
  --theme-palette-color-3: var(--ink); --theme-palette-color-4: var(--ink);
  --theme-palette-color-5: var(--line); --theme-palette-color-6: var(--mist);
  --theme-palette-color-7: var(--paper); --theme-palette-color-8: var(--card);
  --theme-text-color: var(--ink); --theme-link-initial-color: var(--brand-ink); --theme-link-hover-color: var(--amber-ink);
  --theme-headings-color: var(--ink); --theme-border-color: var(--line);
  --theme-font-family: "Schibsted Grotesk", "Alexandria", "Segoe UI", system-ui, sans-serif;
}
body { background: var(--paper); }
#header, .ct-header { background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); }
#header [data-row] { background: transparent; }
.site-title, .site-title a { font-family: var(--serif); font-weight: 400; color: var(--brand-ink); }
.site-description { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
#header [data-id="menu"] { --menu-items-spacing: 20px; }
#header .ct-menu-link, #offcanvas .ct-menu-link { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--body); font-size: 0.95rem !important; font-weight: 500 !important; color: var(--muted); }
#header .ct-menu-link:hover, #header .current-menu-item > .ct-menu-link { color: var(--ink); }
#header .current-menu-item > .ct-menu-link { box-shadow: inset 0 -2px 0 var(--brand); }
#header [data-row*="bottom"] { border-top: 1px solid var(--line); --height: 48px; }
#header [data-id="menu"] .menu-item-lang { display: none; }
#offcanvas .menu-item-lang > .ct-menu-link { color: var(--brand-ink); }
.header-lang { display: inline-flex; text-decoration: none; }
#header [data-id="text"] { --max-width: none; }
/* line the header up with the 1080px page column */
#header .ct-container, #offcanvas .ct-container { max-width: 1048px; }
/* our footer replaces Blocksy's */
.ct-footer, #footer { display: none; }
.elie-page .site-foot { margin-top: 0; }
.wa-float { z-index: 40; }

/* language switch inside menus and headings */
.ct-menu-link .ar, .ct-menu-link .en { display: inline; }
:root:not([data-lang="ar"]) .ct-menu-link .ar, :root[data-lang="ar"] .ct-menu-link .en { display: none !important; }

/* inline styles from the static pages */
.s-497f0c { grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
.s-114b3e { gap:10px; }
.s-511cd1 { padding-top:0; }
.s-05b410 { grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); }
.s-2a4dac { align-items:start; }
.s-959bb5 { gap:6px; }
.s-f7d924 { color:var(--ink); }

/* ---------- Brand identity (Laudia Awad, Oct 2024): Butler for titles, Alexandria for text ---------- */
@font-face { font-family: "Butler"; src: url("fonts/Butler.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Butler"; src: url("fonts/Butler-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Butler"; src: url("fonts/Butler-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* palette: #FFFFFF #E0E6F1 #3A72C1 #5776AD #1C3472 #38647F, plus tints of them for lines and soft fills */
:root {
  --paper: #ffffff; --card: #f4f7fb; --ink: #1c3472; --muted: #38647f; --line: #dce3ef;
  --deep: #1c3472; --on-deep: #ffffff; --on-deep-muted: #c3cee6;
  --brand: #bac6df; --mist: #e0e6f1; --brand-ink: #3a72c1; --sea: #5776ad;
  --amber: #8fa8d8; --amber-ink: #3a72c1; --amber-wash: #e0e6f1; --trip: #b04a3c;
  --serif: "Butler", Georgia, "Times New Roman", serif;
  --display: "Butler", Georgia, "Times New Roman", serif;
  --body: "Alexandria", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1830; --card: #15234a; --ink: #e0e6f1; --muted: #a9bbdd; --line: #26385f;
    --deep: #0b1328; --on-deep: #ffffff; --on-deep-muted: #b6c4e2;
    --brand: #3e5a93; --mist: #1c2c52; --brand-ink: #8fb0e8; --sea: #7f99cc;
    --amber: #8fa8d8; --amber-ink: #b9c9ec; --amber-wash: #22345e; --trip: #e0796a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1830; --card: #15234a; --ink: #e0e6f1; --muted: #a9bbdd; --line: #26385f;
  --deep: #0b1328; --on-deep: #ffffff; --on-deep-muted: #b6c4e2;
  --brand: #3e5a93; --mist: #1c2c52; --brand-ink: #8fb0e8; --sea: #7f99cc;
  --amber: #8fa8d8; --amber-ink: #b9c9ec; --amber-wash: #22345e; --trip: #e0796a;
  color-scheme: dark;
}
.elie-page h1, .elie-page h2, .pathway > h3, .quote .blockquote, .package .price, .pause-word, .glossary dt, .timeline .yr { font-family: var(--display); font-weight: 500; }
.elie-page h1 { letter-spacing: -0.015em; }
/* Arabic: Alexandria covers Arabic, so titles stay in the brand's own type family */
h1.ar, h2.ar, h3.ar, .blockquote .ar, .quote p.ar, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :root[data-lang="ar"] .elie-page { font-family: "Alexandria", "Segoe UI", sans-serif; }
h1.ar, h2.ar, :lang(ar) h1, :lang(ar) h2 { font-weight: 600; }
.eyebrow, .site-description { letter-spacing: 0.16em; }
.btn-amber, .elie-btn.b-amber > .wp-block-button__link { color: var(--deep); }
.btn-primary:hover, .elie-btn.b-primary > .wp-block-button__link:hover { background: var(--ink); }
:root:root { --theme-font-family: "Alexandria", "Segoe UI", system-ui, sans-serif; }
.site-title, .site-title a { font-family: var(--serif); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.site-description { color: var(--brand-ink); text-transform: uppercase; font-size: .62rem; font-weight: 400; }
#header .site-logo-container img, #header .default-logo { max-height: 48px; width: auto; }

/* credentials bar under the hero */
.authority { background: var(--card); border-block: 1px solid var(--line); }
.authority > .wrap { padding-block: 14px; }
.authority-bar { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: var(--step--1); color: var(--ink); }
.authority-bar li { display: flex; align-items: center; }
.authority-bar li + li::before { content: ""; width: 1px; height: 1em; background: var(--brand); margin-inline: 16px; }
.authority-bar strong { font-weight: 600; }
@media (max-width: 640px) { .authority-bar { flex-direction: column; align-items: center; gap: 4px; } .authority-bar li + li::before { display: none; } }
/* footer emblem */
.site-foot .foot-logo img { width: 56px; height: auto; }

/* header menu sized so all ten pages fit on one row with Alexandria */
#header [data-id="menu"] { --menu-items-spacing: 14px; }
#header .ct-menu-link { font-size: 0.9rem !important; }

/* ==========================================================================
   2026-11 audit: navigation, page flow, mobile. Brand colours and fonts unchanged.
   ========================================================================== */

/* Placeholder notes (mark.tbd) stay highlighted for Elie when he is logged in; visitors see plain text,
   and notes meant only for him (.tbd-note) are hidden. */
body:not(.logged-in) mark.tbd { background: none; border: 0; padding: 0; color: inherit; border-radius: 0; }
body:not(.logged-in) mark.tbd-note { display: none; }

/* ---- header: grouped menu with dropdowns and a booking button ---- */
#header [data-id="menu"] { --menu-items-spacing: 22px; }
#header .ct-menu-link { font-size: 0.95rem !important; }
#header [data-id="menu"] .menu-home { display: none; }
#header .current-menu-ancestor > .ct-menu-link, #header .current-menu-parent > .ct-menu-link { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
#header [data-id="menu"] .sub-menu {
  --dropdown-items-spacing: 0px;
  background: var(--paper) !important; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(28, 52, 114, 0.12); padding: 6px; min-width: 230px;
}
#header [data-id="menu"] .sub-menu .ct-menu-link { padding: 9px 12px !important; border-radius: 6px; color: var(--ink); box-shadow: none !important; }
#header [data-id="menu"] .sub-menu .ct-menu-link:hover, #header [data-id="menu"] .sub-menu .current-menu-item > .ct-menu-link { background: var(--card); color: var(--brand-ink); }
#header [data-id="menu"] .menu-cta { margin-inline-start: 6px; }
#header [data-id="menu"] .menu-cta > .ct-menu-link {
  background: var(--brand-ink); color: #fff !important; border-radius: 999px; padding: 0 18px !important;
  height: 36px; align-self: center; box-shadow: none !important; font-weight: 600 !important;
}
#header [data-id="menu"] .menu-cta > .ct-menu-link:hover { background: var(--ink); }
#offcanvas .menu-cta > .ct-menu-link { color: var(--brand-ink) !important; font-weight: 600 !important; }
#offcanvas .sub-menu .ct-menu-link { font-size: 0.95rem !important; color: var(--muted); }

/* tagline on narrow phones: one line instead of two */
@media (max-width: 420px) {
  .site-description { font-size: 0.54rem !important; letter-spacing: 0.08em !important; white-space: nowrap; }
  .site-title, .site-title a { font-size: 1.15rem; }
}

/* ---- "Next" link at the end of a page ---- */
.next-step {
  max-width: 1080px; margin-inline: auto; padding-bottom: clamp(28px, 5vw, 48px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.next-step p a {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; text-decoration: none;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  transition: border-color .2s, transform .2s;
}
.next-step p a:hover { border-color: var(--brand-ink); transform: translateY(-1px); }
.next-step .next-k { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.16em; color: var(--brand-ink); font-weight: 600; }
.next-step .next-t { font-family: var(--display); font-size: var(--step-1); color: var(--ink); }
.next-step .next-t::after { content: " \2192"; color: var(--brand-ink); }
:root[data-lang="ar"] .next-step .next-t { font-family: "Alexandria", sans-serif; }
:root[data-lang="ar"] .next-step .next-t::after { content: " \2190"; }
.next-step + .section { border-top: 1px solid var(--line); }

/* ---- Sessions: teaser for Be Well · Do Well ---- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.teaser .teaser-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } }

/* ---- What he treats: body map beside the list ---- */
.cond-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cond-layout > .rows { grid-column: 1; grid-row: 1; }
.cond-layout > .body-map { grid-column: 2; grid-row: 1; position: sticky; top: 120px; }
.body-map img { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .body-map img { opacity: .92; } }
@media (max-width: 760px) {
  .cond-layout { grid-template-columns: 1fr; }
  .cond-layout > .body-map { grid-column: 1; grid-row: 1; position: static; max-width: 170px; margin-inline: auto; }
  .cond-layout > .rows { grid-row: 2; }
}

/* ---- footer: link columns ---- */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 56px; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.foot-nav a { text-decoration: none; color: var(--muted); }
.foot-nav a:hover { color: var(--brand-ink); }
.foot-h { margin: 0; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); font-weight: 600; }
.foot-h .ar { text-transform: none; letter-spacing: 0; }
.foot-links { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-nav .en, .foot-nav .ar { display: inline; }
:root:not([data-lang="ar"]) .foot-nav .ar, :root[data-lang="ar"] .foot-nav .en { display: none; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- floating WhatsApp button: smaller on phones, steps aside when a booking button is already on screen ---- */
.wa-float { transition: opacity .25s, transform .25s; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 600px) {
  .wa-float { padding: 10px 14px !important; font-size: 0.88rem !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 12px; }
  .site-foot { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .next-step p a { transition: none; } }

/* ---- phone menu (Blocksy off-canvas): brand light panel, bigger tap targets ---- */
#offcanvas .ct-panel-inner { background: var(--paper) !important; }
#offcanvas .ct-toggle-close { --theme-icon-color: var(--ink); color: var(--ink); }
#offcanvas .ct-menu-link { color: var(--ink) !important; font-size: 1.05rem !important; padding-block: 12px !important; }
#offcanvas .menu-item-has-children > .ct-sub-menu-parent .ct-toggle-dropdown-mobile { --theme-icon-color: var(--brand-ink); color: var(--brand-ink); }
#offcanvas .mobile-menu > ul > li + li, #offcanvas [data-id="mobile-menu"] > ul > li + li { border-top: 1px solid var(--line); }
#offcanvas .sub-menu { padding-inline-start: 14px; border-inline-start: 2px solid var(--mist); margin-block: 0 10px; }
#offcanvas .sub-menu .ct-menu-link { color: var(--muted) !important; font-size: 0.98rem !important; padding-block: 9px !important; }
#offcanvas .current-menu-item > .ct-menu-link, #offcanvas .current-menu-item > .ct-sub-menu-parent > .ct-menu-link { color: var(--brand-ink) !important; }
#offcanvas .menu-cta > .ct-menu-link {
  display: inline-flex !important; justify-content: center; margin-block: 14px 6px; padding: 12px 22px !important;
  background: var(--brand-ink); color: #fff !important; border-radius: 999px; font-weight: 600 !important;
}
#offcanvas .menu-home { display: none; }
#offcanvas .menu-item-lang > .ct-menu-link { color: var(--brand-ink) !important; }
