@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:wght@400&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ===================== Theme palettes (from templates.ts) ===================== */
:root {
  /* Serene — calm teal with Manrope headings (default) */
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --bg: #f8fafc;
  --bg-alt: #f0fdfa;
  --surface: #ffffff;
  --soft: #f1f5f9;
  --border: #e2e8f0;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --on-primary: #ffffff;
  --font-head: 'Manrope', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #134e4a 0%, #0d9488 50%, #14b8a6 100%);
  --hero-overlay: rgba(15, 46, 42, 0.55);
  --hero-text: #f0fdfa;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
}
html[data-theme="clinical"] {
  /* Clinical — crisp blue-and-white with Inter throughout */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #3b82f6;
  --accent-light: #eff6ff;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --soft: #f1f5f9;
  --border: #e2e8f0;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --on-primary: #ffffff;
  --font-head: 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #2563eb 100%);
  --hero-overlay: rgba(15, 23, 42, 0.5);
  --hero-text: #f8fafc;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 2px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.10);
}
html[data-theme="warmcare"] {
  /* Warm Care — earthy green with DM Serif headings */
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --accent: #ca8a04;
  --accent-light: #fef9c3;
  --bg: #fefdf9;
  --bg-alt: #f7fee7;
  --surface: #ffffff;
  --soft: #f0fdf4;
  --border: #dcfce7;
  --ink: #1a2e1a;
  --ink-soft: #4b5e4b;
  --ink-faint: #94a394;
  --on-primary: #ffffff;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #14532d 0%, #166534 40%, #16a34a 100%);
  --hero-overlay: rgba(20, 83, 45, 0.5);
  --hero-text: #f7fee7;
  --shadow-sm: 0 1px 3px rgba(20, 83, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 83, 45, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 83, 45, 0.12);
}
/* Per-theme heading weight overrides (from templates.ts) */
html[data-theme="clinical"] .hero h1 { font-weight: 800; }
html[data-theme="clinical"] .section-head h2 { font-weight: 800; }
html[data-theme="clinical"] .card-body h3,
html[data-theme="clinical"] .service-card h3,
html[data-theme="clinical"] .doctor-card h3,
html[data-theme="clinical"] .package-card h3 { font-weight: 700; }
html[data-theme="clinical"] .section,
html[data-theme="clinical"] .card,
html[data-theme="clinical"] .service-card,
html[data-theme="clinical"] .package-card,
html[data-theme="clinical"] .doctor-card { border: 1px solid var(--border); }
html[data-theme="warmcare"] .hero h1 { font-weight: 400; font-family: var(--font-head); }
html[data-theme="warmcare"] .section-head h2 { font-weight: 400; font-family: var(--font-head); }
html[data-theme="warmcare"] .card-body h3,
html[data-theme="warmcare"] .service-card h3,
html[data-theme="warmcare"] .doctor-card h3,
html[data-theme="warmcare"] .package-card h3,
html[data-theme="warmcare"] .footer-col h3 { font-weight: 400; font-family: var(--font-head); }

