/* ==========================================================================
   GIORGIO'S — AEGEAN EDITION
   A rich, deep-blue Greek design system.
   NOTE: every legacy variable + class hook from the original stylesheet is
   preserved so main.js / server logic keep working untouched.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* --- Legacy names (kept, revalued) --- */
  --navy-blue: #0a1f3d;
  --aegean-blue: #1f6fb2;
  --warm-gold: #c9a227;
  --gold-hover: #e0bc52;
  --off-white: #f6f1e7;
  --text-dark: #16212f;
  --border-color: #d9cfbe;
  --success-green: #1f8a54;

  /* --- New palette --- */
  --abyss: #041424;          /* deepest background */
  --deep-sea: #072240;       /* page background */
  --hull: #0c2d52;           /* raised surface on dark */
  --hull-2: #12406e;         /* hover surface on dark */
  --sky: #58a8e8;            /* bright accent blue */
  --sky-soft: #9ccdf2;
  --gold: #c9a227;
  --gold-light: #e8cd82;
  --marble: #f6f1e7;         /* cream paper */
  --marble-2: #fffdf8;       /* card white */
  --chalk: #eef4fb;          /* text on dark */
  --mist: #9fb7d1;           /* muted text on dark */
  --slate: #55636f;          /* muted text on light */
  --line-dark: rgba(255, 255, 255, 0.10);
  --line-light: #e6ddcd;

  /* --- Type --- */
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --label: 'Oswald', 'Montserrat', sans-serif;
  --body: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Shape --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(4, 20, 36, 0.08);
  --shadow-md: 0 12px 28px -10px rgba(4, 20, 36, 0.30);
  --shadow-lg: 0 30px 60px -24px rgba(4, 20, 36, 0.65);

  /* --- Greek meander band --- */
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M0 21.5 H48'/%3E%3Cpath d='M3 21.5 V3 H42 V16.5 H12 V9 H32 V13'/%3E%3C/g%3E%3C/svg%3E");
  --meander-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%2358a8e8' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M0 21.5 H48'/%3E%3Cpath d='M3 21.5 V3 H42 V16.5 H12 V9 H32 V13'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--chalk);
  background-color: var(--deep-sea);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

::selection { background: var(--gold); color: var(--abyss); }

/* Focus ring — accessible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* Reusable helpers ------------------------------------------------------- */
.shell { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.meander-band {
  height: 24px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.75;
}

.eyebrow {
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(4, 20, 36, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.9);
  padding: 0;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--marble);
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-brand .brand-sub {
  font-family: var(--label);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links-container {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--label);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--gold-light); }
.nav-link.is-current::after { transform: scaleX(1); }

.nav-order-btn {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #2b1e00;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 18px -6px rgba(201, 162, 39, 0.7);
}

.nav-order-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(201, 162, 39, 0.85);
}

.nav-order-btn.is-ghost {
  background: transparent;
  color: var(--chalk);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.nav-order-btn.is-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: none;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.86rem;
  text-decoration: none;
  border-radius: 999px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #2b1e00;
  box-shadow: 0 10px 26px -10px rgba(201, 162, 39, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn-secondary {
  background-color: transparent;
  color: var(--chalk);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--sky);
  color: #fff;
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-light);
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.badge.on-light {
  background: rgba(10, 31, 61, 0.06);
  border-color: rgba(10, 31, 61, 0.2);
  color: var(--navy-blue);
}

/* ==========================================================================
   4. HOMEPAGE
   ========================================================================== */
.landing-main {
  background:
    radial-gradient(1100px 620px at 50% -180px, rgba(31, 111, 178, 0.38), transparent 70%),
    linear-gradient(180deg, var(--abyss) 0%, var(--deep-sea) 45%, var(--abyss) 100%);
  padding: 0;
  min-height: 60vh;
}

.hero {
  text-align: center;
  padding: 74px 22px 64px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.hero-logo {
  width: min(340px, 76vw);
  height: auto;
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}

.landing-heading,
.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--marble);
  margin: 0 0 18px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
}

