/* =========================================================
   MURUGAN SKIN CLINIC — premium dermatology palette
   Warm ivory + sage green + muted teal + charcoal + beige.
   Derived from the medcare-theme design system; retint by editing the
   tokens below. See CLAUDE.md for the full rationale of this palette
   swap and every structural change made on top of the base theme.
   ========================================================= */
:root {
  --primary: #5f7a6c;       /* sage green — icons, links, quiet accents */
  --primary-dark: #33453c;  /* deep charcoal-sage — headings */
  --primary-light: #a8bfb0; /* pale sage — tints */
  --red: #b5714a;           /* warm terracotta — primary CTA accent */
  --red-dark: #96593a;
  --purple: #4f7c82;        /* muted teal — secondary accent */
  --gold: #c9a66b;          /* soft champagne — highlights, timings strip */
  --ink: #2e2b27;           /* charcoal — body text */
  --ink-soft: #6b6459;      /* warm charcoal-gray — muted paragraph text */
  --bg: #faf7f1;            /* warm ivory */
  --bg-alt: #f1e9dc;        /* beige */
  --bg-pink: #f3ede0;       /* soft beige chip background (kicker, icon tints) */
  --white: #ffffff;
  --border: #e4dcc9;
  --shadow-sm: 0 4px 14px rgba(60, 50, 35, .08);
  --shadow-md: 0 16px 36px rgba(60, 50, 35, .14);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 78px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* Fraunces/Inter have no Tamil glyphs — swap both font tokens for Noto
   Sans Tamil when Tamil is active (main.js sets <html lang="ta">). Every
   heading/body element already reads from these two vars, so this one
   rule re-fonts the whole page instead of touching each selector.

   font-size:92% on the same rule fixes a real "uneven spacing" bug:
   measured with canvas text metrics, Noto Sans Tamil's actual glyph
   height runs ~8% taller than Inter's at an identical declared
   font-size (16.6px vs 15.4px for the same nominal 16px). Every
   font-size in this stylesheet is in rem, so Tamil text was rendering
   visibly bigger/bulkier than its English equivalent everywhere at
   once — taller paragraphs, thicker-looking headings, more line-wraps
   inside fixed-width cards — which is what read as "uneven" once
   English and Tamil were compared side by side, even though gaps and
   row alignment measured pixel-exact in both languages. Scaling the
   Tamil root font-size down compensates for that glyph-metric
   difference in one place instead of hand-tuning dozens of individual
   font-size declarations. */
html[lang="ta"] {
  --font-head: 'Noto Sans Tamil', 'Inter', sans-serif;
  --font-body: 'Noto Sans Tamil', 'Inter', sans-serif;
  font-size: 92%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* overflow-x:clip, not :hidden — any overflow value other than
     visible makes this element the nearest "scrolling ancestor" that
     position:sticky descendants (.site-header) position against; on
     <body> that silently breaks the header's stick (it scrolled away
     entirely, confirmed via getBoundingClientRect while scrolling).
     clip never establishes a scroll container at all, so it can't
     hijack sticky's containing-block search, while still clipping
     horizontal overflow just as effectively. <html> keeps
     overflow-x:hidden — the root element doesn't have this problem,
     since its overflow propagates to the viewport instead. */
  overflow-x: clip;
  width: 100%;
  position: relative;
}
body.modal-locked { overflow: hidden; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--primary-dark); margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
p { line-height: 1.75; color: var(--ink-soft); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.15em; }
section { padding: 64px 0; scroll-margin-top: calc(var(--header-h) + 56px); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.kicker { display: inline-block; background: var(--bg-pink); color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

/* Section banner photo — free-license stock imagery (not a real photo of
   this clinic/doctor/patients), used to add visual texture to otherwise
   icon-only sections. The gradient wash ties it to the brand palette
   instead of leaving it a raw, unbranded stock photo. */
.section-banner { position: relative; max-width: 900px; margin: 0 auto 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 21/9; }
.section-banner img { width: 100%; height: 100%; object-fit: cover; }
.section-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(95,122,108,.45), rgba(79,124,130,.32)); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-outline { background: var(--white); border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { box-shadow: 0 14px 30px rgba(37, 211, 102, .35); }
.btn-sm { padding: 9px 18px; font-size: .84rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 650; background: rgba(250, 247, 241, .94);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--primary-dark); }
.brand-mark { height: 40px; width: 40px; display: block; }
.brand-text { line-height: 1.15; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav ul { display: flex; gap: 16px; }
.nav-link { font-weight: 600; font-size: .92rem; color: var(--ink); position: relative; padding: 6px 0; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .2s ease; }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--red-dark); }
.nav-link.is-active::after { width: 100%; }
/* Tamil nav labels/button text run noticeably longer than their English
   source strings (confirmed: the desktop "Book Appointment" button was
   pushed past the viewport's right edge and visibly clipped — silently,
   since html/body's overflow-x:hidden clips rather than adding a
   scrollbar, so scrollWidth checks alone didn't catch it). Compact the
   desktop nav specifically for Tamil rather than shrinking English too. */
