/* ===========================================
   FESTOS GRILL — blue & white
   =========================================== */

:root {
  --blue:        #0d5eaf;
  --blue-deep:   #003d82;
  --blue-line:   #c9dcef;
  --blue-soft:   #eef4fa;
  --white:       #ffffff;
  --ink:         #0a1929;
  --muted:       #5b6b80;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --container-max: 1100px;
  --container-pad: 1.5rem;
  --section-pad:   clamp(4.5rem, 9vw, 7.5rem);
  --header-height: 4.25rem;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--blue-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; left: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 36px; height: 36px;
  padding: 0;
  position: absolute;
  right: var(--container-pad);
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- HERO — plain white ---------- */
.hero {
  padding: clamp(5rem, 11vw, 8rem) 0 clamp(4.5rem, 10vw, 7rem);
  text-align: center;
  background-color: var(--white);
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-logo {
  max-width: min(600px, 68vw);
  width: 100%;
  height: auto;
  margin: 0 auto 2.25rem;
  display: block;
  /* Dissolves any white image background into the page */
  mix-blend-mode: multiply;
}

.tagline {
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
  max-width: 36rem;
  margin: 0 auto;
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee-scroll 36s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 3rem;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee-item::after {
  content: '✦';
  font-size: 0.65em;
  opacity: 0.6;
  font-style: normal;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section { padding: var(--section-pad) 0; }

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head.centered .eyebrow { justify-content: center; }

.eyebrow {
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-right: -0.32em; /* offset trailing letter-spacing for true centering */
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow.on-blue { color: rgba(255,255,255,0.75); }
.section-head.centered .eyebrow::after {
  content: '';
  width: 28px; height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

.section h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1.25rem, 6vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-blue h2 { color: var(--white); }

.section h3 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}
.section-blue h3 { color: rgba(255,255,255,0.85); }

/* ---------- MENU GRID (portrait cards) ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 1.75rem;
}

.menu-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}
.menu-card:hover { transform: translateY(-6px); }

.menu-photo {
  aspect-ratio: 4 / 5;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(10,77,140,0.07);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.menu-card:hover .menu-photo {
  box-shadow: 0 20px 48px rgba(10,77,140,0.18);
  border-color: var(--blue);
}

/* Placeholder icon — centered in the card when no image is present */
.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  opacity: 0.28;
}
.photo-placeholder svg { width: 52px; height: 52px; }

/* Real image fills the card and covers the placeholder */
.menu-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.menu-card:hover .menu-photo img { transform: scale(1.04); }

.menu-info { flex: 1; }

.menu-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.menu-title-row h3 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 0;
}

.price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-info > p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- MENU IMAGES (full menu pages) ---------- */
.menu-images {
  display: grid;
  gap: 2rem;
}

.menu-image picture {
  display: block;
}

.menu-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--blue-line);
  box-shadow: 0 10px 32px rgba(10,77,140,0.16);
  background: var(--white);
}

/* ---------- ABOUT ---------- */
.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 42rem;
}

/* ---------- LOCATION ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.hours-card {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  padding: 2rem 2.25rem;
}

.hours-card.centered-hours {
  max-width: 34rem;
  margin: 0 auto;
}

.hours-card h3 {
  margin-bottom: 0.75rem;
  color: var(--blue-deep);
}

.hours { list-style: none; }

.hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--blue-line);
  font-size: 0.95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { font-weight: 700; }
.hours li span:last-child  { color: var(--muted); }

.hours.hours-centered li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.25rem;
}

.hours.hours-centered li span:first-child {
  justify-self: end;
}

.hours.hours-centered li span:last-child {
  justify-self: start;
}

/* ---------- CONTACT ---------- */
.contact-list {
  list-style: none;
  max-width: 30rem;
  margin: 0 auto;
}
.section-head.centered ~ .contact-list { margin: 0 auto; }

.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  gap: 1.5rem;
}

.contact-list li span {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  flex-shrink: 0;
}

.contact-list li a {
  text-decoration: none;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.contact-list li a:hover { opacity: 0.75; }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 2.5rem 0;
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.back-top {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.2s ease;
}
.back-top:hover { opacity: 0.65; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  #menu .container {
    padding-left: 0;
    padding-right: 0;
  }

  #menu .section-head {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }

  .menu-images {
    gap: 0;
  }

  .menu-image img {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--header-height) var(--container-pad) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--blue-line);
    transform: translateY(-100%);
    transition: transform 0.35s ease, visibility 0.35s ease;
    visibility: hidden;
    pointer-events: none;
  }
  .nav.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--blue-line);
    font-size: 0.82rem;
    text-align: center;
  }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: 0; }

  .nav-toggle {
    display: block;
    z-index: 51;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
}
