@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ===================== Theme palettes ===================== */
:root {
  --primary: #1a324a;
  --primary-dark: #112336;
  --primary-light: #e8eef4;
  --accent: #d4a24a;
  --accent-light: #fdf1dc;
  --bg: #fdf8ee;
  --bg-alt: #f6efe0;
  --surface: #ffffff;
  --soft: #f0e6d3;
  --border: #e6dcc4;
  --ink: #1e293b;
  --ink-soft: #5b6473;
  --ink-faint: #8a93a3;
  --on-primary: #fdf8ee;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #0f1d2e 0%, #1a324a 48%, #2a5a7f 100%);
  --hero-overlay: linear-gradient(180deg, rgba(15,29,46,0.28) 0%, rgba(15,29,46,0.62) 100%);
  --hero-text: #fdf8ee;
  --shadow-sm: 0 1px 3px rgba(26,50,74,0.07), 0 8px 20px rgba(26,50,74,0.06);
  --shadow-md: 0 8px 28px rgba(26,50,74,0.08), 0 16px 40px rgba(26,50,74,0.06);
  --shadow-lg: 0 18px 48px rgba(26,50,74,0.12), 0 28px 64px rgba(26,50,74,0.08);
  --muted: var(--ink-soft);
  --footer-bg: #0f1d2e;
  --footer-fg: #b8c4d6;
  --footer-head: #fdf8ee;
}
html[data-theme="sanjha"] {
  --primary: #1a324a;
  --primary-dark: #112336;
  --primary-light: #e8eef4;
  --accent: #d4a24a;
  --accent-light: #fdf1dc;
  --bg: #fdf8ee;
  --bg-alt: #f6efe0;
  --surface: #ffffff;
  --soft: #f0e6d3;
  --border: #e6dcc4;
  --ink: #1e293b;
  --ink-soft: #5b6473;
  --ink-faint: #8a93a3;
  --on-primary: #fdf8ee;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #0f1d2e 0%, #1a324a 48%, #2a5a7f 100%);
  --hero-overlay: linear-gradient(180deg, rgba(15,29,46,0.28) 0%, rgba(15,29,46,0.62) 100%);
  --hero-text: #fdf8ee;
  --shadow-sm: 0 1px 3px rgba(26,50,74,0.07), 0 8px 20px rgba(26,50,74,0.06);
  --shadow-md: 0 8px 28px rgba(26,50,74,0.08), 0 16px 40px rgba(26,50,74,0.06);
  --shadow-lg: 0 18px 48px rgba(26,50,74,0.12), 0 28px 64px rgba(26,50,74,0.08);
  --muted: var(--ink-soft);
  --footer-bg: #0f1d2e;
  --footer-fg: #b8c4d6;
  --footer-head: #fdf8ee;
}
html[data-theme="nidhi"] {
  --primary: #2a4b4e;
  --primary-dark: #1e3638;
  --primary-light: #e6f0f0;
  --accent: #c17a3a;
  --accent-light: #fdf0e1;
  --bg: #fdfcfb;
  --bg-alt: #f5efe8;
  --surface: #ffffff;
  --soft: #ece8e1;
  --border: #e0ddd6;
  --ink: #1c2526;
  --ink-soft: #5b6566;
  --ink-faint: #8a9495;
  --on-primary: #ffffff;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(140deg, #1c2526 0%, #2a4b4e 50%, #5a7a6a 100%);
  --hero-overlay: linear-gradient(180deg, rgba(28,37,38,0.22) 0%, rgba(28,37,38,0.58) 100%);
  --hero-text: #fdfcfb;
  --shadow-sm: 0 1px 3px rgba(28,37,38,0.06), 0 6px 16px rgba(28,37,38,0.05);
  --shadow-md: 0 8px 24px rgba(28,37,38,0.07);
  --shadow-lg: 0 16px 44px rgba(28,37,38,0.12);
  --muted: var(--ink-soft);
  --footer-bg: #1c2526;
  --footer-fg: #c2beb6;
  --footer-head: #fdfcfb;
}
html[data-theme="midnight"] {
  --primary: #d4a24a;
  --primary-dark: #b88a32;
  --primary-light: #2a2216;
  --accent: #7fb0b3;
  --accent-light: #1c2a2b;
  --bg: #0f1419;
  --bg-alt: #161d24;
  --surface: #1c242e;
  --soft: #243041;
  --border: #2e3d50;
  --ink: #eef2f7;
  --ink-soft: #b8c4d6;
  --ink-faint: #7a8699;
  --on-primary: #0f1419;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(160deg, #0f1419 0%, #1a324a 50%, #2a4b6a 100%);
  --hero-overlay: linear-gradient(180deg, rgba(15,20,25,0.45) 0%, rgba(15,20,25,0.78) 100%);
  --hero-text: #eef2f7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.45);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.6);
  --muted: var(--ink-soft);
  --footer-bg: #0a0e13;
  --footer-fg: #8a93a3;
  --footer-head: #eef2f7;
}