:lang(ta) .main-nav { gap: 16px; }
:lang(ta) .main-nav ul { gap: 13px; }
:lang(ta) .nav-link { font-size: .8rem; }
:lang(ta) .nav-cta { gap: 6px; }
:lang(ta) .nav-cta .btn { padding: 9px 12px; font-size: .74rem; }
/* Desktop Tamil: the row is full, so the brand used to be squeezed to 4
   lines and clipped above the header. Keep the brand from shrinking, drop
   its small tagline (the tagline still shows in English and on mobile),
   and trim nav link size. */
@media (min-width: 1025px) {
  :lang(ta) .brand { flex-shrink: 0; font-size: 1rem; }
  :lang(ta) .brand-text small { display: none; }
  :lang(ta) .brand-text { max-width: 124px; }
  :lang(ta) .nav-link { font-size: .76rem; }
  :lang(ta) .main-nav ul { gap: 11px; }
}
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-book { display: none; padding: 9px 18px; font-size: .84rem; }
/* Header language toggle (all widths; the old topbar switcher was removed).
   Sticky, so it stays reachable however far down the page you are. Shows
   the *other* language's name in its own script. */
.lang-toggle { background: var(--white); border: 2px solid var(--primary); color: var(--primary-dark); font: 700 .8rem var(--font-body); padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.lang-toggle:hover { background: var(--primary); color: #fff; }
html.lang-pending body { visibility: hidden; }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* =========================================================
   Timings strip (high-priority info, sits right under the header)
   ========================================================= */
.timings-strip { background: var(--gold); border-bottom: 1px solid rgba(0,0,0,.06); padding: 16px 0; }
/* A 2-column grid, always — kept side-by-side even on mobile/tablet
   (not stacked to 1 column) specifically to save vertical space, since
   this is high-priority above-the-fold info. Each cell is a white card
   sitting on the gold strip so the two clinics "pop" as a clear,
   scannable unit instead of reading as a paragraph of inline text. */
.timings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 700px; margin: 0 auto; }
.timings-cell { display: flex; align-items: flex-start; gap: 10px; min-width: 0; background: var(--white); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.timings-cell-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; width: 100%; }
.timings-cell-body strong { color: var(--primary-dark); font-size: .84rem; margin-bottom: 2px; }

/* Per-day timing tables (top strip + location cards): Day | Morning |
   Evening. Column headers carry the AM/PM meaning so cells stay short
   ("10:00 – 12:00"). Hours the clinic gave as one continuous span
   (Sivaganga Wed/Sat 8 AM–8 PM) span both columns instead of being split
   at an invented noon break; morning-only days show "—" for evening. */
.timing-table { width: 100%; border-collapse: collapse; font-size: .72rem; line-height: 1.3; }
.timing-table th, .timing-table td { padding: 4px 5px; text-align: left; }
.timing-table thead th { font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--border); }
.timing-table tbody th { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.timing-table tbody td { color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.timing-table tbody tr + tr > * { border-top: 1px solid var(--bg-alt); }
.timing-table .tt-none { color: var(--primary-light); font-weight: 400; }
.timing-table .tt-span { text-align: center; white-space: normal; }
.timing-list { flex: 1; min-width: 0; }
.timing-table-lg { font-size: .9rem; margin-top: 6px; }
.timing-table-lg th, .timing-table-lg td { padding: 7px 12px; }
.timing-table-lg thead th { font-size: .68rem; background: var(--bg-pink); border-bottom: 0; }
.timing-table-lg thead th:first-child { border-radius: 8px 0 0 8px; }
.timing-table-lg thead th:last-child { border-radius: 0 8px 8px 0; }
.timings-tabs { display: none; }
.timings-strip-link { display: block; text-align: center; margin-top: 10px; font-weight: 700; font-size: .84rem; color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.timings-strip-link:hover { color: var(--red-dark); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: 40px 0 48px; overflow: hidden; background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 60%); }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; }
.hero-shape-1 { width: 460px; height: 460px; top: -180px; right: -140px; background: radial-gradient(circle, rgba(181,113,74,.14) 0%, transparent 70%); }
.hero-shape-2 { width: 360px; height: 360px; bottom: -160px; left: -130px; background: radial-gradient(circle, rgba(95,122,108,.16) 0%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }

/* Doctor profile merged into the top of the hero copy: a compact pill
   (avatar + name + title) instead of a second full-height column card. */
.hero-doctor { display: inline-flex; align-items: center; gap: 14px; background: var(--white); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 7px 24px 7px 7px; margin-bottom: 22px; max-width: 100%; }
.hero-doctor-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--primary); flex-shrink: 0; background: #fff; }
.hero-doctor-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.hero-doctor-info strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--primary-dark); font-weight: 600; }
.hero-doctor-info span { font-size: .82rem; color: var(--ink-soft); font-weight: 500; }

