/* dr.edam — site styles. Paths are relative to this file. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF;
}
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url("../fonts/amiri-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url("../fonts/amiri-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Almarai"; font-weight: 300; font-display: swap; src: url("../fonts/almarai-300-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Almarai"; font-weight: 400; font-display: swap; src: url("../fonts/almarai-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Almarai"; font-weight: 700; font-display: swap; src: url("../fonts/almarai-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
  --ivory: #f6f2ea;
  --ivory-deep: #efe8db;
  --white: #ffffff;
  --champagne: #d2bc8f;
  --gold: #9c7f4e;
  --gold-ink: #7d6438;          /* gold darkened for small text on ivory (≥4.5:1) */
  --espresso: #141210;
  --ink: #141210;
  --ink-soft: #4f4740;          /* secondary text, tinted from espresso */
  --line: #ddd2bd;              /* hairline on ivory */
  --line-dark: #3a332c;         /* hairline on espresso */
  --on-dark: #f6f2ea;
  --on-dark-soft: #cfc6b6;
  --error: #9b2c22;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --max: 82rem;
  --section: clamp(5rem, 3rem + 7vw, 9.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 5.5rem;
}

:root:lang(ar) {
  --font-display: "Amiri", "Bodoni Moda", Georgia, serif;
  --font-body: "Almarai", "Jost", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
}
:lang(ar) body { line-height: 1.95; font-size: 1.0625rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
::selection { background: var(--champagne); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html { scrollbar-color: var(--champagne) var(--ivory); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; text-wrap: pretty; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.45; letter-spacing: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--espresso); color: var(--on-dark); padding: 0.75rem 1rem; }
.skip-link:focus { top: 1rem; }

/* Tracked caps: actions and small labels. Arabic has no caps or tracking. */
.caps { font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.3; }
:lang(ar) .caps { letter-spacing: 0; text-transform: none; font-size: 0.95rem; font-weight: 700; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 3.35rem; padding: 0.9rem 1.7rem;
  border: 1px solid var(--espresso); border-radius: 0;
  background: var(--espresso); color: var(--on-dark);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.btn:hover { background: #2b2620; }
.btn:active { background: #000; }
.btn--ghost { background: transparent; color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--on-dark); }
.btn--light { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.btn--light:hover { background: var(--white); border-color: var(--white); }
.btn--outline-light { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn--outline-light:hover { border-color: var(--champagne); color: var(--champagne); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; padding-block: 0.4rem;
  border-bottom: 1px solid var(--champagne);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.text-link:hover { border-color: var(--espresso); }
.text-link .icon { transition: transform 0.35s var(--ease-out); }
.text-link:hover .icon { transform: translateX(0.25rem); }
[dir="rtl"] .text-link:hover .icon { transform: scaleX(-1) translateX(0.25rem); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--ivory); }
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--header-h); gap: 1rem;
}
.site-nav { display: flex; gap: clamp(1.25rem, 2vw, 2.25rem); }
.site-nav a { text-decoration: none; padding-block: 0.5rem; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.site-nav a:hover { border-bottom-color: var(--champagne); }
.brand { display: block; justify-self: center; }
.brand img { width: clamp(8.5rem, 6rem + 6vw, 11.5rem); height: auto; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(0.75rem, 1.6vw, 1.75rem); }
.lang-switch { text-decoration: none; padding: 0.5rem 0; border-bottom: 1px solid transparent; }
.lang-switch:hover { border-bottom-color: var(--champagne); }
.lang-switch[lang="ar"] { font-family: "Almarai", var(--font-body); font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-weight: 700; }
.lang-switch[lang="en"] { font-family: "Jost", sans-serif; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; font-weight: 500; }
.header-actions .btn { min-height: 2.75rem; padding: 0.6rem 1.15rem; }
.menu-toggle {
  display: none; align-items: center; gap: 0.6rem;
  background: none; border: 0; padding: 0.5rem 0; color: var(--ink); cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 1.5rem; height: 0.7rem; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; inset-inline: 0; height: 1px; background: currentColor; transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 50%; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 50%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ivory); padding: 2.5rem var(--gutter) 6rem;
  display: flex; flex-direction: column; gap: 2rem;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-menu nav a { font-family: var(--font-display); font-size: 2rem; line-height: 1.2; text-decoration: none; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.mobile-menu__meta { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  min-height: min(calc(100svh - var(--header-h)), 58rem);
  border-bottom: 1px solid var(--line);
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(3rem, 6vh, 5rem);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-inline-end: clamp(1.5rem, 4vw, 4.5rem);
}
.hero__title {
  font-size: clamp(2.8rem, 1.4rem + 3.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 11ch;
}
:lang(ar) .hero__title { font-size: clamp(2.6rem, 1.4rem + 3.2vw, 4.9rem); line-height: 1.35; max-width: 12ch; }
.hero__lede { margin-top: 1.5rem; max-width: 30rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-soft); }
.hero__media { position: relative; overflow: hidden; background: var(--ivory-deep); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Booking panel */
.quick-book {
  margin-top: clamp(2rem, 4vh, 3rem);
  max-width: 30rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 18px 40px -28px rgba(20, 18, 16, 0.35);
}
.quick-book__title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; }
.quick-book__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-block: 1.1rem 1rem; }
.quick-book__alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }
.quick-book__alt a { color: var(--ink); }
.quick-book__preview { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-soft); }
.quick-book__preview b { font-weight: 500; color: var(--ink); }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label { color: var(--ink-soft); }
.field label.caps { font-size: 0.7rem; }
:lang(ar) .field label.caps { font-size: 0.9rem; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 0;
  padding: 0.8rem 0.9rem; min-height: 3.1rem;
  transition: border-color 0.25s, background-color 0.25s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field select {
  padding-inline-end: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23141210' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 0.75rem; background-position: right 0.95rem center;
}
[dir="rtl"] .field select { background-position: left 0.95rem center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--champagne); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--espresso); background: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: #6b6157; }
.field [aria-invalid="true"] { border-color: var(--error); background: #fbf3f1; }
.field__error { color: var(--error); font-size: 0.9rem; font-weight: 400; }
.field__error:empty { display: none; }
.field--full { grid-column: 1 / -1; }
input[type="tel"] { direction: ltr; }
[dir="rtl"] input[type="tel"] { text-align: right; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-title { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.015em; }
:lang(ar) .section-title { font-size: clamp(2.1rem, 1.4rem + 2vw, 3.2rem); line-height: 1.4; }

/* Intro statement */
.statement { text-align: center; }
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.85rem);
  line-height: 1.3; letter-spacing: -0.01em;
  max-width: 34ch; margin-inline: auto;
}
:lang(ar) .statement__text { line-height: 1.7; letter-spacing: 0; }
.statement__dot { display: block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--champagne); margin: 0 auto 2.5rem; }
.statement__by { margin-top: 2.25rem; color: var(--gold-ink); }

/* Treatments */
.treatments { border-top: 1px solid var(--line); }
.treatments__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 6vw, 7rem); }
.treatments__intro { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
.treatments__intro p { margin-top: 1.25rem; max-width: 26rem; color: var(--ink-soft); }
.treatment-group + .treatment-group { margin-top: clamp(3rem, 5vw, 4.5rem); }
.treatment-group__title { color: var(--gold-ink); padding-bottom: 1rem; border-bottom: 1px solid var(--espresso); }
.treatment {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 2rem; align-items: baseline;
  padding-block: clamp(1.5rem, 2.4vw, 2.1rem); border-bottom: 1px solid var(--line);
}
.treatment h3 { font-size: clamp(1.55rem, 1.2rem + 1vw, 2.15rem); line-height: 1.15; }
.treatment p { grid-column: 1; max-width: 36rem; color: var(--ink-soft); }
.treatment .text-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }

