/* Airbnb-style marketplace look (from the awesome-design-md "airbnb" reference), kept in Teamhayak's own palette:
   a clean white canvas, a full-width top bar on a hairline, near-black ink (never pure black), 1px hairlines instead of grey boxes,
   a single shadow tier, photo-first hospital cards with a floating badge, a big-number trust row, and pastel panels for the steps. */
:root{
  /* the logo's palette (2026-11-30): purple #A069A0 and yellow #FFF732 on a white page.
     --brand is the logo purple, used for dots, bars, icons and focus rings (4.2:1 on white, so never for body text).
     --brand-ink is a deeper purple for links and coloured words (6.8:1). --btn is the dark plum of the buttons (10.6:1 under white text).
     --wa is the WhatsApp button: a shade of the logo purple just dark enough for white text (5.3:1).
     --sun is the logo yellow: only as a fill behind dark text (highlights, the closing card), never as text on white.
     The greys carry a hint of the purple so the page reads as one family. */
  --bg:#FFFFFF;
  --soft:#F8F5F8;
  --soft-2:#F2EDF2;
  --ink:#241A27;
  --ink-2:#3F3343;
  --muted:#6B6070;
  --faint:#958B98;
  --line:#E2DAE3;
  --line-soft:#EEE8EE;
  --lift:0 0 0 1px rgba(42,23,48,.02), 0 2px 6px rgba(42,23,48,.04), 0 4px 8px rgba(42,23,48,.1);
  --btn:#5A2D5E;
  --on-btn:#FFFFFF;
  --head:#2A1730;
  --wa:#8F5893;
  --wa-hover:#7E4682;
  --on-wa:#FFFFFF;
  --brand:#A069A0;
  --brand-ink:#7E4682;
  --brand-soft:#F4EAF4;
  --sun:#FFF732;
  --sun-soft:#FFF8CC;
  --danger:#C62828;
  /* card tints, all from the logo: orchid (the main one), lavender, butter and blush.
     The HTML still names them by their old tones (mint, sky, peach, lilac), so the data-tone selectors map them. */
  --p-orchid:#F4EAF4;
  --p-lavender:#ECE7F7;
  --p-butter:#FFF8CC;
  --p-blush:#F9E7EF;
  --glass:rgba(255,255,255,.72);
  --glass-line:rgba(10,10,10,.08);
  --card:rgba(255,255,255,.86);
  --shadow:0 10px 30px -14px rgba(42,23,48,.22);
  --font:"IBM Plex Sans Arabic",ui-sans-serif,system-ui,"Segoe UI",Tahoma,sans-serif;
  --z-float:20; --z-header:30;
  color-scheme:light only;
}
/* the owner wants the site white on every phone, so there is no dark theme: it stays light even when the phone is in dark mode */
*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:88px}
body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--font); font-size:18px; line-height:1.8; -webkit-font-smoothing:antialiased; overflow-x:hidden}
.wrap{max-width:1180px; margin-inline:auto; padding-inline:max(20px, env(safe-area-inset-left,0px))}
h1,h2,h3{margin:0; font-weight:600; line-height:1.4; text-wrap:balance; letter-spacing:-.01em}
p{margin:0; text-wrap:pretty}
a{color:inherit}
:focus-visible{outline:2px solid var(--brand); outline-offset:3px; border-radius:10px}
/* the parts the browser draws (selected text, the caret, checkboxes) take the logo colours too */
::selection{background:var(--sun); color:var(--head)}
html{accent-color:var(--brand-ink); caret-color:var(--brand-ink)}
[hidden]{display:none!important}
.skip{position:absolute; inset-inline-start:16px; top:-60px; z-index:100; background:var(--btn); color:var(--on-btn); padding:10px 16px; border-radius:999px; font-weight:600; text-decoration:none}
.skip:focus{top:12px}

/* top bar: full width, solid white, sitting on one hairline */
.nav-shell{position:fixed; top:0; inset-inline:0; z-index:var(--z-header); background:var(--bg); border-bottom:1px solid var(--line-soft)}
/* logo at the start, links in the true centre, actions at the end */
.nav{position:relative; max-width:1180px; height:76px; margin-inline:auto; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; padding-inline:max(20px, env(safe-area-inset-left,0px))}
.nav .brand{justify-self:start}
.nav-act{justify-self:end}
.brand{display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink); font-weight:700; font-size:20px; letter-spacing:-.01em}
.nav-links{display:flex; align-items:center; gap:4px}
.nav-links a{font-size:15px; font-weight:600; color:var(--muted); text-decoration:none; padding:8px 13px; border-radius:999px; transition:color .2s, background .2s}
.nav-links a:hover{color:var(--ink); background:var(--soft)}
.nav-links a.on{color:var(--ink); background:var(--soft)}
.nav-act{display:flex; align-items:center; gap:8px}
.brand, .nav-links a, .nav-act .btn{white-space:nowrap}
/* زر القائمة يظهر بس في الشاشات الصغيرة، لأن روابط التنقل تختفي فيها */
.nav-menu{display:none; flex:none; width:40px; height:40px; align-items:center; justify-content:center; padding:0; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--ink); cursor:pointer; transition:background .2s}
.nav-menu:hover{background:var(--soft)}
.nav-menu .i-close, .nav.open .nav-menu .i-open{display:none}
.nav.open .nav-menu .i-close{display:block}
.nav-links .menu-only{display:none}

/* buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:9px; font:600 17px/1 var(--font); min-height:54px; padding:16px 28px; border-radius:12px; text-decoration:none; cursor:pointer; border:1px solid transparent; transition:transform .2s cubic-bezier(.2,.7,.2,1), opacity .2s, background .2s, border-color .2s}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--btn); color:var(--on-btn)}
.btn-primary:hover{opacity:.86}
.btn-primary:disabled{opacity:.4; cursor:default}
.btn-ghost{background:var(--bg); color:var(--ink); border-color:var(--ink)}
.btn-ghost:hover{background:var(--soft)}
.btn-wa{background:var(--wa); color:var(--on-wa)}
.btn-wa:hover{background:var(--wa-hover)}
.btn-sm{min-height:44px; padding:11px 18px; font-size:15px; border-radius:10px}
.btn svg{flex:none}

/* hero */
.hero{position:relative; padding:calc(76px + clamp(40px,5vw,72px)) 0 clamp(56px,7vw,88px); overflow:hidden; isolation:isolate; background:var(--bg)}
.hero-grid{display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,72px); align-items:center}
.hero-text{min-width:0}
.hero h1{font-size:clamp(36px, 4.4vw, 60px); font-weight:700; line-height:1.2; letter-spacing:-.02em; color:var(--head)}
/* the key words get the logo's yellow as a highlighter stroke under the purple (an underline is painted beneath the letters) */
.hero h1 span{color:var(--brand-ink); text-decoration:underline; text-decoration-color:var(--sun); text-decoration-thickness:.3em; text-underline-offset:-.12em; text-decoration-skip-ink:none}
.hero h1 .h1-more{display:block; margin-top:14px; font-size:.5em; font-weight:600; line-height:1.5; letter-spacing:0; color:var(--ink); text-decoration:none}
.hero-lede{font-size:clamp(18px,1.6vw,21px); color:var(--ink-2); max-width:30em; margin-top:20px; line-height:1.8}
.hero-cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:28px}
.wa-i{flex:none}
/* trust row: one big figure over one short line, split by hairlines (the "guest favourite" rating band) */
.trust{list-style:none; margin:32px 0 0; padding:22px 0 0; border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(4,minmax(0,1fr))}
.trust li{display:flex; flex-direction:column; gap:2px; padding-inline:12px; border-inline-start:1px solid var(--line-soft); min-width:0}
.trust li:first-child{border-inline-start:0}
.trust b{font-size:clamp(20px,1.75vw,25px); font-weight:700; line-height:1.3; letter-spacing:-.01em; color:var(--ink); white-space:nowrap}
.trust span{font-size:14px; font-weight:500; line-height:1.5; color:var(--muted)}
.trust .num{color:inherit; user-select:text}
@media (min-width: 981px){ .trust li:first-child{padding-inline-start:0} }
/* small laptops and tablets in landscape: four columns get too narrow, so two by two */
@media (min-width: 981px) and (max-width: 1279px){
  .trust{grid-template-columns:1fr 1fr; padding-top:4px}
  .trust li{padding:14px 12px; border-inline-start:0}
  .trust li:nth-child(odd){padding-inline-start:0}
  .trust li:nth-child(even){border-inline-start:1px solid var(--line-soft)}
  .trust li:nth-child(n+3){border-top:1px solid var(--line-soft)}
}

/* hero showcase */
.show{margin:64px auto 0; max-width:980px; border-radius:28px; background:var(--p-lavender); padding:clamp(18px,3vw,36px); text-align:start; position:relative; overflow:hidden}
.show-in{display:grid; grid-template-columns:1.1fr .9fr; gap:18px; align-items:start}
.mock{background:var(--card); border-radius:16px; padding:18px; min-width:0; box-shadow:var(--lift)}
.mock-head{display:flex; align-items:center; gap:10px; margin-bottom:14px}
.mock-av{width:34px; height:34px; border-radius:11px; display:grid; place-items:center; flex:none}
.mock-head b{font-size:15px; display:block; line-height:1.3}
.mock-head small{font-size:13px; color:var(--ink-2)}
.ex{margin-inline-start:auto; font-size:13px; color:var(--ink-2); background:var(--soft); border-radius:999px; padding:2px 10px}
.mb{max-width:90%; padding:9px 14px; border-radius:16px; font-size:14px; line-height:1.75; margin-bottom:8px}
.mb.me{margin-inline-start:auto; background:var(--btn); color:var(--on-btn); border-start-end-radius:5px; width:fit-content}
.mb.bot{background:var(--soft); border-start-start-radius:5px; width:fit-content}
.kv{display:grid; grid-template-columns:1fr 1fr; gap:12px 14px; margin:0}
.kv dt{font-size:12px; color:var(--muted)}
.kv dd{margin:0; font-weight:600; font-size:14.5px}
.mini-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
.mini-list li{display:flex; align-items:center; gap:10px; font-size:14px; padding:10px 12px; border-radius:12px; background:var(--soft)}
.mini-list .ic{width:28px; height:28px; border-radius:9px; display:grid; place-items:center; flex:none; background:var(--bg); color:var(--brand)}
.mini-list .st{margin-inline-start:auto; font-size:12px; color:var(--brand-ink); font-weight:600}
.bar{height:6px; border-radius:6px; background:var(--soft-2); overflow:hidden; margin-top:12px}
.bar i{display:block; height:100%; width:68%; border-radius:6px; background:var(--brand)}

/* sections */
section{padding-block:clamp(56px,7vw,96px)}
main > section + section:not(.cta){border-top:1px solid var(--line-soft)}
.sec-head{max-width:46em; margin-bottom:32px}
.sec-head.center{text-align:center; margin-inline:auto}
.sec-head h2{font-size:clamp(26px,2.8vw,34px); font-weight:700; letter-spacing:-.015em; color:var(--head)}
.sec-head p{color:var(--muted); font-size:17px; margin-top:12px}
.center .sec-head p, .sec-head.center p{margin-inline:auto}

/* tabbed feature (steps) */
.feat .tabs{order:-1}
.feat{display:grid; grid-template-columns:.75fr 1.25fr; gap:clamp(28px,5vw,72px); align-items:center}
.panel-stage{position:relative; border-radius:20px; padding:clamp(18px,3vw,40px); min-height:440px; display:grid; align-items:center; overflow:hidden; transition:background .5s}
.panel-stage[data-tone="sky"]{background:var(--p-lavender)}
.panel-stage[data-tone="mint"]{background:var(--p-orchid)}
.panel-stage[data-tone="peach"]{background:var(--p-butter)}
.panel-stage[data-tone="lilac"]{background:var(--p-blush)}
.panel{grid-area:1/1; opacity:0; transform:translateY(12px) scale(.985); transition:opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1); pointer-events:none}
.panel.on{opacity:1; transform:none; pointer-events:auto}
.panel .mock{max-width:460px; margin-inline:auto}
.tabs{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.tab{position:relative}
.tab + .tab{border-top:1px solid var(--line-soft)}
.tab button{all:unset; box-sizing:border-box; width:100%; cursor:pointer; display:block; padding:22px 0}
.tab h3{font-size:22px; font-weight:600; color:var(--muted); display:flex; align-items:center; gap:12px; transition:color .3s}
.tab h3 .n{font-size:14px; font-weight:700; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--soft-2); color:var(--ink-2); transition:background .3s, color .3s}
.tab p{margin:6px 0 0; padding-inline-start:42px; font-size:16px; line-height:1.6; color:var(--muted); transition:color .3s}
.tab[aria-selected="true"] h3{color:var(--ink)}
.tab[aria-selected="true"] h3 .n{background:var(--btn); color:var(--on-btn)}
.tab[aria-selected="true"] p{color:var(--ink-2)}
.tab::after{content:""; position:absolute; bottom:0; inset-inline-start:42px; height:3px; border-radius:3px; width:0; background:var(--brand)}
.tab[aria-selected="true"]::after{animation:prog 6s linear forwards}
.tabs.paused .tab[aria-selected="true"]::after{animation:none; width:48px}
@keyframes prog{from{width:0}to{width:calc(100% - 42px)}}