.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.15rem); font-weight: 600; letter-spacing: -.01em; }
.hero h1 .hero-line1 { display: block; }
.hero h1 .hero-line2 { color: var(--red); display: block; }
.hero p.lead { font-size: 1.08rem; max-width: 50ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-trust { font-size: .86rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 0; }

/* Right column: the 7 treated conditions as tappable tiles (reuses the
   treatment.* keys and the per-condition icons from the sprite). */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-conditions { width: 100%; max-width: 440px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 24px 24px 26px; }
.hero-conditions-title { font-size: 1.15rem; margin: 0 0 14px; text-align: center; }
.hero-conditions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-cond { display: flex; align-items: center; gap: 10px; background: var(--bg-pink); color: var(--primary-dark); font-size: .84rem; font-weight: 600; line-height: 1.25; padding: 15px 14px; border-radius: var(--radius-sm); transition: background .2s ease, transform .15s ease; }
.hero-cond:hover { background: var(--bg-alt); transform: translateY(-1px); }
.hero-cond .ic { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.hero-cond:last-child { grid-column: 1 / -1; justify-content: center; }

/* =========================================================
   About the Dermatologist
   ========================================================= */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.about-visual { position: relative; width: 100%; max-width: 400px; justify-self: center; }
/* padding (not a shrunk img% + dashed inner ring) is the frame: the photo
   fills the padded content box directly, so almost the whole circle is
   real photo instead of decorative gradient margin. */
.about-ring { aspect-ratio: 4 / 5; border-radius: 32px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; padding: 2px; }
.about-ring .ic { width: 42%; height: 42%; color: #fff; }
.about-ring img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 30px; display: block; }
.about-content ul { margin-top: 22px; }
.about-content li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-weight: 600; color: var(--primary-dark); font-size: .96rem; }
.about-content li .ic-wrap { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-pink); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.about-content .btn { margin-top: 8px; }

/* Placeholder chips for unconfirmed facts (experience, awards) — never
   invent a number/claim, show a clearly marked placeholder instead. */
.placeholder-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-pink); border: 1px dashed var(--border); color: var(--ink-soft); font-size: .82rem; font-style: italic; padding: 6px 12px; border-radius: 999px; margin: 4px 8px 4px 0; }