/* Feature split */
.feature { background: var(--white); }
.feature__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
.feature__media { position: relative; min-height: 36rem; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; }
.feature__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--section) var(--gutter);
  padding-inline-end: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-inline-start: clamp(2rem, 6vw, 6.5rem);
}
.feature__copy p { margin-top: 1.5rem; max-width: 32rem; color: var(--ink-soft); }
.feature__list { list-style: none; margin: 2.25rem 0 0; padding: 0; max-width: 32rem; border-top: 1px solid var(--line); }
.feature__list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.feature__list b { font-weight: 500; }
.feature__list span { color: var(--ink-soft); }
:lang(ar) .feature__list li { grid-template-columns: 6.5rem 1fr; }

/* Visit steps */
.steps__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; }
.steps__head p { max-width: 28rem; color: var(--ink-soft); }
.steps { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.step { border-top: 1px solid var(--espresso); padding-top: 1.5rem; }
.step__when { color: var(--gold-ink); }
.step h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem); margin-top: 0.85rem; line-height: 1.2; }
.step p { margin-top: 0.85rem; color: var(--ink-soft); }

/* Doctor */
.doctor { background: var(--ivory-deep); }
.doctor__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.doctor__name { font-size: clamp(2.8rem, 1.4rem + 4vw, 5.6rem); line-height: 1; letter-spacing: -0.02em; }
:lang(ar) .doctor__name { line-height: 1.3; letter-spacing: 0; }
.doctor__alt { display: block; margin-top: 1rem; font-family: "Amiri", var(--font-display); font-size: clamp(1.4rem, 1rem + 1vw, 2rem); color: var(--gold-ink); line-height: 1.4; }
.doctor__alt:lang(en) { font-family: "Bodoni Moda", serif; }
.doctor__body p { color: var(--ink-soft); max-width: 32rem; }
.doctor__body p + p { margin-top: 1.1rem; }
.credential { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--champagne); max-width: 32rem; }
.credential b { font-weight: 500; font-size: 1.15rem; }
.credential span { color: var(--ink-soft); }

