:root {
  --primary: #6F4E37;
  --secondary: #FFFDD0;
  --text: #6F4E37;

  /* supporting neutrals derived to sit quietly around the brand colors */
  --bg: #FBF9EF;
  --card-bg: #FFFFFF;
  --primary-dark: #5A3E2B;
  --line: rgba(111, 78, 55, 0.14);
  --shadow: 0 12px 30px rgba(111, 78, 55, 0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 500; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.7;
  margin: 0 0 0.6rem;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 239, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.brand-logo { width: 110px; height: 35px; object-fit: cover; }
.hidden { display: none; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: 0.92rem; font-weight: 500; }
.nav-links a { opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--primary);
  color: var(--secondary) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  opacity: 1 !important;
}

/* ---------- HERO / SLIDESHOW ---------- */
.hero {
  position: relative;
  height: 86vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--primary-dark);
}

.slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.slide.active { opacity: 1; }
.slide img, .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  opacity: 0.6;
  font-size: 0.95rem;
  padding: 2rem;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90,62,43,0.35) 0%, rgba(90,62,43,0.55) 60%, rgba(90,62,43,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--secondary);
  padding: 0 1.5rem;
}
.hero-content .eyebrow { color: var(--secondary); opacity: 0.85; }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero-content .tagline { margin: 0.8rem 0 1.8rem; font-size: 1.1rem; opacity: 0.9; max-width: 34ch; }

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-primary { background: var(--secondary); color: var(--primary-dark); }
.btn-secondary { background: transparent; border: 1.5px solid currentColor; margin-top: 0.7rem; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }

.dots {
  position: absolute;
  bottom: 1.6rem;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,253,208,0.45);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.dot.active { background: var(--secondary); }

/* ---------- INFO STRIP ---------- */
.info-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.info-item { display: flex; flex-direction: column; gap: 0.2rem; }
.info-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.55; font-weight: 600; }

/* ---------- STORY ---------- */
.story {
  max-width: 780px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  text-align: center;
  position: relative;
}
.story-mark { color: var(--primary); display: flex; justify-content: center; margin-bottom: 1rem; }
.story p#shopDescription { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.5; }

/* ---------- MENU ---------- */
.menu { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.section-heading { text-align: center; margin-bottom: 2rem; }
.section-heading h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
}
.tab-btn.active { background: var(--primary); color: var(--secondary); border-color: var(--primary); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}
.menu-empty { grid-column: 1/-1; text-align: center; opacity: 0.6; padding: 2rem 0; }

.menu-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.menu-card:hover { transform: translateY(-4px); }
.menu-card .thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--secondary);
  object-fit: cover;
}
.menu-card .thumb-empty {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.45;
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.menu-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.menu-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.menu-card-top h3 { font-size: 1.15rem; }
.menu-price { font-weight: 600; white-space: nowrap; }
.menu-desc { font-size: 0.9rem; opacity: 0.75; flex: 1; }
.order-btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary-dark);
  cursor: pointer;
  border: none;
}
.unavailable-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
}

/* ---------- FOOTER ---------- */
.footer { background: var(--primary); color: var(--secondary); padding: 3rem 1.5rem 1.5rem; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,253,208,0.2);
}
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 0.3rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.4rem; opacity: 0.9; }
.footer-note { text-align: center; font-size: 0.8rem; opacity: 0.6; margin: 1.2rem 0 0; }

/* ---------- ORDER MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(90,62,43,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}
.modal.open { display: flex; }
.modal-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.8rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  opacity: 0.5;
}
.modal-help { font-size: 0.88rem; opacity: 0.7; margin: 0.6rem 0 1.4rem; }
#orderModal .btn-primary, #orderModal .btn-secondary { width: 100%; }

@media (max-width: 640px) {
  .nav-links { gap: 1rem; font-size: 0.85rem; }
  .hero { height: 78vh; }
}
