/* ============================================================
   clinicsUAE — shared brand stylesheet
   tokens, base layout, nav, footer, buttons, cards, placeholders
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink:        #14172a;
  --ink-2:      #1f2238;
  --ink-soft:   #2a2d44;
  --ink-line:   rgba(20,23,42,.10);
  --cream:      #f6efe6;
  --cream-2:    #fbf6ef;
  --blush:      #f3e4dc;
  --paper:      #ffffff;
  --rose:       #c9a96e;
  --rose-deep:  #a8884d;
  --rose-soft:  #e8d6b3;
  --wa:         #25D366;
  --wa-deep:    #1ebe5d;
  --muted:      #6c6f86;
  --star:       #d9a441;

  --rad-s: 10px;
  --rad-m: 14px;
  --rad-l: 22px;
  --rad-pill: 999px;

  --shadow-card: 0 1px 0 rgba(20,23,42,.04), 0 18px 40px -22px rgba(20,23,42,.18);
  --shadow-soft: 0 1px 0 rgba(20,23,42,.04), 0 8px 24px -16px rgba(20,23,42,.18);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad:    clamp(20px, 4vw, 56px);
  --gutter: clamp(56px, 9vw, 120px);
  --maxw: 1240px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--rose); color: var(--ink); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
section { padding-block: var(--gutter); }

.section-eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 {
  font: 500 clamp(30px, 4.2vw, 52px)/1.05 var(--serif);
  letter-spacing: -.01em;
  margin: 14px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.section-head p.lede {
  color: var(--muted);
  max-width: 44ch;
  margin: 0;
  font-size: 16px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--rad-pill);
  font: 600 15px/1 var(--sans);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37,211,102,.6), inset 0 -2px 0 rgba(0,0,0,.06);
}
.btn-wa:hover { background: var(--wa-deep); }
.btn-wa.lg { padding: 18px 28px; font-size: 16px; }
.btn-wa.xl { padding: 22px 34px; font-size: 17px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-line);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-light:hover { border-color: var(--rose); color: var(--rose); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.86);
  border-bottom-color: var(--ink-line);
  box-shadow: 0 1px 0 rgba(20,23,42,.02), 0 10px 30px -22px rgba(20,23,42,.18);
}
.nav-inner { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 19px/1 var(--serif);
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f1dfb8 0%, var(--rose) 45%, var(--rose-deep) 100%);
  box-shadow: inset 0 -2px 6px rgba(0,0,0,.18), inset 0 2px 4px rgba(255,255,255,.45);
  position: relative;
}
.logo-mark::after {
  content: "c";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 600 14px/1 var(--serif);
  color: var(--ink);
}
.logo small {
  color: var(--rose-deep);
  font: 500 10px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-inline-start: 6px;
}
.nav-links { display: flex; gap: 28px; margin-inline-start: 28px; flex: 1; }
.nav-links a {
  font: 500 14px/1 var(--sans);
  color: var(--ink-soft);
  position: relative;
  padding-block: 6px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--rose);
  transition: right .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta { display: inline-flex; align-items: center; gap: 12px; }
.nav-phone { font: 500 13px/1 var(--mono); color: var(--ink-soft); }
.nav-burger {
  display: none; width: 40px; height: 40px;
  border-radius: var(--rad-pill); border: 1px solid var(--ink-line);
  background: #fff; align-items: center; justify-content: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-burger span::before { position: absolute; top: -5px; left: 0; }
.nav-burger span::after  { position: absolute; top:  5px; left: 0; }

@media (max-width: 880px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: inline-flex; }
  .nav .btn-wa { padding: 10px 14px; font-size: 13px; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font: 500 12px/1 var(--mono);
  letter-spacing: .06em;
  color: var(--muted);
  padding-block: 18px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.crumbs a:hover { color: var(--rose-deep); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Placeholders ---------- */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 8px, rgba(255,255,255,0) 8px 16px),
    linear-gradient(160deg, #2a2236 0%, #3a2b3a 60%, #5a3f3a 100%);
  color: rgba(255,255,255,.55);
  display: grid; place-items: center;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px;
  text-align: center;
}
.ph.warm {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 8px, rgba(255,255,255,0) 8px 16px),
    linear-gradient(160deg, #c9a96e 0%, #a8884d 50%, #6a4e2c 100%);
  color: rgba(0,0,0,.45);
}
.ph.blush {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.03) 0 8px, rgba(0,0,0,0) 8px 16px),
    linear-gradient(160deg, #f3e4dc 0%, #e8d0c5 100%);
  color: rgba(20,23,42,.45);
}
.ph.cream {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 8px, rgba(0,0,0,0) 8px 16px),
    linear-gradient(160deg, #fbf6ef 0%, #f1e6d6 100%);
  color: rgba(20,23,42,.4);
}
.ph.light {
  background:
    repeating-linear-gradient(135deg, rgba(20,23,42,.05) 0 8px, rgba(20,23,42,0) 8px 16px),
    #f3f0ea;
  color: rgba(20,23,42,.45);
}

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--ink-line);
  border-radius: var(--rad-pill);
  font-size: 12.5px;
  background: #fff;
  color: var(--ink-soft);
}
.chip.dark {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.16);
  color: rgba(246,244,239,.85);
}
.chip.solid { background: var(--cream); border-color: var(--rose-soft); color: var(--rose-deep); }

