/* =========================================================
   The Saucy Spoon — Design System
   Concept: a travelling Italian trattoria. Tomato & basil
   instead of the generic cream/terracotta pairing, a warm
   hand-lettered display serif for signage-style headlines,
   and a postal-stamp motif for the truck's stops — a nod
   to a business whose whole identity is "we come to you."
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,600&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&display=swap');

:root{
  /* Color — black & white from the logo, wood + red lifted from the trailer */
  --cream:        #F7F4EC;
  --cream-panel:  #ECE6D6;
  --cream-line:   #D8D0BA;
  --tomato:       #A32B24;
  --tomato-dark:  #7C1F1A;
  --tomato-ink:   #7C1F1A;
  --basil:        #17140F;
  --basil-dark:   #0C0A07;
  --charcoal:     #17140F;
  --charcoal-soft:#4E463C;
  --gold:         #B87A3C;
  --gold-soft:    #E3C8A0;
  --white:        #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius-stamp: 50%;
  --shadow-card: 0 10px 24px -14px rgba(38,32,26,0.35);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 600; }
h2{ font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.65rem); }

p{ margin: 0 0 1em; max-width: 62ch; }
.lede{ font-size: 1.2rem; color: var(--charcoal-soft); }

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

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--panel{ background: var(--cream-panel); }
.section--basil{ background: var(--basil); color: var(--white); }
.section--basil h2, .section--basil h3, .section--basil p{ color: var(--white); }
.section--tomato{ background: var(--tomato); color: var(--white); }
.section--tomato h2, .section--tomato h3{ color: var(--white); }

.eyebrow-mark{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tomato-dark);
  margin-bottom: 14px;
}
.eyebrow-mark::before{
  content: '';
  width: 22px; height: 2px;
  background: var(--tomato);
  border-radius: 2px;
}
.section--basil .eyebrow-mark,
.section--tomato .eyebrow-mark{ color: var(--gold-soft); }
.section--basil .eyebrow-mark::before,
.section--tomato .eyebrow-mark::before{ background: var(--gold-soft); }

/* ---------- Torn-edge divider (menu-card feel) ---------- */
.torn-top{ position: relative; }
.torn-top::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background:
    linear-gradient(135deg, var(--cream) 50%, transparent 50%) 0 0/16px 16px repeat-x,
    linear-gradient(-135deg, var(--cream) 50%, transparent 50%) 0 0/16px 16px repeat-x;
  background-color: transparent;
  transform: translateY(-1px);
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-line);
}
.nav-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--charcoal);
}
.brand-mark{
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--cream-line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.brand-mark img{
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 3px;
}
.site-footer .brand-mark{ background: var(--white); border-color: rgba(255,255,255,0.15); }
.brand-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.1;
}
.brand-name small{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--tomato-dark);
  letter-spacing: 0.02em;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--charcoal-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color: var(--tomato-dark);
  border-color: var(--tomato);
}

.nav-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tomato);
  color: var(--white) !important;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--tomato-dark); transform: translateY(-1px); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px){
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--cream-line);
    display: none;
  }
  .nav-links.is-open{ display: flex; }
  .nav-links a{ width: 100%; padding: 10px 0; }
  .nav-toggle{ display: inline-flex; }
  .nav-cta--desktop{ display: none; }
}
@media (min-width: 881px){
  .nav-cta--mobile{ display: none; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary{ background: var(--tomato); color: var(--white); box-shadow: var(--shadow-card); }
.btn-primary:hover{ background: var(--tomato-dark); transform: translateY(-1px); }
.btn-secondary{ background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover{ background: var(--charcoal); color: var(--white); }
.btn-on-dark{ background: var(--gold); color: var(--charcoal); }
.btn-on-dark:hover{ background: var(--gold-soft); }
.btn-ghost-dark{ background: transparent; color: var(--white); border-color: rgba(255,253,248,0.55); }
.btn-ghost-dark:hover{ background: rgba(255,253,248,0.12); border-color: var(--white); }
.btn-block{ width: 100%; }

.cta-row{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* ---------- Stamp badge (route / event-type motif) ---------- */
.stamp{
  --stamp-color: var(--basil);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 2px dashed var(--stamp-color);
  color: var(--stamp-color);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  padding: 14px;
  transform: rotate(-6deg);
  flex-shrink: 0;
}
.stamp span{ display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; margin-top: 4px; }

/* ---------- Photo placeholder blocks ---------- */
.photo-ph{
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(38,32,26,0.06) 0 2px, transparent 2px 14px),
    var(--cream-panel);
  border: 1.5px dashed var(--cream-line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--charcoal-soft);
  min-height: 220px;
}
.photo-ph-label{
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  max-width: 82%;
  box-shadow: var(--shadow-card);
}
.photo-ph-label small{ display: block; font-weight: 500; color: var(--charcoal-soft); margin-top: 3px; }

/* ---------- Real photo blocks (replaces the dashed placeholder once an actual image exists) ---------- */
.photo-real{
  border-radius: 14px;
  overflow: hidden;
  border: none;
}
.photo-real img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .stamp{ margin-top: 26px; }
.hero-media{ position: relative; }
.hero-media .photo-ph{ aspect-ratio: 4 / 5; min-height: 380px; }
.hero-media .stamp{
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--cream);
  box-shadow: var(--shadow-card);
  border-color: var(--tomato);
  color: var(--tomato-dark);
}
@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; }
}