.hero-tagline {
  font-family: var(--label);
  font-weight: 300;
  font-size: clamp(0.78rem, 2.1vw, 0.95rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sky-soft);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.gold-divider {
  width: 192px;
  height: 24px;
  margin: 26px auto;
  background-image: var(--meander);
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.85;
}

/* --- Press / newspaper feature ---------------------------------------- */
.press-section {
  padding: 10px 22px 84px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.press-heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  color: var(--marble);
  margin: 10px 0 8px;
}

.press-sub {
  color: var(--mist);
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1rem;
}

.flyer-frame {
  display: block;
  text-decoration: none;
  background: var(--marble-2);
  padding: 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201, 162, 39, 0.35);
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
  position: relative;
}

.flyer-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -26px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(201, 162, 39, 0.6);
}

.landing-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* "Tap to read" pill — the article is small on a phone, so make it obvious
   that tapping opens it full size where it can be pinch-zoomed */
.flyer-zoom {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: none; /* only needed where the article is too small to read — see the 860px breakpoint */
  align-items: center;
  align-items: center;
  gap: 7px;
  background: rgba(4, 20, 36, 0.88);
  color: var(--gold-light);
  font-family: var(--label);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  pointer-events: none;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}

.flyer-caption {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 18px;
}

/* --- Value strip -------------------------------------------------------- */
.value-strip {
  background: var(--abyss);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 54px 22px;
}

.value-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.value-card {
  background: linear-gradient(180deg, var(--hull), rgba(12, 45, 82, 0.55));
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.5);
}

.value-card .v-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }

.value-card h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--marble);
  margin-bottom: 6px;
}

.value-card p {
  color: var(--mist);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* --- Review CTA --------------------------------------------------------- */
.review-section {
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
  background: linear-gradient(180deg, var(--hull), var(--deep-sea));
  padding: 46px 30px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow-md);
}

.review-section h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--marble);
  margin-bottom: 10px;
}

.review-section p {
  color: var(--mist);
  margin-bottom: 26px;
  font-size: 1rem;
  line-height: 1.6;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #2b1e00;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 26px -10px rgba(201, 162, 39, 0.8);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.review-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

.review-outer {
  background: linear-gradient(180deg, var(--deep-sea), var(--abyss));
  padding: 70px 22px 80px;
}

/* ==========================================================================
   5. INNER PAGES (photos / contact)
   ========================================================================== */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 22px 80px;
}

.page-head {
  text-align: center;
  margin-bottom: 44px;
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  color: var(--marble);
  margin-top: 6px;
}

.page-head h1 em { font-style: italic; font-weight: 600; color: var(--gold-light); }

.page-head p {
  color: var(--mist);
  max-width: 560px;
  margin: 14px auto 0;
}

/* --- Photo gallery ------------------------------------------------------ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark);
  background: var(--hull);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

.photo-tile:nth-child(4n + 1) { grid-row: span 1; }

.photo-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1), filter 0.4s ease;
}

.photo-tile:hover .photo-item { transform: scale(1.07); filter: saturate(1.1); }

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 20, 36, 0.55));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.photo-tile:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 20, 36, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--chalk);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* --- Contact cards ------------------------------------------------------ */
.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 10px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.contact-info {
  background: linear-gradient(180deg, var(--hull), rgba(12, 45, 82, 0.5));
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  min-width: 0;
}

.contact-info h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--marble);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info .rule {
  height: 24px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  opacity: 0.55;
  margin: 10px 0 18px;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mist);
  margin-bottom: 18px;
}

.contact-info strong { color: var(--chalk); }

.contact-info a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(88, 168, 232, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-info a:hover { color: var(--gold-light); border-color: var(--gold); }

/* Buttons inside contact cards must not inherit the link styling */
.contact-info a.btn { border-bottom: none; }
.contact-info a.btn-primary { color: #2b1e00; }
.contact-info a.btn-primary:hover { color: #2b1e00; border-color: transparent; }
.contact-info a.btn-secondary { color: var(--chalk); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--mist);
  font-size: 0.95rem;
}
.hours-table td:first-child {
  font-family: var(--label);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--chalk);
}
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table tr.is-today td {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.09);
}
.hours-table tr.is-closed td:last-child { color: #e08585; }

.notice-box {
  margin-top: 18px;
  background: rgba(224, 133, 133, 0.10);
  border: 1px solid rgba(224, 133, 133, 0.35);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: #f0b3b3;
  font-size: 0.88rem;
  line-height: 1.5;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  background: rgba(88, 168, 232, 0.12);
  border: 1px solid rgba(88, 168, 232, 0.45);
  color: var(--sky-soft) !important;
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  border-bottom-width: 1px !important;
  transition: all 0.2s ease;
}
.map-btn:hover {
  background: var(--sky);
  color: var(--abyss) !important;
  border-color: var(--sky);
  transform: translateY(-2px);
}

/* ==========================================================================
   6. ORDER PAGE
   ========================================================================== */
.order-page-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 22px 80px;
}