/* Booking */
.book__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: clamp(2.5rem, 6vw, 6.5rem); align-items: start; }
.book__intro p { margin-top: 1.25rem; max-width: 26rem; color: var(--ink-soft); }
.book__direct { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; max-width: 22rem; }
.book__form { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.75rem); }
.book__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem;
  border: 1px solid var(--line); background: var(--ivory); font-weight: 400; font-size: 0.95rem;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.choice input:hover + span { border-color: var(--champagne); }
.choice input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.4rem; color: var(--ink-soft); font-size: 0.7rem; }
:lang(ar) fieldset.field legend { font-size: 0.9rem; font-weight: 400; }

.message-preview { margin-top: 1.5rem; border: 1px solid var(--line); background: var(--ivory); }
.message-preview__head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.message-preview__body { margin: 0; padding: 1rem; font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; color: var(--ink); min-height: 6.5rem; }
.book__submit { margin-top: 1.5rem; }
.book__note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-soft); }
.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--champagne); background: var(--ivory); font-weight: 400; }
.form-status[hidden] { display: none; }

/* ---------- Contact band ---------- */
.contact { background: var(--espresso); color: var(--on-dark); padding-block: var(--section) 2.5rem; }
.contact__logo { width: clamp(12rem, 8rem + 12vw, 19rem); margin-inline: auto; }
.contact__lead { text-align: center; font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.25; margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 24ch; }
:lang(ar) .contact__lead { line-height: 1.6; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(4rem, 8vw, 6rem); padding-top: 2.5rem; border-top: 1px solid var(--line-dark); }
.contact__grid h3 { font-family: var(--font-body); color: var(--champagne); }
.contact__grid p, .contact__grid dl { margin: 0.9rem 0 0; color: var(--on-dark-soft); }
.contact__grid a { color: var(--on-dark); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.5rem; font-variant-numeric: tabular-nums; }
.hours dt { color: var(--on-dark); font-weight: 400; }
.hours dd { margin: 0; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.9rem; color: var(--on-dark-soft); }
.site-footer a { color: var(--on-dark-soft); }
.contact ::selection { background: var(--champagne); color: var(--espresso); }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Motion: one load reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: settle 1.4s var(--ease-out) both; }
  .reveal { animation: rise 0.8s var(--ease-out) both; }
  .reveal--2 { animation-delay: 0.12s; }
  .reveal--3 { animation-delay: 0.24s; }
  @keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
  @keyframes rise { from { transform: translateY(0.6rem); } to { transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 68rem) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding-inline: 0.85rem; }
  .treatments__grid, .book__grid, .doctor__grid { grid-template-columns: 1fr; }
  .treatments__intro { position: static; }
}

