/*
Theme Name: Walaa Clinic
Author: Ask Essam
Description: Arabic-first, accessible clinic theme for Dr. Walaa Mohamed El-Naggar. Bento layout on a golden-ratio design system using the official brand palette, typography and vector elements. Mobile-first and fully responsive.
Version: 3.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: walaa-clinic
License: GPL-2.0-or-later
*/

/* =========================================================================
   BRAND RULES (from the clinic brand guide)
   - Palette: brand guide lists #5140CB / #785CF6 / #20C5C7 / #E8E5FA / #20212A, but the logo itself renders
     purpler; UI violets are sampled from the logo: #4F2EB4 deep · #5729D2 main · #7B50E9 bright. Teal/charcoal unchanged.
   - Type: Tajawal (Arabic) · Montserrat headings + Poppins body (English), all self-hosted
   - Logo: original colour mark only, aspect ratio preserved; one-colour trace on dark backgrounds
   - Elements: official brain / care-hand arc / leaf / swoosh / wave vectors from the production kit
   GOLDEN-RATIO SYSTEM (φ = 1.618)
   - Spacing × φ · type × √φ · line-height φ · splits 1.618fr / 1fr · golden-rectangle media
   ========================================================================= */

@font-face { font-family: Tajawal; src: url('assets/fonts/Tajawal-Regular.woff2') format('woff2'), url('assets/fonts/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url('assets/fonts/Tajawal-Bold.woff2') format('woff2'), url('assets/fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url('assets/fonts/Montserrat-var-latin.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: Poppins; src: url('assets/fonts/Poppins-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url('assets/fonts/Poppins-500-latin.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --phi: 1.618;
  --space-3xs: 0.236rem; --space-2xs: 0.382rem; --space-xs: 0.618rem; --space-s: 1rem;
  --space-m: 1.618rem; --space-l: 2.618rem; --space-xl: 4.236rem; --space-2xl: 6.854rem;
  --section-space: clamp(var(--space-l), 1.5rem + 3.5vw, var(--space-xl));

  --text-xs: 0.786rem; --text-s: 0.894rem;
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-m: 1.272rem;
  --text-l: clamp(1.272rem, 1.12rem + 0.6vw, 1.618rem);
  --text-xl: clamp(1.618rem, 1.25rem + 1.6vw, 2.618rem);
  --text-2xl: clamp(2.058rem, 1.4rem + 2.8vw, 3.33rem);
  --text-3xl: clamp(1.75rem, 1.1rem + 3.8vw, 4.236rem);
  --leading: 1.618; --leading-tight: 1.272;

  --radius-s: 0.382rem; --radius-m: 0.618rem; --radius-l: 1rem; --radius-xl: 1.618rem; --radius-2xl: 2.618rem; --radius-pill: 999px;

  /* Purples sampled from the original logo (hue 255–260) so the UI matches the mark, not a bluer approximation */
  --violet: #5729d2; --violet-bright: #7b50e9; --violet-deep: #4f2eb4; --plum: #2a1466;
  --teal: #20c5c7; --teal-ink: #00787c;
  --lilac: #e9e2fb; --lilac-soft: #f6f2fe;
  --charcoal: #20212a; --ink: #20212a; --text: #45405a; --muted: #625c78;
  --paper: #fffefa; --surface: #ffffff; --line: #e9e3f7;
  --grad-violet: linear-gradient(135deg, #4f2eb4 0%, #5729d2 50%, #7b50e9 100%);
  --grad-deep: linear-gradient(150deg, #1f0f4a 0%, #3a1a92 61.8%, #5729d2 100%);
  /* Teal joins violet as a glow, never a linear blend (a straight violet→teal blend turns blue in the middle) */
  --grad-brand: linear-gradient(135deg, #5729d2 0%, #7b50e9 61.8%, #a07cf3 100%);

  --shadow-s: 0 1px 2px rgba(32, 33, 42, .05), 0 2px 8px rgba(87, 41, 210, .05);
  --shadow-m: 0 4px 12px rgba(32, 33, 42, .06), 0 14px 34px rgba(87, 41, 210, .09);
  --shadow-l: 0 10px 28px rgba(32, 33, 42, .09), 0 28px 64px rgba(87, 41, 210, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --container: 76rem;
  --gutter: clamp(var(--space-s), 4vw, var(--space-l));
  --logo-h: 3.236rem;
  --mobile-bar-h: 4.236rem;
  --font-body: Tajawal, system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-head: var(--font-body);
}
html[lang="en"] { --font-body: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif; --font-head: Montserrat, Poppins, system-ui, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0 0 var(--space-xs); color: var(--ink); font-family: var(--font-head); line-height: var(--leading-tight); font-weight: 700; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }
h1 { font-size: var(--text-2xl); } h2 { font-size: var(--text-xl); } h3 { font-size: var(--text-m); }
p { margin: 0 0 var(--space-s); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--violet-bright); outline-offset: 3px; border-radius: var(--radius-s); }
[hidden] { display: none !important; }
.icon { width: 1.272em; height: 1.272em; flex-shrink: 0; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
.skip-link { position: absolute; inset-inline-start: var(--space-s); top: -10rem; z-index: 200; background: var(--ink); color: #fff; padding: var(--space-xs) var(--space-s); border-radius: var(--radius-m); }
.skip-link:focus { top: var(--space-s); }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-space); position: relative; }
.section-alt { background: var(--lilac-soft); }
.section-flush-top { padding-top: var(--space-l); }

/* Official brand vectors rendered as masks so they take brand gradients */
.deco-shape, .brand-mask, .cover-shape, .leaf, .ribbon-leaf {
  -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat;
  background: var(--grad-brand); pointer-events: none;
}

/* Scroll reveal (only when JS + motion allowed) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(1.618rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-ready .specialty-grid > :nth-child(2), .reveal-ready .intl-steps > :nth-child(2), .reveal-ready .timeline > :nth-child(2), .reveal-ready .bento > :nth-child(2) { transition-delay: .08s; }
.reveal-ready .specialty-grid > :nth-child(3), .reveal-ready .intl-steps > :nth-child(3), .reveal-ready .timeline > :nth-child(3), .reveal-ready .bento > :nth-child(3) { transition-delay: .16s; }
.reveal-ready .specialty-grid > :nth-child(4), .reveal-ready .intl-steps > :nth-child(4), .reveal-ready .bento > :nth-child(4) { transition-delay: .24s; }
.reveal-ready .specialty-grid > :nth-child(5) { transition-delay: .1s; } .reveal-ready .specialty-grid > :nth-child(6) { transition-delay: .18s; }

/* ---------- Shared components ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2xs); margin-bottom: var(--space-xs); color: var(--teal-ink); font-size: var(--text-s); font-weight: 700; }
html[lang="en"] .eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: var(--text-xs); font-family: var(--font-head); }
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow-light { color: #9df0f1; }
.status-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 .236rem rgba(32, 197, 199, .22); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) { .status-dot { animation: pulse 2.6s var(--ease) infinite; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 .236rem rgba(32, 197, 199, .22); } 50% { box-shadow: 0 0 0 .5rem rgba(32, 197, 199, 0); } }

.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 2.75rem; padding: var(--space-xs) var(--space-m); border: 1.5px solid transparent; border-radius: var(--radius-pill); font-weight: 700; font-family: var(--font-head); font-size: var(--text-base); line-height: 1.2; text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
html[lang="en"] .button { font-weight: 600; font-size: var(--text-s); }
.button .icon { width: 1.15em; height: 1.15em; }
.button-lg { min-height: 3.236rem; padding-inline: var(--space-l); }
.button-primary { background: var(--grad-violet); color: #fff; box-shadow: 0 8px 22px rgba(87, 41, 210, .3); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(87, 41, 210, .38); }
.button-secondary, .button:not([class*="button-"]) { background: var(--surface); color: var(--violet); border-color: #d9cdf7; }
.button-secondary:hover, .button:not([class*="button-"]):hover { border-color: var(--violet); background: var(--lilac-soft); }
.button-light { background: #fff; color: var(--violet-deep); }
.button-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.button-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.button-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--violet); font-weight: 700; }
.text-link span { text-decoration: underline; text-decoration-color: rgba(87, 41, 210, .3); text-underline-offset: .3em; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.text-link:hover span { text-decoration-color: currentColor; }
.text-link .icon { width: 1.1em; height: 1.1em; }
.text-link-light { color: #fff; }
.text-link-light span { text-decoration-color: rgba(157, 240, 241, .6); }
.check-list { list-style: none; display: grid; gap: var(--space-xs); }
.check-list li { display: flex; align-items: center; gap: var(--space-xs); color: var(--ink); font-weight: 700; }
.check-list .icon { color: var(--teal-ink); background: #e3f7f7; border-radius: 50%; padding: .236rem; width: 1.618rem; height: 1.618rem; }

.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-s) var(--space-l); margin-bottom: var(--space-l); }
.section-heading-text { flex: 1 1 22rem; max-width: 46rem; }
.section-heading-text p:last-child { margin-bottom: 0; color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar { background: var(--charcoal); color: #dedaf0; font-size: var(--text-s); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); min-height: 2.618rem; }
.topbar-note { display: none; align-items: center; gap: var(--space-xs); margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: var(--space-m); margin-inline-start: auto; }
.topbar-link { display: inline-flex; align-items: center; gap: var(--space-2xs); color: #fff; font-weight: 700; padding-block: var(--space-2xs); }
.topbar-link:hover { color: #9df0f1; }
.topbar-link .icon { width: 1rem; height: 1rem; color: #9df0f1; }
.language-menu { list-style: none; display: flex; gap: var(--space-xs); }
.language-menu a { color: #fff; font-weight: 700; }

/* ---------- Header with large brand lockup ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 254, 250, .9); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(32, 33, 42, .07); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding-block: var(--space-xs); }
.brand-lockup { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
@media (min-width: 80em) { .site-header .brand-lockup { flex-shrink: 0; } html[lang="en"] .nav-list a { padding-inline: var(--space-xs); } html[lang="en"] .nav-list a::after { inset-inline: var(--space-xs); } }
.brand-logo { height: var(--logo-h); width: auto; flex-shrink: 0; transition: height .35s var(--ease); }
.site-header.scrolled .brand-logo { height: calc(var(--logo-h) / 1.272); }
.brand-words { display: grid; justify-items: start; min-width: 0; line-height: var(--leading-tight); }
.brand-name { color: var(--violet); font-family: var(--font-head); font-size: var(--text-m); font-weight: 700; white-space: nowrap; }
html[lang="en"] .brand-name { font-size: var(--text-base); }
.brand-label { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--teal-ink); font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.brand-label::before, .brand-label::after { content: ""; width: 1rem; height: 1.5px; background: currentColor; opacity: .6; }
html[lang="en"] .brand-label { letter-spacing: .32em; text-transform: uppercase; font-family: var(--font-head); }
.desktop-navigation { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; }
.header-booking { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 2.75rem; padding-inline: var(--space-s); border: 1.5px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); font-weight: 700; background: var(--surface); }
.menu-toggle:hover { border-color: var(--violet); }
.menu-label { display: none; }
.hamburger-box { display: grid; gap: 4px; width: 1.1rem; }
.hamburger-bar { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-list { list-style: none; display: flex; align-items: center; gap: var(--space-3xs); }
.nav-list a { position: relative; display: block; padding: var(--space-xs) var(--space-s); color: var(--ink); font-weight: 700; font-size: var(--text-s); white-space: nowrap; transition: color .2s; }
.nav-list a::after { content: ""; position: absolute; inset-inline: var(--space-s); bottom: .3rem; height: 2px; border-radius: 2px; background: var(--grad-brand); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--violet); }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after { transform: scaleX(1); }
.nav-list .sub-menu { display: none; }

/* Drawer */
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(32, 33, 42, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 100; display: flex; flex-direction: column; width: min(100%, 26rem); background: var(--surface); box-shadow: var(--shadow-l); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; padding-bottom: env(safe-area-inset-bottom); }
[dir="rtl"] .mobile-drawer { transform: translateX(-100%); }
.mobile-drawer.is-open { transform: none; visibility: visible; }
body.nav-open { overflow: hidden; }
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-m); border-bottom: 1px solid var(--line); background: var(--lilac-soft); }
.drawer-header .brand-logo { height: 3.618rem; }
.drawer-header .brand-name { white-space: normal; }
.drawer-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #fff; color: var(--ink); flex-shrink: 0; box-shadow: var(--shadow-s); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--space-s) var(--space-m); }
.drawer-nav-list { list-style: none; display: grid; }
.drawer-nav-list a { display: flex; align-items: center; min-height: 3.236rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: var(--text-m); font-family: var(--font-head); }
.drawer-nav-list a:hover, .drawer-nav-list .current-menu-item > a { color: var(--violet); }
.drawer-actions { display: grid; gap: var(--space-xs); padding: var(--space-m); border-top: 1px solid var(--line); }

/* ---------- Hero bento: columns 1 : 0.618 : 1 → intro 1.618 / portrait 1 ---------- */
.hero { padding-block: var(--space-m) var(--section-space); }
.bento { display: grid; gap: var(--space-s); grid-template-areas: "intro" "portrait" "brand" "cred"; }
.bento-tile { position: relative; overflow: hidden; border-radius: var(--radius-2xl); }
.tile-intro { grid-area: intro; padding: var(--space-l) var(--space-m); background: radial-gradient(120% 90% at 100% 0%, rgba(123, 80, 233, .14), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(32, 197, 199, .12), transparent 60%), var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-size: var(--text-3xl); white-space: pre-line; margin-bottom: var(--space-s); }
html[lang="en"] .hero-title { font-size: var(--text-2xl); } /* Latin sets wider than Arabic: one √φ step smaller */
.hero-lead { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .4vw, 1.272rem); max-width: 34em; margin-bottom: var(--space-m); }
.hero-buttons { display: grid; gap: var(--space-xs); position: relative; z-index: 1; }
.deco-leaves { position: absolute; width: 9.7rem; aspect-ratio: 220 / 160; inset-inline-end: -1.5rem; bottom: -1rem; opacity: .16; rotate: -8deg; }
.tile-portrait { grid-area: portrait; min-height: 22rem; background: var(--lilac); box-shadow: var(--shadow-m); }
.tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.portrait-chip { position: absolute; inset-inline: var(--space-s); bottom: var(--space-s); display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-s); background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius-xl); box-shadow: var(--shadow-m); }
.portrait-chip strong { display: block; color: var(--ink); font-family: var(--font-head); line-height: 1.3; }
.portrait-chip small { display: block; color: var(--muted); font-size: var(--text-xs); line-height: 1.4; }
.tile-brand { grid-area: brand; display: grid; place-items: center; align-content: center; gap: var(--space-s); padding: var(--space-l) var(--space-m); background: linear-gradient(160deg, #fff, var(--lilac-soft)); border: 1px solid var(--line); text-align: center; }
.tile-logo { height: clamp(9rem, 7rem + 6vw, 11.09rem); width: auto; position: relative; z-index: 1; filter: drop-shadow(0 12px 24px rgba(87, 41, 210, .18)); }
@media (prefers-reduced-motion: no-preference) { .tile-logo { animation: float 6s ease-in-out infinite; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.382rem; } }
.tile-motto { margin: 0; color: var(--violet); font-family: var(--font-head); font-weight: 700; font-size: var(--text-m); position: relative; z-index: 1; }
html[lang="en"] .tile-motto { letter-spacing: .18em; text-transform: uppercase; font-size: var(--text-s); }
.deco-arc { position: absolute; width: 70%; aspect-ratio: 139 / 86; top: 6%; inset-inline-start: -8%; opacity: .18; }
.tile-credentials { grid-area: cred; padding: var(--space-l) var(--space-m); background: var(--grad-deep); color: #e9e3fb; }
.deco-mark { position: absolute; width: 11rem; aspect-ratio: 494 / 445; inset-inline-end: -2.5rem; bottom: -2.5rem; background: #fff; opacity: .08; }
.tile-kicker { color: #9df0f1; font-weight: 700; font-size: var(--text-s); margin-bottom: var(--space-s); }
.trust-list { list-style: none; display: grid; gap: var(--space-s); position: relative; }
.trust-list li { display: flex; align-items: center; gap: var(--space-xs); color: #fff; font-weight: 700; font-size: var(--text-s); line-height: 1.45; }
.trust-list .icon { color: #9df0f1; width: 2.058rem; height: 2.058rem; padding: .4rem; border-radius: var(--radius-m); background: rgba(255, 255, 255, .1); }

/* Ribbon */
.ribbon { overflow: hidden; background: var(--grad-violet); color: #fff; padding-block: var(--space-s); }
.ribbon-track { display: flex; width: max-content; gap: var(--space-l); }
@media (prefers-reduced-motion: no-preference) { .ribbon-track { animation: marquee 48s linear infinite; } .ribbon:hover .ribbon-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .ribbon-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.ribbon-item { display: inline-flex; align-items: center; gap: var(--space-s); font-family: var(--font-head); font-weight: 700; font-size: var(--text-m); white-space: nowrap; }
.ribbon-leaf { width: 1.272rem; height: 1.272rem; background: #9df0f1; }

/* ---------- Specialty bento ---------- */
/* Phones: compact rows (icon · text · arrow) so six cards stay scannable */
@media (max-width: 39.99em) {
  .specialty-grid .specialty-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-2xs) var(--space-s); min-height: 0; padding: var(--space-s); border-radius: var(--radius-xl); }
  .specialty-grid .specialty-card .card-top { grid-row: 1 / span 2; margin: 0; }
  .specialty-grid .specialty-card .card-index { display: none; }
  .specialty-grid .specialty-card .card-symbol { width: 2.618rem; height: 2.618rem; }
  .specialty-grid .specialty-card h3, .specialty-grid .specialty-card h2, .specialty-grid .specialty-card.is-wide h3 { font-size: var(--text-base); align-self: end; }
  .specialty-grid .specialty-card p { grid-column: 2; font-size: var(--text-xs); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .specialty-grid .specialty-card .card-go { grid-column: 3; grid-row: 1 / span 2; width: 2.236rem; height: 2.236rem; margin: 0; align-self: center; }
  .specialty-grid .card-watermark { width: 7rem; }
  .tile-intro { padding: var(--space-l) var(--space-m); }
}
.specialty-grid { display: grid; gap: var(--space-s); }
.specialty-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m); min-height: 14rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.specialty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); border-color: transparent; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xs); }
.card-symbol { display: grid; place-items: center; width: 3.236rem; height: 3.236rem; border-radius: var(--radius-l); background: var(--grad-violet); color: #fff; box-shadow: 0 8px 18px rgba(87, 41, 210, .28); transition: transform .35s var(--ease); }
.specialty-card:hover .card-symbol { transform: rotate(-6deg) scale(1.06); }
.card-index { font-family: var(--font-head); font-weight: 700; font-size: var(--text-l); color: var(--lilac); line-height: 1; }
.specialty-card h2, .specialty-card h3 { font-size: var(--text-m); margin: 0; }
.specialty-card p { color: var(--muted); font-size: var(--text-s); margin: 0; }
.card-go { margin-top: auto; align-self: flex-end; display: grid; place-items: center; width: 2.618rem; height: 2.618rem; border-radius: 50%; border: 1.5px solid var(--line); color: var(--violet); transition: background-color .25s, color .25s, border-color .25s; }
.card-go .icon { width: 1.1rem; height: 1.1rem; }
.specialty-card:hover .card-go { background: var(--violet); border-color: var(--violet); color: #fff; }
.specialty-card.is-wide { background: var(--grad-deep); border-color: transparent; color: #ddd6f5; }
.specialty-card.is-wide:last-child { background: linear-gradient(150deg, #00575a 0%, #00787c 50%, #0b9da0 100%); }
.specialty-card.is-wide h3 { color: #fff; font-size: var(--text-l); }
.specialty-card.is-wide p { color: rgba(255, 255, 255, .82); max-width: 30em; }
.specialty-card.is-wide .card-symbol { background: rgba(255, 255, 255, .14); box-shadow: none; }
.specialty-card.is-wide .card-index { color: rgba(255, 255, 255, .25); }
.specialty-card.is-wide .card-go { border-color: rgba(255, 255, 255, .35); color: #fff; }
.specialty-card.is-wide:hover .card-go { background: #fff; color: var(--violet); }
.card-watermark { position: absolute; width: 12rem; aspect-ratio: 1; inset-inline-end: -2rem; bottom: -2.5rem; background: #fff; opacity: .1; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--space-l); align-items: center; }
.about-media { position: relative; }
.about-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.272 / 1; object-fit: cover; border-radius: var(--radius-2xl); box-shadow: var(--shadow-l); }
.about-arc { position: absolute; z-index: 0; width: 61.8%; aspect-ratio: 924 / 961; inset-inline-start: -10%; top: -12%; opacity: .2; }
.about-copy > p { color: var(--muted); }
.feature-list { list-style: none; display: grid; gap: var(--space-s); margin-block: var(--space-m); }
.feature-list li { display: flex; gap: var(--space-s); align-items: flex-start; }
.feature-list strong { display: block; color: var(--ink); font-family: var(--font-head); }
.feature-list li > span:last-child { color: var(--muted); font-size: var(--text-s); }
.feature-icon { display: grid; place-items: center; width: 2.618rem; height: 2.618rem; border-radius: var(--radius-m); background: #fff; color: var(--violet); box-shadow: var(--shadow-s); flex-shrink: 0; }
/* ---------- Wizard ---------- */
.wizard-section { background: linear-gradient(180deg, var(--lilac-soft), var(--paper)); }
.wizard-layout { display: grid; gap: var(--space-l); align-items: start; }
.wizard-intro > p { color: var(--muted); }
.wizard-intro .check-list { margin-top: var(--space-m); }
.walaa-wizard-mount { min-width: 0; }
.walaa-wizard-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-m); overflow: hidden; }
.wizard-header { padding: var(--space-m) var(--space-m) var(--space-s); border-bottom: 1px solid var(--line); }
.wizard-badge { display: inline-flex; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: #e3f7f7; color: var(--teal-ink); font-size: var(--text-xs); font-weight: 700; }
.wizard-title { font-size: var(--text-m); margin: var(--space-xs) 0 var(--space-3xs); }
.wizard-subtitle { color: var(--muted); font-size: var(--text-s); margin-bottom: var(--space-s); }
.wizard-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2xs); }
.wizard-step-item { display: grid; justify-items: center; gap: var(--space-3xs); text-align: center; position: relative; }
.wizard-step-item::before { content: ""; position: absolute; top: 0.95rem; inset-inline-start: calc(-50% + 1rem); width: calc(100% - 2rem); height: 2px; background: var(--line); }
.wizard-step-item:first-child::before { display: none; }
.wizard-step-item.completed::before, .wizard-step-item.active::before { background: var(--violet); }
.wizard-step-circle { position: relative; z-index: 1; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--lilac-soft); color: var(--muted); font-weight: 700; font-size: var(--text-s); border: 2px solid var(--line); }
.wizard-step-item.active .wizard-step-circle { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 0 0.3rem rgba(87, 41, 210, 0.15); }
.wizard-step-item.completed .wizard-step-circle { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.wizard-step-label { font-size: var(--text-xs); color: var(--muted); font-weight: 700; line-height: 1.3; }
@media (max-width: 29.99em) { .wizard-step-item:not(.active) .wizard-step-label { display: none; } }
.wizard-step-item.active .wizard-step-label { color: var(--violet); }
.wizard-body { padding: var(--space-m); }
.step-prompt { font-size: var(--text-base); margin-bottom: var(--space-s); }
.wizard-options-grid { display: grid; gap: var(--space-xs); }
.wizard-option-btn { display: flex; align-items: center; gap: var(--space-s); width: 100%; min-height: 3.236rem; padding: var(--space-xs) var(--space-s); text-align: start; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-l); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.wizard-option-btn:hover { border-color: #cbbcf3; background: var(--lilac-soft); }
.wizard-option-btn.selected { border-color: var(--violet); background: var(--lilac-soft); box-shadow: inset 0 0 0 1px var(--violet); }
.option-icon { display: grid; place-items: center; width: 2.618rem; height: 2.618rem; border-radius: var(--radius-m); background: var(--lilac-soft); font-size: 1.272rem; flex-shrink: 0; }
.wizard-option-btn.selected .option-icon { background: #fff; }
.option-text { display: grid; line-height: 1.4; }
.option-text strong { color: var(--ink); }
.option-text small { color: var(--muted); font-size: var(--text-xs); }
.wizard-footer { display: flex; justify-content: space-between; gap: var(--space-s); padding: var(--space-s) var(--space-m); border-top: 1px solid var(--line); background: #fcfaff; }
.wizard-nav-btn { min-height: 2.75rem; padding: var(--space-xs) var(--space-m); border-radius: var(--radius-pill); font-weight: 700; border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.wizard-nav-btn.button-primary { border-color: var(--violet); color: #fff; background: var(--violet); }
.wizard-nav-btn:disabled { opacity: .5; cursor: not-allowed; }
.rec-banner { padding: var(--space-s) var(--space-m); border-radius: var(--radius-l); background: var(--lilac-soft); border-inline-start: 4px solid var(--violet); margin-bottom: var(--space-s); }
.rec-banner.priority-high { background: #fff5f2; border-color: #d9653b; }
.rec-banner.priority-rett { background: #fdf2fa; border-color: #b84f9a; }
.rec-banner.priority-genomic { background: #effafa; border-color: var(--teal-ink); }
.rec-tag { display: inline-block; font-weight: 700; color: var(--ink); margin-bottom: var(--space-3xs); }
.rec-detail { margin: 0; color: var(--text); font-size: var(--text-s); }
.rec-checklist-box { padding: var(--space-s) var(--space-m); border: 1px dashed #cfc2f3; border-radius: var(--radius-l); margin-bottom: var(--space-s); }
.rec-checklist-box h5 { font-size: var(--text-base); margin-bottom: var(--space-xs); }
.rec-checklist-box ul { padding-inline-start: var(--space-m); display: grid; gap: var(--space-3xs); font-size: var(--text-s); }
.rec-actions-group { display: grid; gap: var(--space-xs); }


/* Long-form content */
.entry-content { color: var(--text); }
.entry-content > * + * { margin-top: var(--space-s); }
.entry-content h2 { font-size: var(--text-l); margin-top: var(--space-l); }
.entry-content h3 { font-size: var(--text-m); margin-top: var(--space-m); }
.entry-content p, .entry-content li { line-height: 1.8; }
.entry-content ul, .entry-content ol { padding-inline-start: var(--space-m); display: grid; gap: var(--space-2xs); }
.entry-content a:not(.button) { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.entry-content img { border-radius: var(--radius-l); }
.entry-content blockquote { margin-inline: 0; padding: var(--space-s) var(--space-m); border-inline-start: 4px solid var(--violet); background: var(--lilac-soft); border-radius: var(--radius-m); }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: var(--space-xs) var(--space-s); border-bottom: 1px solid var(--line); text-align: start; }

.nav-links, .pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2xs); justify-content: center; margin-top: var(--space-l); }
.page-numbers { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding-inline: var(--space-xs); border-radius: var(--radius-pill); border: 1px solid var(--line); font-weight: 700; color: var(--ink); background: #fff; }
.page-numbers.current { background: var(--violet); color: #fff; border-color: var(--violet); }


/* ---------- Families abroad ---------- */
.intl-section { color: #e9e3fb; background: radial-gradient(45% 70% at 100% 0%, rgba(160, 124, 243, .3), transparent 70%), var(--grad-deep); overflow: hidden; }
.leaf-field { position: absolute; inset: 0; pointer-events: none; }
.leaf { position: absolute; background: linear-gradient(135deg, #a07cf3, #7b50e9); opacity: .22; }
.intl-section .container { position: relative; }
.intl-section h2, .intl-section h3 { color: #fff; }
.intl-header { display: grid; gap: var(--space-m); margin-bottom: var(--space-l); }
.intl-header p { color: #d9d0f3; max-width: 38rem; }
.intl-steps { list-style: none; display: grid; gap: var(--space-s); margin-bottom: var(--space-l); }
.intl-step { padding: var(--space-m); border-radius: var(--radius-xl); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); transition: background-color .3s, transform .3s var(--ease); }
.intl-step:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.intl-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-s); }
.intl-step-icon { display: grid; place-items: center; width: 2.618rem; height: 2.618rem; border-radius: var(--radius-m); background: rgba(32, 197, 199, .2); color: #9df0f1; }
.intl-step-num { font-family: var(--font-head); font-size: var(--text-l); font-weight: 700; color: rgba(255, 255, 255, .25); }
.intl-step h3 { font-size: var(--text-base); }
.intl-step p { margin: 0; color: #d3cbef; font-size: var(--text-s); }
.intl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }

/* ---------- Journey timeline ---------- */
.journey-layout { display: grid; gap: var(--space-l); align-items: center; }
.timeline { list-style: none; display: grid; gap: var(--space-m); margin-block: var(--space-m) var(--space-l); position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 1.309rem; top: 1.5rem; bottom: 1.5rem; width: 2px; background: linear-gradient(var(--violet), var(--violet-bright)); opacity: .35; }
.timeline-step { position: relative; display: flex; gap: var(--space-s); align-items: flex-start; }
.step-number { position: relative; z-index: 1; display: grid; place-items: center; width: 2.618rem; height: 2.618rem; border-radius: 50%; background: var(--grad-violet); color: #fff; font-family: var(--font-head); font-weight: 700; box-shadow: 0 0 0 .382rem var(--paper), 0 8px 18px rgba(87, 41, 210, .3); flex-shrink: 0; }
.timeline-step h3 { margin-bottom: var(--space-3xs); }
.timeline-step p { margin: 0; color: var(--muted); }
.journey-media { position: relative; }
.journey-media img { width: 100%; aspect-ratio: 1.618 / 1; object-fit: cover; object-position: 78% 50%; border-radius: var(--radius-2xl); box-shadow: var(--shadow-m); }
.journey-swoosh { position: absolute; width: 80%; aspect-ratio: 567 / 149; bottom: -1.618rem; inset-inline-start: 10%; background: var(--teal); opacity: .85; } /* teal swoosh, as in the logo */

/* ---------- Articles ---------- */
.article-grid { display: grid; gap: var(--space-m); }
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.article-card > a { display: flex; flex-direction: column; height: 100%; }
.article-card .card-media { display: block; aspect-ratio: 1.618 / 1; overflow: hidden; background: var(--lilac-soft); }
.card-media-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .card-media-img, .article-card:hover .cover-shape { transform: scale(1.06); }
.cover-art { position: relative; display: block; width: 100%; height: 100%; min-height: 8rem; overflow: hidden; }
.cover-violet { background: var(--grad-violet); } .cover-teal { background: linear-gradient(135deg, #7b50e9, #a07cf3); } /* bright violet (kept class name) */
.cover-lilac { background: linear-gradient(135deg, #e9e2fb, #f8f4ff); } .cover-deep { background: var(--grad-deep); }
.cover-shape { position: absolute; inset: 14% 18%; background: rgba(255, 255, 255, .22); transition: transform .6s var(--ease); }
.cover-lilac .cover-shape { background: var(--grad-brand); opacity: .35; }
.cover-icon { position: absolute; inset-inline-start: var(--space-s); bottom: var(--space-s); display: grid; place-items: center; width: 2.618rem; height: 2.618rem; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--violet); box-shadow: var(--shadow-s); }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-m); }
.card-meta { color: var(--teal-ink); font-size: var(--text-xs); font-weight: 700; margin-bottom: var(--space-xs); }
.article-card h3 { font-size: var(--text-m); }
.article-card p { color: var(--muted); font-size: var(--text-s); }
.card-link { display: inline-flex; align-items: center; gap: var(--space-2xs); margin-top: auto; color: var(--violet); font-weight: 700; font-size: var(--text-s); }
.card-link .icon { width: 1em; height: 1em; }

/* ---------- Closing CTA: brand gradient banner ---------- */
.closing-cta { position: relative; overflow: hidden; display: grid; gap: var(--space-l); align-items: center; padding: var(--space-l) var(--space-m); border-radius: var(--radius-2xl); color: #efeafd; background: var(--grad-violet); box-shadow: var(--shadow-l); }
.closing-cta h2 { color: #fff; }
.closing-copy { position: relative; z-index: 1; }
.closing-copy > p { color: rgba(255, 255, 255, .88); }
.closing-actions { display: grid; gap: var(--space-xs); margin-top: var(--space-m); }
.cta-wave { position: absolute; width: 61.8%; aspect-ratio: 281 / 109; inset-inline-start: -6%; bottom: -8%; background: #fff; opacity: .1; }
.cta-media { position: relative; z-index: 1; }
.cta-media img { width: 100%; aspect-ratio: 1.618 / 1; object-fit: cover; border-radius: var(--radius-xl); border: 6px solid rgba(255, 255, 255, .25); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: var(--space-l); background: radial-gradient(70% 120% at 100% 0%, rgba(123, 80, 233, .12), transparent 60%), var(--lilac-soft); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 8rem; aspect-ratio: 100 / 74; inset-inline-end: 4%; bottom: -1.5rem; -webkit-mask: url('assets/brand/two-leaf-motif.svg') center / contain no-repeat; mask: url('assets/brand/two-leaf-motif.svg') center / contain no-repeat; background: var(--grad-brand); opacity: .16; }
.page-hero h1 { margin-bottom: var(--space-xs); }
.page-lead { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .4vw, 1.272rem); margin: 0; }
.page-hero-grid { display: grid; gap: var(--space-m); align-items: center; position: relative; z-index: 1; }
.page-hero-media { aspect-ratio: 1.618 / 1; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-m); }
.page-hero-media .cover-icon { width: 3.236rem; height: 3.236rem; }
.content-shell { max-width: 46rem; }
.container.content-shell { width: min(46rem, 100% - 2 * var(--gutter)); }
.page-body { padding-block: var(--space-l) var(--section-space); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-bottom: var(--space-s); color: var(--muted); font-size: var(--text-s); }
.breadcrumbs a { color: var(--violet); font-weight: 700; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-s); margin: 0; color: var(--muted); font-size: var(--text-s); }
.article-cover { width: 100%; aspect-ratio: 1.618 / 1; object-fit: cover; border-radius: var(--radius-2xl); margin-bottom: var(--space-l); }
.medical-note { display: flex; gap: var(--space-xs); margin-top: var(--space-l); padding: var(--space-s) var(--space-m); border-radius: var(--radius-xl); background: #effafa; color: var(--ink); font-size: var(--text-s); }
.medical-note .icon { color: var(--teal-ink); margin-top: .2em; }
.inline-cta { display: grid; gap: var(--space-s); margin-top: var(--space-l); padding: var(--space-m); border-radius: var(--radius-2xl); background: var(--grad-deep); color: #e9e3fb; }
.inline-cta h2 { font-size: var(--text-l); color: #fff; }
.inline-cta p { color: #d9d0f3; margin: 0; }
.inline-cta .text-link { color: #fff; }
.inline-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }
.inline-cta .button-primary { background: #fff; color: var(--violet-deep); box-shadow: none; }
.not-found { padding-block: var(--section-space); text-align: center; }
.not-found-code { font-family: var(--font-head); font-size: clamp(4.236rem, 3rem + 6vw, 6.854rem); font-weight: 700; line-height: 1; margin-bottom: var(--space-s); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found .search-form { display: flex; gap: var(--space-xs); justify-content: center; margin-bottom: var(--space-m); flex-wrap: wrap; }
.archive-grid-wide .specialty-card { min-height: 0; }
/* Starter-content blocks carry inline styles; normalise them to the brand system. */
.entry-content .lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.272rem) !important; color: var(--violet) !important; line-height: var(--leading) !important; }
.entry-content .credentials-box, .entry-content .article-callout, .entry-content .journey-step-box { background: var(--lilac-soft) !important; border: 1px solid var(--line) !important; border-inline-start: 4px solid var(--violet) !important; border-radius: var(--radius-xl) !important; padding: var(--space-m) !important; margin-block: var(--space-m) !important; box-shadow: none !important; }
.entry-content .journey-step-box { background: var(--surface) !important; }
.entry-content .international-hero { border-radius: var(--radius-2xl) !important; padding: var(--space-l) var(--space-m) !important; background: var(--grad-deep) !important; }
.entry-content .international-hero * { color: #fff; }

/* Forms (booking/status shortcodes) */
.entry-content .walaa-form { max-width: none; padding: var(--space-m); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-m); }
.entry-content .walaa-form legend { color: var(--ink); font-size: var(--text-m); font-family: var(--font-head); }
.entry-content .walaa-form label { color: var(--ink); font-weight: 700; font-size: var(--text-s); }
.entry-content .walaa-form input:not([type=checkbox]), .entry-content .walaa-form select, .entry-content .walaa-form textarea { min-height: 3.236rem; border-radius: var(--radius-l); border: 1.5px solid #ddd5f1; background: #fcfaff; font-weight: 400; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.entry-content .walaa-form input:focus, .entry-content .walaa-form select:focus, .entry-content .walaa-form textarea:focus { outline: none; background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(87, 41, 210, .15); }
.entry-content .walaa-form .bridge-consent { font-weight: 400; }
.entry-content .walaa-form button[type=submit] { width: 100%; min-height: 3.236rem; }
.entry-content .walaa-form .bridge-notice { border-radius: var(--radius-l); font-size: var(--text-s); }
.search-form input[type=search] { min-height: 2.75rem; padding-inline: var(--space-s); border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff; }
.search-form input[type=submit], .search-form button { min-height: 2.75rem; padding-inline: var(--space-m); border-radius: var(--radius-pill); background: var(--violet); color: #fff; font-weight: 700; border: 0; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--charcoal); color: #cfc9e3; padding-top: var(--space-xl); font-size: var(--text-s); overflow: hidden; }
.footer-wave { position: absolute; inset-inline-end: -4rem; top: -1rem; width: 24rem; aspect-ratio: 281 / 109; -webkit-mask: url('assets/brand/brand-wave.svg') center / contain no-repeat; mask: url('assets/brand/brand-wave.svg') center / contain no-repeat; background: var(--grad-brand); opacity: .14; }
.footer-grid { position: relative; display: grid; gap: var(--space-l); padding-bottom: var(--space-l); }
.footer-logo { display: inline-block; margin-bottom: var(--space-s); }
.footer-logo .brand-mask { display: block; width: 6.854rem; aspect-ratio: 924 / 961; background: linear-gradient(135deg, #fff 30%, #9df0f1); }
.footer-name { display: block; color: #fff; font-family: var(--font-head); font-size: var(--text-l); margin-bottom: var(--space-2xs); }
.footer-motto { color: #9df0f1; font-weight: 700; }
html[lang="en"] .footer-motto { letter-spacing: .18em; text-transform: uppercase; font-size: var(--text-xs); }
.site-footer h2 { color: #fff; font-size: var(--text-base); margin-bottom: var(--space-s); }
.footer-col ul { list-style: none; display: grid; gap: var(--space-xs); }
.footer-col a { display: inline-flex; align-items: center; gap: var(--space-xs); color: #e0dbf3; min-height: 1.618rem; }
.footer-col a:hover { color: #fff; }
.footer-col .icon { width: 1rem; height: 1rem; color: #9df0f1; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-m); padding-block: var(--space-m); border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--text-xs); color: #aca6c8; }

/* Mobile quick actions: 61.8% primary / 38.2% call */
.mobile-actions { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--space-xs); padding: var(--space-xs) var(--gutter) calc(var(--space-xs) + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(32, 33, 42, .08); }
.mobile-actions .button { min-height: 3rem; padding-inline: var(--space-s); }
.site-footer { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); }

/* =========================================================================
   Breakpoints (em, mobile-first)
   ========================================================================= */
@media (min-width: 30em) { /* 480px */
  .hero-buttons, .closing-actions { display: flex; flex-wrap: wrap; }
  .rec-actions-group { display: flex; flex-wrap: wrap; }
  .menu-label { display: inline; }
}
@media (min-width: 40em) { /* 640px */
  :root { --logo-h: 3.618rem; }
  .topbar-note { display: flex; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "intro intro" "portrait brand" "portrait cred"; }
  .tile-intro { padding: var(--space-xl) var(--space-l); }
  .tile-portrait { min-height: 0; }
  .wizard-options-grid { grid-template-columns: 1fr 1fr; }
  .specialty-grid { grid-template-columns: 1fr 1fr; }
  .specialty-card.is-wide { grid-column: span 2; min-height: 16rem; }
  .intl-steps { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .closing-cta { padding: var(--space-xl) var(--space-l); }
  .inline-cta { padding: var(--space-l); }
  .entry-content .walaa-form { padding: var(--space-l); }
  .page-hero { padding-block: var(--space-xl); }
}
@media (min-width: 56em) { /* 896px — golden splits engage */
  :root { --logo-h: 4.236rem; }
  .header-booking { display: inline-flex; }
  .bento { grid-template-columns: 1fr .618fr 1fr; grid-template-areas: "intro intro portrait" "brand cred portrait"; }
  .tile-portrait { min-height: 34rem; }
  .about-grid { grid-template-columns: 1fr 1.618fr; gap: var(--space-xl); }
  .wizard-layout { grid-template-columns: 1fr 1.618fr; gap: var(--space-xl); }
  .wizard-intro { position: sticky; top: 8rem; }
  .intl-header { grid-template-columns: 1.618fr 1fr; align-items: end; gap: var(--space-xl); }
  .journey-layout { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .journey-media img { aspect-ratio: 1 / 1; }
  .closing-cta { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .page-hero-grid { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1.618fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .inline-cta { grid-template-columns: 1.618fr 1fr; align-items: center; }
  .article-grid-featured { grid-template-columns: 1.618fr 1fr; }
  .article-grid-featured .article-card:first-child { grid-row: span 2; }
  .article-grid-featured .article-card:first-child .card-media { aspect-ratio: auto; flex: 1; min-height: 16rem; }
  .article-grid-featured .article-card:first-child h3 { font-size: var(--text-l); }
  .article-grid-featured .article-card:not(:first-child) > a { flex-direction: row; }
  .article-grid-featured .article-card:not(:first-child) .card-media { aspect-ratio: auto; flex: 0 0 38.2%; }
  .article-grid-featured .article-card:not(:first-child) p { display: none; }
  .article-grid:not(.article-grid-featured) { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64em) { /* 1024px */
  .specialty-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-m); }
  .intl-steps { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 80em) { /* 1280px: desktop navigation (large logo + 6 links + CTA) */
  .desktop-navigation { display: block; }
  .menu-toggle, .mobile-drawer, .nav-backdrop, .mobile-actions { display: none; }
  .site-footer { padding-bottom: 0; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .mobile-drawer, .nav-backdrop, .mobile-actions, .site-footer, .hero-buttons, .walaa-wizard-mount, .ribbon { display: none !important; }
  body { background: #fff; }
}

/* =========================================================================
   v3.1 — brand wave backgrounds (from the social asset set) + About profile
   ========================================================================= */
.page-hero { background: url('assets/images/walaa-bg-wave-wide-v01.webp') center / cover no-repeat, var(--lilac-soft); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246, 242, 254, .72), rgba(255, 254, 250, .55)); }
.page-hero > .container { position: relative; z-index: 1; }
.wizard-section { background: linear-gradient(180deg, rgba(246, 242, 254, .86), rgba(255, 254, 250, .9)), url('assets/images/walaa-website-brand-background-v01.webp') center / cover no-repeat; }
.section-waves { background: linear-gradient(180deg, var(--lilac-soft) 0%, rgba(246, 242, 254, .94) 45%, rgba(246, 242, 254, .5) 100%), url('assets/images/walaa-bg-wave-tall-v01.webp') center bottom / 100% auto no-repeat, var(--lilac-soft); }
.page-hero-media { position: relative; margin: 0; }
.page-hero-media > img { width: 100%; height: 100%; object-fit: cover; }

/* About profile */
.profile-hero { position: relative; overflow: hidden; padding-block: var(--space-l) var(--section-space); background: url('assets/images/walaa-bg-wave-wide-v01.webp') center / cover no-repeat, var(--lilac-soft); }
.profile-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 254, 250, .55), rgba(255, 254, 250, .85)); }
.profile-grid { position: relative; display: grid; gap: var(--space-l); align-items: center; }
.profile-copy h1 { font-size: var(--text-3xl); color: var(--violet); margin-bottom: var(--space-xs); }
html[lang="en"] .profile-copy h1 { font-size: var(--text-2xl); }
.profile-role { color: var(--ink); font-weight: 700; font-size: var(--text-m); line-height: var(--leading-tight); margin-bottom: var(--space-s); }
.profile-lead { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .4vw, 1.272rem); margin-bottom: var(--space-m); max-width: 38em; }
.profile-portrait { position: relative; max-width: 26rem; width: 100%; margin-inline: auto; }
.profile-portrait > img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1.272; object-fit: cover; object-position: 50% 12%; border-radius: 50% 50% var(--radius-2xl) var(--radius-2xl) / 32% 32% var(--radius-2xl) var(--radius-2xl); border: 6px solid #fff; box-shadow: var(--shadow-l); }
.profile-arc { position: absolute; z-index: 0; width: 118%; aspect-ratio: 924 / 961; top: -9%; inset-inline-start: -9%; opacity: .22; }
.profile-badge { position: absolute; z-index: 2; inset-inline-start: -.618rem; bottom: var(--space-l); display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-s); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: var(--radius-xl); box-shadow: var(--shadow-m); }
.profile-badge img { height: 2.618rem; width: auto; }
.profile-badge strong { display: block; color: var(--ink); font-size: var(--text-s); line-height: 1.3; }
.profile-badge small { color: var(--muted); font-size: var(--text-xs); }

.facts-band { background: var(--grad-deep); color: #e9e3fb; padding-block: var(--space-l); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.fact { display: grid; gap: var(--space-3xs); padding-inline-start: var(--space-s); border-inline-start: 2px solid rgba(157, 240, 241, .5); }
.fact strong { font-family: var(--font-head); font-size: var(--text-xl); color: #fff; line-height: 1.1; }
.fact span { font-size: var(--text-s); color: #d9d0f3; line-height: 1.5; }

.bio-grid { display: grid; gap: var(--space-l); align-items: start; }
.bio-text .entry-content > h2:first-child { margin-top: 0; }
.path-card { position: relative; overflow: hidden; padding: var(--space-l) var(--space-m); border-radius: var(--radius-2xl); background: var(--grad-violet); color: #ece6fd; box-shadow: var(--shadow-l); }
.path-card h2 { color: #fff; font-size: var(--text-l); margin-bottom: var(--space-m); }
.path-mark { position: absolute; width: 10rem; aspect-ratio: 494 / 445; inset-inline-end: -2rem; top: -1.5rem; background: #fff; opacity: .1; }
.path-list { list-style: none; position: relative; display: grid; gap: var(--space-s); counter-reset: path; }
.path-list::before { content: ""; position: absolute; inset-inline-start: .45rem; top: .5rem; bottom: .5rem; width: 2px; background: rgba(255, 255, 255, .3); }
.path-list li { position: relative; display: grid; padding-inline-start: var(--space-m); line-height: 1.45; }
.path-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35rem; width: .95rem; height: .95rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .3rem rgba(255, 255, 255, .2); }
.path-list li:last-child::before { background: #9df0f1; }
.path-list strong { color: #fff; }
.path-list span { font-size: var(--text-s); color: #ddd3fb; }

.focus-grid { display: grid; gap: var(--space-s); }
.focus-card { padding: var(--space-m); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.focus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.focus-card .card-symbol { margin-bottom: var(--space-s); }
.focus-card dl { margin: var(--space-s) 0 0; display: grid; gap: var(--space-xs); }
.focus-card dl > div { padding: var(--space-xs) var(--space-s); border-radius: var(--radius-l); background: var(--lilac-soft); }
.focus-card dt { color: var(--violet); font-weight: 700; font-size: var(--text-xs); }
.focus-card dd { margin: 0; color: var(--text); font-size: var(--text-s); line-height: 1.55; }

.research-card { position: relative; overflow: hidden; display: grid; gap: var(--space-l); padding: var(--space-l) var(--space-m); border-radius: var(--radius-2xl); background: var(--grad-deep); color: #e2daf9; box-shadow: var(--shadow-l); }
.research-card h2 { color: #fff; }
.research-copy p:last-child { margin: 0; color: #d9d0f3; }
.research-leaves { position: absolute; width: 14rem; aspect-ratio: 220 / 160; inset-inline-end: -2rem; bottom: -2rem; background: #fff; opacity: .08; }
.research-points { list-style: none; display: grid; gap: var(--space-s); align-content: center; position: relative; }
.research-points li { display: flex; gap: var(--space-xs); align-items: flex-start; padding: var(--space-s); border-radius: var(--radius-l); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: var(--text-s); line-height: 1.5; }
.research-points .icon { color: #9df0f1; }
.approach-photo { aspect-ratio: 1.272 / 1 !important; object-position: 40% 50%; }
.approach-quote { margin: 0 0 var(--space-m); padding: var(--space-s) var(--space-m); border-inline-start: 4px solid var(--violet); background: #fff; border-radius: var(--radius-l); color: var(--ink); font-size: var(--text-m); line-height: 1.6; font-weight: 700; box-shadow: var(--shadow-s); }
.cta-portrait { aspect-ratio: 1 / 1 !important; object-position: 50% 15%; }

@media (min-width: 40em) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .research-card { padding: var(--space-xl) var(--space-l); }
  .path-card { padding: var(--space-l); }
}
@media (min-width: 56em) {
  .profile-hero { padding-top: var(--space-xl); }
  .profile-grid { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .bio-grid { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .path-card { position: sticky; top: 8rem; }
  .research-card { grid-template-columns: 1.618fr 1fr; align-items: center; gap: var(--space-xl); }
  .closing-cta .cta-media { max-width: 20rem; justify-self: center; }
}
@media (min-width: 64em) { .focus-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ (backs FAQPage schema) ---------- */
.faq-layout { display: grid; gap: var(--space-l); align-items: start; }
.faq-list { display: grid; gap: var(--space-xs); }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-s); transition: box-shadow .3s var(--ease), border-color .3s; }
.faq-item[open] { border-color: #d9cdf7; box-shadow: var(--shadow-m); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-s) var(--space-m); cursor: pointer; list-style: none; min-height: 3.236rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: var(--text-base); }
.faq-toggle { position: relative; width: 2rem; height: 2rem; border-radius: 50%; background: var(--lilac-soft); flex-shrink: 0; transition: background-color .25s, transform .3s var(--ease); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: .75rem; height: 2px; background: var(--violet); border-radius: 2px; translate: -50% -50%; transition: transform .3s var(--ease); }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--violet); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: #fff; }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-item p { margin: 0; padding: 0 var(--space-m) var(--space-m); color: var(--muted); }
.related-section .article-grid { margin-top: 0; }
@media (min-width: 56em) { .faq-layout { grid-template-columns: 1fr 1.618fr; gap: var(--space-xl); } .faq-layout > .section-heading-text { position: sticky; top: 8rem; } }

/* ---------- Contact page ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-hero-grid { display: grid; gap: var(--space-l); align-items: center; position: relative; }
.contact-hero-photo { position: relative; justify-self: center; width: min(100%, 18rem); }
.contact-hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow-l); }
.contact-arc { position: absolute; z-index: 0; width: 124%; aspect-ratio: 924 / 961; top: -12%; inset-inline-start: -12%; opacity: .25; }
.contact-actions-section { margin-top: calc(-1 * var(--space-l)); position: relative; z-index: 2; }
.contact-actions { display: grid; gap: var(--space-s); }
.contact-action { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: var(--space-s); align-items: center; padding: var(--space-m); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-m); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.contact-action:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); border-color: #d9cdf7; }
.action-icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 3.618rem; height: 3.618rem; border-radius: var(--radius-l); background: var(--grad-violet); color: #fff; box-shadow: 0 8px 18px rgba(87, 41, 210, .28); }
.action-icon .icon { width: 1.5rem; height: 1.5rem; }
.action-label { color: var(--teal-ink); font-size: var(--text-xs); font-weight: 700; }
.action-value { color: var(--ink); font-family: var(--font-head); font-size: var(--text-m); line-height: 1.3; }
.action-note { color: var(--muted); font-size: var(--text-s); }
.action-call { background: var(--grad-deep); border-color: transparent; }
.action-call .action-icon { background: rgba(255, 255, 255, .14); box-shadow: none; }
.action-call .action-label { color: #9df0f1; } .action-call .action-value { color: #fff; } .action-call .action-note { color: #d9d0f3; }

.contact-details-grid { display: grid; gap: var(--space-m); align-items: stretch; }
.details-card { padding: var(--space-l) var(--space-m); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-s); }
.details-list { margin: var(--space-m) 0 0; display: grid; }
.details-list > div { display: grid; gap: var(--space-2xs); padding-block: var(--space-s); border-top: 1px solid var(--line); }
.details-list dt { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--violet); font-weight: 700; font-size: var(--text-s); }
.details-list dt .icon { width: 1.1rem; height: 1.1rem; }
.details-list dd { margin: 0; display: grid; gap: var(--space-3xs); }
.details-list dd strong { color: var(--ink); }
.details-list dd span { color: var(--muted); font-size: var(--text-s); }
.details-list a { color: var(--violet); }
.day-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: 0; }
.day-chips li { padding: var(--space-3xs) var(--space-s); border-radius: var(--radius-pill); background: var(--lilac-soft); border: 1px solid #ddd2f8; color: var(--violet-deep); font-weight: 700; font-size: var(--text-s); }
.location-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-l) var(--space-m); border-radius: var(--radius-2xl); background: var(--grad-deep); color: #e2daf9; box-shadow: var(--shadow-l); }
.location-card h2 { color: #fff; font-size: var(--text-l); margin: 0; }
.location-card p { margin: 0; color: #d9d0f3; }
.location-address { color: #fff !important; font-weight: 700; font-size: var(--text-m); }
.location-pin { display: grid; place-items: center; width: 3.236rem; height: 3.236rem; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #9df0f1; }
.location-pin .icon { width: 1.5rem; height: 1.5rem; }
.location-mark { position: absolute; width: 12rem; aspect-ratio: 494 / 445; inset-inline-end: -3rem; bottom: -3rem; background: #fff; opacity: .07; }
.location-actions { display: grid; gap: var(--space-xs); margin-top: auto; position: relative; }
.map-frame { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 1.618 / 1; border: 4px solid rgba(255, 255, 255, .2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.ready-grid { display: grid; gap: var(--space-l); align-items: center; }
.ready-card { padding: var(--space-l) var(--space-m); border-radius: var(--radius-2xl); background: url('assets/images/walaa-bg-wave-tall-v01.webp') center bottom / cover no-repeat, var(--lilac-soft); border: 1px solid var(--line); box-shadow: var(--shadow-m); position: relative; overflow: hidden; }
.ready-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .95) 55%, rgba(255, 255, 255, .6)); }
.ready-card > * { position: relative; }
.ready-card h3 { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-m); }
.ready-card h3 .icon { color: var(--violet); }
.ready-card .check-list { margin-bottom: var(--space-m); }

.info-pair { display: grid; gap: var(--space-m); }
.abroad-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-l) var(--space-m); border-radius: var(--radius-2xl); background: var(--grad-violet); color: #fff; box-shadow: var(--shadow-m); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.abroad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.abroad-card strong { font-family: var(--font-head); font-size: var(--text-l); line-height: 1.3; position: relative; }
.abroad-card .card-link { color: #fff; position: relative; }
.abroad-card .leaf { background: #fff; opacity: .12; }
.emergency-card { display: flex; gap: var(--space-s); align-items: flex-start; padding: var(--space-l) var(--space-m); border-radius: var(--radius-2xl); background: #fff7f4; border: 1px solid #f3d6cb; }
.emergency-card strong { display: block; color: #9a3412; font-size: var(--text-m); margin-bottom: var(--space-2xs); }
.emergency-card p { margin: 0; color: #5b3a2e; font-size: var(--text-s); }
.emergency-icon { display: grid; place-items: center; width: 3.236rem; height: 3.236rem; border-radius: 50%; background: #fde3d9; color: #c2410c; flex-shrink: 0; }

@media (min-width: 40em) {
  .contact-actions { grid-template-columns: 1fr 1fr; }
  .details-card, .location-card, .ready-card, .abroad-card, .emergency-card { padding: var(--space-l); }
  .location-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 56em) {
  .contact-hero-grid { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .contact-hero-photo { width: min(100%, 20rem); }
  .contact-details-grid { grid-template-columns: 1.618fr 1fr; }
  .ready-grid { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .info-pair { grid-template-columns: 1fr 1.618fr; }
}
@media (min-width: 64em) { .contact-actions { grid-template-columns: repeat(4, 1fr); } .contact-action { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: var(--space-3xs); } .action-icon { grid-row: auto; margin-bottom: var(--space-s); } }
.visit-tips { list-style: none; display: grid; gap: var(--space-xs); margin: var(--space-xs) 0 var(--space-s); position: relative; }
.visit-tips li { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-s); border-radius: var(--radius-l); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: var(--text-s); font-weight: 700; }
.visit-tips .icon { color: #9df0f1; width: 1.15rem; height: 1.15rem; }
@media (min-width: 56em) { .contact-details-grid { align-items: start; } .location-card { position: sticky; top: 8rem; } .location-actions { margin-top: var(--space-xs); } }

/* ---------- Specialties guide ---------- */
.spec-hero-grid { display: grid; gap: var(--space-l); align-items: center; position: relative; }
.finder { padding: var(--space-m); background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-m); }
.finder-title { display: flex; align-items: center; gap: var(--space-xs); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: var(--text-m); margin-bottom: var(--space-s); }
.finder-title .icon { color: var(--violet); }
.finder-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-s); }
.finder-chips a { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 2.75rem; padding: var(--space-2xs) var(--space-s); border-radius: var(--radius-pill); background: var(--lilac-soft); border: 1.5px solid #ddd2f8; color: var(--violet-deep); font-weight: 700; font-size: var(--text-s); transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.finder-chips a:hover { background: var(--violet); border-color: var(--violet); color: #fff; transform: translateY(-2px); }
.finder-chips .icon { width: 1.1rem; height: 1.1rem; }

.spec-index { position: sticky; top: 4.9rem; z-index: 30; background: rgba(255, 254, 250, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .spec-index { top: calc(4.9rem + 46px); }
.spec-index ul { list-style: none; display: flex; gap: var(--space-2xs); overflow-x: auto; padding-block: var(--space-xs); scrollbar-width: none; }
.spec-index ul::-webkit-scrollbar { display: none; }
.spec-index a { display: inline-flex; align-items: center; gap: var(--space-2xs); white-space: nowrap; padding: var(--space-2xs) var(--space-s); border-radius: var(--radius-pill); color: var(--ink); font-weight: 700; font-size: var(--text-s); transition: background-color .2s, color .2s; }
.spec-index a:hover { background: var(--lilac-soft); color: var(--violet); }
.idx-num { color: var(--violet-bright); font-family: var(--font-head); font-size: var(--text-xs); }
.spec-row { scroll-margin-top: 9rem; }

.spec-rows .container { display: grid; gap: var(--space-xl); }
.spec-row { display: grid; gap: var(--space-m); align-items: center; }
.spec-media { position: relative; display: block; border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 1.618 / 1; box-shadow: var(--shadow-l); background: var(--lilac-soft); }
.spec-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.spec-media:hover img { transform: scale(1.05); }
.spec-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(31, 15, 74, .45)); }
.spec-num { position: absolute; z-index: 1; inset-inline-start: var(--space-m); bottom: var(--space-s); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: var(--text-2xl); line-height: 1; text-shadow: 0 4px 16px rgba(31, 15, 74, .4); }
.spec-badge { position: absolute; z-index: 1; inset-inline-end: var(--space-s); top: var(--space-s); display: grid; place-items: center; width: 3.618rem; height: 3.618rem; border-radius: var(--radius-l); background: var(--grad-violet); color: #fff; box-shadow: 0 10px 24px rgba(87, 41, 210, .35); }
.spec-badge .icon { width: 1.5rem; height: 1.5rem; }
.spec-body h2 { font-size: var(--text-xl); margin-bottom: var(--space-xs); }
.spec-body h2 a:hover { color: var(--violet); }
.spec-excerpt { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); margin-bottom: var(--space-m); }
.spec-cols { display: grid; gap: var(--space-s); margin-bottom: var(--space-m); }
.spec-col { padding: var(--space-s) var(--space-m); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.spec-col h3 { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-s); color: var(--violet); margin-bottom: var(--space-xs); }
.spec-col h3 .icon { width: 1.1rem; height: 1.1rem; }
.spec-col ul:not(.test-chips) { list-style: none; display: grid; gap: var(--space-2xs); }
.spec-col ul:not(.test-chips) li { position: relative; padding-inline-start: var(--space-m); color: var(--text); font-size: var(--text-s); line-height: 1.55; }
.spec-col ul:not(.test-chips) li::before { content: ""; position: absolute; inset-inline-start: .3rem; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--violet-bright); }
.test-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.test-chips li { padding: var(--space-3xs) var(--space-s); border-radius: var(--radius-pill); background: var(--lilac-soft); color: var(--violet-deep); font-weight: 700; font-size: var(--text-xs); }
.spec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }

.approach-steps { list-style: none; display: grid; gap: var(--space-s); }
.approach-step { position: relative; padding: var(--space-m); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-s); }
.approach-icon { display: grid; place-items: center; width: 3.236rem; height: 3.236rem; border-radius: var(--radius-l); background: var(--grad-violet); color: #fff; margin-bottom: var(--space-s); }
.approach-num { position: absolute; inset-inline-end: var(--space-m); top: var(--space-m); color: var(--lilac); font-family: var(--font-head); font-weight: 700; font-size: var(--text-xl); line-height: 1; }
.approach-step p { margin: 0; color: var(--muted); font-size: var(--text-s); }

@media (min-width: 40em) {
  .spec-cols { grid-template-columns: 1fr 1fr; }
  .approach-steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 56em) {
  .spec-hero-grid { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .spec-row { grid-template-columns: 1fr 1.618fr; gap: var(--space-xl); }
  .spec-row.is-flipped .spec-media { order: 2; }
  .spec-row.is-flipped { grid-template-columns: 1.618fr 1fr; }
  .spec-index { top: 5.6rem; }
}
@media (min-width: 64em) { .approach-steps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 56em) { .spec-index ul { flex-wrap: wrap; justify-content: center; overflow: visible; } }

/* ---------- Families abroad page ---------- */
.intl-hero-grid { display: grid; gap: var(--space-l); align-items: center; position: relative; }
.intl-hero-copy h1 { font-size: var(--text-3xl); }
html[lang="en"] .intl-hero-copy h1 { font-size: var(--text-2xl); }
.intl-hero-copy .page-lead { margin-bottom: var(--space-m); }
.intl-trust { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-m); }
.intl-trust li { display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) var(--space-s); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .9); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: var(--text-s); }
.intl-trust .icon { color: var(--violet); width: 1.1rem; height: 1.1rem; }
.intl-hero-visual img { width: 100%; height: auto; border-radius: var(--radius-2xl); filter: drop-shadow(0 30px 50px rgba(31, 15, 74, .15)); }

.who-grid { display: grid; gap: var(--space-s); }
.who-card { padding: var(--space-m); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.who-card .card-symbol { display: grid; margin-bottom: var(--space-s); }
.who-card p { margin: 0; color: var(--muted); font-size: var(--text-s); }

.intl-journey { position: relative; overflow: hidden; background: var(--grad-deep); color: #e2daf9; }
.intl-globe { position: absolute; width: min(56rem, 120vw); height: auto; inset-inline-start: -16rem; top: 50%; translate: 0 -50%; opacity: .55; pointer-events: none; }
[dir="rtl"] .intl-globe { transform: scaleX(-1); }
.intl-journey-inner { position: relative; display: grid; gap: var(--space-l); }
.intl-journey h2 { color: #fff; }
.journey-track { list-style: none; display: grid; gap: var(--space-s); position: relative; }
.track-step { position: relative; padding: var(--space-m); border-radius: var(--radius-2xl); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.track-node { display: grid; place-items: center; width: 3.236rem; height: 3.236rem; border-radius: var(--radius-l); background: #fff; color: var(--violet); margin-bottom: var(--space-s); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.track-num { position: absolute; inset-inline-end: var(--space-m); top: var(--space-m); font-family: var(--font-head); font-weight: 700; font-size: var(--text-xl); line-height: 1; color: rgba(255, 255, 255, .2); }
.track-step h3 { color: #fff; font-size: var(--text-base); }
.track-step p { margin: 0; color: #d9d0f3; font-size: var(--text-s); }

.send-grid { display: grid; gap: var(--space-l); align-items: center; }
.send-lead { color: var(--muted); }
.send-list { list-style: none; display: grid; gap: var(--space-xs); margin-top: var(--space-m); }
.send-list li { display: flex; align-items: center; gap: var(--space-s); padding: var(--space-xs) var(--space-s); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--ink); font-weight: 700; font-size: var(--text-s); }
.send-icon { display: grid; place-items: center; width: 2.618rem; height: 2.618rem; border-radius: var(--radius-m); background: var(--lilac-soft); color: var(--violet); flex-shrink: 0; }
.records-visual { position: relative; min-height: 24rem; border-radius: var(--radius-2xl); background: radial-gradient(70% 70% at 70% 30%, #ece4fd, transparent 70%), var(--lilac-soft); overflow: hidden; }
.records-visual > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.records-arc { position: absolute; width: 80%; aspect-ratio: 924 / 961; inset-inline-end: -12%; bottom: -14%; opacity: .18; }
.doc-card { position: absolute; width: 46%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-2xs) var(--space-s); padding: var(--space-s); background: #fff; border-radius: var(--radius-xl); box-shadow: 0 18px 40px rgba(31, 15, 74, .14); }
.doc-icon { grid-row: span 3; display: grid; place-items: center; width: 3.236rem; height: 3.236rem; border-radius: var(--radius-m); background: var(--grad-violet); color: #fff; }
.doc-tag { font-family: Montserrat, Poppins, sans-serif; font-weight: 700; color: var(--violet-deep); font-size: var(--text-s); letter-spacing: .06em; }
.doc-line { height: .5rem; border-radius: .25rem; background: var(--lilac); }
.doc-line.short { width: 60%; }
.doc-0 { inset-inline-start: 8%; top: 8%; rotate: -4deg; }
.doc-1 { inset-inline-end: 6%; top: 22%; rotate: 3deg; }
.doc-2 { inset-inline-start: 12%; top: 50%; rotate: 2deg; }
.doc-3 { inset-inline-end: 10%; top: 66%; rotate: -3deg; }

.scope-grid { display: grid; gap: var(--space-m); }
.scope-card { padding: var(--space-l) var(--space-m); border-radius: var(--radius-2xl); background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.scope-card h3 { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-l); }
.scope-card h3 .icon { width: 2.236rem; height: 2.236rem; padding: .4rem; border-radius: 50%; }
.scope-yes h3 .icon { background: var(--violet); color: #fff; }
.scope-no h3 .icon { background: #fde3d9; color: #c2410c; }
.scope-card ul { list-style: none; display: grid; gap: var(--space-xs); }
.scope-card li { position: relative; padding-inline-start: var(--space-m); color: var(--text); }
.scope-card li::before { content: ""; position: absolute; inset-inline-start: .3rem; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--violet-bright); }
.scope-no li::before { background: #e07a52; }
.cta-globe { aspect-ratio: 1 / 1 !important; border: 0 !important; background: rgba(255, 255, 255, .08); max-width: 22rem; margin-inline: auto; }

@media (min-width: 40em) {
  .who-grid { grid-template-columns: 1fr 1fr; }
  .journey-track { grid-template-columns: 1fr 1fr; }
  .scope-grid { grid-template-columns: 1fr 1fr; }
  .scope-card { padding: var(--space-l); }
}
@media (min-width: 56em) {
  .intl-hero-grid { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .intl-hero-grid { grid-template-columns: 1fr 1fr; }
  .send-grid { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .records-visual { min-height: 30rem; }
  .scope-grid { grid-template-columns: 1.618fr 1fr; }
}
@media (min-width: 64em) {
  .who-grid { grid-template-columns: repeat(4, 1fr); }
  .journey-track { grid-template-columns: repeat(4, 1fr); }
  .journey-track::before { content: ""; position: absolute; inset-inline: 6%; top: calc(var(--space-m) + 1.618rem); height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 8px, transparent 8px 18px); }
}

/* ---------- Specialty guide pages ---------- */
.spec-meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); margin: var(--space-xs) 0 0; color: var(--muted); font-size: var(--text-s); }
.spec-meta span { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.spec-meta .icon { width: 1.1rem; height: 1.1rem; color: var(--violet); }
.guide-layout { display: grid; gap: var(--space-l); padding-block: var(--space-l) var(--section-space); align-items: start; }
.guide-main { min-width: 0; display: grid; gap: var(--space-l); }
.guide-section { scroll-margin-top: 8rem; }
.guide-section > h2 { font-size: var(--text-l); margin-bottom: var(--space-s); }
.guide-section > p { color: var(--text); line-height: 1.85; margin: 0; }
.guide-note { color: var(--muted) !important; font-size: var(--text-s); margin-bottom: var(--space-s) !important; }
.spec-summary { position: relative; padding: var(--space-m) var(--space-l); border-radius: var(--radius-2xl); background: linear-gradient(135deg, #f6f2fe, #fffefa); border: 1px solid #ddd2f8; border-inline-start: 6px solid var(--violet); box-shadow: var(--shadow-s); }
.spec-summary h2 { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-m); color: var(--violet); margin-bottom: var(--space-xs); }
.spec-summary h2 .icon { width: 1.4rem; height: 1.4rem; }
.spec-summary p { margin: 0; color: var(--ink); font-size: clamp(1.0625rem, 1rem + .25vw, 1.2rem); line-height: 1.85; }
.sign-list { list-style: none; display: grid; gap: var(--space-xs); }
.sign-list li { display: flex; align-items: flex-start; gap: var(--space-s); padding: var(--space-s); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--ink); }
.sign-list .icon { flex-shrink: 0; width: 1.618rem; height: 1.618rem; padding: .25rem; border-radius: 50%; background: var(--lilac-soft); color: var(--violet); }
.urgent-box { margin-top: var(--space-m); padding: var(--space-m); border-radius: var(--radius-xl); background: #fff7f4; border: 1px solid #f3d6cb; }
.urgent-box h3 { display: flex; align-items: center; gap: var(--space-xs); color: #9a3412; font-size: var(--text-base); margin-bottom: var(--space-xs); }
.urgent-box h3 .icon { color: #c2410c; }
.urgent-box ul { list-style: none; display: grid; gap: var(--space-2xs); }
.urgent-box li { position: relative; padding-inline-start: var(--space-m); color: #5b3a2e; }
.urgent-box li::before { content: ""; position: absolute; inset-inline-start: .3rem; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: #e07a52; }
.guide-timeline { margin: 0; }
.test-grid { display: grid; gap: var(--space-s); }
.test-card { display: flex; gap: var(--space-s); align-items: flex-start; padding: var(--space-s) var(--space-m); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.test-card h3 { font-size: var(--text-base); margin-bottom: var(--space-3xs); }
.test-card p { margin: 0; color: var(--muted); font-size: var(--text-s); }
.guide-main .feature-list { margin: 0; }
.guide-main .feature-list li > span:last-child { color: var(--ink); font-size: var(--text-base); align-self: center; }
.guide-main .ready-card h2 { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-l); }
.guide-main .ready-card h2 .icon { color: var(--violet); }
.guide-main .ready-card .check-list { margin: 0; }

.guide-aside { display: grid; gap: var(--space-s); }
.toc, .facts-card { padding: var(--space-m); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-s); }
.toc-title { color: var(--teal-ink); font-weight: 700; font-size: var(--text-s); margin-bottom: var(--space-xs); }
.toc ol { list-style: none; display: grid; gap: var(--space-3xs); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-m); color: var(--ink); font-weight: 700; font-size: var(--text-s); transition: background-color .2s, color .2s; }
.toc a::before { content: counter(toc); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--lilac-soft); color: var(--violet); font-size: var(--text-xs); flex-shrink: 0; }
.toc a:hover { background: var(--lilac-soft); color: var(--violet); }
.facts-card dl { margin: 0; display: grid; }
.facts-card dl > div { display: grid; gap: var(--space-3xs); padding-block: var(--space-xs); border-top: 1px solid var(--line); }
.facts-card dl > div:first-child { border-top: 0; padding-top: 0; }
.facts-card dt { color: var(--violet); font-weight: 700; font-size: var(--text-xs); }
.facts-card dd { margin: 0; color: var(--ink); font-size: var(--text-s); line-height: 1.55; }
.aside-cta { display: grid; gap: var(--space-xs); padding: var(--space-m); border-radius: var(--radius-2xl); background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-m); }
.aside-cta p { margin: 0; font-weight: 700; font-family: var(--font-head); font-size: var(--text-m); line-height: 1.35; }
.aside-phone { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs); color: #fff; font-weight: 700; padding-block: var(--space-2xs); }
.aside-phone .icon { color: #9df0f1; width: 1.1rem; height: 1.1rem; }
.related-spec { min-height: 0; }
.related-spec .card-go { margin-top: var(--space-s); }

@media (min-width: 40em) {
  .test-grid { grid-template-columns: 1fr 1fr; }
  .spec-summary { padding: var(--space-l); }
}
@media (min-width: 56em) {
  .guide-layout { grid-template-columns: 1.618fr 1fr; gap: var(--space-xl); }
  .guide-aside { position: sticky; top: 7.5rem; }
}
@media (min-width: 64em) { .related-section .article-grid { grid-template-columns: repeat(4, 1fr); } }
.guide-main > .medical-note { margin-top: 0; }

/* Long English clinic name: never collide with the menu button on phones. */
@media (max-width: 29.99em) {
  html[lang="en"] .site-header .brand-name { white-space: normal; font-size: var(--text-s); line-height: 1.25; }
  html[lang="en"] .site-header .brand-label { letter-spacing: .2em; }
  .site-header .brand-lockup { flex: 1 1 auto; }
}
.article-faq { margin-top: var(--space-l); }
.article-faq > h2 { font-size: var(--text-l); margin-bottom: var(--space-s); }
.article-cta { margin-top: var(--space-l); }
