/* ==========================================================================
   Mitra Clinic — public site
   Clean, premium, single-physician practice.
   ========================================================================== */

:root {
  --ink: #0f2230;
  --ink-2: #3d4d59;
  --muted: #6b7a85;
  --line: #e6e9e6;
  --line-2: #d9dfdb;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --mist: #eef4f1;
  --mist-2: #e2ede8;

  --brand: #0f6e69;
  --brand-600: #0b5a56;
  --brand-700: #08443f;
  --brand-50: #e7f2ef;
  --navy: #13305a;
  --sand: #b8956a;
  --sand-50: #f6efe5;

  --danger: #b4372c;
  --success: #1f7a4d;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 34, 48, .05), 0 1px 1px rgba(15, 34, 48, .03);
  --shadow: 0 10px 30px -12px rgba(15, 34, 48, .18), 0 2px 6px rgba(15, 34, 48, .04);
  --shadow-lg: 0 30px 60px -24px rgba(15, 34, 48, .28);

  --container: 1180px;
  --gutter: 24px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-700); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
::selection { background: var(--brand-50); color: var(--brand-700); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #dbe4e8; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head.text-center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section-head p { color: var(--ink-2); font-size: 1.075rem; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn i { font-size: 1.05em; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 110, 105, .7); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand-50); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 11px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(3px); }

/* Header ------------------------------------------------------------------ */
.topbar { background: var(--ink); color: #b9c6cd; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #e8eef1; }
.topbar a:hover { color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-hours { display: inline-flex; align-items: center; gap: 8px; }
.topbar-hours br { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,34,48,.4); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink-2); font-size: .94rem; font-weight: 500; padding: 10px 14px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--ink); background: var(--mist); }
.nav .btn { margin-left: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink); font-size: 1.35rem;
}

@media (max-width: 960px) {
  .topbar-hours { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 0px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); padding: 16px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; }
  .site-header.has-topbar .nav { top: var(--header-h); }
}

/* Flash ------------------------------------------------------------------- */
.flash {
  position: fixed; top: 92px; right: 24px; z-index: 80;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-left: 3px solid var(--success); padding: 14px 18px; border-radius: 12px;
  box-shadow: var(--shadow); font-size: .95rem; animation: flash-out .4s ease 5s forwards;
}
@keyframes flash-out { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(15,110,105,.10), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 400; }
.hero .lead { margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero-note i { color: var(--brand); }

.hero-media { position: relative; }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,34,48,.28)); }

.float-card {
  position: absolute; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.float-card--hours { left: -36px; bottom: 36px; max-width: 290px; }
.float-card--cred { right: -24px; top: 32px; display: flex; align-items: center; gap: 12px; }
.float-card .fc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.float-card .fc-body { font-size: .95rem; color: var(--ink); font-weight: 500; line-height: 1.55; }
.fc-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.fc-title { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.fc-sub { font-size: .8rem; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43,182,115,.18); }

/* Credentials strip -------------------------------------------------------- */
.creds { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 28px 24px; display: flex; gap: 14px; align-items: flex-start; }
.cred + .cred { border-left: 1px solid var(--line); }
.cred i { font-size: 1.35rem; color: var(--sand); margin-top: 2px; }
.cred strong { display: block; font-weight: 600; font-size: .96rem; color: var(--ink); }
.cred span { font-size: .86rem; color: var(--muted); }

/* About doctor ------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.doctor-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.doctor-portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--mist-2), var(--sand-50)); margin-bottom: 22px; }
.doctor-portrait img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h3 { font-size: 1.55rem; margin-bottom: 4px; }
.doctor-card .edu { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.doctor-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: var(--mist); color: var(--brand-700); }
.doctor-card .btn { width: 100%; }

.prose { color: var(--ink-2); font-size: 1.06rem; }
.prose p { margin-bottom: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose b, .prose strong { color: var(--ink); }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }
.timeline .yr { font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--sand); text-transform: uppercase; }
.timeline .what { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.3; margin: 2px 0 2px; }
.timeline .where { font-size: .92rem; color: var(--muted); }

/* Services ---------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.3rem; margin-bottom: 18px; }
.service h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0; line-height: 1.35; }
.services-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-2); }
.services-foot p { margin: 0; color: var(--ink-2); }

/* Steps ------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--sand); margin-bottom: 22px; font-style: italic; }
.step h3 { color: #fff; font-size: 1.3rem; }
.step p { color: #a9b8c0; margin: 0; font-size: .97rem; }
.section--ink h2 { color: #fff; }
.section--ink .eyebrow { color: #8fd1c9; }
.section--ink .section-head p { color: #a9b8c0; }

/* Visit / contact --------------------------------------------------------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.info-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 16px; }
.info-card h3 i { color: var(--brand); font-size: 1.15rem; }
.info-card p, .info-card address { color: var(--ink-2); font-style: normal; margin: 0 0 18px; }
.hours { font-size: 1.05rem; color: var(--ink); line-height: 1.9; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list i { color: var(--brand); font-size: 1.1rem; margin-top: 2px; }
.info-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.info-list a, .info-list span { color: var(--ink); font-weight: 500; }
.qr { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius); background: var(--mist); margin-top: 20px; }
.qr img { width: 92px; height: 92px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.qr strong { display: block; font-size: .98rem; }
.qr span { font-size: .88rem; color: var(--muted); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--mist); min-height: 360px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.25) contrast(1.02); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-700); color: #d6ebe7; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: #b9d8d2; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #9fb0ba; padding: 72px 0 0; margin-top: clamp(64px, 9vw, 120px); font-size: .94rem; }
.site-footer.no-gap { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #d6e0e5; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #8396a1; }
.footer-about { margin: 18px 0 0; max-width: 34ch; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: #7f919c; }
.footer-bottom a { color: #9fb0ba; }
.footer-bottom nav { display: flex; gap: 20px; }

/* Mobile action bar ------------------------------------------------------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251,250,247,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 14px 16px; }
  body.has-mobile-bar { padding-bottom: 76px; }
}

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--mist) 0%, var(--bg) 100%); }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal .effective { display: inline-block; font-size: .85rem; color: var(--muted); background: var(--mist); padding: 6px 12px; border-radius: 999px; margin-bottom: 24px; }

/* Articles ---------------------------------------------------------------- */
.article-list { display: grid; gap: 20px; }
.article-card { display: grid; grid-template-columns: 260px 1fr; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; transition: box-shadow .25s ease; }
.article-card:hover { box-shadow: var(--shadow); }
.article-card.no-image { grid-template-columns: 1fr; padding: 28px 30px; }
.article-card .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--mist); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card h2 { font-size: 1.5rem; margin: 6px 0 10px; }
.article-card h2 a { color: var(--ink); }
.article-card .excerpt { color: var(--ink-2); font-size: .98rem; }
.article-meta { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted); }
.empty i { font-size: 2rem; color: var(--brand); display: block; margin-bottom: 12px; }
.pager { margin-top: 32px; }
.pager .pagination { display: flex; gap: 6px; list-style: none; padding: 0; justify-content: center; }
.pager .pagination li > a, .pager .pagination li > span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.pager .pagination li.active > span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .pagination li.disabled > span { opacity: .45; }