@media (max-width: 52rem) {
  :root { --header-h: 4.5rem; }
  .brand img { width: 8.25rem; }
  .header-actions .btn { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; height: 58svh; min-height: 22rem; max-height: 34rem; }
  .hero__copy { padding: 2.25rem var(--gutter) 3rem; }
  .quick-book { max-width: none; }
  .feature__grid { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 4 / 4.2; }
  .feature__copy { padding: var(--section) var(--gutter); }
  .steps { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .action-bar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    background: var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.4s var(--ease-out);
  }
  .action-bar.is-hidden { transform: translateY(110%); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.6rem; text-decoration: none; background: var(--espresso); color: var(--on-dark); }
  .action-bar a + a { background: var(--ivory); color: var(--espresso); }
  body { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 30rem) {
  .quick-book__fields, .book__fields { grid-template-columns: 1fr; }
  .treatment { grid-template-columns: 1fr; }
  .treatment .text-link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.5rem; }
  .feature__list li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Apa-order additions: intro, pillars, journey, doctor portrait ---------- */
.statement__sub { max-width: 40rem; margin: 1.75rem auto 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); }
.statement__cta { margin-top: 2.25rem; }
h2.statement__text { font-weight: 400; }

.pillars { list-style: none; margin: 2.5rem 0 0; padding: 0; max-width: 32rem; }
.pillars li { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars h3 { font-size: clamp(1.35rem, 1.15rem + 0.5vw, 1.6rem); line-height: 1.2; }
.pillars p { margin-top: 0.5rem; color: var(--ink-soft); }

.journey { border-top: 1px solid var(--line); }
.journey .steps__head .section-title { max-width: 16ch; }
.step__num { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 1.6vw, 3.6rem); line-height: 1; color: var(--gold-ink); }

.doctor__grid { align-items: center; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.doctor__portrait { margin: 0; position: relative; aspect-ratio: 880 / 1100; overflow: hidden; background: #e4e3e1; max-width: 34rem; }
.doctor__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doctor__quote { margin: 2rem 0 0; padding: 0; }
.doctor__quote p { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem); line-height: 1.45; color: var(--ink); max-width: 34rem; }
:lang(ar) .doctor__quote p { line-height: 1.85; }
.doctor__sign { margin-top: 1.5rem; font-weight: 500; }
.doctor__sign span { margin-inline-start: 0.75rem; font-family: "Amiri", serif; color: var(--gold-ink); font-weight: 400; font-size: 1.15rem; }
.doctor__sign span:lang(en) { font-family: "Jost", sans-serif; font-size: 1rem; }
@media (max-width: 68rem) { .doctor__grid { grid-template-columns: 1fr; } .doctor__portrait { max-width: 28rem; } }

/* Phones: keep the booking button inside the first screen */
@media (max-width: 52rem) {
  .hero__media { height: 34svh; min-height: 15rem; max-height: 22rem; }
  .hero__copy { padding-block: 1.75rem 2.5rem; }
  .hero__title { font-size: clamp(2.3rem, 1.6rem + 3vw, 3rem); }
  .hero__lede { margin-top: 0.9rem; font-size: 1rem; }
  .quick-book { margin-top: 1.4rem; padding: 1.1rem; }
  .quick-book__title { font-size: 1.25rem; }
  .quick-book__fields { grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-block: 0.8rem; }
  .quick-book__alt { margin-top: 0.75rem; }
}

.feature__media { background: var(--ivory-deep); }
@media (max-width: 52rem) {
  :lang(ar) .hero__media { height: 28svh; min-height: 13rem; }
  :lang(ar) .hero__title { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 2.7rem); line-height: 1.3; }
  :lang(ar) .hero__lede { line-height: 1.75; }
}
.doctor__grid.no-portrait { grid-template-columns: 1fr; }
.doctor__grid.no-portrait .doctor__portrait { display: none; }
.doctor__grid.no-portrait .doctor__body { max-width: 40rem; }

/* ---------- Finish-review fixes ---------- */
/* Header lockup: large enough that the tagline line stays legible */
.brand img { width: clamp(10rem, 7rem + 7vw, 15.5rem); }
:root { --header-h: 6.5rem; }
@media (max-width: 52rem) { :root { --header-h: 5rem; } .brand img { width: 10rem; } }

/* Second photo: frame the face */
.feature__media img { object-position: 50% 22%; }

/* Doctor section without a portrait: two composed text columns */
.doctor__portrait { background: var(--ivory-deep); }
@media (min-width: 52.01rem) {
  .doctor__grid.no-portrait .doctor__body {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "title quote" "sign quote" "cred quote";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
  }
  .no-portrait .doctor__body > h2 { grid-area: title; }
  .no-portrait .doctor__sign { grid-area: sign; }
  .no-portrait .credential { grid-area: cred; }
  .no-portrait .doctor__quote { grid-area: quote; margin-top: 0; }
  .no-portrait .doctor__quote p { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem); max-width: 30ch; }
}

