/* ============================================================
   Sun Deli — Design tokens
   Retro beach-deli billboard: flat color bands, thick black
   linework, no shadows/gradients, chunky rounded display type.
   Palette pulled from the shop's own hero art (sun / wave / bread).
   ============================================================ */

:root {
  /* Brand colors, sampled from the Sun Deli hero graphic */
  --color-sun-orange: #ff7a1a;
  --color-sun-orange-deep: #e8600a;
  --color-cream: #fff4e2;
  --color-cream-deep: #ffe8c2;
  --color-bread: #f3c98b;
  --color-ink: #2c211a;
  --color-white: #ffffff;

  /* Roles */
  --bg-page: var(--color-cream);
  --text-primary: var(--color-ink);
  --text-inverse: var(--color-white);
  --border-hairline: var(--color-ink);

  /* Type */
  --font-display: "Fredoka", "Baloo 2", ui-rounded, sans-serif;
  --font-body: "Work Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  /* Arch/badge lettering — Fraunces 800 only. Reserved for stamp-style
     moments (curved banners, "Since ____" marks) layered over photos or
     video, never for running copy. Always orange fill on a black backdrop
     (a solid black ribbon behind an arc, or a black text-stroke on a flat
     line) so it reads as a badge against any background. */
  --font-arch: "Fraunces", Georgia, "Times New Roman", serif;

  /* Structure */
  --radius-card: 28px;
  --radius-pill: 999px;
  --radius-sm: 14px;
  --stroke: 2.5px;
  --stroke-thick: 4px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

p {
  margin: 0;
}

section {
  padding: 88px 0;
  position: relative;
}

/* ---------- Section band colors ---------- */
.band-cream { background: var(--color-cream); }
.band-orange { background: var(--color-sun-orange); color: var(--text-primary); }
.band-ink { background: var(--color-ink); color: var(--color-cream); }
.band-white { background: var(--color-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: var(--stroke) solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-cream);
  border-color: var(--color-ink);
}

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

.btn-ghost.on-light {
  color: var(--color-ink);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 15px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-sun-orange);
  border-bottom: var(--stroke) solid var(--color-ink);
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  /* Centered independent of the logo-left/menu-right flex split */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* .brand is the mobile collapsed-header mark; .site-logo covers desktop */
@media (min-width: 721px) {
  .brand {
    display: none;
  }
}

.brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* The mobile brand mark takes over this spot instead */
@media (max-width: 720px) {
  .site-logo {
    display: none;
  }
}

.main-nav a:not(.btn) {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: var(--stroke) solid var(--color-ink);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--color-ink);
  position: relative;
}

.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

@media (min-width: 981px) {
  .hero {
    min-height: calc(100vh - 86.5px);
    display: flex;
    align-items: center;
  }
}

.hero .wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  width: 100%;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stage .hero-actions {
  justify-content: center;
}

/* ---------- Hero arch lettering (style guide) ----------
   Badge-style type used only for the hero video moment:
   Fraunces 800, orange fill, with a black "shadow" copy of the
   same letters offset behind it (hard-edged text-shadow, no
   blur) for legibility over moving footage. See --font-arch
   in design tokens. */
.hero-video-frame {
  position: relative;
  width: 100%;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 2.5px solid var(--color-ink);
  border-radius: 50%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.15) saturate(1.08);
}

.hero-arch {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 114%;
  max-width: 114%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease 0.1s;
}

.hero-video-frame.is-loaded .hero-arch {
  opacity: 1;
}

.hero-arch-label {
  font-family: var(--font-arch);
  font-weight: 800;
  font-size: 42px;
  fill: #ff7a1a;
  text-shadow: 2px 2px 0 #2c211a;
}

.hero-video-caption {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-arch);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: 0.02em;
  color: #ff7a1a;
  text-shadow: 2px 2px 0 #2c211a;
}

/* ---------- Reviews carousel ---------- */
.reviews-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 40px;
}

.reviews-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.reviews-score .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.stars {
  letter-spacing: 2px;
  font-size: 18px;
  color: var(--color-sun-orange-deep);
  align-self: center;
}

.reviews-count {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.7;
}

.review-track {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.review-track-list {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 0 22px;
  animation: review-marquee 56s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .review-track-list {
    animation: none;
  }
  .hero-arch {
    transition: none;
    opacity: 1;
  }
}

.review-card {
  flex: 0 0 300px;
  background: var(--color-white);
  border: var(--stroke) solid var(--color-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

.review-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: var(--stroke) solid var(--color-ink);
}

.review-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.review-card-body .stars {
  font-size: 15px;
}

.review-quote {
  font-size: 14.5px;
  line-height: 1.5;
  flex: 1;
}

.review-who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-ink);
  flex-shrink: 0;
}