/* ===================== Base & components (ported from BASE_CSS) ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; max-width: 1140px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; border-radius: var(--radius); }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-name span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 0.92rem; padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-link:hover { text-decoration: none; background: var(--soft); color: var(--primary); }
.nav-link.active { color: var(--primary); background: var(--soft); }
.nav-cta { background: var(--primary); color: #fff !important; border-radius: 999px; padding: 9px 22px; transition: background .15s; font-weight: 600; }
.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }
.nav-cta.active { background: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px 8px; border-radius: 10px; }
.nav-toggle:hover { background: var(--soft); }
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 999px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Notice ticker */
.notice-bar { background: var(--primary); color: var(--on-primary); overflow: hidden; }
.notice-bar-inner { display: flex; align-items: center; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.notice-label { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 0; white-space: nowrap; flex-shrink: 0; }
.notice-track { overflow: hidden; flex: 1; padding-left: 16px; }
.notice-items { display: flex; gap: 40px; animation: ticker 30s linear infinite; white-space: nowrap; }
.notice-items a { color: var(--on-primary); text-decoration: none; font-size: 0.88rem; opacity: 0.9; }
.notice-items a:hover { opacity: 1; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero */
.hero { position: relative; padding: 110px 24px 120px; text-align: center; overflow: hidden; background: var(--hero-gradient); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 26px 26px; }
.hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; color: var(--hero-text); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.2; margin-bottom: 14px; font-weight: 700; }
.hero .tagline { font-size: 1.15rem; opacity: 0.9; margin-bottom: 10px; font-weight: 500; }
.hero .desc { font-size: 1.05rem; opacity: 0.85; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta a { display: inline-block; padding: 13px 32px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s; }
.hero-cta a:hover { text-decoration: none; transform: translateY(-2px); }
.hero-cta .primary { background: var(--hero-text); color: var(--primary); }
.hero-cta .primary:hover { box-shadow: var(--shadow-lg); }
.hero-cta .ghost { border: 2px solid rgba(255,255,255,0.4); color: var(--hero-text); }
.hero-cta .ghost:hover { background: rgba(255,255,255,0.1); }

/* Feature strip */
.feature-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 0; }
.feature-strip .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.feature-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }
.feature-item svg { width: 26px; height: 26px; color: var(--primary); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 8px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
.section-head p { color: var(--ink-soft); margin-top: 8px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Card grid */
.card-grid { display: grid; gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.price-tag { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.tag { display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; background: var(--primary-light); color: var(--primary-dark); }

/* Service cards */
.service-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; border: 1px solid var(--border); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon-wrap { width: 56px; height: 56px; border-radius: var(--radius); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-card .icon-wrap svg { width: 30px; height: 30px; }
.service-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* Doctor cards */
.doctor-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.doctor-card img { width: 100%; height: 260px; object-fit: cover; }
.doctor-card .doctor-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.doctor-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 4px; }
.doctor-card .spec { color: var(--primary); font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.doctor-card .qual { color: var(--ink-faint); font-size: 0.82rem; margin-bottom: 12px; }
.doctor-card .schedule { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); }
.doctor-card .schedule span { display: flex; align-items: center; gap: 4px; }
.doctor-card .schedule svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Package cards */
.package-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; border: 1px solid var(--border); display: flex; flex-direction: column; }
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.package-card h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 8px; }
.package-card .price-tag { font-size: 1.6rem; margin-bottom: 16px; }
.package-card .tests { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 16px; white-space: pre-line; }
.package-card .desc { color: var(--ink-soft); font-size: 0.88rem; margin-top: auto; }

/* Vaccine rows */
.vaccine-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 16px; flex-wrap: wrap; }
.vaccine-row:last-child { border-bottom: none; }
.vaccine-row h3 { font-size: 1rem; margin-bottom: 4px; }
.vaccine-row p { color: var(--ink-soft); font-size: 0.88rem; }
.vaccine-row .vaccine-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vaccine-row .age { background: var(--accent-light); color: var(--accent); padding: 3px 12px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; }

/* Testimonials */
.testimonial-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.testimonial-card .stars { color: var(--accent); margin-bottom: 12px; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card .text { color: var(--ink); font-size: 0.95rem; font-style: italic; margin-bottom: 16px; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .author .name { font-weight: 700; }
.testimonial-card .author .loc { color: var(--ink-faint); font-size: 0.85rem; }

/* FAQ */
.faq-item { background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; border: 1px solid var(--border); }
.faq-item summary { padding: 18px 24px; font-weight: 600; font-size: 0.98rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); font-weight: 300; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 24px 18px; color: var(--ink-soft); font-size: 0.92rem; }

/* Page hero */
.page-hero { background: var(--hero-gradient); padding: 60px 24px 56px; text-align: center; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--hero-text); font-weight: 700; }
.page-hero p { color: var(--hero-text); opacity: 0.85; margin-top: 8px; font-size: 1.05rem; }
.breadcrumbs { margin-top: 14px; font-size: 0.85rem; }
.breadcrumbs a { color: var(--hero-text); opacity: 0.8; }
.breadcrumbs a:hover { opacity: 1; }

/* Articles */
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; text-decoration: none; color: var(--ink); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card .article-body { padding: 20px; }
.article-card .date { color: var(--ink-faint); font-size: 0.82rem; margin-bottom: 6px; }
.article-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.article-card p { color: var(--ink-soft); font-size: 0.9rem; }

.article-detail { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.article-detail .date { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 8px; }
.article-detail h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 16px; }
.article-detail .lead { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 24px; }
.article-detail .rich { font-size: 1rem; line-height: 1.8; }
.article-detail .rich h2 { font-family: var(--font-head); margin: 28px 0 12px; }
.article-detail .rich p { margin-bottom: 16px; }
.article-detail .rich ul { margin: 0 0 16px 20px; }
.article-detail .rich li { margin-bottom: 6px; }
.article-detail img { border-radius: var(--radius-lg); margin: 24px 0; width: 100%; max-height: 400px; object-fit: cover; }

/* Doctor detail */
.doctor-detail { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.doctor-detail .doctor-header { display: flex; gap: 28px; margin-bottom: 32px; flex-wrap: wrap; }
.doctor-detail .doctor-header img { width: 200px; height: 200px; border-radius: var(--radius-lg); object-fit: cover; flex-shrink: 0; }
.doctor-detail .doctor-info h1 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 6px; }
.doctor-detail .doctor-info .spec { color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.doctor-detail .doctor-info .qual { color: var(--ink-faint); margin-bottom: 16px; }
.doctor-detail .doctor-info .schedule-box { background: var(--bg-alt); border-radius: var(--radius); padding: 16px 20px; display: inline-block; }
.doctor-detail .rich { line-height: 1.8; }
.doctor-detail .rich h2 { font-family: var(--font-head); font-size: 1.3rem; margin: 24px 0 12px; }
.doctor-detail .rich p { margin-bottom: 14px; }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.contact-info h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 16px; }
.contact-info .info-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-info .info-row svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-info .info-row .label { font-weight: 600; font-size: 0.85rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-info .info-row .val { color: var(--ink); font-size: 0.95rem; }

/* Forms */
.form { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.form h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 20px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; background: var(--bg); color: var(--ink); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field .check-label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; line-height: 1.45; font-weight: 400; }
.form-field .check-label input { width: auto; margin-top: 3px; }
.form .submit-btn { display: inline-block; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: var(--radius-pill); border: none; cursor: pointer; font-size: 1rem; font-weight: 600; font-family: inherit; transition: background .15s; }
.form .submit-btn:hover { background: var(--primary-dark); }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-success { background: var(--primary-light); color: var(--primary-dark); padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }

/* Pager */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: background .15s, color .15s; }
.pager a:hover { background: var(--soft); text-decoration: none; }
.pager .current { background: var(--primary); color: var(--on-primary); border-color: var(--primary); padding: 8px 16px; border-radius: var(--radius-pill); font-size: 0.88rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--hero-gradient); color: var(--hero-text); padding: 56px 0 24px; margin-top: 64px; }
.site-footer a { color: var(--hero-text); opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.footer-col h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 14px; opacity: 0.95; }
.footer-col p { font-size: 0.88rem; opacity: 0.7; margin-bottom: 6px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.88rem; }
.all-link { font-weight: 600; opacity: 1; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.1); transition: background .15s; }
.social-link:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.social-link svg { width: 20px; height: 20px; }
.footer-bottom { max-width: 1140px; margin: 0 auto; padding: 24px 24px 0; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; text-align: center; font-size: 0.85rem; opacity: 0.6; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; }
.footer-sep { opacity: .45; }
.powered-by { opacity: .8; }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; opacity: 1; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); }

