@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&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: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===================== Theme palettes ===================== */
/* Default: Crimson & Cream */
:root {
  --primary: #b91c1c;
  --primary-dark: #991b1b;
  --primary-light: #fee2e2;
  --accent: #f59e0b;
  --accent-light: #fffbeb;
  --bg: #ffffff;
  --bg-alt: #fff7ed;
  --surface: #ffffff;
  --soft: #fef2f2;
  --border: #fecaca;
  --ink: #1c1410;
  --ink-soft: #6b4c42;
  --ink-faint: #a89080;
  --on-primary: #ffffff;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%);
  --hero-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(28,20,16,0.08);
  --shadow-md: 0 4px 18px rgba(28,20,16,0.10);
  --shadow-lg: 0 12px 36px rgba(28,20,16,0.16);
}
html[data-theme="midnight"] {
  --primary: #c79a3a;
  --primary-dark: #a07c2a;
  --primary-light: #fef9e0;
  --accent: #fbbf24;
  --accent-light: #fffbeb;
  --bg: #0f172a;
  --bg-alt: #151f36;
  --surface: #1e293b;
  --soft: #1e293b;
  --border: #334155;
  --ink: #e2e8f0;
  --ink-soft: #94a3b8;
  --ink-faint: #64748b;
  --on-primary: #0f172a;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.55) 100%);
  --hero-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.36);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.44);
}
html[data-theme="sage"] {
  --primary: #5a7a5a;
  --primary-dark: #3f5a3f;
  --primary-light: #e8efe8;
  --accent: #e07856;
  --accent-light: #fef0e8;
  --bg: #fbfaf7;
  --bg-alt: #f4f1ec;
  --surface: #ffffff;
  --soft: #f4f1ec;
  --border: #e0dcd2;
  --ink: #2a2a25;
  --ink-soft: #6b6b60;
  --ink-faint: #9a9a8f;
  --on-primary: #ffffff;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #5a7a5a 0%, #3f5a3f 100%);
  --hero-overlay: linear-gradient(180deg, rgba(42,42,37,0.15) 0%, rgba(42,42,37,0.45) 100%);
  --hero-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(42,42,37,0.08);
  --shadow-md: 0 4px 18px rgba(42,42,37,0.10);
  --shadow-lg: 0 12px 36px rgba(42,42,37,0.14);
}
html[data-theme="charcoal"] {
  --primary: #404040;
  --primary-dark: #262626;
  --primary-light: #f0f0f0;
  --accent: #f59e0b;
  --accent-light: #fffbeb;
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --surface: #ffffff;
  --soft: #f5f5f4;
  --border: #e0e0e0;
  --ink: #1a1a1a;
  --ink-soft: #525252;
  --ink-faint: #a3a3a3;
  --on-primary: #ffffff;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #404040 0%, #262626 100%);
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.50) 100%);
  --hero-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.14);
}

/* ===================== Layout & components ===================== */
.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: 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.45rem; font-weight: 700; letter-spacing: -0.01em; }
.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: 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: var(--on-primary) !important; border-radius: 999px; padding: 9px 22px; transition: background .15s, transform .15s; font-weight: 700; }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.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); }

