/* Dr. Caroline Agha — Neurology, EMG & Headache Clinic, Beirut */
:root {
  --navy: #14223d;
  --navy-2: #1d3157;
  --ink: #1b1f2a;
  --muted: #5b6475;
  --line: #e4e0d8;
  --ivory: #faf8f4;
  --paper: #ffffff;
  --gold: #b68d4c;
  --gold-soft: #f3ebdd;
  --teal: #2f6f73;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(20, 34, 61, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Noto Kufi Arabic", "Geeza Pro", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .9rem; display: inline-block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.ar { font-family: var(--arabic); direction: rtl; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 99; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .55em; padding: .95em 1.6em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; border: 1.5px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .88); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 1.55rem; color: var(--navy); font-weight: 600; }
.brand span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 3px; }
.nav-links { display: flex; gap: 22px; white-space: nowrap; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; background: radial-gradient(closest-side, var(--gold-soft), transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero .ar { font-size: 1.05rem; color: var(--muted); margin: -.2em 0 1.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .82rem; font-weight: 500; color: var(--navy); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 220px 220px var(--radius) var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: top; width: 100%; box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -26px; bottom: 36px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.hero-badge b { font-family: var(--serif); font-size: 2.3rem; color: var(--navy); line-height: 1; }
.hero-badge small { font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* Trust strip */
.strip { background: var(--navy); color: #d9deea; padding: 26px 0; }
.strip ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 30px; list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.strip li { display: flex; align-items: center; gap: 10px; }
.strip li::before { content: "✦"; color: var(--gold); }

/* About */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--gold); }

/* Services */
.services { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 50px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: 20px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink); font-size: .92rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--gold); }
.card.feature { background: var(--navy); color: #d9deea; border-color: var(--navy); }
.card.feature h3 { color: #fff; }
.card.feature p { color: #b9c2d6; }
.card.feature ul { color: #e6e9f1; }
.card.feature .ico { background: var(--gold); color: var(--navy); }

/* Deep dive */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.steps { counter-reset: s; display: grid; gap: 16px; margin-top: 10px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 20px 70px; position: relative; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); font-weight: 600; }
.step h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
.panel { background: var(--gold-soft); border-radius: var(--radius); padding: 34px; }
.panel h3 { margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .82rem; color: var(--navy); border: 1px solid #e8dcc6; }

/* Headache */
.headache { background: linear-gradient(180deg, var(--navy) 0%, #0f1a30 100%); color: #d9deea; }
.headache h2, .headache h3 { color: #fff; }
.headache .lead { color: #b9c2d6; }
.tx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.tx { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 24px; }
.tx h3 { font-size: 1.3rem; }
.tx p { font-size: .92rem; color: #b9c2d6; margin: 0; }
.tx .k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: block; margin-bottom: 8px; }
.callout { margin-top: 36px; border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; color: #e6e9f1; max-width: 800px; }

/* Aesthetics */
.aesthetic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.aesthetic-grid img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; object-position: center 20%; }
.price-list { display: grid; gap: 12px; margin: 20px 0 26px; }
.price-list div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.price-list b { color: var(--navy); font-weight: 600; }
.price-list span { color: var(--muted); font-size: .92rem; text-align: right; }

/* Reviews */
.reviews { background: var(--paper); }
.rating-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.review .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--navy); }
.review cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.review .placeholder-note { position: absolute; top: 14px; right: 14px; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; background: #fff3cd; color: #7a5a00; padding: 3px 8px; border-radius: 6px; }

/* Insights */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .thumb { height: 150px; display: grid; place-items: center; font-family: var(--serif); font-size: 3.2rem; color: rgba(255,255,255,.9); }
.post .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post .meta { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.post h3 { font-size: 1.35rem; }
.post p { color: var(--muted); font-size: .93rem; flex: 1; }
.post .more { font-weight: 600; font-size: .88rem; color: var(--navy); }
.topics { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.topics span { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; font-size: .85rem; color: var(--navy); }

/* FAQ */
.faq-list { max-width: 880px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; color: var(--muted); }

/* References */
.refs { background: var(--paper); }
.refs ol { padding-left: 22px; display: grid; gap: 12px; font-size: .9rem; color: var(--muted); max-width: 1000px; }
.refs ol a { word-break: break-word; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { background: var(--navy); color: #d9deea; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.contact-card h2 { color: #fff; }
.contact-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 14px 18px; margin: 26px 0 30px; }
.contact-card dt { color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.contact-card dd { margin: 0; color: #fff; }
.contact-card a { color: #fff; }
form.book { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
form.book label { font-size: .8rem; font-weight: 600; color: var(--navy); display: grid; gap: 6px; }
form.book input, form.book select, form.book textarea { font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); width: 100%; }
form.book .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.book small { color: var(--muted); font-size: .78rem; }
.map { margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
footer { background: #0f1a30; color: #9aa4ba; padding: 60px 0 30px; font-size: .88rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: #c9d0de; text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .brand strong { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 24px; font-size: .78rem; line-height: 1.6; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Article pages */
.article-hero { padding: 70px 0 40px; background: var(--paper); border-bottom: 1px solid var(--line); }
.article-hero .meta { color: var(--muted); font-size: .9rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
article.prose { max-width: 760px; margin: 0 auto; padding: 50px 20px 80px; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.prose .box { background: var(--gold-soft); border-radius: 14px; padding: 22px 26px; margin: 28px 0; }
.prose .box p:last-child { margin: 0; }
.prose .author { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 40px 0; }
.prose .author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; }
.prose .sources { font-size: .86rem; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1280px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--ivory); padding: 20px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .cards, .post-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .tx-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-grid, .about-grid, .split, .aesthetic-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .hero-badge { left: 10px; }
  .cards, .post-grid, .review-grid, .tx-grid, .stats { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  form.book .row { grid-template-columns: 1fr; }
  .contact-card dl { grid-template-columns: 1fr; gap: 4px; }
  .contact-card dd { margin-bottom: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
}