/* ===================== Theme switcher ===================== */
.theme-btn {
  position: fixed; bottom: 92px; right: 24px; z-index: 110;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: background .15s, transform .15s;
}
.theme-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.theme-btn svg { width: 24px; height: 24px; }
.theme-panel {
  position: fixed; bottom: 156px; right: 24px; z-index: 120;
  width: 280px; max-width: calc(100vw - 32px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
  display: none; text-align: left;
}
.theme-panel.open { display: block; }
.theme-panel h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.theme-panel .theme-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 12px; }
.theme-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--soft); border: 2px solid transparent; border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  font-family: var(--font-body); color: var(--ink); transition: border-color .15s, background .15s;
}
.theme-card:hover { background: color-mix(in srgb, var(--soft) 60%, var(--primary-light)); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.theme-swatches .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.theme-card .t-name { font-weight: 700; font-size: 0.9rem; }
.theme-card .t-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; }
.theme-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.4; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 2px solid var(--border); flex-direction: column; padding: 12px; gap: 4px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-link { width: 100%; padding: 12px 16px; }
  .nav-cta { width: 100%; text-align: center; }
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .feature-strip .container { justify-content: flex-start; }
  .doctor-detail .doctor-header img { width: 140px; height: 140px; margin: 0 auto; }
  .doctor-detail .doctor-header { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .hero { padding: 70px 20px 80px; }
  .feature-item { font-size: 0.82rem; }
  .theme-panel { right: 16px; bottom: 148px; }
  .theme-btn { right: 16px; bottom: 88px; }
}