/* chat: Teamhayak's own conversation surface (glass card, squircle brand mark, black pill bubbles) */
.chatbox{--av:38px;
  width:100%; max-width:520px; justify-self:center; position:relative; display:flex; flex-direction:column; border-radius:28px; overflow:hidden; color:var(--ink);
  background:color-mix(in srgb, var(--bg) 88%, transparent); border:1px solid var(--line-soft);
  backdrop-filter:saturate(1.4) blur(20px); -webkit-backdrop-filter:saturate(1.4) blur(20px);
  box-shadow:var(--lift)} /* taste-skill-ignore: chat interface (data-ui) */
.chat-head{display:flex; align-items:center; gap:12px; padding:16px 18px 14px; border-bottom:1px solid var(--line)} /* taste-skill-ignore: chat interface (data-ui) */
.chat-avatar{width:44px; height:44px; flex:none; filter:drop-shadow(0 6px 10px rgba(20,30,40,.16))} /* taste-skill-ignore: chat interface (data-ui) */
.chat-avatar svg, .chat-avatar img{display:block; width:100%; height:100%}
.chat-id{min-width:0}
.chat-title{display:flex; align-items:center; gap:8px; font-size:17px; font-weight:700; line-height:1.3; letter-spacing:-.01em}
.chat-tag{font-size:11.5px; font-weight:600; line-height:1.6; color:var(--brand-ink); background:var(--brand-soft); padding:1px 9px; border-radius:999px; letter-spacing:0}
.chat-sub{display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted); line-height:1.5; margin-top:3px}
.chat-sub::before{content:""; flex:none; width:7px; height:7px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent)} /* taste-skill-ignore: chat interface (data-ui) */
.chat-sub.is-typing{color:var(--brand-ink)}
.chat-sub.is-typing::before{animation:blink 1.2s infinite}
.chat-acts{margin-inline-start:auto; display:flex; gap:8px; flex:none}
.chat-call{width:40px; height:40px; flex:none; border:0; padding:0; cursor:pointer; border-radius:13px; display:grid; place-items:center; color:var(--ink); background:var(--soft); text-decoration:none; transition:background .2s, color .2s, transform .2s, box-shadow .3s} /* taste-skill-ignore: chat interface (data-ui) */
.chat-call:hover{background:var(--soft-2)}
.chat-call:active{transform:scale(.94)}
.preview-note{margin:12px 16px 0; font-size:12.5px; line-height:1.6; color:var(--brand-ink); background:var(--brand-soft); border-radius:12px; padding:8px 12px; text-align:center}
.chat-log{height:min(52vh, 452px); overflow-y:auto; padding:16px 18px 12px; display:flex; flex-direction:column; gap:6px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--line) transparent}
.chat-log > *{flex-shrink:0}
.day{align-self:stretch; display:flex; align-items:center; gap:12px; font-size:12px; font-weight:500; line-height:1.4; color:var(--muted); margin:0 0 6px}
.day::before,.day::after{content:""; flex:1; height:1px; background:var(--line)} /* taste-skill-ignore: chat interface (data-ui) */
.enc{align-self:center; display:flex; align-items:center; gap:8px; max-width:94%; font-size:12.5px; line-height:1.6; color:var(--muted); background:var(--soft); padding:8px 14px; border-radius:14px; margin:0 0 10px}
.enc svg{flex:none; color:var(--brand)}
.bubble{position:relative; max-width:82%; padding:10px 15px; border-radius:20px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:16px; line-height:1.75; margin-top:4px; animation:pop .3s cubic-bezier(.2,.7,.2,1) both}
.bubble.bot{align-self:flex-start; background:var(--soft); color:var(--ink); border-start-start-radius:6px; margin-inline-start:var(--av); max-width:calc(88% - var(--av))}
.bubble.bot::before{content:""; position:absolute; top:0; inset-inline-start:calc(var(--av) * -1); width:calc(var(--av) - 10px); height:calc(var(--av) - 10px); filter:drop-shadow(0 4px 6px rgba(20,30,40,.14)); /* taste-skill-ignore: chat interface (data-ui) */
  background:url("/logo.svg") center/contain no-repeat}
.bubble.bot + .bubble.bot::before{display:none}
.bubble.me{align-self:flex-end; background:var(--btn); color:var(--on-btn); border-start-end-radius:6px}
.bubble[data-time]::after{content:attr(data-time); display:block; text-align:end; font-size:11px; line-height:1; margin-top:6px; opacity:.5; white-space:nowrap}
.bubble.err{align-self:center; max-width:92%; text-align:center; font-size:13.5px; color:var(--danger); background:color-mix(in srgb, var(--danger) 8%, var(--bg)); border:1px solid color-mix(in srgb, var(--danger) 22%, transparent); border-radius:14px}
.bubble.err::after{display:none}
@keyframes pop{from{opacity:0; transform:translateY(8px) scale(.98)}to{opacity:1; transform:none}}
.typing{display:inline-flex; gap:5px; align-items:center; padding:15px 16px}
.typing::after{display:none!important}
.typing i{width:7px; height:7px; border-radius:50%; background:var(--brand); animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}
.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
.quick{display:flex; flex-wrap:wrap; gap:8px; padding:8px 0 2px; margin-inline-start:var(--av)}
.quick button,.quick a{display:inline-flex; align-items:center; gap:8px; font:500 14px/1.3 var(--font); padding:9px 16px; border-radius:999px; border:1px solid var(--line); background:var(--bg); color:var(--ink); cursor:pointer; text-decoration:none; transition:border-color .2s, background .2s, opacity .2s, transform .2s cubic-bezier(.2,.7,.2,1)}
.quick button:hover{border-color:var(--ink-2)}
.quick a{background:var(--btn); color:var(--on-btn); border-color:var(--btn); font-weight:600}
.quick a:hover{opacity:.86}
.quick button:active,.quick a:active{transform:scale(.97)}
.chat-form{display:flex; gap:8px; align-items:flex-end; margin:6px 14px 0; padding:6px; padding-inline-start:18px; background:var(--soft); border:1px solid transparent; border-radius:26px; transition:border-color .2s, background .2s, box-shadow .2s} /* taste-skill-ignore: chat interface (data-ui) */
.chat-form:focus-within{background:var(--bg); border-color:color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow:0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent)} /* taste-skill-ignore: chat interface (data-ui) */
.chat-form textarea{flex:1; min-width:0; resize:none; max-height:120px; font:15.5px/1.5 var(--font); color:var(--ink); background:transparent; border:0; padding:8px 0}
.chat-form textarea::placeholder{color:var(--faint)}
.chat-form textarea:focus{outline:none}
.send{width:40px; height:40px; border-radius:50%; border:0; background:var(--btn); color:var(--on-btn); display:grid; place-items:center; cursor:pointer; flex:none; transition:transform .2s, opacity .2s}
.send:hover{opacity:.86}
.send:active{transform:scale(.92)}
.send:disabled,.chat-form:has(textarea:placeholder-shown) .send{opacity:.28; cursor:default; transform:none}
.chat-foot{display:flex; flex-direction:column; align-items:center; gap:8px; padding:10px 14px 12px; font-size:12px; color:var(--muted)}
/* the two options under the box: start over, or reach the team */
.chat-tools{display:flex; flex-wrap:wrap; justify-content:center; gap:8px; width:100%}
.chat-tool{display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:1 1 auto; font:600 13.5px/1.2 var(--font); color:var(--ink); background:var(--soft); border:0; border-radius:999px; padding:10px 16px; cursor:pointer; text-decoration:none; white-space:nowrap; transition:background .2s, transform .2s, opacity .2s}
.chat-tool:hover{background:var(--soft-2)}
.chat-tool:active{transform:scale(.97)}
.chat-tool:disabled{opacity:.4; cursor:default; transform:none}
.chat-tool svg{flex:none; color:var(--brand-ink)}
.foot-req{display:inline-flex; align-items:center; gap:6px; font:600 12.5px/1 var(--font); color:var(--ink); background:none; border:0; padding:8px 0; cursor:pointer; transition:color .2s}
.foot-req:hover{color:var(--brand-ink)}
.foot-req svg{transition:transform .2s}
.foot-req:hover svg{transform:translateX(-3px)}
.linkish{font:600 12.5px/1.4 var(--font); background:none; border:0; padding:0; color:var(--brand-ink); cursor:pointer; text-decoration:underline; text-underline-offset:3px}

/* mascot: Teamhayak persona that acts out the conversation, with a real transparent background.
   Each clip is one MP4 holding the colour frame on top and its alpha mask below;
   a small WebGL canvas merges them. The transparent poster shows until the first frame. */
/* the hero's doctor card: he stands on a mint card, and his speech bubble is the button that opens the chat */
.hero-doc{--mw:clamp(140px, 13vw, 175px); position:relative; width:100%; max-width:460px; min-width:0; justify-self:center; aspect-ratio:5/6; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:14px; padding:28px 20px 24px; border-radius:28px; background:var(--p-orchid); cursor:pointer}
/* a plain button under the doctor, so people see straight away where to tap */
.doc-cta{flex:none; min-width:min(240px, 100%); margin-top:4px; box-shadow:var(--lift)}
.doc-cta svg{flex:none}
.hero-doc:hover .doc-cta{opacity:.88}
.mascot{position:relative; flex:none; width:var(--mw); pointer-events:none; user-select:none; -webkit-user-select:none}
.mascot-fig{position:relative; aspect-ratio:256/604}
.mascot-poster,.mascot-cv{position:absolute; inset:0; width:100%; height:100%; display:block; transition:opacity .3s ease}
.mascot-cv{opacity:0}
.mascot.live .mascot-cv{opacity:1}
.mascot.live .mascot-poster{opacity:0}
.mascot-v{position:absolute; left:0; top:0; width:100%; height:100%; opacity:0; pointer-events:none}
.mascot-say{position:relative; z-index:2; flex:none; max-width:min(260px, 100%); margin:0; padding:10px 18px; border-radius:18px; background:var(--bg); color:var(--ink); border:1px solid var(--line); box-shadow:var(--lift); font:600 15.5px/1.5 var(--font); text-align:center; cursor:pointer; transition:border-color .2s; animation:say .4s cubic-bezier(.2,.7,.2,1) both}
.mascot-say::after{content:""; position:absolute; top:100%; left:50%; width:11px; height:11px; background:inherit; border:inherit; border-top:0; border-left:0; transform:translate(-50%,-5px) rotate(45deg)}
.hero-doc:hover .mascot-say, .mascot-say:focus-visible{border-color:var(--ink)}
@keyframes say{from{opacity:0; transform:translateY(6px) scale(.96)}to{opacity:1; transform:none}}
@media (min-width: 981px){
  .hero-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
}
@media (min-width: 981px) and (max-width: 1179px){
  .hero-doc{--mw:clamp(130px, 13vw, 155px)}
}
@media (max-width: 980px){
  .hero-doc{max-width:420px}
}
@media (max-width: 640px){
  .hero-doc{--mw:120px; border-radius:22px; padding:22px 16px 20px; aspect-ratio:auto}
  .doc-cta{width:100%}
  .mascot-say{font-size:14.5px; padding:8px 14px}
}

