/* ════════════════════════════════════════════════════════════════════════
   myfngroup — shared demo stylesheet
   Each demo page sets its own palette via four CSS variables on <body>:
     --accent, --accent-dark, --accent-deep, --accent-soft
   Everything else is shared so all demos stay visually consistent.
   ════════════════════════════════════════════════════════════════════════ */
:root {
  --ink: #0F2826;
  --ink-soft: #475D6E;
  --muted: #8095A0;
  --line: #E2EBEF;
  --bg: #FFFFFF;
  --bg-soft: #F5F9FB;
  --gold: #F5A623;
  --radius: 16px;
  --max: 1140px;
  --pad: clamp(20px, 5vw, 64px);
}
/* Fallback palette (overridden per-page on <body>) */
body {
  --accent: #1E3A8A;
  --accent-dark: #1B3478;
  --accent-deep: #122456;
  --accent-soft: #EAEEF9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.serif { font-family: "Fraunces", Georgia, serif; }

/* ── Demo ribbon ── */
.ribbon {
  background: linear-gradient(90deg, #0F2826, var(--accent-deep));
  color: #fff; font-size: 13.5px; text-align: center;
  padding: 9px 16px; display: flex; align-items: center;
  justify-content: center; gap: 12px; flex-wrap: wrap;
}
.ribbon b { font-weight: 700; }
.ribbon a {
  color: #fff; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 12px; border-radius: 999px;
  transition: background 0.2s; white-space: nowrap;
}
.ribbon a:hover { background: rgba(255,255,255,0.15); }

/* ── Header ── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; padding: 14px var(--pad); max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -6px var(--accent); flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; transition: color 0.18s; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-cta { background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 11px; box-shadow: 0 10px 22px -8px var(--accent); transition: transform 0.18s, box-shadow 0.18s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px var(--accent); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ── Hero ── */
.hero { background: radial-gradient(ellipse at 80% -10%, var(--accent-soft), transparent 60%), var(--bg); padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.hero h1 { font-size: clamp(36px, 5.5vw, 60px); letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--accent); font-family: "Fraunces", serif; font-style: italic; font-weight: 600; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 13px; box-shadow: 0 14px 30px -10px var(--accent); transition: transform 0.18s, box-shadow 0.18s; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px var(--accent); }
.btn-ghost { color: var(--ink); font-weight: 600; font-size: 16px; padding: 15px 22px; border-radius: 13px; border: 1.5px solid var(--line); transition: border-color 0.18s, background 0.18s; display: inline-flex; align-items: center; gap: 9px; }
.btn-ghost:hover { border-color: var(--accent); background: var(--bg-soft); }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.hero-trust .t { font-size: 14px; color: var(--ink-soft); }
.hero-trust .t b { color: var(--ink); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo { border-radius: 24px; aspect-ratio: 4/4.4; background: linear-gradient(160deg, var(--accent), var(--accent-deep)); position: relative; overflow: hidden; box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent-dark) 60%, transparent); }
.hero-photo svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Real clinic photo hero (replaces the SVG scene) */
.hero-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 24%, transparent) 0%, transparent 46%, color-mix(in srgb, var(--accent-deep) 58%, transparent) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo-img { animation: demoKen 20s ease-in-out infinite alternate; }
}
@keyframes demoKen { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-photo .grain { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.22), transparent 50%); }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 44px -16px rgba(15,40,38,0.35); display: flex; align-items: center; gap: 12px; }
.float-card .fi { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.float-card .ft { font-size: 12px; color: var(--muted); font-weight: 600; }
.float-card .fb { font-size: 15px; color: var(--ink); font-weight: 800; }
.fc-1 { top: 22px; left: -26px; }
.fc-2 { bottom: 26px; right: -22px; }
@media (max-width: 920px) { .fc-1 { left: 10px; } .fc-2 { right: 10px; } }
@media (max-width: 480px) { .fc-1, .fc-2 { position: static; margin: 12px auto 0; max-width: 250px; } }

/* ── Stats band ── */
.stats { background: linear-gradient(135deg, var(--accent-deep), #0F2826); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px var(--pad); max-width: var(--max); margin: 0 auto; text-align: center; }
@media (max-width: 680px) { .stats-inner { grid-template-columns: 1fr 1fr; gap: 30px 12px; } }
.stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat .num .suf { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.stat .lbl { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,0.7); }

/* ── Trust strip ── */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trustbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--pad); max-width: var(--max); margin: 0 auto; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.trust-item svg { color: var(--accent); flex: none; }

/* ── Sections ── */
section.block { padding: clamp(56px, 8vw, 100px) 0; }
.eyebrow { display: inline-block; color: var(--accent-dark); font-weight: 700; font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.sec-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); }
.sec-head p { font-size: 17px; color: var(--ink-soft); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px color-mix(in srgb, var(--accent-dark) 50%, transparent); border-color: transparent; }
.svc .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc h3 { font-size: 19px; }
.svc p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ck { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.feature-list h4 { margin: 0 0 3px; font-size: 16px; }
.feature-list p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.split-visual { border-radius: 22px; aspect-ratio: 5/4.4; background: linear-gradient(150deg, #0F2826, var(--accent-deep)); position: relative; overflow: hidden; box-shadow: 0 36px 70px -30px rgba(15,40,38,0.55); }
.split-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }
.doc { text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; transition: transform 0.25s, box-shadow 0.25s; }
.doc:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -24px rgba(15,40,38,0.4); }
.doc .av { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff; }
.doc h3 { font-size: 18px; margin-bottom: 2px; }
.doc .role { color: var(--accent-dark); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.doc p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Reviews */
.reviews { background: var(--bg-soft); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .rev-grid { grid-template-columns: 1fr; } }
.rev { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.rev .stars { font-size: 15px; margin-bottom: 12px; }
.rev p { font-size: 15px; color: var(--ink); margin: 0 0 18px; }
.rev .who { display: flex; align-items: center; gap: 12px; }
.rev .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.rev .who b { display: block; font-size: 14px; }
.rev .who span { font-size: 12.5px; color: var(--muted); }

/* ── Booking section (form mockup + info) ── */
.book { background: var(--bg-soft); }
.book-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; gap: 32px; } }
.book-info h2 { font-size: clamp(26px, 3.5vw, 40px); }
.book-info p { font-size: 16.5px; color: var(--ink-soft); }
.book-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.book-points li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink); font-weight: 500; }
.book-points .ck { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 30px 60px -34px rgba(15,40,38,0.5); }
.book-card h3 { font-size: 20px; margin-bottom: 4px; }
.book-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field .fake-input { height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-soft); display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.slot { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; transition: all 0.18s; }
.slot.is-active, .slot:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.book-card .btn-primary { width: 100%; justify-content: center; margin-top: 18px; }

