/* Tender Paws Veterinary Clinic — static demo of VeterinaryClinic-Module.
   Template palettes copied verbatim from the module's templates.ts. */
:root {
  --primary: #0E9F6E;
    --primary-dark: #0B7A55;
    --primary-light: #D1FAE5;
    --accent: #F59E0B;
    --accent-light: #FEF3C7;
    --bg: #F7FFFB;
    --bg-alt: #ECFDF5;
    --surface: #FFFFFF;
    --soft: #D1FAE5;
    --border: #A7F3D0;
    --ink: #0B1A13;
    --ink-soft: #3A5A4A;
    --ink-faint: #7AA89A;
    --on-primary: #FFFFFF;
    --on-accent: #1F2937;
    --font-head: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --hero-gradient: linear-gradient(135deg, #064E3B 0%, #0B7A55 45%, #0E9F6E 100%);
    --hero-overlay: linear-gradient(180deg, rgba(6,78,59,0.08) 0%, rgba(6,78,59,0.55) 100%);
    --hero-text: #F0FDF4;
    --shadow-sm: 0 1px 3px rgba(6,78,59,0.08);
    --shadow-md: 0 4px 18px rgba(6,78,59,0.10);
    --shadow-lg: 0 12px 36px rgba(6,78,59,0.16);
}

html[data-theme="companion"] {
  --primary: #D97706;
    --primary-dark: #B45309;
    --primary-light: #FFEDD5;
    --accent: #0E9F6E;
    --accent-light: #D1FAE5;
    --bg: #FFFBEB;
    --bg-alt: #FFF7ED;
    --surface: #FFFFFF;
    --soft: #FFEDD5;
    --border: #FDBA74;
    --ink: #431407;
    --ink-soft: #7C4A32;
    --ink-faint: #A98970;
    --on-primary: #FFFFFF;
    --on-accent: #FFFFFF;
    --font-head: 'Lora', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --hero-gradient: linear-gradient(135deg, #431407 0%, #9A3412 50%, #D97706 100%);
    --hero-overlay: linear-gradient(180deg, rgba(67,20,7,0.08) 0%, rgba(67,20,7,0.55) 100%);
    --hero-text: #FFFBEB;
    --shadow-sm: 0 1px 3px rgba(67,20,7,0.08);
    --shadow-md: 0 4px 18px rgba(67,20,7,0.10);
    --shadow-lg: 0 12px 36px rgba(67,20,7,0.16);
}

html[data-theme="midnight"] {
  --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #0B1E32;
    --accent: #38BDF8;
    --accent-light: #0B2538;
    --bg: #F1F5F9;
    --bg-alt: #E2E8F0;
    --surface: #FFFFFF;
    --soft: #E0F2FE;
    --border: #CBD5E1;
    --ink: #0B1220;
    --ink-soft: #334155;
    --ink-faint: #64748B;
    --on-primary: #FFFFFF;
    --on-accent: #0B1220;
    --font-head: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --hero-gradient: linear-gradient(135deg, #020617 0%, #0B1220 45%, #0C4A6E 100%);
    --hero-overlay: linear-gradient(180deg, rgba(2,6,23,0.12) 0%, rgba(2,6,23,0.60) 100%);
    --hero-text: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(2,6,23,0.12);
    --shadow-md: 0 4px 18px rgba(2,6,23,0.14);
    --shadow-lg: 0 12px 36px rgba(2,6,23,0.22);
}


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Archivo:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

* { 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.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: var(--on-primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.accred-bar { background: var(--primary-dark); color: var(--on-primary); }
.accred-bar-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 7px 24px; max-width: 1200px; margin: 0 auto; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
.accred-bar-inner span { display: inline-flex; align-items: center; gap: 6px; }
.accred-bar-inner .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1;} 50% { opacity: 0.6; } }
.accred-bar a { color: #fff; text-decoration: underline; font-weight: 800; }

.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: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 42px; width: auto; border-radius: var(--radius); object-fit: contain; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link { color: var(--ink-soft); font-weight: 600; font-size: 0.88rem; padding: 8px 14px; border-radius: var(--radius-pill); 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: var(--on-primary) !important; border-radius: var(--radius-pill); padding: 10px 22px; font-weight: 800; font-family: var(--font-body); letter-spacing: 0.01em; transition: background .15s, transform .15s; }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.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); }

.hero { position: relative; padding: 92px 24px 84px; 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; opacity: 0.06; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px; }
.hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: center; color: var(--hero-text); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(6px); color: var(--hero-text); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.13em; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.05; margin-bottom: 14px; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero .tagline { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; opacity: 0.96; margin-bottom: 10px; letter-spacing: 0.02em; }
.hero .desc { font-size: 1.05rem; opacity: 0.84; margin-bottom: 26px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta a { padding: 14px 28px; border-radius: var(--radius-pill); font-weight: 800; font-size: 0.95rem; transition: transform .15s, filter .15s, background .15s; }
.hero-cta a:hover { text-decoration: none; transform: translateY(-2px); }
.hero-cta .primary { background: var(--accent); color: var(--on-accent) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.hero-cta .primary:hover { filter: brightness(1.06); }
.hero-cta .ghost { border: 1.5px solid rgba(255,255,255,0.75); color: #fff !important; backdrop-filter: blur(4px); }
.hero-cta .ghost:hover { background: rgba(255,255,255,0.13); }

.trust-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 20px 28px; justify-content: center; padding: 18px 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.trust-item svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.trust-item span { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; }
.trust-item strong { color: var(--ink); }

.notice-bar { background: var(--accent); color: var(--on-accent); padding: 0; overflow: hidden; }
.notice-bar-inner { display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.notice-label { flex-shrink: 0; font-family: var(--font-body); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.11em; padding: 9px 14px 9px 0; border-right: 1px solid rgba(0,0,0,0.12); margin-right: 14px; }
.notice-track { overflow: hidden; flex: 1; position: relative; }
.notice-items { display: flex; gap: 28px; white-space: nowrap; animation: marquee 28s linear infinite; }
.notice-items a { color: var(--on-accent); font-size: 0.85rem; font-weight: 700; }
.notice-items a:hover { text-decoration: underline; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head .eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.65rem); margin-bottom: 12px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }

.card-grid { display: grid; gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; position: relative; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 6px; font-weight: 700; letter-spacing: -0.015em; }
.card-body p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--soft); color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.tag.solid { background: var(--primary); color: var(--on-primary); }
.tag.featured { background: var(--accent); color: var(--on-accent); }
.tag.home { background: #22c55e; color: #fff; }
.price { font-family: var(--font-body); font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.price .mrp { font-size: 0.9rem; font-weight: 500; color: var(--ink-faint); text-decoration: line-through; margin-left: 6px; }

.cat-card { text-align: center; padding: 14px 10px 18px; }
.cat-icon { width: 64px; height: 64px; margin: 8px auto 14px; border-radius: 18px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s; }
.cat-icon svg { width: 30px; height: 30px; }
.cat-card:hover .cat-icon { background: var(--primary); color: var(--on-primary); transform: translateY(-2px); }
.cat-card .count { font-size: 0.78rem; color: var(--ink-faint); font-weight: 700; margin-top: 8px; }
.cat-card h3 { font-size: 1.05rem; }

.test-card .test-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; font-size: 0.83rem; color: var(--ink-soft); }
.test-card .test-meta span { display: flex; align-items: center; gap: 6px; }
.test-card .test-meta svg { width: 14px; height: 14px; color: var(--ink-faint); }
.test-card .sample-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.test-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.88rem; }
.test-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); padding: 8px 12px; background: var(--soft); }
.test-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }

.pkg-card { display: flex; flex-direction: column; }
.pkg-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.pkg-card .btn { margin-top: auto; }
.pkg-card ul { margin: 12px 0 16px 16px; font-size: 0.87rem; color: var(--ink-soft); }
.pkg-card li { margin-bottom: 4px; }
.pkg-card .fasting { font-size: 0.82rem; background: var(--accent-light); color: var(--ink-soft); padding: 8px 12px; border-radius: var(--radius); margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.pkg-card .fasting svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.filter-bar a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); }
.filter-bar a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.filter-bar a.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.centre-card .centre-meta { font-size: 0.88rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.centre-card .centre-meta p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.centre-card .centre-meta svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.centre-main { position: absolute; top: 12px; left: 12px; background: var(--primary); color: var(--on-primary); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; padding: 4px 10px; border-radius: var(--radius-pill); }

.cta-band { background: var(--hero-gradient); padding: 68px 24px; text-align: center; color: var(--hero-text); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.cta-band::after { content: ""; position: absolute; inset: 0; opacity: 0.05; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 24px 24px; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { opacity: 0.92; margin-bottom: 24px; font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band a { display: inline-block; background: var(--accent); color: var(--on-accent) !important; padding: 14px 32px; border-radius: var(--radius-pill); font-weight: 800; transition: transform .15s, filter .15s; }
.cta-band a:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.05); }

.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.testimonial .stars { color: #f59e0b; margin-bottom: 10px; font-size: 0.95rem; letter-spacing: 1px; }
.testimonial .text { font-style: italic; margin-bottom: 14px; color: var(--ink); line-height: 1.6; font-size: 0.95rem; }
.testimonial .author { font-weight: 700; font-size: 0.9rem; }
.testimonial .loc { font-size: 0.8rem; color: var(--ink-faint); }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.faq-list summary { padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform .2s; flex-shrink: 0; font-weight: 400; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 18px 16px; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.faq-list .answer a { color: var(--primary); }

.rich p { margin-bottom: 12px; }
.rich h2 { font-family: var(--font-head); font-size: 1.45rem; margin: 22px 0 10px; font-weight: 700; }
.rich h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 16px 0 8px; font-weight: 700; }
.rich ul, .rich ol { margin: 0 0 12px 20px; }
.rich li { margin-bottom: 4px; }
.rich blockquote { border-left: 3px solid var(--accent); padding: 10px 16px; margin: 14px 0; background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }

.page-hero { background: var(--hero-gradient); padding: 64px 24px 56px; text-align: center; position: relative; overflow: hidden; }
.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.9rem, 4vw, 2.8rem); color: var(--hero-text); margin-bottom: 8px; font-weight: 800; letter-spacing: -0.02em; }
.page-hero p { color: color-mix(in srgb, var(--hero-text) 84%, transparent); max-width: 640px; margin: 0 auto; }
.breadcrumbs { display: flex; gap: 8px; justify-content: center; font-size: 0.84rem; margin-top: 14px; flex-wrap: wrap; }
.breadcrumbs a { color: color-mix(in srgb, var(--hero-text) 78%, transparent); }
.breadcrumbs a:hover { color: var(--hero-text); }
.breadcrumbs span { color: color-mix(in srgb, var(--hero-text) 60%, transparent); }

.form-wrap { max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
label { display: block; font-weight: 700; font-size: 0.82rem; margin-bottom: 6px; letter-spacing: 0.02em; }
input, textarea, select { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.94rem; background: var(--surface); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
textarea { resize: vertical; min-height: 100px; }
.btn { display: inline-block; background: var(--primary); color: var(--on-primary) !important; padding: 13px 28px; border-radius: var(--radius-pill); font-weight: 800; border: none; cursor: pointer; font-size: 0.94rem; transition: background .15s, transform .15s; text-align: center; }
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--ink) !important; }
.btn-ghost:hover { background: var(--soft); }
.success-box { background: color-mix(in srgb, #16a34a 10%, var(--bg)); border: 1px solid #16a34a; border-radius: var(--radius); padding: 24px; text-align: center; }
.success-box h3 { color: #16a34a; margin-bottom: 8px; font-family: var(--font-head); }
.error-box { background: color-mix(in srgb, #dc2626 9%, var(--bg)); border: 1px solid #dc2626; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; color: #dc2626; font-weight: 600; font-size: 0.92rem; }

.consent-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--soft); padding: 16px; }
.consent-box label { font-size: 0.88rem; font-weight: 500; line-height: 1.6; color: var(--ink-soft); margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.consent-box input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--primary); }
.consent-box .consent-text { font-size: 0.82rem; color: var(--ink-soft); margin-top: 8px; padding-left: 30px; }
.consent-box a { color: var(--primary); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.72)); color: #fff; padding: 18px 12px 10px; font-size: 0.84rem; font-weight: 600; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; font-weight: 700; font-size: 0.88rem; background: var(--surface); }
.pager a:hover { background: var(--soft); text-decoration: none; }
.pager .current { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.site-footer { background: #0B1B2B; color: rgba(255,255,255,0.82); padding: 44px 0 0; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1.5fr; gap: 28px; padding: 0 24px 36px; max-width: 1200px; margin: 0 auto; }
.footer-col h3 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin-bottom: 12px; font-weight: 700; }
.footer-col p { font-size: 0.88rem; margin-bottom: 8px; opacity: 0.9; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 0.88rem; }
.all-link { font-weight: 700; color: var(--accent) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 24px; text-align: center; font-size: 0.8rem; max-width: 1200px; margin: 0 auto; opacity: 0.7; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.footer-bottom .footer-sep{opacity:.5;margin:0 2px}
/* Powered by Krittim — https://krittim.in (branding markup in layout.tsx) */
.powered-by{opacity:.8}
.powered-by a{color:inherit;text-decoration:none}
.powered-by a:hover{text-decoration:underline;opacity:1}
.hero .eyebrow svg{width:16px;height:16px;flex-shrink:0}
.page-hero h1 svg{width:26px;height:26px;vertical-align:-4px}
.detail-grid{display:grid;grid-template-columns:1.4fr 0.8fr;gap:28px;align-items:start}
.detail-grid-narrow{display:grid;grid-template-columns:1.2fr 0.8fr;gap:28px;align-items:start}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.social-links { display: flex; gap: 8px; margin-top: 10px; }
.social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.09); transition: background .15s; }
.social-link:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.social-link svg { width: 17px; height: 17px; fill: currentColor; }

.wa-float { position: fixed; bottom: 20px; right: 20px; width: 52px; height: 52px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.2); z-index: 100; }
.wa-float:hover { background: #1ebe5b; text-decoration: none; }
.wa-float svg { width: 26px; height: 26px; }

.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 880px; margin: 32px auto 0; }
.stat-mini { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: 16px; text-align: center; color: var(--hero-text); }
.stat-mini strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-mini span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.88; }

.search-bar { max-width: 640px; margin: 0 auto 28px; position: relative; }
.search-bar input { padding-left: 42px; border-radius: var(--radius-pill); background: var(--surface); }
.search-bar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-faint); }

@media (max-width: 900px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .detail-grid,.detail-grid-narrow,.contact-grid{grid-template-columns:1fr}
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 10px; gap: 0; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav-link { width: 100%; border-radius: 10px; }
  .nav-toggle { display: block; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

/* ===================== Theme switcher (demo) ===================== */
.theme-btn {
  position: fixed; bottom: 86px; right: 20px; 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: 150px; right: 20px; 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); }
.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: 640px) {
  .theme-btn { right: 16px; bottom: 84px; }
  .theme-panel { right: 16px; bottom: 148px; }
}
