/* ============================================================
   THEME — change these variables to reskin the whole site.
   ============================================================ */
:root {
  --color-bg: #f7f0e4;
  --color-surface: #fffaf1;
  --color-text: #2b1d14;
  --color-text-soft: #5a4636;
  --color-primary: #3b2a1e;   /* dark wood brown — header, footer */
  --color-primary-light: #55402d;
  --color-accent: #c8932c;    /* warm amber/gold — buttons, highlights */
  --color-accent-dark: #a5751c;
  --color-border: #e3d5bd;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 8px;
  --shadow: 0 4px 16px rgba(43, 29, 20, 0.08);
  --max-width: 1100px;

  /* Dark wash used behind an optional hero photo — see .hero.has-photo below */
  --hero-overlay: linear-gradient(160deg, rgba(59,42,30,0.90) 0%, rgba(85,64,45,0.80) 100%);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-title {
  font-size: 2.1rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.section-subtitle {
  color: var(--color-text-soft);
  margin-bottom: 40px;
  max-width: 620px;
}
.section-header { text-align: center; margin-bottom: 8px; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: #2b1d14;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand .tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.nav-cta {
  background: var(--color-accent);
  color: #2b1d14 !important;
  padding: 9px 20px;
  border-radius: 999px;
  border: none !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid transparent;
  }
  .nav-links a:hover, .nav-links a.active {
    border-color: transparent;
    border-left-color: var(--color-accent);
    background: rgba(255,255,255,0.04);
  }
  .nav-links li:last-child { text-align: center; }
  .nav-cta {
    display: inline-block !important;
    width: auto !important;
    margin: 16px 0 !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200,147,44,0.25), transparent 55%);
  pointer-events: none;
}
/* Optional hero background photo — toggled by setting SITE.heroImage in
   config.js. Leave that value empty ("") and this rule simply never
   applies, so the plain gradient hero above is the default/fallback. */
.hero.has-photo {
  background-image: var(--hero-overlay), var(--hero-photo-url, none);
  background-size: cover;
  background-position: center;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Page header for inner pages (Menu/About/Contact) */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); }

/* ---------- Highlights strip ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.highlight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.highlight-card .icon { font-size: 2rem; margin-bottom: 12px; }
.highlight-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.highlight-card p { font-size: 0.9rem; color: var(--color-text-soft); }

/* ---------- Image slots (drop real photos into /images to replace) ---------- */
.img-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(135deg, #e3d5bd, #cbb489);
}
.img-slot.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(59,42,30,0.55);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

/* ---------- Two-column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Menu preview (homepage) ---------- */
.menu-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

/* ---------- Full menu page ---------- */
.menu-category { margin-bottom: 44px; }
.menu-category h2 {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 20px;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-weight: 700; }
.menu-item-desc { color: var(--color-text-soft); font-size: 0.9rem; margin-top: 2px; }
.menu-item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent-dark);
  white-space: nowrap;
}
.menu-note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 40px;
}

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.today td { color: var(--color-accent-dark); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-line { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-line .icon { font-size: 1.2rem; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/9;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #241812;
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid a { display: block; padding: 4px 0; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