/* ── Location ── */
.loc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: stretch; }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }
.map { border-radius: 20px; min-height: 320px; position: relative; overflow: hidden; background: linear-gradient(135deg, #E8F0F2, #DCE8EC); border: 1px solid var(--line); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: absolute; top: 46%; left: 50%; transform: translate(-50%,-100%); color: var(--accent); filter: drop-shadow(0 6px 8px rgba(0,0,0,0.2)); }
.loc-info { display: flex; flex-direction: column; justify-content: center; }
.loc-info .row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.loc-info .row:last-child { border-bottom: none; }
.loc-info .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.loc-info h4 { margin: 0 0 2px; font-size: 15px; }
.loc-info p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ── CTA band ── */
.cta-band { background: linear-gradient(135deg, var(--accent-deep), #0F2826); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 520px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4); }
.cta-band .glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%); top: -120px; right: -80px; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
details.q { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--bg); overflow: hidden; }
details.q summary { cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary .chev { transition: transform 0.2s; color: var(--accent); flex: none; }
details.q[open] summary .chev { transform: rotate(180deg); }
details.q .a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }

/* ── Footer ── */
footer.ft { background: #0F2826; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }
.ft h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.ft .brand { color: #fff; margin-bottom: 14px; }
.ft a { color: rgba(255,255,255,0.7); display: block; margin-bottom: 9px; font-size: 14.5px; transition: color 0.18s; }
.ft a:hover { color: #fff; }
.ft p { font-size: 14.5px; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding: 22px 0; text-align: center; font-size: 13px; }
.ft-bottom a { color: var(--accent); font-weight: 600; }

/* ── Sticky mobile booking bar ── */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15,40,38,0.3); padding: 10px 16px; display: none; align-items: center; gap: 12px; transform: translateY(100%); transition: transform 0.3s ease; }
.mobile-bar.show { transform: translateY(0); }
.mobile-bar .mb-txt { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.mobile-bar .mb-txt span { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.mobile-bar .btn-primary { margin-left: auto; font-size: 14px; padding: 11px 18px; }
@media (max-width: 720px) { .mobile-bar { display: flex; } }

/* ── Floating "built by" badge ── */
.built-badge { position: fixed; bottom: 18px; right: 18px; z-index: 60; background: #0F2826; color: #fff; padding: 11px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 9px; transition: transform 0.2s; }
.built-badge:hover { transform: translateY(-3px); }
.built-badge .bm { width: 20px; height: 20px; border-radius: 6px; background: #1E3A8A; display: flex; align-items: center; justify-content: center; flex: none; }
@media (max-width: 720px) { .built-badge { bottom: 70px; right: 12px; padding: 8px 12px; font-size: 11.5px; } }

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

/* ── Footer accessibility badge (widget styles live in ../a11y.css) ── */
.a11y-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.85);
}