/* ===================== Base / structural CSS (from templates-base) ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -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: var(--on-primary); }
: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: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 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.28rem; font-weight: 700; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link { color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: var(--radius-pill); transition: color .15s ease, background .15s ease; }
.nav-link:hover { text-decoration: none; background: var(--soft); }
.nav-link.active { color: var(--primary); background: var(--soft); }
.nav-cta { background: var(--primary); color: var(--on-primary) !important; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-cta.active { background: var(--primary); color: var(--on-primary) !important; }
.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 ease, opacity .2s ease; }
.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); }

.hero { position: relative; padding: 104px 24px 112px; 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-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; color: var(--hero-text); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; margin-bottom: 14px; letter-spacing: -0.01em; }
.hero .tagline { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .94; margin-bottom: 10px; font-style: italic; }
.hero .desc { max-width: 660px; margin: 0 auto 30px; font-size: 1.02rem; opacity: .9; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta { display: inline-block; background: var(--primary); color: var(--on-primary); padding: 14px 34px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent); transition: transform .15s ease, background .15s ease; }
.hero-cta:hover { background: var(--primary-dark); transform: translateY(-2px); text-decoration: none; color: var(--on-primary); }
.hero-cta-ghost { display: inline-block; background: rgba(255,255,255,.12); color: var(--hero-text); border: 1.5px solid rgba(255,255,255,.45); padding: 13px 30px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1rem; transition: background .15s ease; }
.hero-cta-ghost:hover { background: rgba(255,255,255,.22); text-decoration: none; color: var(--hero-text); }

.hero-carousel { position: relative; overflow: hidden; }
.hero-carousel .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-carousel .hero-slide.active { opacity: 1; }
.hero-carousel .hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-carousel .hero-dot { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,0.5); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero-carousel .hero-dot:hover { transform: scale(1.25); }
.hero-carousel .hero-dot.active { background: #fff; }

.page-hero { position: relative; padding: 62px 24px; text-align: center; overflow: hidden; background: var(--hero-gradient); background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero .container { position: relative; z-index: 2; color: var(--hero-text); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero .sub { font-size: 1.05rem; opacity: 0.92; max-width: 600px; margin: 0 auto; }
.crumbs { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; opacity: 0.9; }
.crumbs a { color: inherit; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: 0.55; font-weight: 400; }

.section { padding: 74px 24px; }
.section-alt { position: relative; overflow: hidden; background: var(--bg-alt); }
.section-alt::before, .section-alt::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.section-alt::before { width: 420px; height: 420px; top: -140px; left: -120px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.section-alt::after { width: 360px; height: 360px; bottom: -120px; right: -110px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.section-alt .container { position: relative; z-index: 1; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--primary); background: var(--surface); border: 1px solid var(--border); padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 1.03rem; }

.feature, .category-card, .product-card, .testimonial-card, .contact-card, .article-card, .capability-card, .infra-card, .cert-card {
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: var(--shadow-md);
}
.feature:hover, .category-card:hover, .product-card:hover, .testimonial-card:hover, .contact-card:hover, .article-card:hover, .capability-card:hover, .infra-card:hover, .cert-card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: var(--shadow-lg);
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature h3 { color: var(--primary); margin-bottom: 8px; font-family: var(--font-head); font-size: 1.08rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--soft); border-radius: 50%; margin-bottom: 14px; }
.feature-icon svg { width: 26px; height: 26px; color: var(--accent); }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.category-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--soft); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-5px); text-decoration: none; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card:hover img { transform: scale(1.05); }
.category-card .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,0.06) 30%, rgba(10,12,16,0.76) 100%); }
.category-card .label { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; color: #f5f7fa; }
.category-card .label h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 2px; }
.category-card .label span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.85; }
.category-card.no-image { background: linear-gradient(150deg, var(--primary-light), var(--soft)); }
.category-card.no-image .veil { background: linear-gradient(180deg, rgba(10,12,16,0.03) 30%, rgba(10,12,16,0.58) 100%); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-chip { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); border-radius: var(--radius-pill); font-weight: 600; font-size: 0.88rem; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 24px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .thumb { height: 190px; overflow: hidden; position: relative; background: var(--soft); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.badge-cat { align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent); background: var(--accent-light); padding: 3px 10px; border-radius: var(--radius-pill); }
.product-card h3 { font-family: var(--font-head); font-size: 1.14rem; line-height: 1.35; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); background: var(--soft); border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.product-price-row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--border); margin-top: auto; }
.product-price { font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; }
.product-card .view-link { font-weight: 600; font-size: 0.92rem; }

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; max-width: 1080px; margin: 0 auto; }
.pdp-gallery { display: grid; gap: 12px; }
.pdp-main { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--soft); aspect-ratio: 16 / 10; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-thumb { width: 78px; height: 56px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); cursor: pointer; padding: 0; background: none; transition: border-color .15s ease; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--primary); }
.pdp-info h1 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; margin-bottom: 10px; }
.pdp-subline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdp-info .price-tag { font-size: 1.55rem; font-weight: 800; color: var(--primary-dark); margin: 14px 0 4px; }
.pdp-info .price-note { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--ink-faint); font-weight: 600; width: 170px; background: var(--bg-alt); }
.pdp-desc { font-size: 1.02rem; }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn { display: inline-block; background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--radius-pill); padding: 13px 28px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; color: var(--on-primary); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--ink) !important; }
.btn-ghost:hover { background: var(--soft); border-color: var(--primary); color: var(--primary) !important; }

.capabilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.capability-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.capability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.capability-card .feature-icon { border-radius: var(--radius); }
.capability-card h3 { color: var(--primary); margin-bottom: 8px; font-family: var(--font-head); font-size: 1.14rem; }
.capability-card .cap-excerpt { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.capability-card .cap-link { font-weight: 600; font-size: 0.92rem; }

.infrastructure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.infra-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.infra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.infra-card .thumb { height: 170px; overflow: hidden; background: var(--soft); }
.infra-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.infra-card:hover .thumb img { transform: scale(1.05); }
.infra-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.infra-card h3 { font-family: var(--font-head); font-size: 1.12rem; }
.infra-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.infra-card .view-link { font-weight: 600; font-size: 0.92rem; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.cert-card .cert-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cert-card h3 { font-family: var(--font-head); font-size: 1.16rem; }
.cert-card .cert-code { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); background: var(--accent-light); padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.cert-card .cert-meta { font-size: 0.85rem; color: var(--ink-soft); }
.cert-card .cert-meta strong { color: var(--ink); }
.cert-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }

.clients-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.client-logo { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; font-family: var(--font-head); color: var(--ink-soft); transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.client-logo:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.client-logo img { height: 34px; width: auto; }

.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; text-align: center; }
.stat-item { padding: 22px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat-item .stat-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--primary-dark); }
.stat-item .stat-label { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-top: 4px; }

.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.process-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; }
.process-step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.process-step h3 { font-family: var(--font-head); font-size: 1.08rem; margin-bottom: 6px; }
.process-step p { color: var(--ink-soft); font-size: 0.93rem; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.testimonial-card .qmark { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: color-mix(in srgb, var(--primary) 30%, transparent); }
.testimonial-card .stars { color: var(--accent); font-size: 1.05rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--ink); font-size: 0.98rem; flex: 1; }
.testimonial-card .author { color: var(--ink-soft); font-size: 0.88rem; font-weight: 700; }

.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1rem; font-family: var(--font-head); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); transition: transform .15s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p, .faq-list details .rich { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.97rem; }

.rich h2, .rich h3 { font-family: var(--font-head); color: var(--ink); margin: 16px 0 8px; line-height: 1.35; }
.rich h2 { font-size: 1.25rem; }
.rich h3 { font-size: 1.08rem; }
.rich p { margin: 0 0 12px; }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 22px; }
.rich li { margin-bottom: 4px; }
.rich blockquote { border-left: 3px solid var(--primary); padding-left: 14px; color: var(--ink-soft); margin: 0 0 12px; font-style: italic; }
.rich a { color: var(--primary-dark); font-weight: 600; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card .thumb { height: 180px; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { font-family: var(--font-head); font-size: 1.1rem; }
.article-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.article-meta { font-size: 0.78rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.article-card .footer { margin-top: auto; padding-top: 10px; }
.article-card .footer a { font-weight: 600; }

.article-prose { max-width: 780px; margin: 0 auto; }
.article-prose img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 26px; }
.article-prose h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; }
.article-prose .lede { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 26px; }
.article-prose .body { font-size: 1.05rem; }
.article-prose .body p { margin-bottom: 18px; }
.article-prose .body h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 30px 0 12px; }
.article-prose .body h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 26px 0 10px; }
.article-prose .body ul, .article-prose .body ol { margin: 0 0 18px 24px; }
.article-prose .body li { margin-bottom: 6px; }
.article-prose .body blockquote { border-left: 3px solid var(--primary); padding-left: 16px; color: var(--ink-soft); margin: 0 0 18px; font-style: italic; }
.article-prose .body a { color: var(--primary-dark); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.contact-card .hours { white-space: pre-line; }

.enquiry-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.enquiry-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); display: grid; gap: 18px; position: sticky; top: 96px; }
.enquiry-info h3 { color: var(--primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 2px; }
.enquiry-info .hours { white-space: pre-line; }
.enquiry-form { max-width: 660px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.enquiry-form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 7px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; width: 100%; background: var(--bg); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.enquiry-form textarea { min-height: 96px; resize: vertical; }
.consent-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 0.88rem; color: var(--ink-soft); }
.consent-line input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.success-box { max-width: 600px; margin: 48px auto; text-align: center; background: var(--primary-light); border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 36px; }
.success-box h3 { font-family: var(--font-head); margin-bottom: 8px; }
.error-box { max-width: 600px; margin: 24px auto; text-align: center; background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius); padding: 20px; color: #b91c1c; }

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pager-link { display: inline-flex; min-width: 38px; height: 38px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; font-size: 0.9rem; color: var(--primary); text-decoration: none; }
.pager-link:hover { border-color: var(--primary); }
.pager-link.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }

.empty-note { text-align: center; color: var(--muted, var(--ink-faint)); padding: 32px 0; }

.site-footer { background: var(--footer-bg, var(--ink)); color: var(--footer-fg, color-mix(in srgb, var(--ink) 35%, #fff)); border-top: 4px solid color-mix(in srgb, var(--primary) 60%, transparent); padding: 56px 0 0; margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; }
.site-footer h3 { color: var(--footer-head, #fff); margin-bottom: 14px; font-size: 1rem; font-family: var(--font-head); }
.site-footer a { color: var(--primary); }
.site-footer .brand { color: var(--footer-head, #fff); }
.site-footer .brand:hover { text-decoration: none; }
.site-footer .footer-desc { color: var(--footer-fg, color-mix(in srgb, var(--ink) 22%, #fff)); font-size: 0.92rem; margin-top: 6px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { color: var(--footer-fg, color-mix(in srgb, var(--ink) 30%, #fff)); }
.footer-links a:hover { color: var(--footer-head, #fff); text-decoration: none; }
.footer-links a.all-link { font-weight: 700; color: var(--primary); margin-top: 6px; }
.footer-col p { margin-bottom: 6px; }
.site-footer .hours { white-space: pre-line; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.86rem; color: var(--footer-fg, color-mix(in srgb, var(--ink) 22%, #fff)); }
.footer-bottom a { color: var(--footer-fg, color-mix(in srgb, var(--ink) 22%, #fff)); font-weight: 600; }
.footer-bottom a:hover { color: var(--footer-head, #fff); }
.footer-bottom .footer-sep{opacity:.5;margin:0 2px}
.powered-by{opacity:.8}
.powered-by a{color:inherit;text-decoration:none}
.powered-by a:hover{text-decoration:underline;opacity:1}
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; transition: background .15s ease, transform .15s ease; }
.social-link:hover { background: var(--primary); transform: translateY(-2px); text-decoration: none; }
.social-link svg { width: 16px; height: 16px; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wa-link svg { width: 16px; height: 16px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .15s ease, background .15s ease; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #1ebe5b; text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .brand { justify-content: flex-start; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav-link { border-radius: 10px; padding: 12px 14px; font-size: 1rem; }
  .nav-cta { text-align: center; }
  .hero { padding: 72px 20px 80px; }
  .section { padding: 54px 20px; }
  .page-hero { padding: 46px 20px; }
  .enquiry-wrap { grid-template-columns: 1fr; }
  .enquiry-info { position: static; }
}
@media (max-width: 520px) {
  .nav { gap: 3px; }
  .nav-link { padding: 7px 10px; font-size: 0.88rem; }
  .enquiry-form { padding: 24px 20px; }
  .clients-strip { gap: 10px; }
}

/* Trust specific additions */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 24px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card .thumb { height: 190px; overflow: hidden; position: relative; background: var(--soft); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card h3 { font-family: var(--font-head); font-size: 1.14rem; line-height: 1.35; }
.service-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chip { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); background: var(--soft); border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.service-price-row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--border); margin-top: auto; }
.service-price { font-weight: 800; color: var(--primary-dark); font-size: 1.05rem; }
.service-card .view-link { font-weight: 600; font-size: 0.92rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; transition: transform .15s ease; }
.team-card:hover { transform: translateY(-4px); }
.team-card .photo { height: 200px; overflow: hidden; background: var(--soft); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .info { padding: 16px; display: grid; gap: 4px; }
.team-card h3 { font-family: var(--font-head); font-size: 1.05rem; }
.team-card .role { font-size: 0.82rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
.team-card .exp { font-size: 0.82rem; color: var(--ink-faint); }
.team-card .bio { font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; }
.band { padding: 18px 0; }
.band-ink { background: var(--ink); color: var(--bg); }
.band-ink .stat-value { color: var(--accent); }
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 18px; text-align: center; }
.stat-value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.stat-label { font-size: 0.88rem; color: color-mix(in srgb, var(--ink) 70%, transparent); text-transform: uppercase; letter-spacing: 0.06em; }
.band-ink .stat-label { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-thumb { height: 190px; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--primary); font-size: 2rem; object-fit: cover; }
.card-thumb svg{width:36px;height:36px;opacity:.75}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.card-body h3 { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.3; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.center { text-align: center; margin-top: 24px; }
.pill-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--soft); color: var(--ink-soft); padding: 4px 10px; border-radius: var(--radius-pill); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; }
.logo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.logo-card img { max-height: 48px; object-fit: contain; }
.logo-fallback { width: 48px; height: 48px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; color: var(--primary); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.gallery.masonry { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 18px auto 0; border: 3px solid var(--soft); }
.avatar-fallback { width: 84px; height: 84px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; margin: 18px auto 0; }
.trustee-card { text-align: center; padding-bottom: 18px; }
.trustee-card h3 { margin-top: 12px; }
.quote-card { padding: 24px; gap: 14px; }
.quote-card p { font-style: italic; color: var(--ink); }
.quote-meta { display: grid; gap: 2px; margin-top: 10px; }
.stars { color: var(--accent); }
.page-head { padding: 48px 0 12px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-head h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; margin-top: 8px; }
.detail-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-top: 24px; }
.prose { max-width: 720px; }
.prose p { margin: 12px 0; color: var(--ink-soft); }
.rich h2, .rich h3 { font-family: var(--font-head); color: var(--ink); margin: 22px 0 8px; }
.rich ul, .rich ol { margin: 12px 0 12px 20px; color: var(--ink-soft); }
.rich blockquote { border-left: 3px solid var(--primary); padding-left: 14px; margin: 16px 0; color: var(--ink-soft); font-style: italic; background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 14px; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; }
.thumb-btn { border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; padding: 0; background: none; cursor: pointer; flex: 0 0 88px; height: 66px; }
.thumb-btn.active { border-color: var(--primary); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.cta { background: var(--bg-alt); }
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; display: grid; gap: 12px; justify-items: center; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.form-narrow { max-width: 680px; }
.link { font-weight: 600; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
.bg-alt { background: var(--bg-alt); }

/* Template specific overrides */
/* Sanjha (default) */
.hero { background-image: radial-gradient(ellipse at 30% 18%, rgba(212,162,74,0.10) 0 1px, transparent 1px 40px), var(--hero-gradient); }
.hero .tagline { color: #fde68a; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; font-weight: 700; font-family: 'Inter', sans-serif; }
.section-head .eyebrow { background: var(--accent-light); border-color: #f0d9a8; color: #8a6a20; letter-spacing: 0.14em; }
.product-card, .service-card, .pricing-card, .stylist-card, .project-card, .program-card, .trustee-card { border-top: 3px solid var(--primary); }
.feature-icon { background: var(--primary-light); border-radius: 12px; }
.feature-icon svg { color: var(--primary); }
.service-card .thumb { border-bottom: 3px solid var(--primary); }
.site-footer { border-top: 3px solid var(--accent); }

/* Nidhi overrides */
html[data-theme="nidhi"] .hero .tagline { color: #fef3c7; font-style: italic; font-weight: 500; letter-spacing: normal; text-transform: none; font-family: 'Fraunces', serif; font-size: 1.05rem; }
html[data-theme="nidhi"] .section-head .eyebrow { background: var(--soft); border-color: var(--border); color: var(--primary-dark); letter-spacing: 0.18em; }
html[data-theme="nidhi"] .feature, html[data-theme="nidhi"] .service-card, html[data-theme="nidhi"] .project-card { border-radius: 20px; }
html[data-theme="nidhi"] .feature-icon { border-radius: 50% 50% 50% 6px; background: var(--primary-light); }
html[data-theme="nidhi"] .feature-icon svg { color: var(--primary-dark); }
html[data-theme="nidhi"] .site-footer { border-top-color: var(--primary); }

/* Midnight overrides */
html[data-theme="midnight"] .site-header { background: rgba(15,20,25,0.92); border-bottom-color: #1c242e; }
html[data-theme="midnight"] .hero h1 { letter-spacing: -0.02em; }
html[data-theme="midnight"] .hero .tagline { color: var(--primary); letter-spacing: 0.18em; font-size: 0.78rem; font-family: 'Space Grotesk', sans-serif; text-transform: uppercase; font-style: normal; }
html[data-theme="midnight"] .section-head .eyebrow { background: transparent; border-color: var(--border); color: var(--primary); letter-spacing: 0.18em; }

/* Additional utility from hospital for completeness */
.notice-bar { background: var(--accent); color: var(--ink); padding: 0; overflow: hidden; }
.notice-bar-inner { display: flex; align-items: center; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.notice-label { flex-shrink: 0; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 14px 8px 0; }
.notice-track { overflow: hidden; flex: 1; position: relative; }
.notice-items { display: flex; gap: 32px; white-space: nowrap; animation: marquee 30s linear infinite; }
.notice-items a { color: var(--ink); font-size: 0.88rem; font-weight: 500; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; max-width: 1140px; margin: 0 auto; position: relative; z-index: 2; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-desc { color: color-mix(in srgb, var(--hero-text) 88%, transparent); font-size: 1.08rem; margin: 14px 0 0; }
.hero-meta { margin-top: 14px; font-size: 0.82rem; letter-spacing: 0.06em; opacity: 0.9; color: var(--hero-text); }
.hero-media { position: relative; }
.hero-placeholder { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; color: var(--ink-soft); }
.hero-placeholder .seal svg{width:32px;height:32px;color:var(--primary)}
.hero-carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--soft); box-shadow: var(--shadow-md); }
.hero-carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero-carousel img.active { opacity: 1; }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.hero-dots .dot.active { background: #fff; }

/* ===================== Theme switcher ===================== */
.theme-btn {
  position: fixed; bottom: 92px; right: 22px; 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: 22px; z-index: 120;
  width: 300px; max-width: calc(100vw - 32px);
  background: var(--surface); 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; color: var(--ink); }
.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); display: block; }
.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; }

@media (max-width: 860px) {
  .theme-panel { right: 16px; bottom: 148px; width: calc(100vw - 32px); }
  .theme-btn { right: 16px; bottom: 88px; }
}
