/* ===== Tokens ===== */
:root {
  --forest: #17301F;
  --forest-deep: #0E2016;
  --sage: #DCE3CE;
  --sage-soft: #E9EEDF;
  --cream: #F6F4EC;
  --charcoal: #201C16;
  --chili: #A63A2E;
  --chili-deep: #832A20;
  --gold: #C9A24B;

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--chili); color: #fff; }
.btn-primary:hover { background: var(--chili-deep); }
.btn-ghost { border-color: currentColor; background: transparent; color: var(--forest); }
.btn-ghost.light { color: var(--sage); }
.btn-ghost.light:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; text-align: center; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,244,236,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(23,48,31,0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; color: var(--forest); }
.wordmark span { display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--chili); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 0.9rem; }
.main-nav a:hover { color: var(--chili); }
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer;
}
#cartCount {
  position: absolute; top: -6px; right: -6px;
  background: var(--chili); color: #fff; font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, #24462E 0%, var(--forest) 45%, var(--forest-deep) 100%);
  color: var(--sage);
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0;
  transition: opacity 1.2s ease; z-index: 0;
}
.hero-bg.visible { opacity: 1; }
.hero-steam {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(50% 60% at 85% 10%, rgba(201,162,75,0.18), transparent 70%),
              radial-gradient(40% 50% at 100% 90%, rgba(166,58,46,0.22), transparent 70%);
}
.hero.has-photo .hero-steam {
  background: linear-gradient(90deg, rgba(14,32,22,0.92) 0%, rgba(14,32,22,0.75) 45%, rgba(14,32,22,0.35) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--gold); margin-bottom: 18px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.04; margin: 0 0 24px; }
.hero-sub { font-size: 1.05rem; line-height: 1.6; max-width: 560px; color: rgba(233,238,223,0.85); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: var(--sage); border-color: var(--sage); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ===== Section shared ===== */
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 8px; color: var(--forest); }
.section-title span { color: var(--chili); }
.section-title.light { color: var(--sage); }
.section-title.light span { color: var(--gold); }

/* ===== Features ===== */
.features { padding: 90px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.feature-card { background: var(--sage-soft); border-radius: var(--radius); padding: 28px 24px; border: 1px solid rgba(23,48,31,0.08); }
.feature-num { font-family: var(--font-mono); color: var(--chili); font-size: 0.85rem; font-weight: 700; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 12px 0 10px; color: var(--forest); }
.feature-card p { font-size: 0.9rem; line-height: 1.55; color: #4a4438; margin: 0; }

/* ===== Gallery ===== */
.gallery-section { padding: 90px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.gallery-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--sage); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-photo .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(0deg, rgba(14,32,22,0.75), transparent);
  color: var(--sage); font-size: 0.78rem; font-weight: 600;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Menu ===== */
.menu-section { padding: 90px 0; background: var(--sage-soft); }
.menu-note { color: #4a4438; margin-top: 4px; margin-bottom: 32px; }
.category-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-tab {
  font-family: var(--font-mono); font-size: 0.8rem; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer;
}
.cat-tab.active, .cat-tab:hover { background: var(--forest); color: var(--sage); }

.menu-grid { display: flex; flex-direction: column; gap: 40px; }
.category-block { }
.category-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: stretch; }
.category-title {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--forest);
  margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.food-list { display: flex; flex-direction: column; }
.food-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 0; border-bottom: 1px dashed rgba(23,48,31,0.15);
}
.food-row:last-child { border-bottom: none; }
.food-info h4 { margin: 0 0 3px; font-size: 0.98rem; color: var(--forest); }
.food-info p { margin: 0; font-size: 0.8rem; color: #6b6354; line-height: 1.4; }
.food-price-row { display: flex; align-items: center; gap: 12px; flex: none; }
.dish-price { font-family: var(--font-mono); font-weight: 700; color: var(--chili); font-size: 0.9rem; }
.dish-add {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  border: none; background: var(--forest); color: var(--sage);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.dish-add:hover { background: var(--chili); }
.qty-controls { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); }
.qty-controls button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--forest); background: transparent; cursor: pointer; }
.food-row.dish-unavailable { opacity: 0.5; }
.food-row.dish-unavailable .dish-add { display: none; }

.category-photo {
  border-radius: var(--radius); overflow: hidden; min-height: 220px;
  background: var(--sage) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(23,48,31,0.08);
}
.category-photo img { width: 100%; height: 100%; object-fit: cover; }
.category-photo .placeholder-label {
  font-family: var(--font-display); color: var(--forest); opacity: 0.35; font-size: 1.4rem; text-align: center; padding: 20px;
}

@media (max-width: 800px) {
  .category-columns { grid-template-columns: 1fr; }
  .category-photo { order: -1; min-height: 180px; }
}

/* ===== Visit ===== */
.visit { background: var(--forest); color: var(--sage); padding: 90px 0; }
.visit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.visit-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 28px 0 32px; }
.visit-list dt { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--gold); align-self: start; padding-top: 3px; }
.visit-list dd { margin: 0; font-size: 0.95rem; }
.visit-list a:hover { color: var(--gold); }
.visit-map { border-radius: var(--radius); overflow: hidden; height: 340px; border: 1px solid rgba(255,255,255,0.15); }
.visit-map iframe { width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--forest-deep); color: rgba(233,238,223,0.6); padding: 22px 0; font-size: 0.82rem; }
.footer-inner { display: flex; justify-content: space-between; }
.footer-admin { text-decoration: underline; }

/* ===== Cart Drawer ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(14,32,22,0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 50; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw;
  background: var(--cream); z-index: 51; transform: translateX(100%);
  transition: transform 0.3s ease; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid rgba(23,48,31,0.1); }
.cart-header h3 { font-family: var(--font-display); margin: 0; color: var(--forest); font-size: 1.1rem; }
.cart-header button { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--forest); line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-empty { color: #6b6354; font-size: 0.9rem; margin-top: 20px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(23,48,31,0.08); }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info h5 { margin: 0 0 2px; font-size: 0.9rem; color: var(--forest); }
.cart-line-info span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--chili); }
.cart-line button.remove { background: none; border: none; color: #9a4a3f; cursor: pointer; font-size: 0.75rem; text-decoration: underline; }
.cart-footer { padding: 18px 22px 24px; border-top: 1px solid rgba(23,48,31,0.1); }
.cart-total-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 700; margin-bottom: 16px; font-size: 1.05rem; color: var(--forest); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-inner { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .menu-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; }
  .dish-card { flex-wrap: wrap; }
}