/* One editorial-scale display moment */
.statement__text { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); max-width: 22ch; }
.feature__media img { object-position: 50% 65%; }

/* ---------- Portrait: luxury treatment ---------- */
.doctor__portrait {
  overflow: visible; background: none; isolation: isolate;
  aspect-ratio: auto; margin-block-end: 1.25rem; margin-inline-end: 1.25rem;
}
.doctor__portrait__frame { position: relative; aspect-ratio: 880 / 1100; overflow: hidden; background: var(--ivory-deep); }
.doctor__portrait__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  /* warm the studio-grey backdrop toward the ivory world */
  filter: sepia(0.16) saturate(0.92) contrast(1.04) brightness(1.03);
  transition: transform 1.6s var(--ease-out);
}
.doctor__portrait__frame::after { /* soft ivory light from above, subtle vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(246, 242, 234, 0.10) 0%, rgba(246, 242, 234, 0) 35%),
    radial-gradient(120% 90% at 50% 30%, rgba(20, 18, 16, 0) 60%, rgba(20, 18, 16, 0.18) 100%);
}
.doctor__portrait::before { /* champagne hairline frame, offset behind the photo */
  content: ""; position: absolute; z-index: -1;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--champagne);
}
[dir="rtl"] .doctor__portrait::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.doctor__portrait:hover .doctor__portrait__frame img { transform: scale(1.025); }
.doctor__portrait figcaption {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 2.25rem; color: var(--ink-soft);
}
.doctor__portrait figcaption::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--champagne); flex: none; }
@media (prefers-reduced-motion: reduce) { .doctor__portrait:hover .doctor__portrait__frame img { transform: none; } }
@media (max-width: 52rem) {
  .doctor__portrait::before { inset: 0.85rem -0.85rem -0.85rem 0.85rem; }
  [dir="rtl"] .doctor__portrait::before { inset: 0.85rem 0.85rem -0.85rem -0.85rem; }
  .doctor__portrait { margin-inline-end: 0.85rem; }
}

/* Portrait refinement: hairline belongs to the photo, not the caption */
.doctor__portrait::before { content: none; }
.doctor__portrait__frame { overflow: visible; background: none; aspect-ratio: auto; position: relative; }
.doctor__portrait__frame::before {
  content: ""; position: absolute; z-index: -1;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--champagne);
}
[dir="rtl"] .doctor__portrait__frame::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.doctor__portrait__frame::after { content: none; }
.doctor__portrait__photo { position: relative; aspect-ratio: 880 / 1100; overflow: hidden; background: var(--ivory-deep); }
.doctor__portrait__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  filter: sepia(0.2) saturate(0.9) contrast(1.05) brightness(1.03);
  transition: transform 1.6s var(--ease-out);
}
.doctor__portrait__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(210, 188, 143, 0.16), rgba(210, 188, 143, 0.04) 55%, rgba(20, 18, 16, 0.14));
  mix-blend-mode: soft-light;
}
.doctor__portrait:hover .doctor__portrait__photo img { transform: scale(1.025); }
.doctor__portrait figcaption { margin-top: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .doctor__portrait:hover .doctor__portrait__photo img { transform: none; } }
@media (max-width: 52rem) {
  .doctor__portrait__frame::before { inset: 0.85rem -0.85rem -0.85rem 0.85rem; }
  [dir="rtl"] .doctor__portrait__frame::before { inset: 0.85rem 0.85rem -0.85rem -0.85rem; }
  .doctor__portrait figcaption { margin-top: 2rem; }
}
/* Portrait backdrop is now ivory in the file itself: keep only a whisper of grade */
.doctor__portrait__photo img { filter: saturate(0.96) contrast(1.03); }
.doctor__portrait__photo::after { background: linear-gradient(180deg, rgba(210, 188, 143, 0.06), rgba(20, 18, 16, 0.10)); }
.doctor__ig { margin-top: 1.75rem; }
.mobile-menu > .text-link { align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 6vw, 7rem); }
.faq__intro { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
.faq__intro p { margin-top: 1.25rem; max-width: 24rem; color: var(--ink-soft); }
.faq__intro .btn { margin-top: 2rem; }
.faq__list { border-top: 1px solid var(--espresso); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(1.25rem, 2vw, 1.6rem); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem); line-height: 1.25; transition: color 0.3s; }
:lang(ar) .faq__item summary h3 { line-height: 1.6; }
.faq__item summary:hover h3 { color: var(--gold-ink); }
.faq__item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.faq__toggle { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; top: 50%; inset-inline: 0; height: 1px; background: var(--espresso); transition: transform 0.4s var(--ease-out); }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: rotate(0deg); }
.faq__item p { padding-bottom: 1.6rem; max-width: 40rem; color: var(--ink-soft); }
@media (max-width: 68rem) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}