.hero { position: relative; padding: 110px 24px 110px; 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; 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: 760px; margin: 0 auto; 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: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; margin-bottom: 14px; font-weight: 700; letter-spacing: -0.02em; }
.hero .tagline { font-family: var(--font-head); font-size: 1.35rem; font-style: italic; opacity: 0.92; margin-bottom: 10px; font-weight: 400; }
.hero .desc { font-size: 1.05rem; opacity: 0.84; margin-bottom: 28px; max-width: 620px; 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: 700; 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(--ink) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.16); }
html[data-theme="midnight"] .hero-cta .primary { color: #0f172a !important; }
.hero-cta .primary:hover { filter: brightness(1.06); }
.hero-cta .ghost { border: 1.5px solid rgba(255,255,255,0.7); color: #fff !important; backdrop-filter: blur(4px); }
.hero-cta .ghost:hover { background: rgba(255,255,255,0.12); }

.notice-bar { background: var(--accent); color: var(--ink); padding: 0; overflow: hidden; }
html[data-theme="midnight"] .notice-bar { color: #0f172a; }
.notice-bar-inner { display: flex; align-items: center; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.notice-label { flex-shrink: 0; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; 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 30s linear infinite; }
.notice-items a { color: inherit; font-size: 0.85rem; font-weight: 600; }
.notice-items a:hover { text-decoration: underline; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

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

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.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.14em; color: var(--primary); margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.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.01em; }
.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; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--soft); color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.price-tag, .price { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--primary); }

/* Menu-specific */
.menu-category { margin-bottom: 44px; }
.menu-category h3 { font-family: var(--font-head); font-size: 1.55rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); font-weight: 600; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { text-decoration: none; }
.menu-item:hover .menu-item-name { color: var(--primary); }
.menu-item-info { flex: 1; }
.menu-item-name { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; transition: color .15s; }
.menu-item-badges { display: inline-flex; gap: 6px; align-items: center; }
.badge-veg { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #16a34a; border-radius: 3px; position: relative; }
.badge-veg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; background: #16a34a; border-radius: 50%; }
.badge-spicy { color: #dc2626; font-size: 0.85rem; display: inline-flex; align-items: center; }
.badge-featured { font-size: 0.65rem; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
html[data-theme="midnight"] .badge-featured { color: #0f172a; }
.menu-item-desc { font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.menu-item-price { font-family: var(--font-head); font-size: 1.12rem; color: var(--primary); font-weight: 700; white-space: nowrap; }

/* Chef cards */
.chef-card { text-align: center; }
.chef-card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--soft); }
.chef-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.chef-card .role { color: var(--primary); font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.chef-card .specialty { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.chef-card .bio { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; }

/* Offer cards */
.offer-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--soft); text-align: center; }
.offer-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }
.offer-card .offer-desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 10px; }
.offer-card .promo { display: inline-block; font-family: monospace; font-size: 1rem; font-weight: 700; background: var(--primary); color: var(--on-primary); padding: 6px 16px; border-radius: 999px; margin: 8px 0; letter-spacing: 0.05em; }
.offer-card .valid { font-size: 0.78rem; color: var(--ink-faint); margin-top: 6px; }

/* News / blog cards */
.news-card { display: flex; flex-direction: column; }
.news-card .badge-notice { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--ink); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
html[data-theme="midnight"] .news-card .badge-notice { color: #0f172a; }
.news-date { font-size: 0.80rem; color: var(--ink-faint); margin-bottom: 8px; font-weight: 600; }

.cta-band { background: var(--hero-gradient); padding: 68px 24px; text-align: center; color: #fff; 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: 700; letter-spacing: -0.02em; }
.cta-band p { opacity: 0.9; 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(--ink) !important; padding: 14px 32px; border-radius: var(--radius-pill); font-weight: 700; transition: transform .15s, filter .15s; }
html[data-theme="midnight"] .cta-band a { color: #0f172a !important; }
.cta-band a:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.06); }

.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; }
.rich a { color: var(--primary); }

.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: 700; 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[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--primary); flex-shrink: 0; }
.consent-line { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.88rem; cursor: pointer; }
.consent-line input { margin-top: 3px; }
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: 700; 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 9%, var(--bg)); border: 1px solid color-mix(in srgb, #16a34a 35%, var(--border)); 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 color-mix(in srgb, #dc2626 40%, var(--border)); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; color: #b91c1c; font-weight: 600; font-size: 0.92rem; }

.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: #1a0f0e; color: rgba(255,255,255,0.82); padding: 44px 0 0; }
html[data-theme="midnight"] .site-footer { background: #020617; }
html[data-theme="sage"] .site-footer { background: #2a2a25; }
html[data-theme="charcoal"] .site-footer { background: #171717; }
.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: 1140px; 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; }
html[data-theme="midnight"] .all-link { color: #fbbf24 !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: 1140px; margin: 0 auto; opacity: 0.7; }
.footer-sep { opacity: 0.8; margin: 0 6px; }
.powered-by { opacity: 0.85; }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; opacity: 1; }
.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; transition: background .15s, transform .15s; }
.wa-float:hover { background: #1ebe5b; text-decoration: none; transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

/* ===================== Theme switcher ===================== */
.theme-btn {
  position: fixed; bottom: 88px; 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: 152px; right: 24px; z-index: 120;
  width: 290px; 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: 1.05rem; 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) 70%, var(--primary-light)); }
.theme-card.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--soft)); }
.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) {
  .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); }
}
@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; }
  .notice-items { animation-duration: 20s; }
  .theme-panel { right: 16px; bottom: 144px; }
  .theme-btn { right: 16px; bottom: 84px; }
}