/* ---------- Card grids ---------- */
.grid{ display: grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 28px;
}
.card h3{ margin-bottom: 10px; }
.card p{ margin-bottom: 0; color: var(--charcoal-soft); max-width: none; }

.feature-item{ display: flex; gap: 16px; align-items: flex-start; }
.feature-icon{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--basil);
  color: var(--white);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- Placeholder note banners ---------- */
.note-banner{
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--charcoal);
  margin: 0 0 28px;
}
.note-banner strong{ color: var(--tomato-dark); }

/* ---------- Menu page ---------- */
.menu-cat{ margin-bottom: 56px; }
.menu-cat-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--charcoal);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.menu-row{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--cream-line);
}
.menu-row:last-child{ border-bottom: none; }
.menu-row-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.menu-row-desc{ color: var(--charcoal-soft); font-size: 0.94rem; margin-top: 4px; max-width: 46ch; }
.menu-row-price{ font-weight: 600; color: var(--tomato-dark); white-space: nowrap; align-self: flex-start; }
.menu-row-placeholder .menu-row-name{ color: var(--charcoal-soft); font-style: italic; }

/* ---------- Timeline / steps (genuine sequence) ---------- */
.steps{ counter-reset: step; display: grid; gap: 22px; }
.step{ display: flex; gap: 18px; }
.step-num{
  counter-increment: step;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
.step-num::before{ content: counter(step); }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom: 1px solid var(--cream-line); }
.faq-q{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.faq-q .plus{ font-size: 1.4rem; color: var(--tomato); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[aria-expanded="true"] .plus{ transform: rotate(45deg); }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--charcoal-soft);
}
.faq-a-inner{ padding-bottom: 20px; }

/* ---------- Form ---------- */
.quote-form{
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-row{ display: grid; gap: 8px; margin-bottom: 20px; }
.form-row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px){ .form-row-2{ grid-template-columns: 1fr; } }
label{ font-weight: 600; font-size: 0.92rem; }
label .req{ color: var(--tomato); }
input, select, textarea{
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--cream-line);
  background: var(--cream);
  color: var(--charcoal);
  width: 100%;
}
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--tomato);
  background: var(--white);
}
input:invalid[data-touched="true"], textarea:invalid[data-touched="true"]{
  border-color: var(--tomato-dark);
}
.field-error{
  display: none;
  color: var(--tomato-dark);
  font-size: 0.85rem;
  font-weight: 500;
}
.field-error.is-visible{ display: block; }
textarea{ resize: vertical; min-height: 110px; }
.form-note{
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  background: var(--cream-panel);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.form-success{
  display: none;
  background: var(--basil);
  color: var(--white);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.form-success.is-visible{ display: block; }
.form-success h3{ color: var(--white); }

/* ---------- Gallery ---------- */
.gallery-grid{
  columns: 3 260px;
  column-gap: 20px;
}
.gallery-grid .photo-ph{ break-inside: avoid; margin-bottom: 20px; width: 100%; }
.gallery-grid .photo-ph[data-tall="1"]{ min-height: 320px; }
.gallery-grid .photo-ph[data-tall="2"]{ min-height: 260px; }
.gallery-grid button.photo-ph{ border: 1.5px dashed var(--cream-line); cursor: zoom-in; padding: 0; }

.lightbox{
  position: fixed; inset: 0;
  background: rgba(38,32,26,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}
.lightbox.is-open{ display: flex; }
.lightbox-inner{
  max-width: 640px;
  width: 100%;
}
.lightbox-close{
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------- Social strip ---------- */
.social-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.social-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 600;
  color: var(--charcoal);
}
.social-pill:hover{ border-color: var(--tomato); color: var(--tomato-dark); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--charcoal);
  color: var(--cream);
  padding: 64px 0 28px;
}
.site-footer a{ color: var(--cream); text-decoration: none; }
.site-footer a:hover{ color: var(--gold-soft); }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,253,248,0.15);
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
}
.footer-grid h4{ color: var(--gold-soft); font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,253,248,0.6);
}

/* ---------- Utility ---------- */
.center{ text-align: center; margin-left: auto; margin-right: auto; }
.mw-content{ max-width: 640px; }
.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--tomato); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 1000;
}
.skip-link:focus{ left: 0; }