.doctor-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0 20px; }
.doctor-meta-item { font-size: .86rem; color: var(--ink-soft); }
.doctor-meta-item strong { color: var(--primary-dark); }

/* =========================================================
   Treatments (with real card photography)
   ========================================================= */
/* flex-wrap + justify-content:center (not grid) so a non-multiple-of-3
   card count doesn't leave a lone last-row card stranded next to dead
   empty columns — it just centers under the row above instead. */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.service-card { flex: 0 1 360px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-photo-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .service-photo-wrap img { transform: scale(1.05); }
.service-icon { position: absolute; left: 18px; bottom: -20px; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--card-color, var(--primary)); color: #fff; box-shadow: var(--shadow-sm); }
.service-icon .ic { width: 24px; height: 24px; }
.service-body { padding: 32px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: .92rem; margin-bottom: 18px; flex: 1; }

/* =========================================================
   Treatment "Learn More" modal — one shared modal populated from a JS
   data array (see main.js TREATMENTS), rather than 7 separate pages.
   ========================================================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(46,43,39,.55); z-index: 900; opacity: 0; pointer-events: none; transition: opacity .2s ease; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-card { background: var(--white); border-radius: var(--radius); max-width: 520px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-md); transform: translateY(16px); transition: transform .2s ease; }
.modal-backdrop.open .modal-card { transform: translateY(0); }
.modal-photo { aspect-ratio: 16/9; overflow: hidden; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 28px 28px 30px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; display: flex; align-items: center; justify-content: center; color: var(--primary-dark); cursor: pointer; box-shadow: var(--shadow-sm); }
.modal-card { position: relative; }
.modal-body h3 { font-size: 1.3rem; margin-bottom: 12px; }
.modal-body p { font-size: .95rem; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* =========================================================
   Why choose us
   ========================================================= */
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.why-card { display: flex; gap: 16px; align-items: flex-start; padding: 8px; flex: 0 1 360px; }
.why-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-alt); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { font-size: .9rem; margin-bottom: 0; }

/* =========================================================
   Patient Information (educational cards)
   ========================================================= */
.info-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.info-card { flex: 0 1 320px; background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.info-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-pink); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.info-card p { font-size: .9rem; margin-bottom: 0; }

/* =========================================================
   Patient Reviews — real reviews sourced from Google (see CLAUDE.md).
   ========================================================= */
.reviews-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.review-card { flex: 0 1 340px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; }
.review-source-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-alt); color: var(--primary-dark); font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.review-source-tag .icon { color: var(--primary); }
.review-stars { color: var(--gold); font-size: .95rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p.review-text { font-style: italic; font-size: .92rem; margin-bottom: 14px; }
.review-author { font-weight: 700; color: var(--primary-dark); font-size: .88rem; }
.review-location { font-size: .8rem; color: var(--ink-soft); }
.reviews-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; font-size: .9rem; }
.reviews-more a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.reviews-more a:hover { text-decoration: underline; }
.reviews-more .sep { color: var(--border); }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: none; text-align: left; font-family: var(--font-body); font-weight: 700; font-size: .96rem; color: var(--primary-dark); cursor: pointer; }
.faq-question .ic { flex-shrink: 0; color: var(--red); transition: transform .2s ease; }
.faq-item.open .faq-question .ic { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 22px 20px; font-size: .9rem; color: var(--ink-soft); }

/* =========================================================
   Visit / Contact / Appointment Booking
   ========================================================= */