/* ---------- Clinic card (reusable) ---------- */
.clinic-card {
  background: #fff;
  border: 1px solid var(--ink-line);
  border-radius: var(--rad-m);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.clinic-card:hover { border-color: var(--rose); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.clinic-cover {
  aspect-ratio: 5/3;
  position: relative;
}
.clinic-cover .verified {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: var(--rad-pill);
  padding: 6px 10px;
  font: 500 11px/1 var(--sans);
  display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(6px);
}
.clinic-cover .verified svg { width: 12px; height: 12px; color: var(--rose-deep); }
.clinic-cover .rating {
  position: absolute; top: 14px; right: 14px;
  background: rgba(20,23,42,.85); color: #fff;
  border-radius: var(--rad-pill);
  padding: 6px 10px;
  font: 500 12px/1 var(--sans);
  display: inline-flex; gap: 6px; align-items: center;
}
.clinic-cover .rating .star { color: var(--star); }
.clinic-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.clinic-body h4 {
  font: 500 22px/1.2 var(--serif);
  margin: 0;
  letter-spacing: -.005em;
}
.clinic-loc {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13.5px;
}
.clinic-loc svg { width: 14px; height: 14px; }
.clinic-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.clinic-tag {
  padding: 5px 9px;
  border-radius: var(--rad-pill);
  background: var(--cream);
  color: var(--ink-soft);
  font: 500 11.5px/1 var(--sans);
  border: 1px solid var(--rose-soft);
}
.clinic-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; margin-top: 4px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
  color: var(--muted);
}
.clinic-meta b { color: var(--ink); font-weight: 600; font-family: var(--mono); }
.clinic-actions { display: flex; gap: 10px; padding: 0 22px 22px; }
.clinic-actions .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(246,244,239,.8);
  padding-block: 72px 28px;
}
footer.site .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 880px) { footer.site .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { footer.site .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
footer.site h6 {
  font: 500 12px/1 var(--mono);
  color: var(--rose);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site ul a {
  color: rgba(246,244,239,.7);
  font-size: 14px;
  transition: color .2s ease;
}
footer.site ul a:hover { color: var(--rose); }
footer.site .foot-brand p {
  color: rgba(246,244,239,.6);
  font-size: 14px;
  max-width: 36ch;
  margin: 14px 0 18px;
}
.foot-wa {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff;
  font: 500 14px/1 var(--mono);
  padding: 10px 14px;
  border-radius: var(--rad-pill);
  background: rgba(37,211,102,.18);
  border: 1px solid rgba(37,211,102,.5);
}
.foot-wa svg { color: var(--wa); width: 14px; height: 14px; }
footer.site .foot-bottom {
  padding-top: 24px;
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  font-size: 12.5px;
  color: rgba(246,244,239,.5);
}
footer.site .foot-bottom .disclaimer { max-width: 60ch; }

/* ---------- Generic page hero ---------- */
.page-hero {
  position: relative;
  color: #f6f4ef;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(201,169,110,.22), transparent 60%),
    linear-gradient(160deg, #181a30 0%, #14172a 60%, #0f1124 100%);
  overflow: clip;
}
.page-hero .wrap { padding-block: clamp(72px, 9vw, 130px); }
.page-hero .eyebrow {
  color: var(--rose);
  font: 500 12px/1 var(--mono);
  letter-spacing: .25em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.page-hero .eyebrow::before { content:""; width:24px; height:1px; background: var(--rose); }
.page-hero h1 {
  font: 500 clamp(36px, 5.4vw, 64px)/1.05 var(--serif);
  letter-spacing: -.01em;
  margin: 0 0 22px;
  max-width: 22ch;
  text-wrap: balance;
}
.page-hero h1 em { font-style: italic; color: var(--rose); font-weight: 400; }
.page-hero p.sub {
  font-size: clamp(16px, 1.3vw, 18px);
  color: rgba(246,244,239,.78);
  max-width: 56ch;
  margin: 0 0 32px;
}
.page-hero .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero .meta-row {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  font-size: 13px;
  color: rgba(246,244,239,.7);
  align-items: center;
}
.page-hero .meta-row b { color: #fff; font-weight: 600; }
.page-hero .meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }

/* ---------- Lead capture (cream variant) ---------- */
.lead-strip {
  background:
    radial-gradient(700px 380px at 80% 50%, rgba(201,169,110,.28), transparent 65%),
    linear-gradient(180deg, var(--blush), var(--cream));
}
.lead-strip .inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .lead-strip .inner { grid-template-columns: 1fr; gap: 36px; } }
.lead-strip h2 {
  font: 500 clamp(28px, 3.6vw, 46px)/1.1 var(--serif);
  margin: 14px 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}
.lead-strip p.sub { color: var(--ink-soft); max-width: 48ch; margin: 0 0 26px; font-size: 17px; }
.lead-strip .foot {
  margin-top: 16px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: .04em;
  color: var(--ink-soft);
  display: inline-flex; gap: 14px; flex-wrap: wrap;
}
.lead-strip .foot span { display: inline-flex; align-items: center; gap: 6px; }
.lead-strip .foot span::before { content: "•"; color: var(--rose); }

/* ---------- Mobile-only: sticky bottom WhatsApp action bar ---------- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--ink-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: none;
  gap: 10px;
  align-items: center;
}
.mobile-bottom-bar .price-stub {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.mobile-bottom-bar .price-stub small {
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-bottom-bar .price-stub b {
  font: 500 15px/1.1 var(--serif);
  color: var(--ink);
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-bottom-bar .btn-wa { padding: 13px 18px; font-size: 14px; }

/* On mobile templates we add class .mobile to body to enable */
body.mobile .mobile-bottom-bar { display: flex; }
body.mobile { padding-bottom: 80px; }

/* ---------- Mobile sheet for menu ---------- */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(20,23,42,.55);
  backdrop-filter: blur(6px);
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu .sheet {
  position: absolute;
  inset: auto 0 0 0;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,.25);
}
.mobile-menu .sheet h6 {
  font: 500 11px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 8px;
}
.mobile-menu .sheet a {
  padding: 14px 6px;
  font: 500 16px/1 var(--serif);
  color: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.mobile-menu .sheet a:last-of-type { border-bottom: 0; }
.mobile-menu .sheet .close {
  align-self: flex-end;
  border: 1px solid var(--ink-line);
  background: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
}

/* ---------- Utility ---------- */
.h2 {
  font: 500 clamp(28px, 3.6vw, 46px)/1.1 var(--serif);
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font: 500 clamp(22px, 2.4vw, 30px)/1.2 var(--serif);
  letter-spacing: -.005em;
  margin: 0;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.rule { border: 0; border-top: 1px solid var(--ink-line); margin: 0; }

/* FAQ accordion */
.faq details {
  border-top: 1px solid var(--ink-line);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--ink-line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
  font: 500 18px/1.3 var(--serif);
  cursor: pointer;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font: 400 24px/1 var(--serif);
  color: var(--rose-deep);
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 70ch;
  font-size: 15.5px;
}