/* request card */
.req{align-self:stretch; margin-top:8px; border:1px solid var(--line); border-radius:20px; background:var(--bg); color:var(--ink); overflow:hidden; animation:pop .3s both}
.req-head{background:var(--p-orchid); padding:14px 18px; display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap}
.req-head h3{font-size:16px}
.req-head span{font-size:12.5px; color:var(--muted)}
.req form{padding:18px; display:grid; grid-template-columns:1fr 1fr; gap:14px}
.field{display:flex; flex-direction:column; gap:6px; min-width:0}
.field.full{grid-column:1/-1}
.field label{font-size:13.5px; font-weight:600}
.field .opt{font-weight:400; color:var(--muted)}
.field input,.field select,.field textarea{font:15px/1.5 var(--font); color:var(--ink); background:var(--soft); border:1px solid transparent; border-radius:12px; padding:11px 13px; width:100%; transition:border-color .2s, background .2s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none; border-color:var(--ink-2); background:var(--bg)}
.field textarea{min-height:76px; resize:vertical}
.ltr{direction:ltr; text-align:right}
.files{display:flex; flex-direction:column; gap:6px}
.file-pick{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.file-pick label.btn{padding:10px 18px; font-size:15px}
.req .btn{min-height:46px}
.file-list{list-style:none; margin:0; padding:0; font-size:13.5px; color:var(--muted); display:flex; flex-direction:column; gap:4px}
.consent{grid-column:1/-1; display:flex; gap:10px; align-items:flex-start; font-size:13.5px; line-height:1.7}
.consent input{margin-top:5px; width:18px; height:18px; accent-color:var(--ink); flex:none}
.req-actions{grid-column:1/-1; display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.req-err{font-size:14px; color:var(--danger); font-weight:600}
.req-done{padding:18px; display:flex; gap:12px; align-items:flex-start}
.req-done svg{color:var(--brand); flex:none; margin-top:2px}
.req-done b{display:block; font-size:16px}
.req-done p{font-size:14.5px; color:var(--muted)}

/* hospitals */
.chips-scroll{overflow-x:auto; margin-bottom:28px; scrollbar-width:none}
.chips-scroll::-webkit-scrollbar{display:none}
.chips{display:flex; gap:8px; width:max-content}
.chip{font:500 14px/1 var(--font); padding:11px 18px; border-radius:999px; border:1px solid var(--line); background:var(--bg); color:var(--muted); cursor:pointer; white-space:nowrap; transition:color .2s, background .2s, border-color .2s}
.chip:hover{color:var(--ink); border-color:var(--ink-2)}
.chip[aria-pressed="true"]{background:var(--btn); color:var(--on-btn); border-color:var(--btn)}
/* photo-first listing cards: rounded photo with a floating badge, then a few lines of meta on the white canvas */
/* five hospitals: three per row on desktop (3 + 2) reads better than four and one left alone */
.h-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:36px 24px}
.h-card{display:flex; flex-direction:column; gap:6px; min-width:0}
/* the cover: a real photo where an honest one exists, otherwise the hospital's name set large on a flat field */
.h-cover{position:relative; aspect-ratio:4/3; margin:0 0 8px; border-radius:20px; background:var(--p-orchid); overflow:hidden}
.h-cover img{display:block; width:100%; height:100%; object-fit:cover; transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.h-card:hover .h-cover img{transform:scale(1.03)}
/* a second photo that fades in on hover; touch screens have no hover, so there the two photos take turns on their own */
.h-cover .h-alt{position:absolute; inset:0; opacity:0; transition:opacity .5s ease, transform .8s cubic-bezier(.2,.7,.2,1)}
.h-card:hover .h-cover .h-alt, .h-card:focus-within .h-cover .h-alt{opacity:1}
@media (hover: none){
  .h-cover .h-alt{animation:alt-swap 8s ease-in-out infinite}
}
@keyframes alt-swap{0%,40%{opacity:0}50%,90%{opacity:1}100%{opacity:0}}
.h-cover.type{display:grid; place-items:end start; padding:22px; background:var(--p-lavender)}
.h-card:nth-child(3) .h-cover.type{background:var(--p-butter)}
.h-cover.type .h-en{direction:ltr; font-size:clamp(24px,2.3vw,30px); font-weight:700; line-height:1.1; letter-spacing:-.02em; color:var(--ink); text-align:left; max-width:9em}
.h-badge{position:absolute; top:14px; inset-inline-start:14px; max-width:calc(100% - 28px); padding:6px 12px; border-radius:999px; background:var(--bg); color:var(--ink); font-size:13.5px; font-weight:600; line-height:1.3; box-shadow:var(--lift)}
.h-name{font-size:18px; font-weight:700; line-height:1.45}
.h-area{display:flex; align-items:center; gap:6px; font-size:14.5px; color:var(--muted)}
.h-area svg{flex:none}
.h-points{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; flex:1}
.h-points li{font-size:15px; line-height:1.6; color:var(--ink-2)}
.h-kicker{font-size:13.5px; font-weight:600; color:var(--brand-ink)}
.h-price{font-size:15px; color:var(--ink-2); margin-top:2px}
.h-price b{color:var(--ink); font-weight:700}
.h-card .btn{align-self:stretch; margin-top:12px; min-height:48px; padding:12px 16px; font-size:15.5px}
.h-card .btn-ghost .wa-i{color:var(--wa)}
.ask-face{flex:none; width:26px; height:26px; border-radius:50%; background:var(--p-orchid); object-fit:cover; margin-block:-4px}
.fineprint{font-size:14px; color:var(--muted); margin-top:18px}

/* services */
.svc{display:block}
.svc .sec-head{margin-bottom:36px}
.svc-list{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px}
.svc-list li{border:1px solid var(--line); border-radius:16px; padding:24px; display:flex; flex-direction:column; gap:28px; transition:box-shadow .3s, border-color .3s}
.svc-list li:hover{box-shadow:var(--lift); border-color:transparent}
.svc-list svg{color:var(--ink)}
.svc-list h3{font-size:19px; font-weight:700}
/* found photographs: square-ish crop, one radius, a plain caption under */
.photo{margin:0; min-width:0}
.photo img{display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:28px; background:var(--soft)}
.photo figcaption{font-size:14px; color:var(--muted); margin-top:12px}

/* about */
/* about: the owner's own words. Intro beside the heading, six numbered steps as tiles, four reasons with icons, then the note */
.about{display:block}
.about-intro{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:20px clamp(32px,6vw,88px); align-items:start}
.about-intro h2{font-size:clamp(26px,2.8vw,34px); font-weight:700; letter-spacing:-.015em; color:var(--head)}
.about-text{display:grid; gap:14px}
.about-text p{color:var(--ink-2); font-size:18px; line-height:1.9}
.about-text .about-lede{color:var(--ink); font-size:clamp(19px,1.8vw,22px); font-weight:500; line-height:1.7}
.about-text .about-strong{color:var(--brand-ink); font-weight:700}
.about-h{margin:clamp(48px,6vw,72px) 0 24px; font-size:clamp(22px,2.2vw,26px); font-weight:700; color:var(--head)}
.about-steps{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px}
.about-steps li{border:1px solid var(--line); border-radius:16px; padding:24px; display:flex; flex-direction:column; gap:8px; transition:box-shadow .3s, border-color .3s}
.about-steps li:hover{box-shadow:var(--lift); border-color:transparent}
.about-steps .n{width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--btn); color:var(--on-btn); font-size:15px; font-weight:700; margin-bottom:8px}
.about-steps h4,.about-why h4{margin:0; font-size:19px; font-weight:700; line-height:1.45; color:var(--ink)}
.about-steps p,.about-why p{font-size:16px; line-height:1.85; color:var(--ink-2)}
.about-why{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--line)}
.about-why li{display:flex; gap:16px; align-items:flex-start; padding:24px 0; border-bottom:1px solid var(--line)}
.about-why li:nth-child(odd){padding-inline-end:32px}
.about-why li:nth-child(even){padding-inline-start:32px; border-inline-start:1px solid var(--line-soft)}
.about-why svg{flex:none; color:var(--brand-ink); margin-top:2px}
.about-why h4{margin-bottom:4px}
.about-note{display:flex; gap:14px; align-items:flex-start; margin-top:40px; padding:22px 24px; border-radius:16px; background:var(--p-butter)}
.about-note svg{flex:none; color:var(--ink); margin-top:3px}
.about-note p{font-size:16.5px; line-height:1.85; color:var(--ink-2)}
.about-note .about-note-t{font-weight:700; color:var(--ink); margin-bottom:2px}
.about-end{margin-top:32px; font-size:clamp(19px,1.8vw,22px); font-weight:700; color:var(--ink); text-align:center}
@media (max-width: 980px){
  .about-intro{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .about-why{grid-template-columns:1fr}
  .about-why li:nth-child(n){padding-inline:0; border-inline-start:0}
  .about-steps li{padding:20px}
  .about-note{padding:18px}
}

/* faq */
.notice{margin-top:16px; padding:18px 22px; border-radius:20px; border:1px solid var(--line); font-size:15px; color:var(--ink-2); line-height:1.9}
.notice strong{color:var(--ink)}
.faq-wrap{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(32px,6vw,88px); align-items:start}
.faq{display:grid; min-width:0; border-top:1px solid var(--line)}
@media (max-width: 980px){ .faq-wrap{grid-template-columns:1fr; gap:0} }
.faq details{border-bottom:1px solid var(--line)}
.faq summary{font-weight:600; font-size:18px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; padding-block:22px; transition:color .2s}
.faq summary:hover{color:var(--brand-ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:""; flex:none; width:14px; height:14px; background:linear-gradient(currentColor,currentColor) center/14px 1.6px no-repeat, linear-gradient(currentColor,currentColor) center/1.6px 14px no-repeat; transition:transform .25s} /* taste-skill-ignore: plus sign drawn with two bars, not a gradient fill */
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{color:var(--ink-2); padding:0 0 22px; font-size:18px; line-height:1.9; max-width:44em}

/* closing cta */
.cta{text-align:center; padding-top:0}
/* the closing card is the logo itself: a purple box with the heading in its yellow. Text and buttons flip to light on it */
.cta-card{background:var(--brand-ink); color:var(--on-btn); border-radius:28px; padding:clamp(44px,6vw,80px) clamp(20px,4vw,48px)}
.cta h2{font-size:clamp(28px,3.4vw,40px); font-weight:700; letter-spacing:-.015em; color:var(--sun)}
.cta p{color:var(--brand-soft); font-size:17px; margin-top:14px}
.cta-card a.num{color:var(--on-btn); text-decoration-color:currentColor}
.cta-card .btn-primary{background:var(--sun); color:var(--head)}
.cta-card .btn-wa{background:var(--bg); color:var(--btn)}
.cta-card .btn-wa:hover{background:var(--brand-soft)}
.cta-card :focus-visible{outline-color:var(--sun)}
.cta-card .safe{color:var(--brand-soft)}
.cta-card .safe li::before{background:var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A2D5E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat}
.cta-btns{display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:30px}
/* سطر الثقة تحت الأزرار: الاستشارة مجانية، ما تدفع قبل السفر، الدفع للمستشفى */
.safe{list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px 18px; font-size:14px; font-weight:500; color:var(--ink-2)}
.safe li{display:inline-flex; align-items:center; gap:6px}
.safe li::before{content:""; width:16px; height:16px; flex:none; border-radius:50%; background:var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat}
.cta .safe{justify-content:center; margin-top:18px}
.aside-card .safe{margin-top:14px; gap:8px; font-size:14px}
.aside-card .form-ask{margin:12px 0 0; font-size:15px; color:var(--ink-2)}
.form-ask a{color:var(--brand-ink); font-weight:600; text-underline-offset:3px}

/* footer: the name returns at full size, then contact, links and credits */
footer{background:var(--soft); border-top:1px solid var(--line-soft); padding-block:clamp(48px,6vw,72px) calc(32px + env(safe-area-inset-bottom,0px)); font-size:14px; color:var(--muted)}
/* three tidy columns: the name, the page links, how to reach us; the legal line runs underneath on one hairline */
.foot-grid{display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); gap:36px 48px}
.foot-brand .brand{gap:12px}
/* the owner's logo (2026-11-30): yellow "Teamhayak" on a purple box in the header; the full logo with its two lines in the footer */
.brand-logo{display:block; height:40px; width:auto}
.foot-logo{display:block; width:min(300px, 100%); height:auto}
/* phones: the header has room only for a square, so it shows the purple "T" icon (picture source), at the old icon's 32px */
@media (max-width: 640px){ .brand-logo{height:32px} .foot-logo{width:min(260px, 100%)} }
.foot-name{font-size:clamp(24px,2.4vw,30px); font-weight:700; line-height:1.2; letter-spacing:-.02em; color:var(--ink)}
.foot-h{margin:0 0 16px; font-size:15px; font-weight:700; color:var(--ink)}
.foot-col ul{list-style:none; margin:0; padding:0; display:grid; gap:12px; font-size:16px; line-height:1.5; color:var(--ink-2)}
.foot-col .num{font-size:16px}
.foot a{text-decoration:none; color:var(--ink-2); transition:color .2s}
.foot a:hover{color:var(--ink)}
.foot-col a:not(.num):hover{text-decoration:underline; text-underline-offset:4px}
.foot-legal{margin-top:clamp(36px,4vw,56px); padding-top:22px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:8px 32px; font-size:14px; color:var(--muted)}
@media (max-width: 640px){
  .foot-grid{grid-template-columns:1fr 1fr; gap:32px 20px}
  .foot-brand{grid-column:1/-1}
  .foot-legal{flex-direction:column}
}
.foot-legal a{color:inherit; text-decoration:underline; text-underline-offset:3px}
.credits summary{cursor:pointer; width:fit-content; text-decoration:underline; text-underline-offset:3px}
.credits p{margin-top:6px; max-width:60ch; line-height:1.8}
.num{direction:ltr; unicode-bidi:isolate; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; user-select:all; white-space:nowrap}
a.num{text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; text-decoration-color:var(--faint); user-select:text}
a.num:hover{text-decoration-color:currentColor}
.foot a.num{color:var(--ink)}

/* floating ask button */
.ask-float{position:fixed; bottom:calc(18px + env(safe-area-inset-bottom,0px)); left:calc(18px + env(safe-area-inset-left,0px)); z-index:var(--z-float); width:62px; height:62px; display:grid; place-items:center; background:var(--wa); color:var(--on-wa); border-radius:50%; text-decoration:none; box-shadow:0 10px 24px -8px rgba(90,45,94,.45); transition:transform .3s, opacity .3s, background .2s}
.ask-float:hover{background:var(--wa-hover)}
.ask-float.away{opacity:0; transform:translateY(16px); pointer-events:none}

/* chat launcher + window: the logo button sits just above the WhatsApp float and opens the chat;
   a corner window on wider screens, the whole screen on phones. Both floats step away while it is open. */
.chat-fab{position:fixed; bottom:calc(18px + 62px + 12px + env(safe-area-inset-bottom,0px)); left:calc(18px + env(safe-area-inset-left,0px)); z-index:var(--z-float); width:62px; height:62px; display:grid; place-items:center; padding:0; border:2px solid var(--bg); border-radius:50%; background:var(--p-orchid); cursor:pointer; box-shadow:var(--lift); transition:transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s}
.chat-fab img{width:100%; height:100%; border-radius:50%; object-fit:cover; display:block}
.chat-fab:hover{transform:translateY(-2px)}
.chat-fab::after{content:""; position:absolute; top:3px; right:3px; width:13px; height:13px; border-radius:50%; background:var(--brand); border:2px solid var(--bg)}
.chat-fab.away{opacity:0; transform:translateY(16px); pointer-events:none}
.chat-fab.hero-away, .ask-float.hero-away{opacity:0; transform:translateY(16px); pointer-events:none; visibility:hidden; transition:transform .3s, opacity .3s, visibility 0s .3s}
.chat-pop{position:fixed; z-index:50; left:calc(18px + env(safe-area-inset-left,0px)); bottom:calc(18px + env(safe-area-inset-bottom,0px)); width:min(400px, calc(100vw - 36px)); height:min(680px, calc(100dvh - 36px)); display:flex; visibility:hidden; opacity:0; transform:translateY(16px) scale(.98); transform-origin:bottom left; transition:opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s .3s}
.chat-pop.open{visibility:visible; opacity:1; transform:none; transition:opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s}
.chat-pop .chatbox{height:100%; max-width:none; background:color-mix(in srgb, var(--bg) 95%, transparent); box-shadow:0 0 0 1px rgba(0,0,0,.03), 0 18px 48px -12px rgba(0,0,0,.28)} /* taste-skill-ignore: chat interface (data-ui) */
.chat-pop .chat-log{flex:1 1 auto; height:auto; min-height:0}
@media (max-width: 640px){
  .chat-pop{inset:0; width:auto; height:auto; transform-origin:bottom center}
  .chat-pop .chatbox{border-radius:0; border:0; box-shadow:none; background:var(--bg); padding-bottom:env(safe-area-inset-bottom,0px)}
  .chat-pop .chat-head{padding-top:calc(10px + env(safe-area-inset-top,0px))}
  html.chat-open, html.chat-open body{overflow:hidden}
}

/* reveal */
.js .rv{opacity:0; transform:translateY(22px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1)}
.js .rv.in{opacity:1; transform:none}

@media (max-width: 980px){
  .nav-links{display:none}
  .nav{position:relative}
  .nav-menu{display:inline-flex}
  .nav.open .nav-links{display:flex; flex-direction:column; align-items:stretch; gap:2px; position:absolute; top:calc(100% + 8px); inset-inline:12px; padding:8px; border-radius:20px; background:var(--bg); border:1px solid var(--glass-line); box-shadow:var(--shadow); animation:pop .25s cubic-bezier(.2,.7,.2,1) both} /* taste-skill-ignore: open menu floats over the page */
  .nav{display:flex; justify-content:space-between}
  .nav.open .nav-links a{position:relative; font-size:16px; padding:14px 16px; border-radius:12px; color:var(--ink)}
  .nav.open .nav-links > *{position:relative}
  .nav.open .nav-links > * + *::before{content:""; position:absolute; top:0; inset-inline:16px; height:1px; background:var(--line-soft)}
  .feat{grid-template-columns:1fr}
  .feat .tabs{order:-1}
  .hero-grid{grid-template-columns:1fr}
  .hero-text{text-align:center}
  .hero-lede{margin-inline:auto}
  .hero-cta, .trust{justify-content:center}
}
@media (max-width: 640px){
  html{scroll-padding-top:76px}
  .nav{height:64px; padding-inline:14px; gap:8px}
  .nav.open .nav-links .menu-only{display:block}
  .brand .brand-name{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
  .nav-act{gap:6px}
  .nav-act .btn-sm{padding:10px 13px; font-size:15px}
  .nav-more{display:none}
  .hero{padding-top:calc(64px + 32px)}
  .hero-grid{gap:28px}
  .hero h1{font-size:31px}
  .hero h1 .h1-more{font-size:20px; margin-top:10px}
  .hero-lede{font-size:18px; margin-top:14px}
  .hero-cta{flex-direction:column; margin-top:22px}
  .hero-cta .btn, .cta-btns .btn{width:100%}
  .cta-btns{flex-direction:column}
  .trust{grid-template-columns:1fr 1fr; margin-top:26px; padding-top:4px}
  .trust li{padding:14px 10px; border-inline-start:0}
  .trust li:nth-child(even){border-inline-start:1px solid var(--line-soft)}
  .trust li:nth-child(n+3){border-top:1px solid var(--line-soft)}
  /* compact chat on phones */
  .chatbox{--av:30px; border-radius:20px}
  .chat-head{padding:10px 12px; gap:10px}
  .chat-avatar{width:36px; height:36px}
  .chat-title{font-size:15.5px; gap:6px}
  .chat-tag{font-size:10.5px; padding:0 7px}
  .chat-sub{font-size:11.5px; margin-top:1px}
  .chat-call{width:34px; height:34px; border-radius:11px}
  .chat-call svg{width:16px; height:16px}
  .preview-note{margin:10px 12px 0; font-size:11.5px}
  .chat-log{height:min(48vh, 400px); padding:12px 12px 8px; gap:4px}
  .day{font-size:11px; margin-bottom:2px}
  .enc{font-size:11.5px; padding:6px 10px; border-radius:12px; margin-bottom:6px}
  .bubble{font-size:15px; line-height:1.7; padding:8px 12px; border-radius:16px}
  .bubble[data-time]::after{font-size:10px; margin-top:4px}
  .typing{padding:11px 13px}
  .quick{gap:6px}
  .quick button,.quick a{font-size:13px; padding:7px 12px}
  .chat-form{margin:4px 10px 0; padding:4px; padding-inline-start:14px; border-radius:22px}
  .chat-form textarea{font-size:16px; line-height:1.5; padding:5px 0}
  .send{width:34px; height:34px}
  .send svg{width:16px; height:16px}
  .chat-foot{padding:8px 10px 10px; font-size:11px; gap:6px}
  .chat-tool{font-size:13px; padding:9px 10px; gap:6px}
  .chat-tool .tool-more{display:none}
  .foot-req{font-size:11.5px; padding:6px 0}
  .req{border-radius:16px}
  .req-head{padding:10px 14px}
  .req-head h3{font-size:15px}
  .req form{padding:14px; gap:10px}
  .field label{font-size:12.5px}
  .field input,.field select,.field textarea{font-size:16px; padding:8px 11px; border-radius:10px}
  .panel-stage{min-height:400px; border-radius:22px}
  .tab button{padding:16px 0}
  .tab h3{font-size:18px}
  .h-grid,.req form{grid-template-columns:1fr}
  .svc-item{min-height:0}
  .svc-item h3{margin-top:18px}
  .h-cover{aspect-ratio:4/3}
  .cta-card{border-radius:22px}
  .bubble.me{max-width:88%; border-start-end-radius:5px}
  .bubble.bot{max-width:calc(94% - var(--av)); border-start-start-radius:5px}
}
/* very small phones: keep logo, both buttons and the menu on one row */
@media (max-width: 374px){
  .nav{padding-inline:10px; gap:4px}
  .nav-act{gap:4px}
  .nav-act .btn-sm{padding:9px 9px; font-size:14px; gap:5px}
  .nav-act .wa-i{width:16px; height:16px}
  .nav-menu{width:38px; height:38px}
}
@media (prefers-reduced-motion: reduce){ *{transition:none!important; animation:none!important; scroll-behavior:auto!important} .js .rv{opacity:1; transform:none} .panel{transition:none} }

/* ---------- روابط الرئيسية للصفحات الداخلية ---------- */
.h-name a{text-decoration:none}
.h-name a:hover{text-decoration:underline; text-underline-offset:4px}
.h-more{align-self:flex-start; font-size:15px; font-weight:600; color:var(--brand-ink); text-decoration:underline; text-underline-offset:4px}
.svc-list h3 a{text-decoration:none}
.svc-list h3 a:hover{text-decoration:underline; text-underline-offset:5px}
.text-link{font-weight:600; color:var(--brand-ink); text-decoration:underline; text-underline-offset:5px}
.link-grid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px}
.link-card{display:flex; flex-direction:column; gap:6px; height:100%; box-sizing:border-box; padding:24px; border:1px solid var(--line); border-radius:20px; text-decoration:none; background:var(--bg); transition:border-color .2s, box-shadow .2s}
.link-card:hover{border-color:var(--ink); box-shadow:var(--lift)}
.link-card b{font-size:19px; font-weight:700; color:var(--ink)}
.link-card span{font-size:15.5px; line-height:1.6; color:var(--muted)}
.link-card b::after{content:" ←"; color:var(--brand-ink)}
@media (max-width: 980px){ .link-grid{grid-template-columns:repeat(2, minmax(0,1fr))} }
@media (max-width: 520px){ .link-grid{grid-template-columns:1fr} }
.foot-grid{grid-template-columns:minmax(0,1.2fr) repeat(4, minmax(0,1fr))}
@media (max-width: 980px){ .foot-grid{grid-template-columns:repeat(4, minmax(0,1fr))} .foot-brand{grid-column:1/-1} }
@media (max-width: 640px){ .foot-grid{grid-template-columns:1fr 1fr} }

/* ---------- الصفحات الداخلية (التكلفة، الفيزا، السكن، المستشفيات...) ---------- */
.page-head{padding:calc(76px + clamp(28px,4vw,56px)) 0 clamp(20px,3vw,32px)}
.page-head h1{font-size:clamp(30px,3.8vw,48px); font-weight:700; line-height:1.25; letter-spacing:-.02em; color:var(--head); max-width:20em}
.page-head .lede{font-size:clamp(18px,1.6vw,21px); color:var(--ink-2); line-height:1.85; max-width:38em; margin-top:16px}
.crumbs ol{list-style:none; margin:0 0 18px; padding:0; display:flex; flex-wrap:wrap; gap:4px 0; font-size:14.5px; color:var(--muted)}
.crumbs li{display:flex; align-items:center}
.crumbs li + li::before{content:"‹"; margin-inline:10px; color:var(--faint)}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--ink); text-decoration:underline; text-underline-offset:4px}
.crumbs [aria-current]{color:var(--ink-2)}
.inner section{padding-block:clamp(36px,4.5vw,64px)}
.inner .cta{padding-top:clamp(24px,3vw,40px)}
.page-photo{margin:8px 0 0}
.page-photo img{display:block; width:100%; height:auto; max-height:520px; object-fit:cover; border-radius:24px; background:var(--soft)}
.page-photo figcaption{font-size:14px; color:var(--muted); margin-top:10px}
.page-body{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:clamp(32px,5vw,72px); align-items:start}
@media (max-width: 980px){ .page-body{grid-template-columns:1fr} }
.prose{max-width:44em; min-width:0}
.prose > * + *{margin-top:18px}
.prose h2{font-size:clamp(23px,2.4vw,29px); font-weight:700; color:var(--head); margin-top:clamp(40px,5vw,56px); scroll-margin-top:96px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:20px; font-weight:700; margin-top:28px}
.prose p, .prose li{color:var(--ink-2); font-size:18px; line-height:1.95}
.prose ul, .prose ol{padding-inline-start:1.3em; display:grid; gap:8px}
.prose li::marker{color:var(--brand-ink)}
.prose strong{color:var(--ink); font-weight:700}
.prose a{color:var(--brand-ink); font-weight:600; text-decoration:underline; text-underline-offset:4px}
.prose a:hover{color:var(--ink)}
.facts{list-style:none!important; padding:0!important; display:grid!important; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px!important}
.facts li{border:1px solid var(--line); border-radius:16px; padding:16px 18px; line-height:1.5!important; font-size:15.5px!important; color:var(--muted)!important}
.facts li b{display:block; font-size:21px; color:var(--ink); font-weight:700; margin-bottom:4px}
@media (min-width: 641px){ .facts.four{grid-template-columns:repeat(4, minmax(0,1fr))} }
.steps-list{counter-reset:s; list-style:none!important; padding:0!important}
.steps-list li{counter-increment:s; position:relative; padding-inline-start:52px; min-height:38px}
.steps-list li::before{content:counter(s); position:absolute; inset-inline-start:0; top:2px; width:36px; height:36px; border-radius:50%; background:var(--brand-soft); color:var(--brand-ink); font-weight:700; font-size:16px; display:grid; place-items:center}
.callout{background:var(--soft); border-radius:18px; padding:20px 22px}
.callout p{font-size:16.5px!important; line-height:1.85!important}
.callout p + p{margin-top:8px}
.callout .when{font-size:14px!important; color:var(--muted)!important}
.spec-table{width:100%; border-collapse:collapse; font-size:16.5px}
.spec-table th, .spec-table td{text-align:start; vertical-align:top; padding:12px 14px; border-bottom:1px solid var(--line)}
.spec-table th{width:34%; color:var(--ink); font-weight:700}
.spec-table td{color:var(--ink-2)}
.table-scroll{overflow-x:auto}
.aside{position:sticky; top:96px; display:grid; gap:16px}
@media (max-width: 980px){ .aside{position:static} }
.aside-card{border:1px solid var(--line); border-radius:20px; padding:22px}
.aside-card h2{font-size:18px; font-weight:700; margin-bottom:12px}
.aside-card ul{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.aside-card li a{font-size:16px; text-decoration:none; color:var(--ink-2)}
.aside-card li a:hover{color:var(--ink); text-decoration:underline; text-underline-offset:4px}
.aside-card .btn{width:100%; margin-top:6px; min-height:50px; font-size:16px}
.aside-card p{font-size:15.5px; color:var(--muted); line-height:1.7; margin-bottom:12px}
.faq-page .faq{border-top:1px solid var(--line)}
.faq-page h2 + .faq{margin-top:8px}
.faq-page .faq details p{font-size:17.5px}
.faq-page .faq details p a{color:var(--brand-ink); font-weight:600}
.inner .about{padding-top:0}
.privacy{border-top:1px solid var(--line); padding-top:clamp(36px,4vw,56px)}
.page-body{padding-bottom:clamp(48px,6vw,88px)}
.page-head-tight{padding-bottom:0}
.inner .about-page{padding-top:8px}
.about-intro h1{font-size:clamp(30px,3.6vw,46px); font-weight:700; line-height:1.25; letter-spacing:-.02em; color:var(--head)}
.about-steps h3,.about-why h3{margin:0; font-size:19px; font-weight:700; line-height:1.45; color:var(--ink)}
.about-why h3{margin-bottom:4px}
.prose .when{font-size:14px; color:var(--muted)}

/* language switch: a plain link to the same page in the other language (EN on Arabic pages, عربي on English pages) */
.lang-switch{display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:44px; height:44px; padding:0 12px; border-radius:10px; border:1px solid var(--line); color:var(--ink); font:600 15px/1 var(--font); text-decoration:none; white-space:nowrap; transition:background .2s, border-color .2s}
.lang-switch:hover{background:var(--soft); border-color:var(--ink)}
.lang-switch:focus-visible{outline:2px solid var(--brand); outline-offset:2px}
@media (max-width: 640px){ .lang-switch{min-width:40px; height:40px; padding:0 10px; font-size:14px} }
@media (max-width: 374px){ .lang-switch{min-width:36px; height:38px; padding:0 8px; font-size:13.5px} }

/* English pages run left to right: the floating buttons and the chat window move to the right-hand corner,
   and the few arrows and the scrolling questions turn the other way. */
[dir="ltr"] .ask-float, [dir="ltr"] .chat-fab{left:auto; right:calc(18px + env(safe-area-inset-right,0px))}
[dir="ltr"] .chat-fab::after{right:auto; left:3px}
[dir="ltr"] .chat-pop{left:auto; right:calc(18px + env(safe-area-inset-right,0px)); transform-origin:bottom right}
@media (max-width: 640px){
  [dir="ltr"] .chat-pop{inset:0; transform-origin:bottom center}
  /* English words are longer, so on phones the header WhatsApp button keeps only its icon (the label stays for screen readers) */
  [dir="ltr"] .nav-act .btn-wa{width:44px; padding:0; gap:0}
  [dir="ltr"] .nav-act .wa-label{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
}
[dir="ltr"] .foot-req:hover svg{transform:translateX(3px)}
[dir="ltr"] .ltr{text-align:left}
[dir="ltr"] .link-card b::after{content:" →"}
[dir="ltr"] .crumbs li + li::before{content:"›"}

/* chat launcher: the doctor's face moves (a 26 KB looping clip on the button's own mint, face.webp until it plays),
   and a bubble beside it says "ask me". The bubble sits on the side facing the page, so inset-inline-end works in both languages. */
.chat-fab video{width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; background:var(--p-orchid)}
.fab-say{position:fixed; z-index:var(--z-float); bottom:calc(18px + 62px + 12px + 11px + env(safe-area-inset-bottom,0px)); inset-inline-end:calc(18px + 62px + 12px); display:flex; align-items:center; gap:2px; max-width:calc(100vw - 18px - 62px - 12px - 16px); padding:4px 4px 4px 4px; border-radius:18px; background:var(--bg); color:var(--ink); border:1px solid var(--line); box-shadow:var(--lift); animation:say .4s cubic-bezier(.2,.7,.2,1) both}
.fab-say[hidden]{display:none}
.fab-say::after{content:""; position:absolute; top:50%; inset-inline-end:-6px; width:11px; height:11px; background:inherit; border:inherit; border-bottom:0; border-inline-start:0; transform:translateY(-50%) rotate(45deg)}
[dir="rtl"] .fab-say::after{transform:translateY(-50%) rotate(-45deg)}
.fab-say-open{flex:1 1 auto; min-width:0; padding:8px 12px; border:0; background:none; color:inherit; font:600 15px/1.35 var(--font); text-align:start; cursor:pointer}
.fab-say-x{flex:none; display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:none; color:var(--muted); cursor:pointer}
.fab-say-x:hover{background:var(--soft); color:var(--ink)}
.fab-say button:focus-visible{outline:2px solid var(--brand); outline-offset:1px; border-radius:12px}
@media (max-width: 640px){ .fab-say-open{font-size:14.5px; padding:7px 10px} }

/* ---------- جداول المقارنة والأسعار (صفحات التخصصات والمقارنة، 2026-11-19) ---------- */
.cmp-table{width:100%; border-collapse:collapse; font-size:16px}
.cmp-table th, .cmp-table td{text-align:start; vertical-align:top; padding:12px 14px; border-bottom:1px solid var(--line)}
.cmp-table thead th{font-size:14px; font-weight:700; color:var(--muted); border-bottom:2px solid var(--line); white-space:nowrap}
.cmp-table tbody th{color:var(--ink); font-weight:700; white-space:nowrap}
.cmp-table tbody th a{color:inherit; text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--line)}
.cmp-table tbody th a:hover{text-decoration-color:currentColor}
.cmp-table td{color:var(--ink-2); line-height:1.6}
.cmp-table td.price{font-weight:700; color:var(--ink); white-space:nowrap}
.src-note{font-size:14px!important; color:var(--muted)!important; margin-top:10px}
@media (max-width: 640px){
  .cmp-table thead{display:none}
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td{display:block; width:auto}
  .cmp-table tr{border:1px solid var(--line); border-radius:16px; padding:8px 4px; margin-bottom:12px}
  .cmp-table th, .cmp-table td{border:0; padding:5px 12px}
  .cmp-table tbody th{font-size:17px; white-space:normal}
  .cmp-table td[data-label]::before{content:attr(data-label); display:block; font-size:13px; font-weight:600; color:var(--muted)}
  .cmp-table td.price{white-space:normal}
}
/* the 4-column comparison table turns into cards while the side column squeezes it */
@media (max-width: 1100px){
  .cmp-wide thead{display:none}
  .cmp-wide, .cmp-wide tbody, .cmp-wide tr, .cmp-wide th, .cmp-wide td{display:block; width:auto}
  .cmp-wide tr{border:1px solid var(--line); border-radius:16px; padding:8px 4px; margin-bottom:12px}
  .cmp-wide th, .cmp-wide td{border:0; padding:5px 12px}
  .cmp-wide tbody th{font-size:17px; white-space:normal}
  .cmp-wide td[data-label]::before{content:attr(data-label); display:block; font-size:13px; font-weight:600; color:var(--muted)}
}
/* the menu tightens between the phone menu and wide screens */
@media (min-width: 981px) and (max-width: 1199px){
  .nav-links{gap:0}
  .nav-links > a, .nav-trigger{padding:8px 9px; font-size:14.5px}
  .nav-more{display:none}
}

/* English labels are longer: between 981 and 1099px the WhatsApp button shows its icon only, as on phones */
@media (min-width: 981px) and (max-width: 1099px){
  [dir="ltr"] .nav-act .btn-wa{width:44px; padding:0; gap:0}
  [dir="ltr"] .nav-act .wa-label{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
}

/* ---------- القوائم المنسدلة في الشريط العلوي (2026-11-19) ---------- */
.nav-group{position:relative}
.nav-trigger{display:inline-flex; align-items:center; gap:4px; font:600 15px/1.2 var(--font); color:var(--muted); background:transparent; border:0; padding:8px 13px; border-radius:999px; cursor:pointer; white-space:nowrap; transition:color .2s, background .2s}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-group:has(a.on) > .nav-trigger{color:var(--ink); background:var(--soft)}
.nav-chev{flex:none; transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.nav-trigger[aria-expanded="true"] .nav-chev{transform:rotate(180deg)}
.nav-drop{display:none; position:absolute; top:calc(100% + 10px); inset-inline-start:0; z-index:2; min-width:232px; padding:8px; background:var(--bg); border-radius:16px; box-shadow:0 2px 16px rgba(0,0,0,.12)}
.nav-drop::before{content:""; position:absolute; inset-inline:0; top:-12px; height:12px}
.nav-group.drop-open > .nav-drop{display:grid; animation:pop .2s cubic-bezier(.2,.7,.2,1) both}
@media (hover: hover) and (min-width: 981px){
  .nav-group:hover > .nav-drop{display:grid}
  .nav-group:hover > .nav-trigger{color:var(--ink); background:var(--soft)}
}
.nav-links .nav-drop a{display:block; padding:10px 14px; border-radius:10px; font-size:15px; font-weight:500; color:var(--ink-2); white-space:nowrap}
.nav-links .nav-drop a:hover{background:var(--soft); color:var(--ink)}
.nav-links .nav-drop a.on{background:var(--soft); color:var(--ink); font-weight:600}
/* the page you are on shows in the logo purple, in the bar and in its dropdown */
.nav-links a.on, .nav-links .nav-drop a.on, .nav-group:has(a.on) > .nav-trigger{color:var(--brand-ink); background:var(--brand-soft)}
.nav-sep{border:0; height:1px; margin:6px 10px; background:var(--line-soft)}
@media (max-width: 980px){
  .nav.open .nav-links{max-height:calc(100dvh - 96px); overflow-y:auto}
  .nav-trigger{width:100%; justify-content:space-between; font-size:16px; padding:14px 16px; border-radius:12px; color:var(--ink)}
  .nav-drop{position:static; min-width:0; padding:0 8px 8px; border-radius:0; box-shadow:none}
  .nav-drop::before{display:none}
  .nav-group.drop-open > .nav-drop{animation:none}
  .nav.open .nav-links .nav-drop a{font-size:15.5px; padding:11px 16px; color:var(--ink-2)}
  .nav.open .nav-links .nav-drop a.on{color:var(--ink)}
}

/* Guide pages (/العلاج-في-تايلاند and the others): name, country and treatment, sent as a ready WhatsApp message by site.js */
.lead-form{display:grid; gap:12px}
.lead-form .field input,.lead-form .field select{font-size:16px}
.lead-form .btn{margin-top:4px}
.prose .faq{margin-top:8px}

/* Trust signals (scripts/trust.mjs): the last-updated line in a medical page's header, its sources and disclaimer, team photos on About. */
.page-head .when{margin-top:14px; font-size:14px; color:var(--muted)}
.page-head .when + .when{margin-top:4px}
.page-head .when a{color:inherit; text-decoration:underline; text-underline-offset:3px}
.prose .sources ul{margin-top:8px}
.prose .sources a{overflow-wrap:anywhere}
.prose .disclaimer{margin-top:28px}
.about-team img{width:72px; height:72px; border-radius:50%; object-fit:cover}
/* Draft previews only (DRAFTS=1): a fact still to check. A normal build refuses any page that still has one. */
mark.verify{background:#FDE68A; color:#7C2D12; font-size:.72em; font-weight:700; padding:1px 5px; border-radius:4px; margin-inline-start:4px; white-space:nowrap; cursor:help}

/* Related pages: closes hospital and specialty articles (site/related.json, written by scripts/build-pages.mjs). */
.prose .related{margin-top:clamp(40px,5vw,56px); padding-top:clamp(28px,4vw,40px); border-top:1px solid var(--line-soft)}
.prose .related h2{margin-top:0}
.prose .related ul{list-style:none; padding:0; margin-top:16px; display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr)); gap:10px}
.prose .related li{font-size:16px; line-height:1.5}
.prose .related a{display:flex; align-items:center; height:100%; padding:14px 18px; border:1px solid var(--line); border-radius:14px; color:var(--ink); text-decoration:none; transition:border-color .2s}
.prose .related a:hover{border-color:var(--ink-2); color:var(--ink)}

/* "Ask Teamhayak" box under comparison tables: each button sends its question to the assistant (data-ask in site.js) */
.ask-box{margin:22px 0 8px; padding:18px 20px; border:1px solid var(--line-soft); border-radius:18px; background:var(--soft)}
.ask-box .ask-box-title, .prose .ask-box .ask-box-title{display:flex; align-items:center; gap:10px; margin:0 0 14px; font-size:17px; font-weight:600; line-height:1.45; color:var(--ink)}
.ask-box .ask-box-title .ask-face{flex:none; border-radius:50%}
.ask-qs{display:flex; flex-wrap:wrap; gap:8px}
.ask-q{font:500 14px/1.3 var(--font); padding:10px 16px; border-radius:999px; border:1px solid var(--line); background:var(--bg); color:var(--ink); cursor:pointer; text-align:start; transition:border-color .2s, background .2s}
.ask-q:hover{border-color:var(--ink-2)}
.ask-q:focus-visible{outline:2px solid var(--ink); outline-offset:2px}

/* ---------- Ideas taken from the Tamara reference (2026-11-30), in Teamhayak's own palette ---------- */
/* 1) Hero: the three reassurance lines float as pills on the doctor card and slide in after load.
      On phones the card is too small, so the plain .safe line under the buttons stays instead. */
.hero-floats{position:absolute; inset:0; z-index:3; pointer-events:none}
.hf{position:absolute; display:inline-flex; align-items:center; gap:10px; padding:11px 20px 11px 18px; border-radius:999px; background:var(--bg); color:var(--ink); font:700 16px/1.3 var(--font); white-space:nowrap; box-shadow:var(--lift)}
.hf::before{content:""; width:22px; height:22px; flex:none; border-radius:50%; background:var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat}
/* the first two hang off the card's outer edge, the third off its inner edge (inline-end = the side away from the text) */
.hf-1{top:30%; inset-inline-end:-58px}
.hf-2{top:calc(30% + 60px); inset-inline-end:-22px}
.hf-3{bottom:26%; inset-inline-start:-34px}
.hf-1, .hf-2{--hf-x:-44px}
.hf-3{--hf-x:44px}
[dir="ltr"] .hf-1, [dir="ltr"] .hf-2{--hf-x:44px}
[dir="ltr"] .hf-3{--hf-x:-44px}
.js .hf{opacity:0; transform:translateX(var(--hf-x)); transition:opacity .9s ease, transform 1.5s cubic-bezier(.22,1,.36,1)}
.js .hero-floats.in .hf{opacity:1; transform:none}
.hero-floats.in .hf-2{transition-delay:.15s}
.hero-floats.in .hf-3{transition-delay:.3s}
@media (min-width: 641px){ .hero .safe{display:none} }
/* 981–1179px: the card sits close to the screen edge, so the pills hang off it less and stay on screen */
@media (min-width: 981px) and (max-width: 1179px){ .hf{font-size:15px; padding:10px 16px 10px 14px} .hf-1{inset-inline-end:-8px} .hf-2{inset-inline-end:18px} .hf-3{inset-inline-start:-24px} }
@media (max-width: 640px){ .hero-floats{display:none} }

/* 2) "وش تبي تعالج؟": big pastel cards, every second column set lower, like Tamara's staggered cards.
      Phones get one sideways row that snaps card by card. */
.spec-grid{list-style:none; margin:0; padding:0 0 40px; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); align-items:start; gap:20px}
.spec-grid > li:nth-child(even){margin-top:40px}
.spec-card{--tone:var(--p-orchid); display:flex; flex-direction:column; min-height:250px; box-sizing:border-box; padding:26px 24px 22px; border-radius:28px; background:var(--tone); color:var(--ink); text-decoration:none; transition:transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s}
.spec-card:hover{transform:translateY(-4px); box-shadow:var(--lift)}
.spec-card:focus-visible{outline:2px solid var(--ink); outline-offset:3px}
.spec-card b{font-size:22px; font-weight:700; line-height:1.35}
.spec-card > span{margin-top:8px; font-size:15.5px; line-height:1.6; color:var(--ink-2)}
.spec-foot{margin-top:auto; padding-top:26px; display:flex; align-items:center; justify-content:space-between; font-style:normal}
.spec-foot svg{fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.spec-ic{width:52px; height:52px; padding:13px; box-sizing:border-box; border-radius:50%; background:var(--bg); color:var(--brand-ink)}
.spec-go{width:38px; height:38px; padding:10px; box-sizing:border-box; border-radius:50%; background:var(--btn); color:var(--bg); stroke-width:2.2!important; transition:transform .3s cubic-bezier(.22,1,.36,1)}
.spec-card:hover .spec-go{transform:translateX(-4px)}
[dir="ltr"] .spec-go{transform:scaleX(-1)}
[dir="ltr"] .spec-card:hover .spec-go{transform:scaleX(-1) translateX(-4px)}
.spec-card[data-tone="sky"]{--tone:var(--p-lavender)}
.spec-card[data-tone="peach"]{--tone:var(--p-butter)}
.spec-card[data-tone="lilac"]{--tone:var(--p-blush)}
/* the dark card ("compare hospitals") is the plum of the buttons, with the arrow in the logo yellow */
.spec-card[data-tone="ink"]{--tone:var(--btn); color:var(--bg)}
.spec-card[data-tone="ink"] > span{color:color-mix(in srgb, var(--bg) 82%, var(--btn))}
.spec-card[data-tone="ink"] .spec-ic{background:rgba(255,255,255,.12); color:var(--bg)}
.spec-card[data-tone="ink"] .spec-go{background:var(--sun); color:var(--btn)}
@media (max-width: 980px){
  .spec-grid{grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px}
  .spec-grid > li:nth-child(even){margin-top:32px}
}
@media (max-width: 640px){
  .spec-grid{display:flex; gap:12px; margin-inline:-20px; padding:4px 20px 10px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:20px; scrollbar-width:none}
  .spec-grid::-webkit-scrollbar{display:none}
  .spec-grid > li{flex:0 0 74%; scroll-snap-align:start}
  .spec-grid > li:nth-child(even){margin-top:0}
  .spec-card{height:100%; min-height:220px; padding:22px 20px 18px}
}

/* 3) Hospitals: on wide screens the cards slide in from the side while you scroll (site.js sets --hx/--ho),
      and the middle column sits a little lower. On phones the list becomes one sideways row of cards. */
@media (min-width: 981px){
  /* the cards start up to 70px off to the side; clip so that never adds a sideways scrollbar on narrower screens */
  #hospitals{overflow-x:clip}
  #hlist .h-card[data-col="1"]{margin-top:48px}
  #hlist.slide .h-card{opacity:var(--ho, 1); transform:translateX(var(--hx, 0px)); will-change:transform, opacity}
}
@media (max-width: 640px){
  #hlist{display:flex; gap:14px; margin-inline:-20px; padding:4px 20px 12px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:20px; scrollbar-width:none}
  #hlist::-webkit-scrollbar{display:none}
  #hlist .h-card{flex:0 0 84%; scroll-snap-align:start}
}

/* ===== Structure pass 2026-11-30 (impeccable critique, .impeccable/critique/): the header's chat button is the filled
   one, one floating button on phones, guide pages get a phone bar + inline prompt + section list (added by
   scripts/build-pages.mjs), the homepage's moving questions became four ready questions. Backup:
   backups/before-structure-2026-11-30/ ===== */

/* header: chat is the main action (filled, set in the layouts), WhatsApp is for booking (outlined) */
.nav-act .btn-wa{background:var(--bg); color:var(--btn); border-color:var(--line)}
.nav-act .btn-wa:hover{background:var(--soft); border-color:var(--ink-2)}
.nav-act .btn-wa .wa-i{color:var(--wa)}

/* phones: one floating button (the chat). WhatsApp stays in the header, the chat window and the closing card. */
@media (max-width: 640px){
  .ask-float{display:none}
  .chat-fab{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  .fab-say{bottom:calc(18px + 11px + env(safe-area-inset-bottom,0px))}
  .doc-cta{display:none}
}

/* the chat header when the assistant is down */
.chat-sub.is-off::before{background:var(--muted); box-shadow:none}

/* guide pages: «في هذي الصفحة», a closed list of the sections */
.prose .toc{margin-top:20px; border:1px solid var(--line); border-radius:16px; background:var(--bg)}
.toc summary{cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; font-weight:600; font-size:16px; color:var(--ink)}
.toc summary::-webkit-details-marker{display:none}
.toc summary::after{content:""; flex:none; width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .2s}
.toc[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.toc summary:focus-visible{outline:2px solid var(--brand); outline-offset:2px; border-radius:16px}
.prose .toc ol{margin:0; padding:0 18px 16px; padding-inline-start:40px; gap:6px}
.prose .toc li{font-size:16px; line-height:1.6}
.prose .toc a{color:var(--ink-2); font-weight:500; text-decoration:none}
.prose .toc a:hover{color:var(--ink); text-decoration:underline}

/* guide pages: the phone bar under the photo (the aside sits beside the article on wide screens) */
.m-ask{display:none}
@media (max-width: 980px){
  .prose .m-ask{display:block; margin-top:16px; padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--bg)}
  .prose .m-ask .m-ask-t{margin:0 0 12px; font-size:17px; font-weight:700; line-height:1.5; color:var(--head)}
  .m-ask-btns{display:flex; flex-wrap:wrap; gap:10px}
  .m-ask-btns .btn{flex:1 1 150px; min-height:48px}
  /* the aside's button card repeats the bar above and the closing card below, so phones skip it;
     a form card stays (it is its own tool). Hospital and specialty pages already end with "Related pages". */
  .aside:not(:has(form)) > .aside-card:first-child{display:none}
  .page-body:has(.related) .aside:not(:has(form)){display:none}
}
.prose .m-ask a.btn, .prose .ask-inline a.btn{text-decoration:none; font-weight:600}
.prose a.btn-primary, .prose a.btn-primary:hover{color:var(--on-btn)}
.prose a.btn-wa, .prose a.btn-wa:hover{color:var(--on-wa)}

/* guide pages: one chat prompt inside the article */
.prose .ask-inline{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 16px; margin-top:24px; padding:16px 18px; border-radius:16px; background:var(--soft)}
.prose .ask-inline p{margin:0; font-size:17px; font-weight:600; color:var(--ink)}
.ask-inline .btn{flex:none}
@media (max-width: 640px){ .ask-inline .btn{width:100%} }

/* hospital pages: the short practical sections are <h3> under «قبل ما تسافر» */
.prose h2 + h3{margin-top:16px}
.prose h3[id]{scroll-margin-top:96px}
.prose li, .h-points li{text-wrap:pretty}

/* homepage: four ready questions under «قبل ما تسافر»; a tap puts the question in the chat box (site.js) */
.ask-qs{margin-top:clamp(28px,4vw,40px)}
.ask-qs-t{font-size:17px; font-weight:600; color:var(--ink-2); margin-bottom:14px}
.q-list{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px}
.q{all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:flex-start; gap:10px; width:100%; height:100%; padding:16px 18px; border:1px solid var(--line); border-radius:16px; background:var(--bg); font:500 16.5px/1.6 var(--font); color:var(--ink); text-wrap:pretty; transition:border-color .2s, box-shadow .2s}
.q:hover{border-color:var(--ink); box-shadow:var(--lift)}
.q:focus-visible{outline:2px solid var(--brand); outline-offset:2px}
.q svg{flex:none; margin-top:5px; color:var(--brand)}
@media (max-width: 640px){ .q-list{grid-template-columns:1fr} .q{font-size:16px; padding:14px 16px} }

/* ---------- Hero mesh gradient (2026-12-01), like Stripe's top band, in the logo's colours ----------
   A WebGL canvas (site.js) lets purple, yellow, pink, violet and plum flow into each other slowly across the whole hero:
   the owner asked for no white behind the hero («ما ابغي الخلفية بيضاء»). The bottom edge is slanted, deeper on the doctor's side.
   A soft white veil (::after) lies over the text side only, so the words keep their contrast on any colour.
   When the hero stacks (<=980px) the veil covers the text from the top and fades out at the doctor card (site.js sets --veil from the card).
   Before the first frame (and with no WebGL) the CSS gradients below show instead. */
.hero{--mesh-slant:72px; padding-bottom:calc(clamp(56px,7vw,88px) + 32px)}
.hero-mesh{position:absolute; z-index:-1; inset:0; pointer-events:none;
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - var(--mesh-slant)), 0 100%);
  background:
    radial-gradient(40% 50% at 15% 20%, #FFF732 0, rgba(255,247,50,0) 70%),
    radial-gradient(40% 55% at 70% 25%, #F3A9CF 0, rgba(243,169,207,0) 70%),
    radial-gradient(45% 60% at 30% 85%, #7B6BDB 0, rgba(123,107,219,0) 70%),
    radial-gradient(35% 50% at 90% 80%, #5A2D5E 0, rgba(90,45,94,0) 70%),
    #A069A0}
[dir="ltr"] .hero-mesh{clip-path:polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--mesh-slant)))}
.hero-mesh canvas{position:absolute; inset:0; width:100%; height:100%; display:block; opacity:0; transition:opacity 1s ease}
.hero-mesh.on canvas{opacity:1}
.hero-mesh::after{content:""; position:absolute; inset:0; background:linear-gradient(to left, rgba(255,255,255,.62) 0, rgba(255,255,255,.56) 55%, rgba(255,255,255,0) 70%)}
[dir="ltr"] .hero-mesh::after{background:linear-gradient(to right, rgba(255,255,255,.62) 0, rgba(255,255,255,.56) 55%, rgba(255,255,255,0) 70%)}
/* the small grey labels would be too faint on colour, so inside the hero they take the darker ink */
.hero .trust{border-top-color:rgba(42,23,48,.16)}
.hero .trust li{border-inline-start-color:rgba(42,23,48,.1)}
.hero .trust span{color:var(--ink-2)}
/* the doctor card turns to frosted white glass, so the colours show through it softly */
.hero-doc{background:rgba(255,255,255,.58); border:1px solid rgba(255,255,255,.7); box-shadow:0 40px 80px -40px rgba(42,23,48,.55)}
@media (max-width: 980px){
  .hero{--mesh-slant:56px}
  .hero-mesh::after, [dir="ltr"] .hero-mesh::after{background:linear-gradient(to bottom, rgba(255,255,255,.62) 0, rgba(255,255,255,.56) calc(var(--veil, 55%) - 100px), rgba(255,255,255,0) var(--veil, 55%))}
}
@media (max-width: 640px){ .hero{--mesh-slant:40px} }

/* ---------- The whole site in the logo's colours (2026-12-01) ----------
   The owner asked for no white anywhere («عدالها كامل الموقع ما ابغي لون الابيض»).
   - The page itself is a still, soft wash of the logo colours (body::before, fixed to the screen, so it costs nothing while scrolling).
   - Every page header gets the same moving band as the homepage hero (build-pages.mjs adds .hero-mesh, site.js draws it).
   - Cards that sat on white become light glass (--surface), so they keep their shape on the colour without being white blocks.
   - The pastel card tints are one step deeper, or they would melt into the page wash.
   - What floats over other content (menus, the chat, speech bubbles, photo badges) stays solid white (--solid), so it stays readable. */
:root{
  --page:#F4EAF5;
  --solid:#FFFFFF;
  --surface:rgba(255,255,255,.55);
  --soft:rgba(126,70,130,.07);
  --soft-2:rgba(126,70,130,.13);
  --p-orchid:#EEDCEF;
  --p-lavender:#E3DCF6;
  --p-butter:#FFF2B0;
  --p-blush:#F7DCE8;
}
body{background:var(--page)}
body::before{content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(70vmax 50vmax at 0% 0%, #FFF4C2 0, rgba(255,244,194,0) 62%),
    radial-gradient(60vmax 50vmax at 100% 8%, #E8DFFB 0, rgba(232,223,251,0) 62%),
    radial-gradient(65vmax 55vmax at 100% 100%, #FAD9E9 0, rgba(250,217,233,0) 62%),
    radial-gradient(60vmax 50vmax at 0% 100%, #E6D8F6 0, rgba(230,216,246,0) 62%),
    var(--page)}
/* the top bar: frosted glass over the colours instead of a white strip */
.nav-shell{background:rgba(246,238,247,.78); -webkit-backdrop-filter:blur(16px) saturate(1.4); backdrop-filter:blur(16px) saturate(1.4); border-bottom-color:rgba(126,70,130,.12)}
.hero{background:transparent}
footer{border-top-color:rgba(126,70,130,.12)}
/* cards and chips on the page: light glass */
.btn-ghost, .mini-list .ic, .chip, .link-card, .ask-q, .spec-ic, .nav-act .btn-wa, .prose .toc, .prose .m-ask, .q{background:var(--surface)}
.chip, .link-card, .ask-q, .prose .toc, .prose .m-ask, .q, .aside-card{border-color:rgba(126,70,130,.16)}
.aside-card{background:var(--surface)}
.mock{background:rgba(255,255,255,.72)}
/* things that float over other content stay solid */
.h-badge, .hf, .mascot-say, .nav-drop, .fab-say, .cta-card .btn-wa{background:var(--solid)}
.chatbox{background:color-mix(in srgb, var(--solid) 94%, transparent)}
.chat-pop .chatbox{background:var(--solid)}
@media (max-width: 980px){ .nav.open .nav-links{background:var(--solid)} }

/* page headers: the moving band, slanted at the bottom, with a soft white veil where the words are */
.page-head{position:relative; isolation:isolate; overflow:hidden; --mesh-slant:56px; padding-bottom:calc(clamp(20px,3vw,32px) + var(--mesh-slant) + 12px); margin-bottom:clamp(8px,2vw,24px)}
.page-head-tight{padding-bottom:calc(var(--mesh-slant) + 16px)}
.page-head .hero-mesh::after{background:linear-gradient(to left, rgba(255,255,255,.62) 0, rgba(255,255,255,.56) 65%, rgba(255,255,255,.3) 100%)}
[dir="ltr"] .page-head .hero-mesh::after{background:linear-gradient(to right, rgba(255,255,255,.62) 0, rgba(255,255,255,.56) 65%, rgba(255,255,255,.3) 100%)}
.page-head .crumbs ol, .page-head .when{color:var(--ink-2)}
@media (max-width: 980px){
  .page-head .hero-mesh::after, [dir="ltr"] .page-head .hero-mesh::after{background:rgba(255,255,255,.58)}
}
@media (max-width: 640px){ .page-head{--mesh-slant:36px} }

/* ---------- Homepage from the owner's reference picture (2026-12-01) ----------
   The owner sent a full-page design and asked for «تقريبا نفس القوايم و الصور», keeping the site's colours.
   Same order as the picture: photo collage hero with a "treatment plan" card, hospital photo cards, icon tiles,
   four steps with a row of travel links, about with a photo, then the closing band. Colours are the logo's
   (purple, plum, yellow) on the page wash; nothing here brings white page backgrounds back.
   The two photos are cut from the owner's picture (public/img/home/). Backup: backups/before-reference-design-2026-12-01/ */

/* section heads: centred, a dot on each side of the title, one short line under it */
.home section:not(.hero):not(.cta){padding-block:clamp(44px,5vw,72px)}
.home .sec-head.center{margin-bottom:clamp(24px,3vw,36px)}
.sec-head.center h2{display:inline-flex; align-items:center; gap:14px}
.sec-head.center h2::before, .sec-head.center h2::after{content:""; flex:none; width:8px; height:8px; border-radius:50%; background:var(--brand)}
.sec-head.center p{margin-top:8px; font-size:16.5px; color:var(--ink-2)}

/* hero: words on one side, the photo collage on the other */
.hero-v2 .hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.hero-v2 .hero-cta{margin-top:30px}
.hero-pills{list-style:none; margin:28px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:10px}
.hero-pills li{display:inline-flex; align-items:center; gap:9px; padding:6px 16px 6px 6px; border-radius:999px; background:var(--surface); border:1px solid rgba(126,70,130,.16); font-size:15px; font-weight:600; line-height:1.4; color:var(--ink)}
[dir="rtl"] .hero-pills li{padding:6px 6px 6px 16px}
.hero-pills svg{flex:none; width:32px; height:32px; padding:6px; border-radius:50%; background:var(--p-orchid); fill:none; stroke:var(--brand-ink); stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round}
.hero-pills .num{color:inherit; font-weight:700}
.hero-pic{position:relative; margin:0; width:100%; max-width:640px; justify-self:center; container-type:inline-size}
.hero-pic img{display:block; width:100%; height:auto; filter:drop-shadow(0 28px 40px rgba(42,23,48,.3))}
/* sits exactly over the card drawn in the picture, so its words stay sharp and its colours are the site's */
.plan-chip{position:absolute; right:-1%; top:36.2%; width:max(35cqi, 128px); min-height:22.4%; box-sizing:border-box; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto auto; align-content:center; align-items:center; gap:1.7cqi 2.6cqi; padding:2.6cqi 2.8cqi; border-radius:max(2.4cqi, 10px); background:var(--solid); border:1px solid rgba(126,70,130,.14); box-shadow:0 18px 40px -18px rgba(42,23,48,.5)}
.plan-chip b{grid-column:1/-1; font-size:max(2.75cqi, 11px); font-weight:700; line-height:1.35; color:var(--head); white-space:nowrap}
.plan-chip i{grid-column:1; height:max(1cqi, 4px); border-radius:99px; background:var(--p-orchid)}
.plan-chip i + i{width:62%; background:var(--p-lavender)}
.plan-chip svg{grid-column:2; grid-row:2/4; width:max(6cqi, 22px); height:max(6cqi, 22px); fill:none; stroke:var(--brand-ink); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}

/* hospitals: photo cards, three in a row */
.hc-grid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px}
.hc{display:flex; flex-direction:column; height:100%; border-radius:18px; overflow:hidden; background:var(--surface); border:1px solid rgba(126,70,130,.16); text-decoration:none; color:var(--ink); transition:box-shadow .25s, transform .25s, border-color .25s}
.hc:hover{box-shadow:var(--shadow); transform:translateY(-3px); border-color:rgba(126,70,130,.3)}
.hc:focus-visible{outline:2px solid var(--brand); outline-offset:3px}
.hc figure{margin:0; aspect-ratio:2/1; overflow:hidden; background:var(--p-orchid)}
.hc figure img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.hc:hover figure img{transform:scale(1.04)}
.hc h3{margin:16px 18px 0; font-size:18.5px; font-weight:700; line-height:1.4; color:var(--head)}
.hc p{margin:2px 18px 0; font-size:14px; line-height:1.5; color:var(--muted)}
.hc-more{margin:auto 18px 16px; padding-top:12px; font-size:15px; font-weight:600; color:var(--brand-ink)}
.hc-more::after{content:" ←"}
[dir="ltr"] .hc-more::after{content:" →"}
.hc-compare{justify-content:center; align-items:flex-start; padding:26px 8px 6px; background:var(--btn); border-color:transparent; color:var(--on-btn)}
.hc-compare h3{color:var(--on-btn); margin-top:14px}
.hc-compare p{color:var(--brand-soft); font-size:15px}
.hc-compare .hc-more{margin-top:0; color:var(--sun)}
.hc-ic{margin-inline:18px; width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:var(--sun)}
.hc-ic svg{width:28px; height:28px; fill:none; stroke:var(--btn); stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round}

/* «وش تبي تعالج؟»: ten icon tiles, five in a row */
.tile-grid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:16px}
.tile{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; height:100%; box-sizing:border-box; padding:22px 10px 18px; border-radius:18px; background:var(--surface); border:1px solid rgba(126,70,130,.16); text-decoration:none; text-align:center; font-size:16.5px; font-weight:700; line-height:1.4; color:var(--ink); transition:box-shadow .25s, transform .25s, border-color .25s}
.tile:hover{box-shadow:var(--shadow); transform:translateY(-3px); border-color:rgba(126,70,130,.3)}
.tile:focus-visible{outline:2px solid var(--brand); outline-offset:3px}
.tile-ic{flex:none; width:60px; height:60px; border-radius:50%; display:grid; place-items:center; background:var(--brand); box-shadow:0 10px 20px -10px rgba(90,45,94,.7)}
.tile-ic svg{width:30px; height:30px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.tile:hover .tile-ic{background:var(--btn)}

/* «قبل ما تسافر»: four numbered steps joined by dashed arrows, then the travel links */
.step-row{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:40px}
.step-row li{position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; padding:26px 18px 22px; border-radius:18px; background:var(--surface); border:1px solid rgba(126,70,130,.16)}
.step-row li:not(:last-child)::after{content:""; position:absolute; top:50%; inset-inline-end:-33px; width:26px; border-top:2px dashed var(--brand)}
.step-row li:not(:last-child)::before{content:""; position:absolute; top:calc(50% - 4px); inset-inline-end:-34px; width:7px; height:7px; border-left:2px solid var(--brand); border-bottom:2px solid var(--brand); transform:rotate(45deg)}
[dir="ltr"] .step-row li:not(:last-child)::before{transform:rotate(-135deg)}
.step-n{position:absolute; top:12px; inset-inline-start:12px; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--btn); color:var(--on-btn); font-size:15px; font-weight:700; line-height:1}
.step-ic svg{display:block; width:46px; height:46px; fill:none; stroke:var(--brand-ink); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.step-row h3{margin:12px 0 0; font-size:17.5px; font-weight:700; line-height:1.45; color:var(--head)}
.step-row p{margin:4px 0 0; font-size:15px; line-height:1.6; color:var(--ink-2)}
.info-row{list-style:none; margin:22px 0 0; padding:10px; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:4px; border-radius:18px; background:var(--surface); border:1px solid rgba(126,70,130,.16)}
.info-row a{display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; box-sizing:border-box; padding:14px 6px; border-radius:12px; text-decoration:none; text-align:center; font-size:15px; font-weight:600; line-height:1.4; color:var(--ink); transition:background .2s}
.info-row a:hover{background:var(--soft-2)}
.info-row a:focus-visible{outline:2px solid var(--brand); outline-offset:1px}
.info-row svg{width:30px; height:30px; fill:none; stroke:var(--brand-ink); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}

/* «من نحن»: the photo on one side, the words, ticks and a button on the other */
.about-v2{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(28px,5vw,64px); align-items:center}
.about-pic{margin:0}
.about-pic img{display:block; width:100%; height:auto; border-radius:22px; box-shadow:0 30px 60px -30px rgba(42,23,48,.55)}
.about-pic figcaption{margin-top:10px; font-size:14px; color:var(--ink-2); text-align:center}
.about-copy h2{font-size:clamp(26px,2.8vw,34px); font-weight:700; letter-spacing:-.015em; color:var(--head)}
.about-copy p{margin-top:12px; font-size:17.5px; line-height:1.85; color:var(--ink-2)}
.checks{list-style:none; margin:16px 0 22px; padding:0; display:grid; gap:10px}
.checks li{display:flex; align-items:center; gap:10px; font-size:16.5px; font-weight:600; color:var(--ink)}
.checks li::before{content:""; flex:none; width:22px; height:22px; border-radius:50%; background:var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat}

/* the closing band (every page): words on one side, the two buttons on the other */
@media (min-width: 981px){
  .cta-card{display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px 48px; text-align:start; padding:clamp(32px,3.6vw,48px) clamp(32px,4vw,56px)}
  .cta-card h2{font-size:clamp(26px,2.6vw,34px)}
  .cta-card .safe{justify-content:flex-start}
  .cta-card .cta-btns{margin-top:0; flex-wrap:nowrap}
}
.foot-tag{margin:12px 0 0; font-size:15.5px; line-height:1.7; color:var(--ink-2)}

@media (max-width: 1100px){
  .step-row{gap:28px}
  .step-row li:not(:last-child)::after{inset-inline-end:-25px; width:20px}
  .step-row li:not(:last-child)::before{inset-inline-end:-26px}
}
@media (max-width: 980px){
  .hero-v2 .hero-grid{grid-template-columns:1fr}
  .hero-pills{justify-content:center}
  .hero-pic{max-width:560px}
  .hc-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .tile-grid{grid-template-columns:repeat(5, minmax(0,1fr)); gap:12px}
  .tile{font-size:15px; padding:18px 6px 14px}
  .step-row{grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px}
  .step-row li::before, .step-row li::after{display:none}
  .info-row{grid-template-columns:repeat(3, minmax(0,1fr))}
  .about-v2{grid-template-columns:1fr}
  .about-copy{text-align:center}
  .checks{justify-content:center; justify-items:center}
}
@media (max-width: 640px){
  .sec-head.center h2{gap:10px}
  .hero-pills{gap:8px}
  .hero-pills li{font-size:14px}
  .hc-grid{display:flex; gap:14px; margin-inline:-20px; padding:4px 20px 12px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:20px; scrollbar-width:none}
  .hc-grid::-webkit-scrollbar{display:none}
  .hc-grid > li{flex:0 0 80%; scroll-snap-align:start}
  .tile-grid{grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px}
  .tile{flex-direction:row; justify-content:flex-start; gap:12px; padding:12px; text-align:start; font-size:15px}
  .tile-ic{width:44px; height:44px}
  .tile-ic svg{width:23px; height:23px}
  .step-row{grid-template-columns:1fr; gap:10px}
  .step-row li{display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:14px; align-items:center; text-align:start; padding:14px 16px}
  .step-n{position:static; grid-row:1/3}
  .step-ic{display:none}
  .step-row h3{margin:0; font-size:16.5px}
  .step-row p{margin:0; font-size:14.5px}
  .info-row{grid-template-columns:repeat(3, minmax(0,1fr)); padding:6px}
  .info-row a{font-size:13.5px; padding:12px 4px}
  .info-row svg{width:26px; height:26px}
  .about-copy p{font-size:16.5px}
}

/* the menu got «الرئيسية»/Home and «تواصل معنا» (2026-12-01): between 981 and 1099px the logo stands in for Home
   and the header WhatsApp button shows its icon only (its name stays readable to screen readers) */
@media (min-width: 981px) and (max-width: 1099px){
  .nav-links > a:first-child{display:none}
  .nav-act .btn-wa{width:44px; padding:0; gap:0; font-size:0}
}

/* owner-supplied hospital photos inside guide pages (2026-12-01): same look as the photo under the title, with a caption */
.prose .page-photo{margin:22px 0 6px}
.prose .page-photo img{max-height:460px}
.prose .page-photo figcaption{color:var(--ink-2)}

/* ---------- GuidesSection «أدلة حياك» (2026-12-01): homepage, right after the hero, before the hospitals ----------
   Four guide cards: photo, an icon badge resting on the photo's edge, title, one short line, three small points and a
   button pinned to the bottom so the four buttons line up. Same glass card, borders and hover as the hospital cards.
   Four in a row on computers, two on tablets, one on phones. Photos: public/img/guides/ (960×600, 16:10). */
.guide-grid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:20px}
.guide-grid > li{display:flex; min-width:0}
.guide-card{display:flex; flex-direction:column; width:100%; border-radius:18px; overflow:hidden; background:var(--surface); border:1px solid rgba(126,70,130,.16); transition:box-shadow .25s, transform .25s, border-color .25s}
.guide-card:hover{box-shadow:var(--shadow); transform:translateY(-3px); border-color:rgba(126,70,130,.3)}
.guide-pic{margin:0; aspect-ratio:16/10; overflow:hidden; background:var(--p-orchid)}
.guide-pic img{display:block; width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.guide-card:hover .guide-pic img{transform:scale(1.04)}
.guide-body{display:flex; flex-direction:column; flex:1; padding:0 18px 18px}
.guide-ic{position:relative; flex:none; width:54px; height:54px; margin-top:-27px; border-radius:50%; display:grid; place-items:center; background:var(--brand); box-shadow:0 0 0 4px var(--page), 0 10px 20px -10px rgba(90,45,94,.7); transition:background .25s}
.guide-ic svg{width:26px; height:26px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.guide-card:hover .guide-ic{background:var(--btn)}
.guide-card h3{margin:12px 0 0; font-size:18.5px; font-weight:700; line-height:1.45; color:var(--head)}
.guide-card p{margin:6px 0 0; font-size:15px; line-height:1.7; color:var(--ink-2)}
.guide-points{list-style:none; margin:14px 0 18px; padding:0; display:grid; gap:7px}
.guide-points li{display:flex; align-items:center; gap:9px; font-size:14.5px; font-weight:600; line-height:1.45; color:var(--ink)}
.guide-points li::before{content:""; flex:none; width:20px; height:20px; border-radius:50%; background:var(--p-orchid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E4682' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat}
.guide-btn{width:100%; margin-top:auto}
.guide-btn:hover{background:var(--btn); color:var(--on-btn); border-color:var(--btn)}
@media (max-width: 1100px){
  .guide-grid{gap:16px}
  .guide-body{padding:0 15px 16px}
  .guide-card h3{font-size:17.5px}
}
@media (max-width: 980px){
  .guide-grid{grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px}
}
@media (max-width: 640px){
  .guide-grid{grid-template-columns:1fr; gap:14px}
  .guide-pic{aspect-ratio:2/1}
  .guide-body{padding:0 16px 16px}
}
@media (prefers-reduced-motion: reduce){
  .guide-card, .guide-pic img{transition:none}
  .guide-card:hover{transform:none}
  .guide-card:hover .guide-pic img{transform:none}
}

/* ---------- Medical guide page (2026-12-01): the homepage's medical sections moved to /العلاج-في-تايلاند ----------
   Hospitals, specialties, before you travel and about now sit between the page header and the article, with the
   same look they had on the homepage (their rules above are not tied to .home); only the spacing is set here. */
.med-sec{padding-block:clamp(36px,4.5vw,64px)}
.med-sec .sec-head.center{margin-bottom:clamp(22px,3vw,34px)}
.page-head + .med-sec{padding-top:clamp(12px,2vw,24px)}
@media (min-width: 981px){ .info-row-5{grid-template-columns:repeat(5, minmax(0,1fr))} }
