/* Beach Burger Shack — site stylesheet */
:root {
  --ocean: #0090aa;
  --ocean-dark: #006e83;
  --sand: #fffdf7;
  --sand-2: #f3ecdf;
  --coral: #f68d3d;
  --coral-dark: #e07a27;
  --ink: #333333;
  --muted: #666666;
  --white: #ffffff;
  --gold: #ffab15;
  --maroon: #921719;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 110, 131, 0.12);
  --font-display: "Rammetto One", "Lilita One", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); }
a:hover { color: var(--ocean-dark); }
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--maroon);
}
h1 { font-size: clamp(1.5rem, 6vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--sand-2); }
.section--ocean { background: var(--ocean-dark); color: #eaf4f8; }
.section--ocean h2, .section--ocean h3 { color: var(--white); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--coral);
  margin-bottom: 8px;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(232, 85, 47, 0.35); }
.btn--coral:hover { background: var(--coral-dark); color: #fff; }
.btn--ocean { background: var(--ocean); color: #fff; }
.btn--ocean:hover { background: var(--ocean-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ocean-dark); border-color: var(--ocean); }
.btn--ghost:hover { background: var(--ocean); color: #fff; }
.btn--light { background: #fff; color: var(--ocean-dark); }
.btn--light:hover { background: var(--sand-2); color: var(--ocean-dark); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 236, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(7, 59, 79, 0.08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ocean-dark); }
.brand img { height: 42px; width: auto; }
.brand span { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav__links a:hover { color: var(--coral); }
.nav__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ocean-dark); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ocean-dark); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(255, 171, 21, 0.28), transparent 60%),
    linear-gradient(160deg, #006e83 0%, #0090aa 72%);
  color: #fff;
  text-align: center;
  padding: 72px 0 84px;
}
.hero h1 { color: #fff; }
.hero__logo { height: 84px; width: auto; margin: 0 auto 20px; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; color: #eaf4f8; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__strip {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  font-size: 0.95rem;
  color: #cfe5ee;
}
.hero__strip strong { color: #fff; }

/* Cards / grid */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(7, 59, 79, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 110, 131, 0.16); }
.card h3 { color: var(--coral); }

/* Menu category pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(7, 59, 79, 0.15);
  color: var(--ocean-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.pill:hover { background: var(--ocean); color: #fff; border-color: var(--ocean); }

/* Menu items */
.menu-cat { margin-bottom: 40px; }
.menu-cat h2 { border-bottom: 3px solid var(--gold); display: inline-block; padding-bottom: 6px; margin-bottom: 18px; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(7, 59, 79, 0.15); }
.menu-item:last-child { border-bottom: 0; }
.menu-item__name { font-weight: 700; color: var(--ink); }
.menu-item__desc { color: var(--muted); font-size: 0.92rem; }
.menu-item__price { font-weight: 700; color: var(--coral); white-space: nowrap; min-width: 60px; text-align: right; }
.menu-item__price--soon { color: var(--muted); font-style: italic; font-weight: 500; }

/* Info blocks */
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-row svg { flex: 0 0 22px; margin-top: 3px; color: var(--coral); }
.info-row strong { display: block; }

/* Map */
.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Gallery placeholder */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__slot {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sand-2), #efe0c8);
  border: 2px dashed rgba(7, 59, 79, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 700; font-size: 0.92rem; }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(7, 59, 79, 0.25);
  font: inherit;
  background: #fff;
}
.form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-size: 0.9rem; min-height: 1.2em; margin: 0; }
.form-status--ok { color: #1a7f37; }
.form-status--err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--ocean-dark); color: #cfe5ee; padding: 48px 0 110px; }
.site-footer a { color: #eaf4f8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(4, 1fr); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #9db8c4; }

/* Sticky mobile CTA — floating pill dock (does not cover content) */
.sticky-cta {
  position: fixed;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(0, 110, 131, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 34px rgba(0, 40, 50, 0.35);
  max-width: calc(100% - 24px);
}
.sticky-cta .btn { flex: 1 1 auto; min-width: 0; box-shadow: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* Responsive nav */
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links, .nav__phone, .nav > .btn {
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: var(--sand);
    flex-direction: column;
    padding: 18px 20px 24px;
    gap: 14px;
    border-bottom: 1px solid rgba(7, 59, 79, 0.1);
    display: none;
    align-items: flex-start;
  }
  .nav__links.is-open, .nav__links.is-open ~ .nav__phone { display: flex; }
  .nav.is-open .nav__links { display: flex; }
}
@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--coral); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* Hero background image */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 85, 100, 0.55) 0%, rgba(0, 60, 80, 0.15) 100%); }
.hero__content { position: relative; z-index: 1; }

/* Coming-soon ordering button */
.btn--soon { background: #cfc9bd; color: #5f5f5f; box-shadow: none; cursor: default; }
.btn--soon:hover { background: #cfc9bd; color: #5f5f5f; }

/* Hero text wrap safety on narrow screens */
.hero h1, .hero p { max-width: 100%; overflow-wrap: break-word; }

/* Gallery items */
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.gallery__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery__item figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); }

/* Menu item thumbnail */
.menu-item__body { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; }
.menu-item__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 64px; background: var(--sand-2); }

