/* Treatment, branch and FAQ pages (built by pages/build.mjs). Same look as the home page (option-2.html). */
:root{
  --bg:#f5f7f3; --paper:#ffffff; --ink:#0a120d; --ink-2:#34423a; --muted:#6b7a71; --line:#e2e7e0; --line-2:#cfd7cd;
  --green:#2bc24a; --emerald:#0f7a33; --emerald-2:#0b5e27; --deep:#07301a; --mint:#e7f6ea;
  --radius:28px; --gutter:clamp(16px, 4vw, 56px);
  --font:"Outfit", system-ui, -apple-system, "Segoe UI", sans-serif; --font-ar:"Cairo", "Outfit", system-ui, sans-serif;
  color-scheme:light;
  --c-panel:rgba(255,255,255,.97); --c-ink:#0a120d; --c-ink2:#34423a; --c-muted:#6b7a71; --c-faint:#8a968f;
  --c-line:#e6ebe4; --c-line2:#d3dbd1; --c-bot:#f2f5f1; --c-bot-b:#0a120d; --c-accent:#0f7a33; --c-accent2:#0f7a33; --c-on-accent:#fff;
  --c-input:#f7f9f6; --c-hover:#f2f5f1; --c-fab:#0a120d; --c-fab-ink:#fff; --c-chip:#f3faf4; --c-card-a:#eaf7ed; --c-card-b:#f7fbf8;
  --c-amber:#b7791f; --c-red:#c0392b; --c-shadow:0 30px 80px -30px rgba(10,18,13,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} *{animation-duration:.01ms!important; transition-duration:.01ms!important} }
body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--font); font-size:16px; line-height:1.6; overflow-x:hidden; -webkit-font-smoothing:antialiased}
html[lang="ar"] body{font-family:var(--font-ar)}
a{color:inherit}
img{max-width:100%; display:block}
button{font:inherit; color:inherit; cursor:pointer}
:focus-visible{outline:2px solid var(--emerald); outline-offset:3px; border-radius:8px}
.wrap{width:100%; max-width:1280px; margin:0 auto; padding:0 var(--gutter)}
html[dir="rtl"] .flip{transform:scaleX(-1)}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; height:50px; padding:0 24px; border-radius:999px; border:1px solid transparent; text-decoration:none; font-weight:600; font-size:15px; white-space:nowrap; transition:transform .2s, background .2s, border-color .2s, color .2s}
.btn:active{transform:scale(.97)}
.btn svg{width:18px; height:18px; flex:none}
.btn-dark{background:var(--ink); color:#fff} .btn-dark:hover{background:var(--emerald)}
.btn-green{background:var(--emerald); color:#fff} .btn-green:hover{background:var(--emerald-2)}
.btn-line{border-color:var(--line-2); background:transparent} .btn-line:hover{border-color:var(--ink)}
.btn-white{background:#fff; color:var(--ink)} .btn-white:hover{background:var(--mint)}
.btn-ghost{color:#fff; border-color:rgba(255,255,255,.4)} .btn-ghost:hover{border-color:#fff}
.btn-sm{height:42px; padding:0 18px; font-size:14px}
.row{display:flex; flex-wrap:wrap; gap:10px}

/* nav */
.nav{position:sticky; top:0; z-index:40; background:rgba(245,247,243,.86); backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%); border-bottom:1px solid var(--line)}
.nav .wrap{display:flex; align-items:center; gap:22px; height:76px}
.brand img{height:48px; width:auto}
.nav-links{display:flex; gap:4px; margin-inline-start:20px; padding:5px; border-radius:999px; background:#fff; border:1px solid var(--line)}
.nav-links a{text-decoration:none; font-size:14.5px; padding:8px 14px; border-radius:999px; color:var(--ink-2); transition:background .2s, color .2s}
.nav-links a:hover{background:var(--bg); color:var(--ink)}
.nav-links a.on{background:var(--emerald); color:#fff}
.nav-actions{margin-inline-start:auto; display:flex; gap:10px; align-items:center}
.pill{display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 16px; border-radius:999px; border:1px solid var(--line-2); background:transparent; text-decoration:none; font-size:14px; font-weight:500; white-space:nowrap}
.pill:hover{border-color:var(--ink)}
.pill svg{width:16px; height:16px}
.menu-btn{display:none; width:44px; height:42px; border-radius:12px; border:1px solid var(--line-2); background:transparent; align-items:center; justify-content:center}
@media (max-width: 1100px){ .nav .tel{display:none} }
@media (max-width: 900px){
  .nav-links{display:none} .menu-btn{display:inline-flex} .nav .book{display:none}
  .nav.open .nav-links{display:flex; flex-direction:column; position:absolute; top:76px; inset-inline:var(--gutter); margin:0; border-radius:20px; padding:8px; box-shadow:0 30px 60px -30px rgba(0,0,0,.3)}
  .nav.open .nav-links a{padding:14px 16px; font-size:17px}
}

/* type */
.label{display:inline-flex; align-items:center; gap:10px; font-size:13.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--emerald)}
html[lang="ar"] .label{letter-spacing:0}
.label::before{content:""; width:8px; height:8px; border-radius:50%; background:var(--green)}
h1{font-size:clamp(36px,4.6vw,68px); line-height:1.02; letter-spacing:-.035em; font-weight:600; margin:16px 0 0}
html[lang="ar"] h1{letter-spacing:0; line-height:1.3; font-weight:800; font-size:clamp(32px,4vw,56px)}
h2{font-size:clamp(28px,3.2vw,46px); line-height:1.08; letter-spacing:-.03em; font-weight:600; margin:14px 0 0}
html[lang="ar"] h2{letter-spacing:0; line-height:1.35; font-weight:800}
h3{font-size:20px; font-weight:600; margin:0 0 8px; letter-spacing:-.01em}
html[lang="ar"] h3{letter-spacing:0; font-weight:700}
.lede{font-size:clamp(17px,1.4vw,20px); color:var(--ink-2); max-width:600px; margin:20px 0 0; font-weight:300}
html[lang="ar"] .lede{font-weight:400}
.muted{color:var(--muted)}
.sec{padding:clamp(56px,7vw,100px) 0 0}
.sec-head{max-width:720px}

/* breadcrumb */
.crumbs{display:flex; flex-wrap:wrap; gap:8px; font-size:13.5px; color:var(--muted); margin:0; padding:0; list-style:none}
.crumbs li+li::before{content:"/"; margin-inline-end:8px; color:var(--line-2)}
.crumbs a{text-decoration:none} .crumbs a:hover{color:var(--emerald)}

/* page hero */
.p-hero{padding-top:clamp(28px,4vw,56px)}
.p-hero .grid{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(24px,4vw,56px); align-items:center}
.p-hero .copy .row{margin-top:30px}
.p-hero .pic{border-radius:var(--radius); overflow:hidden; background:#dfe5dd; aspect-ratio:4 / 4.4; position:relative}
.p-hero .pic img{width:100%; height:100%; object-fit:cover}
.p-hero .pic.real{background:var(--ink); aspect-ratio:auto; height:min(560px, 70vh); display:flex; justify-content:center}
.p-hero .pic.real img{width:auto; height:100%; object-fit:contain}
@media (max-width: 860px){ .p-hero .grid{grid-template-columns:1fr} .p-hero .pic{aspect-ratio:16 / 11} .p-hero .pic.real{height:420px} }

/* green panel (branch hero) */
.panel{border-radius:var(--radius); background:radial-gradient(60% 90% at 50% 110%, #36d35a 0%, rgba(54,211,90,0) 60%), linear-gradient(160deg, #11893a 0%, #0b6a2b 55%, #084f21 100%); color:#fff; padding:clamp(26px,4vw,56px); display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:clamp(24px,4vw,56px); align-items:end; margin-top:22px}
.panel .label{color:#9af0ad} .panel .label::before{background:#9af0ad}
.panel h1{color:#fff}
.panel .lede{color:rgba(255,255,255,.85)}
.panel .row{margin-top:28px}
.facts{background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); border-radius:22px; padding:22px; display:grid; gap:16px; font-size:15px}
.facts b{display:block; font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; color:#9af0ad; margin-bottom:2px}
html[lang="ar"] .facts b{letter-spacing:0; font-size:13.5px}
.facts a{color:#fff}
@media (max-width: 860px){ .panel{grid-template-columns:1fr} }

/* cards */
.duo{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; margin-top:36px}
@media (max-width: 860px){ .duo{grid-template-columns:1fr} }
.card{border-radius:var(--radius); background:var(--paper); border:1px solid var(--line); padding:clamp(22px,3vw,34px)}
.card p{margin:0; color:var(--ink-2)}
.card.mint{background:var(--mint); border-color:transparent}
.ticks{list-style:none; margin:18px 0 0; padding:0; display:grid; gap:12px}
.ticks li{display:flex; gap:12px; align-items:flex-start; color:var(--ink-2)}
.ticks li::before{content:""; flex:none; width:22px; height:22px; margin-top:2px; border-radius:50%; background:var(--emerald) 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/13px no-repeat}
.steps{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; margin-top:36px; padding:0; list-style:none; counter-reset:s}
.steps li{border-radius:24px; background:var(--paper); border:1px solid var(--line); padding:24px; counter-increment:s}
.steps li::before{content:counter(s); display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--mint); color:var(--emerald); font-weight:700; margin-bottom:18px}
.steps p{margin:0; color:var(--muted); font-size:15px}
@media (max-width: 1000px){ .steps{grid-template-columns:1fr 1fr} }
@media (max-width: 560px){ .steps{grid-template-columns:1fr} }

/* faq */
.faq{margin-top:26px; border-top:1px solid var(--line-2)}
.faq details{border-bottom:1px solid var(--line-2)}
.faq summary{list-style:none; cursor:pointer; display:flex; justify-content:space-between; gap:20px; align-items:center; padding:22px 4px; font-size:clamp(17px,1.5vw,20px); font-weight:500}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; font-size:28px; font-weight:300; color:var(--emerald); transition:transform .3s; flex:none}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{margin:0 4px 22px; max-width:760px; color:var(--ink-2)}
.faq-grid{display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:40px}
.faq-grid + .faq-grid{margin-top:48px}
@media (max-width: 900px){ .faq-grid{grid-template-columns:1fr; gap:0} }

/* link tiles (treatments, branches) */
.tiles{display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:16px; margin-top:32px}
.tile{display:flex; flex-direction:column; justify-content:space-between; gap:22px; min-height:150px; border-radius:24px; background:var(--paper); border:1px solid var(--line); padding:24px; text-decoration:none; transition:border-color .25s, transform .25s}
.tile:hover{border-color:var(--emerald); transform:translateY(-3px)}
.tile b{font-size:19px; font-weight:600; display:block}
.tile span{color:var(--muted); font-size:14.5px}
.tile .go{width:42px; height:42px; border-radius:50%; border:1px solid var(--line-2); display:grid; place-items:center; transition:background .25s, color .25s, border-color .25s}
.tile:hover .go{background:var(--emerald); border-color:var(--emerald); color:#fff}
.tile .go svg{width:18px; height:18px}
.tile.on{border-color:var(--emerald); background:var(--mint)}
.also{margin:18px 0 0; color:var(--muted); font-size:15px}

/* cta band */
.cta{border-radius:36px; background:var(--ink); color:#fff; padding:clamp(28px,5vw,64px); display:flex; justify-content:space-between; align-items:center; gap:28px; flex-wrap:wrap; position:relative; overflow:hidden; isolation:isolate}
.cta::after{content:""; position:absolute; z-index:-1; width:520px; height:520px; border-radius:50%; background:radial-gradient(circle, rgba(43,194,74,.3), transparent 65%); inset:auto -140px -260px auto}
.cta h2{color:#fff; margin:0}
.cta p{margin:12px 0 0; color:rgba(255,255,255,.75); max-width:520px}

/* footer */
footer{margin-top:clamp(56px,7vw,100px); background:var(--ink); color:rgba(255,255,255,.7); border-radius:36px 36px 0 0; padding:clamp(40px,6vw,72px) 0 30px; overflow:hidden}
.foot-word{pointer-events:none; font-size:14.2vw; font-weight:700; letter-spacing:-.045em; line-height:.8; color:#fff; white-space:nowrap; text-align:center; margin:0 0 40px; opacity:.95}
.foot-word .g{color:var(--green)}
.foot{display:grid; grid-template-columns:minmax(0,1.2fr) repeat(3, minmax(0,1fr)); gap:28px; padding-bottom:26px; border-bottom:1px solid rgba(255,255,255,.12); font-size:14.5px}
.foot h4{margin:0 0 12px; color:#fff; font-size:14px; font-weight:600}
.foot nav{display:grid; gap:8px}
.foot a{text-decoration:none} .foot a:hover{color:#fff}
@media (max-width: 860px){ .foot{grid-template-columns:1fr 1fr} .foot > div:first-child{grid-column:1 / -1} }
.legal{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-top:22px; padding-bottom:84px; font-size:13px}
.legal a{color:#fff; text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(255,255,255,.4)}