.order-header {
  text-align: center;
  margin-bottom: 34px;
}

.order-header h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  color: var(--marble);
  margin-bottom: 8px;
}
.order-header h1 em { font-style: italic; font-weight: 600; color: var(--gold-light); }

.order-header p { color: var(--mist); max-width: 560px; margin: 0 auto; }

/* The form sits on cream "paper" for maximum legibility */
.order-form {
  background: var(--marble-2);
  color: var(--text-dark);
  border-radius: var(--r-lg);
  padding: 40px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: var(--shadow-lg);
}

.form-section {
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-light);
}

.form-section:last-of-type { border-bottom: none; }

.form-section h3 {
  font-family: var(--display);
  color: var(--navy-blue);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.form-section h3 .step-num {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--navy-blue);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  align-self: center;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 18px;
  display: block;
  line-height: 1.6;
}

/* --- Category tabs ------------------------------------------------------ */
.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  background: #f1ece1;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 6px;
}

.tab-btn {
  flex: 1;
  min-width: 130px;
  padding: 11px 16px;
  background: transparent;
  color: #4a5a6a;
  border: none;
  border-radius: 999px;
  font-family: var(--label);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
}

.tab-btn:hover { background: rgba(10, 31, 61, 0.07); color: var(--navy-blue); }

.tab-btn.active-tab {
  background: var(--navy-blue);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(10, 31, 61, 0.8);
}

.group-heading {
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-blue);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

/* --- Product cards ------------------------------------------------------ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-sm);
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.75);
  box-shadow: 0 16px 30px -14px rgba(10, 31, 61, 0.4);
}

.menu-card.has-qty {
  border-color: var(--aegean-blue);
  box-shadow: 0 0 0 2px rgba(31, 111, 178, 0.2), var(--shadow-sm);
}

.product-img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  background-color: #dfd6c6;
  display: block;
  border-radius: 0;
  margin-bottom: 0;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 14px;
}

.item-info { margin-bottom: 0; }

.item-info label,
.menu-card .item-info label {
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-blue);
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.item-info span,
.menu-card .item-info span {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
  display: block;
}

.menu-card .item-info span.price-tag,
.item-info span.price-tag,
.price-tag {
  display: inline-block;
  width: auto;
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--navy-blue);
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(201, 162, 39, 0.45);
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.cut-option {
  display: block;
  margin-top: 12px;
  padding: 9px 10px;
  font-size: 0.85rem;
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-light);
  background: #faf7f1;
  font-family: var(--body);
  color: var(--text-dark);
}

.item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f6f1e7;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-light);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.step-btn {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  background: #fff;
  color: var(--navy-blue);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
}
.step-btn:hover { background: var(--navy-blue); color: #fff; border-color: var(--navy-blue); }

.qty-input,
.item-controls input,
.menu-card .item-controls input {
  width: 52px;
  padding: 7px 2px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  font-family: var(--body);
  color: var(--navy-blue);
  background: #fff;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.unit,
.item-controls .unit {
  font-family: var(--label);
  font-weight: 400;
  color: var(--slate);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: auto;
  flex: none;
  white-space: nowrap;
  text-align: right;
}

/* --- Fulfillment toggle ------------------------------------------------- */
.fulfillment-toggle {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.toggle-option {
  flex: 1;
  min-width: 220px;
  border: 2px solid var(--line-light);
  background: #fff;
  padding: 16px 18px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-blue);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.toggle-option:hover { border-color: rgba(31, 111, 178, 0.5); }

.toggle-option input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--aegean-blue);
}

.toggle-option.active-toggle {
  border-color: var(--aegean-blue);
  background-color: #eef6fd;
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.14);
}