/* ---------- Treatment pages ---------- */
.treatment h3 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--champagne), var(--champagne)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.4s var(--ease-out), color 0.3s; }
[dir="rtl"] .treatment h3 a { background-position: 100% 100%; }
.treatment h3 a:hover { color: var(--gold-ink); background-size: 100% 1px; }
.treatment h3 a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.page-hero { padding-block: clamp(2.75rem, 1.75rem + 4vw, 5.5rem) clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero__actions, .page-hero__lede { max-width: 44rem; }
.breadcrumb { border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin-block: 0; padding-block: 0.85rem; font-size: 0.88rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-inline: 0.6rem; color: var(--line); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-ink); }
.breadcrumb a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); }
.page-hero__title { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch; }
:lang(ar) .page-hero__title { line-height: 1.35; letter-spacing: 0; }
.page-hero__lede { margin-top: 1.75rem; max-width: 44rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; }
.byline { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2.25rem, 3vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 44rem; }
.byline img { width: 3.5rem; height: 4.8rem; object-fit: cover; object-position: 50% 20%; flex: none; }
.byline p { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; color: var(--ink-soft); }
.byline__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.byline__name:hover { color: var(--gold-ink); }

.prose__grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 8rem); }
.prose { max-width: 44rem; }
.prose__section + .prose__section { margin-top: clamp(2.75rem, 4vw, 4rem); }
.prose h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.15; margin-bottom: 1.1rem; }
:lang(ar) .prose h2 { line-height: 1.5; }
.prose p, .prose li, .prose td, .prose th { color: var(--ink-soft); }
.prose p + p, .prose ul + p, .prose ol + p, .prose table + p, .prose p + ul { margin-top: 1rem; }
.prose b { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); text-decoration-color: var(--champagne); text-underline-offset: 0.2em; }
.prose a:hover { color: var(--gold-ink); }
.prose ul { padding-inline-start: 1.2rem; }
.prose ul li::marker { color: var(--champagne); }
.prose ul li + li { margin-top: 0.4rem; }
.prose .process { list-style: none; padding: 0; counter-reset: step; border-top: 1px solid var(--espresso); }
.prose .process li { counter-increment: step; position: relative; padding-block: 1rem; padding-inline-start: 2.5rem; border-bottom: 1px solid var(--line); }
.prose .process li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0.85rem; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; color: var(--gold-ink); }
.compare { width: 100%; border-collapse: collapse; margin-top: 0.25rem; font-size: 0.97rem; }
.compare th, .compare td { text-align: start; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .compare th, [dir="rtl"] .compare td { padding: 0.85rem 0 0.85rem 1rem; }
.compare thead th { color: var(--ink); font-weight: 500; border-bottom-color: var(--espresso); }
.compare tbody th { color: var(--ink); font-weight: 500; width: 28%; }

.related { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; border-top: 1px solid var(--espresso); }
.related__title { color: var(--gold-ink); padding-block: 1rem; }
.related__item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem); transition: color 0.3s; }
.related__item:hover { color: var(--gold-ink); }
.related__item .icon { transition: transform 0.35s var(--ease-out); }
.related__item:hover .icon { transform: translateX(0.25rem); }
[dir="rtl"] .related__item:hover .icon { transform: scaleX(-1) translateX(0.25rem); }

.cta-band { background: var(--white); border-top: 1px solid var(--line); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.25rem; }

@media (max-width: 68rem) {
  .prose__grid { grid-template-columns: 1fr; }
  .related { position: static; }
}
@media (max-width: 30rem) {
  .compare { font-size: 0.9rem; }
  .compare tbody th { width: auto; }
}
picture { display: contents; }
.treatment p a { color: var(--ink); text-decoration-color: var(--champagne); }
.treatment p a:hover { color: var(--gold-ink); }
