/* Savory — Restaurant / Hospitality HTML5 Template
   Structured-corporate design language: one brand color, no gradients, no decorative icon
   glyphs, sharp edges. Gallery imagery is deliberately abstract (solid color blocks, not fake
   stock photos) since this is a template, not a real restaurant's actual photography.
   Vanilla CSS, no build step. */

:root {
  --font-heading: 'Fraunces', 'Inter', serif;
  --font-body: 'Inter', sans-serif;

  --c-bg: #ffffff;
  --c-bg-alt: #f7f4f0;
  --c-surface: #ffffff;
  --c-border: #e6e0d6;
  --c-text: #211c17;
  --c-text-muted: #5e564a;
  --c-text-faint: #918878;

  /* One brand color, used everywhere. */
  --c-primary: #a1462b;
  --c-primary-dark: #7d3520;
  --c-primary-contrast: #ffffff;

  --shadow-sm: 0 1px 2px rgba(33, 28, 23, 0.05);
  --shadow-md: 0 4px 16px rgba(33, 28, 23, 0.07);

  --radius-sm: 4px;
  --radius-md: 6px;
  --header-h: 72px;
  --container-w: 1180px;

  /* Panel/gallery text colors — separate tokens (not literal hex in each rule) so the dark-mode
     override below is the only place that needs to change when a light-mode block color changes.
     Getting this wrong once already (hardcoded dark text on a background that flips to dark in
     dark mode, going nearly unreadable) is why these exist as variables now. */
  --c-block-text: #211c17;
  --c-block-text-muted: #4a4237;
}