/* --- Progress bar ------------------------------------------------------- */
.delivery-progress-container {
  background: linear-gradient(180deg, #f6f1e7, #efe8db);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 6px;
  border: 1px solid var(--line-light);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--label);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
  text-transform: uppercase;
  color: var(--navy-blue);
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background-color: #e0d7c7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--aegean-blue));
  border-radius: 999px;
  transition: width 0.4s ease, background 0.3s ease;
}

.progress-bar-fill.unlocked { background: var(--success-green); }

/* --- Inputs ------------------------------------------------------------- */
.input-label {
  display: block;
  font-family: var(--label);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.order-form input[type="text"],
.order-form input[type="tel"],
.order-form input[type="date"],
.order-form input[type="number"],
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 0.96rem;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--aegean-blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.16);
}

.order-form textarea { resize: vertical; min-height: 92px; }

.info-callout {
  background: #eef6fd;
  border: 1px dashed rgba(31, 111, 178, 0.5);
  border-radius: var(--r-md);
  padding: 16px 18px;
  text-align: center;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.6;
}
.info-callout strong { color: var(--navy-blue); }

/* --- Summary + submit --------------------------------------------------- */
.order-summary-box {
  background: linear-gradient(180deg, var(--navy-blue), #061a33);
  color: var(--chalk);
  border: none;
  border-radius: var(--r-md);
  padding: 26px 28px;
  margin: 30px 0 20px;
  box-shadow: var(--shadow-md);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--mist);
  margin-bottom: 10px;
}
.summary-line span:last-child { color: var(--chalk); font-weight: 600; font-variant-numeric: tabular-nums; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--gold-light);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 16px;
  margin-top: 14px;
}
.summary-total span:first-child { font-family: var(--body); font-size: 0.95rem; font-weight: 600; color: var(--chalk); }
.summary-total span:last-child { font-variant-numeric: tabular-nums; }

.btn-submit-order {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #2b1e00;
  font-family: var(--label);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 19px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  margin-top: 10px;
  box-shadow: 0 12px 28px -12px rgba(201, 162, 39, 0.9);
}

.btn-submit-order:hover { transform: translateY(-2px); filter: brightness(1.06); }

.form-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 16px;
  line-height: 1.6;
}

/* --- Cart --------------------------------------------------------------- */
.floating-cart-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #2b1e00;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  z-index: 999;
}

.floating-cart-btn:hover { transform: translateY(-3px); filter: brightness(1.06); }

.cart-items-container {
  background: #faf7f1;
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  padding: 8px 22px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  font-weight: 600;
  color: var(--navy-blue);
}

.cart-item-row:last-child { border-bottom: none; }

/* main.js injects these +/- buttons with inline styles — match them to the
   product-card steppers without touching main.js */
.cart-item-row button {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  border: 1px solid var(--line-light) !important;
  background: #fff !important;
  color: var(--navy-blue) !important;
  font-family: var(--body) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cart-item-row button:hover {
  background: var(--navy-blue) !important;
  color: #fff !important;
  border-color: var(--navy-blue) !important;
}

.empty-cart {
  text-align: center;
  color: var(--slate);
  font-weight: 500;
  padding: 22px 10px;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--aegean-blue);
  font-family: var(--label);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 22px;
  padding: 0;
  border-bottom: 1px solid rgba(31, 111, 178, 0.4);
  text-decoration: none;
}
.btn-back:hover { color: var(--navy-blue); border-color: var(--navy-blue); }