/* Scroll-reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.is-visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.is-visible { opacity: 1; transform: none; }

/* Hero entrance animation */
@keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero__logo, .hero h1, .hero p, .hero__cta, .hero__strip { animation: heroUp 0.8s ease both; }
.hero__logo { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero p { animation-delay: 0.25s; }
.hero__cta { animation-delay: 0.35s; }
.hero__strip { animation-delay: 0.45s; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .hero__logo, .hero h1, .hero p, .hero__cta, .hero__strip {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
}

/* ============================================================
   Cinematic entrance
   ============================================================ */
.entrance {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4vh; padding: 24px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 112%, #33190b 0%, #1d1007 52%, #120a06 100%);
  color: #fff; text-align: center;
}
.entrance[hidden] { display: none; }
body.entrance-done .entrance { opacity: 0; pointer-events: none; transition: opacity 0.7s ease; }
body.has-entrance { overflow: hidden; }

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

/* Warm grill glow behind the burger */
.entrance__glow {
  position: absolute; left: 50%; bottom: -28%;
  width: 130vmin; height: 130vmin; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 100%, rgba(246,141,61,0.55) 0%, rgba(232,85,47,0.22) 44%, transparent 70%);
  animation: glowPulse 3.2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.07); }
}

/* Flames */
.flames { position: absolute; left: 50%; bottom: 0; width: 100%; height: 42vh; transform: translateX(-50%); }
.flame {
  position: absolute; bottom: -12px;
  width: 56px; height: 96px;
  background: radial-gradient(ellipse at 50% 100%, #ffd24d 0%, #ffab15 28%, #f68d3d 55%, rgba(232,85,47,0) 74%);
  border-radius: 50% 50% 46% 54% / 62% 62% 38% 38%;
  filter: blur(3px);
  transform-origin: 50% 100%;
  animation: flicker 0.9s ease-in-out infinite alternate;
}
.flame--1 { left: 18%; animation-duration: 0.8s; }
.flame--2 { left: 36%; height: 122px; animation-duration: 1s; animation-delay: 0.15s; }
.flame--3 { left: 50%; width: 72px; height: 146px; animation-duration: 0.9s; animation-delay: 0.3s; }
.flame--4 { left: 64%; height: 112px; animation-duration: 1.05s; animation-delay: 0.1s; }
.flame--5 { left: 82%; width: 48px; height: 82px; animation-duration: 0.85s; animation-delay: 0.25s; }
@keyframes flicker {
  0% { transform: scaleY(0.82) scaleX(1.02) rotate(-2deg); opacity: 0.8; }
  100% { transform: scaleY(1.16) scaleX(0.94) rotate(2deg); opacity: 1; }
}

/* Steam rising */
.steam { position: absolute; left: 50%; top: 26%; width: 320px; height: 220px; transform: translateX(-50%); }
.steam__p {
  position: absolute; bottom: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.32);
  filter: blur(5px);
  animation: rise 3.2s linear infinite;
}
.steam__p--1 { left: 16%; animation-delay: 0s; }
.steam__p--2 { left: 38%; animation-delay: 1.1s; }
.steam__p--3 { left: 58%; animation-delay: 0.55s; }
.steam__p--4 { left: 78%; animation-delay: 1.6s; }
.steam__p--5 { left: 48%; animation-delay: 2.1s; }
@keyframes rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { opacity: 0.5; }
  100% { transform: translateY(-170px) scale(1.7); opacity: 0; }
}

/* The hero burger */
.entrance__poster {
  position: relative; z-index: 2;
  width: min(46vw, 340px); height: auto; max-height: 46vh; object-fit: contain;
  filter: drop-shadow(0 22px 55px rgba(0,0,0,0.55));
  animation: burgerSettle 1.15s cubic-bezier(0.2, 0.9, 0.3, 1.15) both, burgerFloat 4.6s ease-in-out 1.3s infinite;
}
@keyframes burgerSettle {
  0% { transform: translateY(30px) scale(0.62); opacity: 0; }
  62% { transform: translateY(-6px) scale(1.07); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}
@keyframes burgerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Optional video replaces the scene */
.entrance__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; display: none; }
.entrance.has-video .entrance__video { display: block; }
.entrance.has-video .entrance__poster,
.entrance.has-video .entrance__glow,
.entrance.has-video .flames,
.entrance.has-video .steam { display: none; }

/* Inner content */
.entrance__inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: innerIn 0.35s ease both;
}
@keyframes innerIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.entrance__logo { width: 130px; height: auto; }
.entrance__tag {
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.78rem; color: rgba(255,255,255,0.85);
}
.entrance__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.entrance__actions .btn--ghost {
  border: 1px solid rgba(255,255,255,0.45); color: #fff; background: transparent;
}
.entrance__actions .btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* Pause control */
.entrance__pause {
  position: absolute; top: 18px; right: 18px; z-index: 4;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.28);
  color: #fff; font-size: 0.7rem; cursor: pointer; line-height: 1;
}
.entrance__pause:hover { background: rgba(0,0,0,0.45); }

/* Paused state */
.entrance.is-paused .entrance__poster,
.entrance.is-paused .entrance__glow,
.entrance.is-paused .flame,
.entrance.is-paused .steam__p { animation-play-state: paused; }

@media (max-width: 640px) {
  .entrance__poster { width: min(58vw, 300px); }
  .entrance__logo { width: 108px; }
  .entrance__actions .btn { flex: 1 1 auto; min-width: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .entrance__poster, .entrance__glow, .flame, .steam__p, .entrance__inner {
    animation: none !important;
  }
}
