/* ============================================================
   Garden Gourmet Deli — Design tokens
   Palette derived from the establishment's own logo (olive/
   orange/cream badge). See BRIEF.md for full reasoning.
   ============================================================ */

:root {
  --olive: #7A9A3D;
  --olive-deep: #4E6428;
  --olive-darker: #384a1d;
  --orange: #E08E3A;
  --orange-deep: #B96F24;
  --cream: #FBF6EA;
  --paper: #FFFFFF;
  --ink: #24301A;
  --ink-soft: #55603f;
  --line: #e7dfc9;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(56, 74, 29, 0.08);
  --shadow-md: 0 10px 30px rgba(56, 74, 29, 0.14);

  --container: 1160px;
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--olive-darker);
  margin: 0;
  text-wrap: balance;
}

ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--olive-darker);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.5rem; }

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

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 2.5rem;
}

/* Arch divider — echoes the logo's arched badge silhouette,
   used as the section-opening motif throughout the page. */
.arch-divider {
  display: block;
  width: 64px;
  height: 32px;
  margin: 0 0 1.5rem;
  border-top-left-radius: 64px;
  border-top-right-radius: 64px;
  border: 4px solid var(--orange);
  border-bottom: none;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn .icon { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  background: var(--orange);
  color: #2b1a06;
}
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn--secondary {
  background: transparent;
  border-color: var(--olive-darker);
  color: var(--olive-darker);
}
.btn--secondary:hover { background: var(--olive-darker); color: var(--cream); transform: translateY(-1px); }

/* On the hero's dark olive gradient, the outline button needs light
   text/border to keep AA contrast — the default olive-darker-on-olive
   pairing measures well under 3:1. */
.hero .btn--secondary,
.visit__ctas .btn--secondary.btn--on-dark {
  border-color: var(--cream);
  color: var(--cream);
}
.hero .btn--secondary:hover {
  background: var(--cream);
  color: var(--olive-darker);
}

.btn--call { background: transparent; border-color: currentColor; }

.btn--nav {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  color: var(--paper);
  border-color: var(--paper);
}
.btn--nav:hover { background: var(--paper); color: var(--olive-darker); }

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--olive-darker);
  color: var(--cream);
  border-bottom: 3px solid var(--orange);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: auto;
  border-radius: 6px;
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.primary-nav a:not(.btn) {
  text-decoration: none;
  color: var(--cream);
  opacity: 0.92;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.primary-nav a:not(.btn):hover { opacity: 1; border-color: var(--orange); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--olive-darker);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    border-bottom: 3px solid var(--orange);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav a:not(.btn) {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(251, 246, 234, 0.15);
  }

  .primary-nav .btn--nav {
    margin-top: 0.9rem;
    justify-content: center;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* No-JS fallback: keep nav links reachable/visible even if the
   toggle script never runs. */
@media (max-width: 860px) {
  .no-js .site-header__inner {
    flex-wrap: wrap;
  }
  .no-js .brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .no-js .primary-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    border-bottom: none;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.75rem 0 0;
  }
  .no-js .primary-nav a:not(.btn) {
    border-bottom: none;
    padding: 0.25rem 0;
  }
  .no-js .primary-nav .btn--nav {
    margin-top: 0;
    flex: 1 1 100%;
  }
  .no-js .nav-toggle { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background:
    radial-gradient(circle at 15% 0%, rgba(224, 142, 58, 0.16), transparent 55%),
    linear-gradient(180deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: var(--cream);
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.85;
  margin: 0 0 1.75rem;
}

.hero__badge-wrap {
  display: inline-block;
  background: var(--paper);
  padding: 1.1rem 1.4rem 0.9rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  animation: badge-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes badge-in {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero__badge {
  width: min(260px, 62vw);
  height: auto;
}

.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 900;
  color: var(--paper);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.92;
  margin: 0 0 1.75rem;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(251, 246, 234, 0.12);
  border: 1px solid rgba(251, 246, 234, 0.35);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 2.25rem;
}

.open-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(224, 142, 58, 0.6);
  animation: pulse 2.2s ease-in-out infinite;
  flex: none;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224, 142, 58, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(224, 142, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 142, 58, 0); }
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ============================================================
   About
   ============================================================ */

.about { background: var(--cream); }

.about .section-inner { text-align: center; padding-bottom: 3rem; }
.about .arch-divider { margin-left: auto; margin-right: auto; }

.about__quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  font-style: italic;
  color: var(--olive-darker);
  max-width: 46ch;
  margin: 0 auto 1.75rem;
  line-height: 1.45;
}

.about__facts {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ============================================================
   Menu
   ============================================================ */

.menu { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.menu-search { margin-bottom: 1.75rem; }

.menu-search__input {
  width: 100%;
  max-width: 480px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
}

.menu-search__input:focus {
  border-color: var(--orange);
  outline: none;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.menu-tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.menu-tab:hover { border-color: var(--olive); color: var(--olive-darker); }

.menu-tab.is-active {
  background: var(--olive-darker);
  border-color: var(--olive-darker);
  color: var(--cream);
}

.menu-category {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--olive-darker);
  margin: 2.5rem 0 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.menu-group > .menu-category:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.menu-category__note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-style: italic;
  margin: 0 0 1rem;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem 1.75rem;
  margin-top: 1rem;
}

.menu-item {
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line);
}

.menu-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.menu-item__name {
  font-weight: 700;
  color: var(--ink);
}

.menu-item__price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--orange-deep);
  white-space: nowrap;
}

.menu-item__desc {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.menu-item.is-hidden { display: none; }

.menu-empty {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  padding: 2rem 0;
}

/* No-JS: show every group at once, hide the tab controls (they
   do nothing without JS) so nothing looks broken. */
.no-js .menu-tabs,
.no-js .menu-search { display: none; }
.no-js .menu-group[hidden] { display: block !important; }
.no-js .menu-group { border-top: 3px double var(--line); padding-top: 2.5rem; margin-top: 2.5rem; }
.no-js .menu-group:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* ============================================================
   Reviews
   ============================================================ */

.reviews { background: var(--cream); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.review-card__stars {
  color: var(--orange);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.review-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.55;
}

.review-card figcaption {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--olive-darker);
}

/* ============================================================
   Visit
   ============================================================ */

.visit { background: var(--paper); }

.visit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .visit__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.visit__facts {
  margin: 0 0 2rem;
  display: grid;
  gap: 1.1rem;
}

.visit__facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

.visit__facts dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--olive-darker);
}

.visit__facts a { text-decoration: none; }
.visit__facts a:hover { text-decoration: underline; }

.visit__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.visit__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.visit__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--olive-darker);
  color: var(--cream);
  padding: 3rem 1.5rem 1.5rem;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(251, 246, 234, 0.18);
}

.brand--footer { align-items: center; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-weight: 600;
  align-content: flex-start;
}

.footer-nav a { text-decoration: none; opacity: 0.85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

.footer-facts {
  font-size: 0.92rem;
  opacity: 0.9;
  display: grid;
  gap: 0.25rem;
}

.footer-facts a { text-decoration: none; }
.footer-facts a:hover { text-decoration: underline; }

.footer-credit {
  max-width: var(--container);
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive tweaks
   ============================================================ */

@media (max-width: 480px) {
  .section-inner { padding: 3.25rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 3.5rem; }
  .menu-list { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .hero__ctas .btn,
  .visit__ctas .btn { width: 100%; justify-content: center; }
  .hero__ctas, .visit__ctas { flex-direction: column; }
}

@media (min-width: 1440px) {
  .section-inner { padding: 6rem 1.5rem; }
}