/* --- Success view ------------------------------------------------------- */
.success-mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(31, 138, 84, 0.12);
  border: 2px solid rgba(31, 138, 84, 0.5);
  color: var(--success-green);
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.payment-card {
  background: linear-gradient(180deg, var(--navy-blue), #061a33);
  color: var(--chalk);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 520px;
  margin: 0 auto 30px;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.payment-card h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.payment-card .rule {
  height: 24px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  opacity: 0.5;
  margin-bottom: 20px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 6px;
}
.pay-row strong { color: var(--chalk); font-weight: 600; }

.etransfer-chip {
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
  border: 1px dashed rgba(201, 162, 39, 0.55);
  border-radius: var(--r-sm);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 18px;
  word-break: break-all;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.shop-footer {
  background: var(--abyss);
  color: var(--chalk);
  padding: 0 0 46px;
  text-align: center;
  border-top: none;
  margin-top: 0;
  position: relative;
}

.shop-footer .footer-band {
  height: 24px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.8;
  margin-bottom: 46px;
}

.footer-content { max-width: 960px; margin: 0 auto; padding: 0 22px; }

.footer-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  color: var(--marble);
}

.footer-content > p { color: var(--mist); font-size: 0.98rem; }

.footer-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
  max-width: 820px;
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  text-align: left;
}

.footer-details h4 {
  font-family: var(--label);
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.footer-details p { color: var(--mist); font-size: 0.92rem; line-height: 1.8; }
.footer-details a { color: var(--sky); text-decoration: none; }
.footer-details a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-details em { color: #d5a0a0; font-style: normal; font-size: 0.86rem; }

.developer-credit {
  text-align: center;
  margin: 40px auto 0;
  max-width: 820px;
  padding: 22px 22px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: #7f97b1;
  line-height: 1.7;
}

.developer-credit strong { color: #ffffff; }

.developer-credit a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.developer-credit a:hover { color: var(--gold-light); text-decoration: underline; }

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .nav-container { padding: 10px 16px; gap: 10px; }
  .nav-brand { font-size: 1.4rem; }
  .nav-brand .brand-sub { display: none; }
  .nav-links-container { gap: 16px; }
  .nav-link { font-size: 0.74rem; letter-spacing: 0.1em; }
  .nav-order-btn { padding: 9px 16px; font-size: 0.7rem; letter-spacing: 0.1em; }

  /* On small screens the newspaper article is too small to read in place,
     so surface the "open it full size" affordance */
  .flyer-zoom { display: inline-flex; }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    -webkit-tap-highlight-color: rgba(201, 162, 39, 0.22);
  }

  /* --- Nav stays on ONE line, down to a 320px iPhone SE --- */
  .nav-container { flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding: 9px 14px; }
  .nav-brand { font-size: 1.18rem; }
  .nav-links-container { gap: 13px; flex: none; }
  .nav-link { font-size: 0.7rem; letter-spacing: 0.06em; padding: 8px 0; }
  .nav-order-btn { padding: 9px 13px; font-size: 0.64rem; letter-spacing: 0.06em; }

  /* --- Homepage: tighter rhythm, full-width tap targets --- */
  .hero { padding: 40px 18px 36px; }
  .hero-logo { margin-bottom: 18px; }
  .hero-tagline { letter-spacing: 0.2em; margin-bottom: 24px; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 11px; margin-top: 26px; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-buttons .btn { width: 100%; padding: 16px 20px; }
  .gold-divider { margin: 22px auto 4px; }

  .press-section { padding: 4px 14px 48px; }
  .press-sub { margin-bottom: 24px; }
  .flyer-frame { padding: 8px; border-radius: 10px; }
  .flyer-zoom {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    font-size: 0.64rem;
    padding: 9px 15px;
    letter-spacing: 0.12em;
  }
  .flyer-caption { margin-top: 14px; font-size: 0.68rem; line-height: 1.6; }

  .value-strip { padding: 40px 16px; }
  .value-grid { gap: 12px; }
  .value-card { padding: 22px 20px; }
  .value-card .v-icon { margin-bottom: 8px; }

  .review-outer { padding: 46px 16px 54px; }
  .review-section { padding: 32px 20px; }
  .review-btn { width: 100%; padding: 16px 18px; }

  /* --- Inner pages --- */
  .page-wrapper { padding: 40px 16px 56px; }
  .page-head { margin-bottom: 30px; }
  .contact-card { gap: 14px; }
  .contact-info { padding: 24px 18px; }
  .contact-info h3 { font-size: 1.45rem; }
  .contact-info .rule { margin: 8px 0 14px; }
  .hours-table td { padding: 11px 0; font-size: 0.92rem; }
  .hours-table td:first-child { font-size: 0.74rem; }
  .map-btn { width: 100%; justify-content: center; padding: 14px 18px; }

  /* Two thumbnails per row reads better than one giant photo per screen */
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-tile { border-radius: 10px; }

  /* --- Order page --- */
  .order-page-wrapper { padding: 36px 12px 60px; }
  .order-header { margin-bottom: 26px; }
  .order-form { padding: 20px 14px; border-radius: var(--r-md); }
  .form-section { margin-bottom: 28px; padding-bottom: 22px; }
  .form-section h3 { font-size: 1.38rem; gap: 9px; line-height: 1.25; }
  .form-section h3 .step-num { width: 23px; height: 23px; font-size: 0.66rem; }
  .section-subtitle { font-size: 0.86rem; margin-bottom: 15px; }

  .menu-grid { grid-template-columns: 1fr; gap: 14px; }
  .toggle-option { min-width: 100%; padding: 15px 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .fresh-layout { gap: 22px !important; }
  .fresh-layout > div { min-width: 100% !important; }

  /* Category tabs: never break a label across two lines */
  .menu-tabs { border-radius: var(--r-md); gap: 5px; padding: 5px; justify-content: center; }
  .tab-btn { min-width: 0; flex: 0 1 auto; white-space: nowrap; font-size: 0.67rem; padding: 11px 8px; letter-spacing: 0.02em; }

  /* Product cards: a little tighter so more fits on screen */
  .product-img { height: 158px; }
  .card-body { padding: 15px; gap: 12px; }
  .item-info label, .menu-card .item-info label { font-size: 1rem; }
  .item-controls { padding: 9px 11px; }
  .step-btn { width: 36px; height: 36px; font-size: 1.15rem; }

  /* iOS zooms the page whenever a focused field is under 16px — keep them at 16 */
  .order-form input[type="text"],
  .order-form input[type="tel"],
  .order-form input[type="date"],
  .order-form input[type="number"],
  .order-form select,
  .order-form textarea,
  .cut-option,
  .qty-input,
  .item-controls input,
  .menu-card .item-controls input { font-size: 16px; }

  .qty-input, .menu-card .item-controls input { width: 58px; padding: 9px 2px; }

  /* Floating cart bar: clear of the iPhone home indicator, and never
     parked on top of the last product card */
  .floating-cart-btn {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    left: 14px;
    padding: 16px 20px;
  }
  #menu-view { padding-bottom: 74px; }
  .order-page-wrapper + .shop-footer { padding-bottom: 92px; }

  .btn-back { font-size: 0.76rem; padding: 6px 0 8px; display: inline-block; }
  .cart-items-container { padding: 4px 16px; }
  .progress-header { font-size: 0.76rem; gap: 8px; }
  .order-summary-box { padding: 22px 20px; }
  .summary-total { font-size: 1.5rem; }
  .btn-submit-order { font-size: 0.88rem; letter-spacing: 0.08em; padding: 18px 14px; }

  .footer-logo { font-size: 2.2rem; }
  .footer-details { text-align: center; gap: 26px; }
  .payment-card { padding: 22px 18px; }
  .success-mark { width: 70px; height: 70px; font-size: 2rem; }
  .etransfer-chip { font-size: 0.95rem; }

  /* Cart rows are injected by main.js with inline styles, so these need
     !important to stack the item name above its controls on a phone */
  .cart-item-row { flex-wrap: wrap !important; padding: 14px 0 !important; }
  .cart-item-row > div:first-child { flex: 0 0 100% !important; margin-bottom: 10px !important; }
  .cart-item-row > div:nth-child(2) { flex: 1 1 auto !important; }
  .cart-item-row > div:nth-child(3) { flex: 0 0 auto !important; text-align: right !important; }
  .cart-item-row button { width: 36px !important; height: 36px !important; font-size: 1.15rem !important; }
}

/* Very small phones (iPhone SE and similar) */
@media (max-width: 360px) {
  .nav-brand { font-size: 1.06rem; }
  .nav-links-container { gap: 10px; }
  .nav-link { font-size: 0.66rem; }
  .nav-order-btn { padding: 8px 11px; font-size: 0.6rem; }
  .order-form { padding: 18px 12px; }
  .tab-btn { font-size: 0.63rem; padding: 9px 8px; }
  .photo-grid { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print — lets Evan print an order summary cleanly */
@media print {
  .sticky-nav, .floating-cart-btn, .shop-footer, .btn-submit-order { display: none !important; }
  body { background: #fff; color: #000; }
  .order-form { box-shadow: none; border: 1px solid #ccc; }
}