/* Message card (thank-you etc.) ------------------------------------------ */
.message-card { max-width: 620px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); box-shadow: var(--shadow-sm); }
.message-card .badge-icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 2rem; }
.message-card .ref { display: inline-block; margin: 8px 0 20px; font-weight: 600; letter-spacing: .04em; padding: 8px 16px; border-radius: 999px; background: var(--mist); }

/* ==========================================================================
   Booking
   ========================================================================== */
.booking-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.booking-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }

.app_navigation { list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 4px; }
.app_navigation li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: .95rem; line-height: 1.35; transition: background .2s ease, color .2s ease; user-select: none; }
.app_navigation li:hover { background: var(--mist); color: var(--ink); }
.app_navigation li.active { background: var(--ink); color: #fff; }
.app_navigation li i { font-size: 1.2rem; flex: none; }
.app_navigation li small { display: block; font-size: .8rem; opacity: .7; font-weight: 400; }

.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: .92rem; color: var(--ink-2); }
.aside-card h4 { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.aside-card .hours { font-size: .95rem; line-height: 1.75; }
.aside-card a { font-weight: 600; }

.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-card-head { padding: 26px 32px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-card-head h2 { font-size: 1.6rem; margin: 0; }
.panel-card-head .ta { font-size: .9rem; color: var(--muted); }
.panel-card-body { padding: 32px; }

.form-block { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.form-block:last-of-type { border-bottom: 0; margin-bottom: 0; }
.form-block-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.form-block-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: .82rem; display: grid; place-items: center; flex: none; align-self: center; }
.form-block-title h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 0; letter-spacing: 0; }
.form-block-title .ta { font-size: .88rem; color: var(--muted); }

.field-row { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.field-row--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field label { font-size: .86rem; font-weight: 500; color: var(--ink-2); margin: 0; }
.field label .ta { color: var(--muted); font-weight: 400; }
.field label .req { color: var(--danger); }
.form-control {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; -webkit-appearance: none; appearance: none;
}
.form-control::placeholder { color: #9aa6ad; }
.form-control:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(15,110,105,.12); }
.form-control.error { border-color: var(--danger); background: #fff8f7; }
.text-error { display: block; color: var(--danger); font-size: .82rem; margin-top: 6px; }
.text-error:empty { display: none; }

/* Date + time chips — markup is driven by public/js/app.js */
.dates { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dates label {
  position: relative; flex: none; scroll-snap-align: start; min-width: 132px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; margin: 0;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.dates label:hover { border-color: var(--brand); }
.dates label.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 20px -12px rgba(15,34,48,.6); }
.dates label span { position: absolute; top: -9px; right: 10px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--sand-50); color: #8a6a3f; border: 1px solid #ead9c1; border-radius: 999px; padding: 2px 8px; }
.dates.error { outline: 1px solid var(--danger); border-radius: 14px; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.times label {
  margin: 0; padding: 12px 10px; text-align: center; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.times label:hover { border-color: var(--brand); color: var(--brand); }
.times label.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.times.error { outline: 1px solid var(--danger); outline-offset: 6px; border-radius: 12px; }
/* A leave day returns a single remark instead of slots */
.times label:only-child:not([data-time*=":"]) { grid-column: 1 / -1; cursor: default; background: var(--sand-50); border-color: #ead9c1; color: #8a6a3f; font-weight: 500; }

.spinner { display: none; padding: 18px 0; }
.spinner-icon { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--mist-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 6px; }
.form-actions .note { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

.bookingConfirmation .confirm { text-align: center; padding: 16px 0 8px; }
.bookingConfirmation .badge-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 2.1rem; }
.bookingConfirmation .card-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; margin: 0 0 6px; }
.bookingConfirmation .card-title small { display: block; font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-top: 6px; }
.bookingConfirmation .card-text { text-align: left; max-width: 460px; margin: 24px auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; line-height: 2.1; font-size: .95rem; color: var(--ink-2); }
.bookingConfirmation .card-text b { color: var(--ink); font-weight: 600; }

/* Retrieved appointments — markup comes from PublicController@retrive */
.viewAppointments { display: grid; gap: 16px; }
.appointmentItem { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.appointmentItem .row { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: start; }
.appointmentItem .calendar { text-align: center; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.appointmentItem #dayname { background: var(--brand); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 4px; }
.appointmentItem #daynumber { font-family: var(--serif); font-size: 2.3rem; line-height: 1.2; padding-top: 6px; }
.appointmentItem #month { font-size: .76rem; color: var(--muted); padding-bottom: 10px; }
.appointmentItem .col-md-6 { font-size: .93rem; line-height: 1.9; color: var(--ink-2); }
.appointmentItem .col-md-6 b { color: var(--ink); font-weight: 600; }
.appointmentItem .col-md-3 label { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; margin: 0 0 8px; color: var(--ink); white-space: nowrap; }
.appointmentItem .col-md-3 label.time { color: var(--brand); font-size: 1rem; }
.appointmentItem .cancel { display: inline-flex; align-items: center; margin-top: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid #efc9c5; color: var(--danger); font-size: .84rem; font-weight: 600; cursor: pointer; background: #fff; }
.appointmentItem .cancel:hover { background: #fff3f2; }
.appointmentItem .hideCancelled, .appointmentItem .hideCompleted { display: none; }

/* WhatsApp / minimal booking -------------------------------------------- */
.minimal-header { padding: 18px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.minimal-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.minimal .app_navigation { grid-template-columns: 1fr 1fr; }
.minimal .booking-layout { grid-template-columns: 1fr; }
.minimal .booking-aside { position: static; }

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .float-card--hours { left: 16px; }
  .float-card--cred { right: 16px; }
}
@media (max-width: 960px) {
  .hero-grid, .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .doctor-card { position: static; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(3) { border-left: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
  .booking-aside .aside-card { display: none; }
  .app_navigation { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 66px; }
  body { font-size: 15.5px; }
  .topbar { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.08rem; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service { padding: 18px 16px; }
  .service-icon { width: 40px; height: 40px; font-size: 1.15rem; margin-bottom: 14px; }
  .service h3 { font-size: .93rem; }
  .creds-grid { grid-template-columns: 1fr; }
  .cred + .cred { border-left: 0; border-top: 1px solid var(--line); }
  .cred { padding: 18px 4px; }
  .float-card--hours { position: relative; left: auto; bottom: auto; margin: -48px 16px 0; max-width: none; }
  .float-card--cred { top: 16px; right: 16px; padding: 12px 14px; }
  .hero-photo { aspect-ratio: 4 / 3.6; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-card { grid-template-columns: 1fr; }
  .panel-card-head, .panel-card-body { padding: 22px 18px; }
  .field-row, .field-row--2 { grid-template-columns: 1fr; }
  .appointmentItem .row { grid-template-columns: 88px 1fr; }
  .appointmentItem .col-md-3:last-child { grid-column: 1 / -1; display: flex; gap: 16px; }
  .app_navigation li { padding: 12px; font-size: .88rem; gap: 10px; }
  .info-card { padding: 22px; }
  .flash { left: 16px; right: 16px; top: 80px; }
}

/* Fixes */
.booking-layout > * { min-width: 0; }
.panel-card { min-width: 0; }
body.no-mobile-bar .mobile-bar { display: none; }
body.no-mobile-bar { padding-bottom: 0; }
@media (max-width: 720px) {
  .form-actions .btn { width: 100%; white-space: normal; line-height: 1.3; }
  .form-actions .note { width: 100%; justify-content: center; }
  .panel-card-head .ta { display: none; }
  .times { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .times label { padding: 11px 4px; font-size: .86rem; }
  .brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  .dates label { min-width: 112px; }
}
@media (max-width: 720px) { .form-actions .btn { flex-wrap: wrap; gap: 2px 8px; } }

/* Caduceus logo mark */
.brand img { border-radius: 0; object-fit: contain; }
.site-footer .brand img { background: #fff; border-radius: 12px; padding: 5px; }