.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.location-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.location-card .map-wrap { margin-top: 0; border-radius: 0; box-shadow: none; }
.location-card .map-wrap iframe { height: 220px; }
.location-card-body { padding: 26px 28px; }
.location-card-body h3 { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.location-card-body h3 .ic { color: var(--red); }
.location-card-body .contact-row { margin-bottom: 14px; }
.location-card-body .contact-row:last-child { margin-bottom: 0; }
.timing-list { display: flex; flex-direction: column; gap: 4px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 22px; }
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }

.book-anchor { scroll-margin-top: calc(var(--header-h) + 56px); }
.contact-card-wrap { max-width: 760px; margin: 0 auto; }
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 34px; }
.contact-card .contact-info { flex-direction: row; flex-wrap: wrap; gap: 28px; }
.contact-card .contact-row { flex: 1 1 200px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; margin-bottom: 26px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ic-wrap { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-pink); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row strong { display: block; color: var(--primary-dark); font-size: .95rem; }
.contact-row span, .contact-row a.plain { color: var(--ink-soft); font-size: .92rem; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 600; color: var(--primary-dark); }
input, textarea, select { font-family: var(--font-body); font-size: .93rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg); color: var(--ink); resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%236b6459' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); background: var(--white); }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; margin-bottom: 0; }

/* =========================================================
   Disclaimer bar
   ========================================================= */
.disclaimer-bar { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.disclaimer-bar p { max-width: 900px; margin: 0 auto; text-align: center; font-size: .8rem; color: var(--ink-soft); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--primary-dark); color: #d7ddd4; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { height: 38px; width: 38px; }
.footer-brand span { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 1.1rem; }
.site-footer p { color: #b7c0b3; font-size: .9rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #b7c0b3; font-size: .9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col .contact-row .ic-wrap { background: rgba(255,255,255,.08); color: var(--gold); }
.footer-col .contact-row strong { color: #fff; }
.footer-col .contact-row span, .footer-col .contact-row a.plain { color: #b7c0b3; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: .82rem; color: #9aa69a; flex-wrap: wrap; gap: 14px; }
.footer-bottom a { color: #9aa69a; }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   Sticky mobile "Book Appointment" bar
   ========================================================= */
.bottom-nav { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
/* 1025–1180px: the full desktop nav (6 links + Call Now + Book) is wider
   than the viewport and clipped the Book button off the right edge
   (measured: right edge at 1129px in a 1025px window). Drop the Call Now
   button in this band — the phone number is in the Contact section and footer. */
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav-cta .btn-outline { display: none; }
}
/* Tightest band (just above the bottom-tab-bar breakpoint) — Tamil labels
   plus the header language toggle overflowed the container by 15px at
   1025px. */
@media (min-width: 1025px) and (max-width: 1100px) {
  .main-nav ul, :lang(ta) .main-nav ul { gap: 11px; }
  .nav-link { font-size: .86rem; }
  :lang(ta) .nav-link { font-size: .74rem; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-book { display: inline-flex; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(60,50,35,.12);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bn-item {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; border-radius: 12px; color: var(--ink-soft);
    font-size: .64rem; font-weight: 600; line-height: 1.15; text-align: center;
    transition: color .2s ease, background .2s ease;
  }
  .bn-item .ic { width: 22px; height: 22px; }
  .bn-item span { max-width: 100%; white-space: nowrap; }
  :lang(ta) .bn-item { font-size: .6rem; letter-spacing: -.01em; }
  .bn-item.is-active { color: var(--primary-dark); background: var(--bg-pink); }
  .bn-item.is-active .ic { color: var(--red); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

  .hero-inner, .locations-grid { grid-template-columns: 1fr; }
  /* About stays photo-left / text-right on tablets (fixed 220px photo
     column) instead of stacking a big photo above all the text. */
  .about-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
  .about-visual { max-width: 220px; justify-self: start; }
  .about-ring { border-radius: 26px; padding: 2px; }
  .about-ring img { border-radius: 24px; }
  .hero-visual { margin-top: 28px; }
  .hero-conditions { max-width: 560px; margin: 0 auto; }
  .hero-inner { align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .service-card, .why-card, .info-card, .review-card { flex-basis: calc(50% - 13px); }
}

@media (max-width: 640px) {
  .header-inner { height: auto; min-height: 66px; padding-top: 6px; padding-bottom: 6px; }
  :root { --header-h: 66px; }
  .hero { padding: 22px 0 32px; }
  /* About on phones: small photo beside kicker + name + qualification
     (display:contents lets the text blocks join the grid), everything else
     full width — the stacked 320px photo used to push the doctor's name
     ~450px down the section. */
  .about-grid { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; row-gap: 0; }
  .about-content { display: contents; }
  .about-visual { grid-column: 1; grid-row: 1 / span 3; max-width: none; }
  .about-ring { border-radius: 20px; padding: 2px; }
  .about-ring img { border-radius: 18px; }
  .about-content > .kicker { grid-column: 2; grid-row: 1; justify-self: start; align-self: end; margin-bottom: 8px; padding: 5px 12px; font-size: .68rem; }
  .about-content > h2 { grid-column: 2; grid-row: 2; margin-bottom: 6px; font-size: 1.35rem; }
  .about-content > .doctor-meta { grid-column: 2; grid-row: 3; align-self: start; }
  .about-content > p, .about-content > div:not(.doctor-meta), .about-content > ul { grid-column: 1 / -1; }
  .about-content > p:first-of-type { margin-top: 16px; }
  .about-content > .btn { grid-column: 1 / -1; justify-self: start; }
  .hero-doctor { padding-right: 18px; margin-bottom: 18px; }
  .hero-actions { margin: 20px 0 16px; }
  .hero-actions .btn { padding: 13px 12px; font-size: .9rem; white-space: normal; text-align: center; line-height: 1.25; }
  .hero-conditions { padding: 18px 16px 18px; }
  .hero-cond { font-size: .8rem; padding: 10px; gap: 8px; }
  section { padding: 44px 0; }
  .timings-grid { gap: 8px; }
  .timings-cell { padding: 8px 10px; gap: 8px; }
  .timings-cell-body strong { font-size: .78rem; }
  .timings-cell { padding: 8px 8px; }
  .timing-table { font-size: .64rem; }
  .timing-table th, .timing-table td { padding: 3px 3px; }
  .timing-table thead th { font-size: .54rem; letter-spacing: .02em; }
  .service-card, .why-card, .info-card, .review-card { flex-basis: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  /* Per-day tables need ~250px; two side-by-side at ≤480px clipped the
     evening column (measured at 360px Tamil / 320px English). */
  /* One city at a time, chosen via tabs (main.js) — stacking both tables
     made the strip ~330px tall; a tab bar + one table is ~40px shorter for
     Madurai and ~140px shorter for Sivaganga. */
  .timings-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.35); border-radius: 999px; padding: 4px; margin: 0 auto 10px; max-width: 320px; }
  .timings-tab { flex: 1; border: 0; background: transparent; color: var(--primary-dark); font: 700 .84rem var(--font-body); padding: 8px 10px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease; }
  .timings-tab.is-active { background: var(--white); box-shadow: var(--shadow-sm); }
  .timings-grid { grid-template-columns: 1fr; }
  .timings-cell:not(.is-active) { display: none; }
  .timings-cell-body > strong { display: none; }
  .timing-table { font-size: .72rem; }
  .timing-table th, .timing-table td { padding: 3px 6px; }
  .timing-table thead th { font-size: .6rem; letter-spacing: .04em; }
}
@media (max-width: 380px) {
  .header-book { padding: 8px 12px; font-size: .78rem; }
  .lang-toggle { padding: 6px 9px; font-size: .74rem; }
  .header-tools { gap: 6px; }
  .header-inner { gap: 6px; }
}