[data-theme="dark"] {
  --c-bg: #17130f;
  --c-bg-alt: #1d1813;
  --c-surface: #211b15;
  --c-border: #362e24;
  --c-text: #f4efe8;
  --c-text-muted: #b3aa9c;
  --c-text-faint: #7d7565;
  --c-primary: #d16b4a;
  --c-primary-dark: #e08b6c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --c-block-text: #f4efe8;
  --c-block-text-muted: #d8d0c3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--c-text); background: var(--c-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color 0.25s ease, color 0.25s ease; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--c-text-muted); }
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; padding: 13px 26px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; white-space: nowrap; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-lg { padding: 15px 30px; font-size: 0.98rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.eyebrow { display: inline-block; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 12px; }
.highlight { color: var(--c-primary); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: color-mix(in srgb, var(--c-bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.logo-mark { width: 22px; height: 22px; background: var(--c-primary); border-radius: 2px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; font-weight: 500; }
.main-nav a { color: var(--c-text-muted); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--c-text); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-surface); cursor: pointer; color: var(--c-text-muted); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; border: none; background: none; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--c-text); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy p.lead { font-size: 1.08rem; margin: 18px 0 30px; max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-panel { display: grid; gap: 14px; }
.hero-panel-block { position: relative; border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 20px; height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden; }
.block-b { height: 150px; }
/* Real dish photography with a text-scrim, not a flat color block — the scrim is dark in both
   light and dark mode, so overlay text stays a fixed light color instead of the old per-theme
   --c-block-text flip (which was tuned for a light pastel block, not an arbitrary photo). Same
   reasoning applies to .gallery-item below, which has no overlay text at all. */
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-panel-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,8,0.75), rgba(20,14,8,0.05) 65%); z-index: 1; }
.panel-tag { align-self: flex-start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--c-bg); color: var(--c-primary); padding: 4px 10px; border-radius: var(--radius-sm); position: absolute; top: 16px; left: 16px; z-index: 2; }
.panel-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: #f8f3ea; position: relative; z-index: 2; }
.panel-price { font-size: 0.88rem; color: #e3d8c6; position: relative; z-index: 2; }

/* ---------- Value band ---------- */
.value-band { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-bg-alt); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-item { padding: 26px 24px; border-right: 1px solid var(--c-border); }
.value-item:last-child { border-right: none; }
.value-item h3 { font-size: 0.94rem; margin-bottom: 4px; }
.value-item p { font-size: 0.82rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 600px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { margin-bottom: 10px; }
.section-sub { font-size: 0.96rem; }

/* ---------- Menu tabs ---------- */
.menu-tabs { display: grid; gap: 0; }
.tab-buttons { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--c-border); border-bottom: none; }
.tab-btn { padding: 15px 18px; background: var(--c-surface); border: none; border-right: 1px solid var(--c-border); font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--c-text-muted); cursor: pointer; }
.tab-btn:last-child { border-right: none; }
.tab-btn.is-active { color: var(--c-text); box-shadow: inset 0 -2px 0 var(--c-primary); background: var(--c-bg-alt); }
.tab-panels { border: 1px solid var(--c-border); }
.tab-panel { display: none; padding: 8px 32px; }
.tab-panel.is-active { display: block; }
.menu-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--c-border); }
.menu-row:last-child { border-bottom: none; }
.menu-row h3 { margin-bottom: 4px; }
.menu-row p { font-size: 0.88rem; }
.menu-price { font-weight: 600; color: var(--c-primary); white-space: nowrap; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-panel { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 40px; }
.about-quote { font-family: var(--font-heading); font-size: 1.25rem; color: var(--c-text); line-height: 1.5; margin-bottom: 16px; }
.about-attribution { font-size: 0.85rem; color: var(--c-text-faint); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; border-top: 1px solid var(--c-border); padding-top: 24px; }
.stat-value { display: block; font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600; color: var(--c-primary); }
.stat-label { display: block; font-size: 0.78rem; color: var(--c-text-faint); margin-top: 2px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { aspect-ratio: 4 / 3; border-radius: var(--radius-md); border: 1px solid var(--c-border); position: relative; overflow: hidden; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--c-surface); border: 1px solid var(--c-border); padding: 26px; }
.testimonial-card p { color: var(--c-text); font-size: 0.96rem; margin-bottom: 18px; }
.testimonial-card footer { display: flex; align-items: center; gap: 12px; }
.testimonial-card footer div { display: flex; flex-direction: column; font-size: 0.85rem; }
.testimonial-card footer strong { color: var(--c-text); }
.testimonial-card footer span { color: var(--c-text-faint); font-size: 0.78rem; }
.avatar { width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--c-primary); color: #fff; font-size: 0.7rem; font-weight: 700; font-family: var(--font-heading); flex-shrink: 0; }

/* ---------- Reservations (promo band) ---------- */
.promo-band { background: var(--c-primary); padding: 72px 0; }
.promo-inner { max-width: 460px; text-align: center; margin: 0 auto; }
.promo-inner .eyebrow { color: #f3d9cd; }
.promo-inner h2 { color: #fff; margin-bottom: 12px; }
.promo-inner p { color: rgba(255,255,255,0.85); margin-bottom: 26px; font-size: 0.92rem; }
.reservation-form { background: #fff; border-radius: var(--radius-md); padding: 26px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.reservation-form input, .reservation-form select { width: 100%; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid #ddd; background: #fff; color: #211c17; font-family: var(--font-body); font-size: 0.9rem; }
.reservation-form input:focus, .reservation-form select:focus { outline: none; border-color: var(--c-primary); }
.form-note { margin-top: 12px; font-size: 0.74rem; color: #8a8378; text-align: center; }

/* ---------- Visit / hours ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.contact-info li { display: flex; flex-direction: column; gap: 2px; font-size: 0.92rem; }
.contact-info strong { font-family: var(--font-heading); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-faint); }
.hours-panel { background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 32px; }
.hours-panel h3 { margin-bottom: 18px; }
.hours-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--c-border); font-size: 0.92rem; }
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: var(--c-text); font-weight: 500; }
.hours-row span:last-child { color: var(--c-text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg-alt); border-top: 1px solid var(--c-border); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { margin: 16px 0 18px; font-size: 0.87rem; max-width: 280px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--c-text-muted); }
.footer-col h4 { font-size: 0.85rem; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.87rem; color: var(--c-text-muted); margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid var(--c-border); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--c-text-faint); }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--c-primary); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 90; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .value-item:nth-child(2) { border-right: none; }
  .tab-buttons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner, .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--c-bg); border-bottom: 1px solid var(--c-border); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
  .main-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle { display: flex; }
  .tab-panel { padding: 8px 20px; }
}
@media (max-width: 620px) {
  .gallery-grid, .testimonial-grid, .value-grid, .tab-buttons { grid-template-columns: 1fr; }
  .value-item { border-right: none; border-bottom: 1px solid var(--c-border); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .menu-row { flex-direction: column; gap: 4px; }
}

/* Footer credit logo (added) */
.template-credit { display: flex; align-items: center; gap: 6px; }
.template-credit .credit-logo { height: 16px; width: auto; }
.template-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sticky book/contact bar (added) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--c-primary-dark); border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 24px;
}
.sticky-cta-text { color: #fff; font-size: 0.92rem; }
.sticky-cta-text strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.sticky-cta-text span { color: rgba(255, 255, 255, 0.68); }
.sticky-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #fff; color: var(--c-primary-dark); font-weight: 600; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 4px; white-space: nowrap; transition: background-color 0.15s ease;
}
.sticky-cta-btn:hover { background: rgba(255, 255, 255, 0.88); }
@media (max-width: 640px) {
  .sticky-cta-text span { display: none; }
}