.review-who .name {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.25;
}

.review-who .meta {
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.25;
}

.review-photos-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-cream-deep);
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 42px;
  letter-spacing: -0.01em;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sun-orange-deep);
  margin-bottom: 10px;
}

.section-lede {
  max-width: 520px;
  font-size: 16px;
  opacity: 0.85;
}

/* ---------- Signature subs ---------- */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.sub-card {
  background: var(--color-white);
  border: var(--stroke) solid var(--color-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(1) rotate(0deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sub-card:hover,
.sub-card:focus-within {
  transform: scale(1.045) rotate(-2deg);
  z-index: 2;
  position: relative;
}

.sub-card:nth-child(even):hover,
.sub-card:nth-child(even):focus-within {
  transform: scale(1.045) rotate(2deg);
}

.sub-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: var(--stroke) solid var(--color-ink);
}

.sub-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sub-card-body h3 {
  font-size: 21px;
}

.sub-card-body p {
  font-size: 14px;
  opacity: 0.75;
  flex: 1;
}

.sub-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.tag {
  display: inline-block;
  background: var(--color-cream-deep);
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Story ---------- */
.story .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.story-photo {
  border: var(--stroke) solid var(--color-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story h2 {
  font-size: 40px;
  margin-bottom: 18px;
}

.story p {
  font-size: 17px;
  margin-bottom: 16px;
  max-width: 480px;
}

.story-badges {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: var(--stroke) solid var(--color-ink);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Catering ---------- */
.catering .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.catering h2 {
  font-size: 40px;
  max-width: 640px;
  margin-bottom: 14px;
}

.catering p {
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 8px;
}

.catering-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ---------- Visit ---------- */
.visit .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}

.visit-map {
  border: var(--stroke) solid var(--color-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 360px;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.visit-info {
  background: var(--color-white);
  border: var(--stroke) solid var(--color-ink);
  border-radius: var(--radius-card);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.visit-info h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.6;
  margin-bottom: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1.5px dashed var(--color-cream-deep);
}

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

.visit-info .big-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-sun-orange-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.footer-tagline {
  max-width: 280px;
  font-size: 14px;
  opacity: 0.75;
}

.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  opacity: 0.7;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14.5px;
  opacity: 0.92;
}

.footer-bottom {
  border-top: 1.5px solid rgba(255,244,226,0.2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.6;
}

/* ---------- Sticky mobile order bar ---------- */
.mobile-order-bar {
  display: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-arch-label { font-size: 36px; }
  .hero-video-caption { font-size: 30px; }
  .sub-grid { grid-template-columns: repeat(2, 1fr); }
  .story .wrap { grid-template-columns: 1fr; }
  .story-photo { max-width: 380px; margin: 0 auto; }
  .visit .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--color-sun-orange);
    border-bottom: var(--stroke) solid var(--color-ink);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 26px;
    gap: 18px;
  }
  .nav-toggle { display: flex; }
  .site-header.open .nav-menu { display: flex; }
  .nav-links {
    flex-direction: column;
    gap: 16px;
  }
  .order-btn {
    justify-content: center;
  }
  .hero-arch-label { font-size: 36px; }
  .hero-video-caption { font-size: 36px; }
  .section-head h2, .story h2, .catering h2 { font-size: 30px; }
  .sub-grid { grid-template-columns: 1fr; }
  .review-track-list { gap: 14px; animation-duration: 130s; }
  .review-card { flex-basis: 62vw; }
  .review-card-body { padding: 15px 17px 17px; gap: 7px; }
  .review-card-body .stars { font-size: 13px; }
  .review-quote { font-size: 13px; }
  .review-avatar { width: 32px; height: 32px; font-size: 12px; }
  .review-who .name { font-size: 12.5px; }
  .review-who .meta { font-size: 11px; }
  .footer-top { flex-direction: column; }
  body { padding-bottom: 70px; }
  .mobile-order-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--color-ink);
    border-top: var(--stroke) solid var(--color-ink);
  }
  .mobile-order-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    color: var(--color-cream);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    border-right: 1.5px solid rgba(255,244,226,0.15);
  }
  .mobile-order-bar a:last-child { border-right: none; }
  .mobile-order-bar a.highlight {
    background: var(--color-sun-orange);
    color: var(--color-ink);
  }
}
