/* ==========================================================================
   Blue Olive Restaurant — stylesheet
   Palette pulled directly from the restaurant's existing branding:
   navy #05344E · gold #827B3A · pale olive #CBCC84 · pimento red #BF0520
   ========================================================================== */

:root {
  --navy: #05344e;
  --navy-deep: #042638;
  --gold: #827b3a;
  --gold-light: #cbcc84;
  --red: #bf0520;
  --cream: #f5f6f2;
  --white: #ffffff;
  --ink: #22282d;
  --ink-soft: #5b6570;
  --line: #e3e6e2;
  --shadow: 0 10px 30px rgba(5, 52, 78, 0.12);
  --shadow-sm: 0 4px 14px rgba(5, 52, 78, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 640px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

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

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

h1, h2, h3, p { margin: 0; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--white {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   HERO (home)
   ========================================================================== */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #0a4a6c 0%, var(--navy) 55%, var(--navy-deep) 100%);
  padding: 48px 24px 40px;
  position: relative;
}
.hero__logo {
  width: min(78vw, 320px);
  height: auto;
  margin-bottom: 40px;
}
.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 300px;
}
.hero__scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================================
   MENU picker section
   ========================================================================== */
.menu-section {
  padding: 64px 0 56px;
}
.section-heading {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.7rem;
  color: var(--navy);
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 10px auto 34px;
  max-width: 420px;
  line-height: 1.5;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 460px) {
  .menu-grid { gap: 18px; }
}
@media (min-width: 700px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 12px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-tile:active { transform: scale(0.96); }
@media (hover: hover) {
  .menu-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.menu-tile__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-tile__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-light);
}
.menu-tile__label {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  text-align: center;
}
.menu-tile__hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ==========================================================================
   CONTACT section
   ========================================================================== */
.contact-section {
  background: var(--white);
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
}
.contact-block {
  text-align: center;
  margin-bottom: 40px;
}
.contact-block:last-child { margin-bottom: 0; }
.contact-block h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-block p {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 22px;
}
.contact-block a.contact-link {
  display: block;
  color: var(--navy);
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  font-size: 0.85rem;
  line-height: 1.7;
}
.site-footer strong { color: #fff; }
.site-footer a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   MENU DETAIL pages
   ========================================================================== */
.subheader {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.subheader__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.subheader__back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 4px;
  margin: -6px -4px;
}
.subheader__back svg { width: 20px; height: 20px; }
.subheader__brand {
  margin-left: auto;
  height: 22px;
}
.subheader__brand img { height: 100%; width: auto; }

.menu-hero {
  padding: 28px 0 8px;
  text-align: center;
}
.menu-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.menu-hero__icon svg { width: 28px; height: 28px; stroke: var(--gold-light); }
.menu-hero h1 {
  font-size: 1.5rem;
  color: var(--navy);
}
.menu-hero p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}
.menu-hero__actions {
  margin: 20px 0 8px;
}

.menu-pages {
  padding: 20px 16px 120px;
  max-width: 760px;
  margin: 0 auto;
}
.menu-page-figure {
  margin: 0 0 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-page-figure img {
  width: 100%;
  height: auto;
}
.menu-page-figure figcaption {
  padding: 8px 14px 10px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
}

.download-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.download-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.download-bar .btn--gold { flex: 1; }
.download-bar .btn--outline { flex: none; padding-left: 18px; padding-right: 18px; }

/* other-menus strip at bottom of a menu page */
.other-menus {
  padding: 8px 16px 56px;
  max-width: var(--max);
  margin: 0 auto;
}
.other-menus h2 {
  font-size: 1rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 16px;
}
.other-menus .menu-grid { grid-template-columns: repeat(3, 1fr); }
.other-menus .menu-tile { padding: 18px 8px 16px; }
.other-menus .menu-tile__icon { width: 48px; height: 48px; }
.other-menus .menu-tile__icon svg { width: 24px; height: 24px; }
.other-menus .menu-tile__label { font-size: 0.82rem; }
