/* =========================================================
   KAYLEE'S KITCHEN — Stylesheet
   Fonts: Yeseva One (display), Cormorant Garamond (letter-spaced
   caps labels), Caveat (handwritten accent), Karla (body)
   ========================================================= */

:root {
  /* Color tokens */
  --color-blush: #F4C9D4;
  --color-blush-deep: #E8A9BB;
  --color-cream: #FAF0E4;
  --color-card: #FFFDF9;
  --color-navy: #1F3A5F;
  --color-navy-deep: #142A45;
  --color-navy-soft: #45608A;
  --color-navy-light: #2C4B74; /* call-to-action band, a step lighter than the footer */
  --color-accent: #B8446B;
  --color-accent-light: #D46E8F;
  --color-gingham: #9C7518;
  --color-gingham-light: #C9A227;
  --color-cocoa: #3D2B1F;
  --color-cocoa-soft: #6B5344;

  /* Type */
  --font-display: 'Yeseva One', serif;
  --font-caps: 'Cormorant Garamond', serif;
  --font-hand: 'Caveat', cursive;
  --font-body: 'Karla', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-card: 6px;
  --shadow-soft: 0 6px 18px rgba(61, 43, 31, 0.10);
  --shadow-lift: 0 12px 28px rgba(61, 43, 31, 0.16);
}

/* =====================
   Reset / base
   ===================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-navy);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  font-weight: 400;
  line-height: 1.15;
}

/* No lone words hanging on the last line: headings and intro lines split
   evenly; regular paragraphs just avoid a single-word last line. */
h1, h2, h3, h4, p.lede { text-wrap: balance; }
p, li { text-wrap: pretty; }

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-caps);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: 0.5rem;
}

p.lede {
  font-size: 1.15rem;
  color: var(--color-navy-soft);
  max-width: 60ch;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p.lede { margin-inline: auto; margin-top: 1rem; line-height: 1.45; }
/* Descriptions under centered titles: lines start flush-left, but the
   block shrinks to its text and sits centered under the title. */
.section-head p.lede,
.band-navy p.lede,
.about-story-inner .lede,
.welcome-block .lede {
  text-align: left;
  width: fit-content;
  /* A narrower box with lines filled out ("pretty", not "balance") so the
     text block really is centered rather than a wide box with short lines. */
  max-width: min(100%, 34em);
  text-wrap: pretty;
  margin-inline: auto;
}

.section-head--tight { margin-bottom: 1.5rem; }

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-cream);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background-color: var(--color-navy-deep); box-shadow: var(--shadow-lift); }

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-secondary:hover { background-color: var(--color-navy); color: var(--color-cream); }

.btn-gold {
  background-color: var(--color-accent);
  color: var(--color-navy-deep);
  box-shadow: var(--shadow-soft);
}
.btn-gold:hover { background-color: var(--color-accent-light); box-shadow: var(--shadow-lift); }

.btn-call {
  background-color: var(--color-blush);
  color: var(--color-navy-deep);
}
.btn-call:hover { background-color: var(--color-blush-deep); }

.btn-block { width: 100%; justify-content: center; }

/* =====================
   Header / Nav
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 240, 228, 0.92);
  backdrop-filter: blur(6px);
}

#custom-cake-form { scroll-margin-top: 90px; }
#gallery { scroll-margin-top: 90px; }

.site-header::after {
  content: "";
  display: block;
  height: 10px;
  background-color: var(--color-gingham-light);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.35) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.35) 50%, transparent 50%);
  background-size: 10px 10px;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* Same gap as between the links so the logo sits evenly spaced. */
  column-gap: clamp(1rem, 2vw, 1.8rem);
  padding-block: 0.9rem;
  position: relative;
}

.nav-toggle,
.nav-side--left { grid-column: 1; }
.brand { grid-column: 2; }
.nav-side--right { grid-column: 3; }

.nav-side--left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.3rem;
}

.nav-side--right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-navy);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
}

.brand--logo { align-items: center; }
.brand--logo img {
  height: 64px;
  width: auto;
  display: block;
}

.brand span {
  font-family: var(--font-hand);
  color: var(--color-accent);
  font-size: 1rem;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.nav-links-desktop a,
.nav-links-mobile a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy);
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
}

.nav-links-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links-desktop a:hover::after,
.nav-links-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
}

.call-link,
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-navy);
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.call-link:hover,
.cart-link:hover {
  background-color: var(--color-navy);
  color: var(--color-cream);
}
.call-link svg,
.cart-link svg { width: 19px; height: 19px; }

.cart-link { background-color: var(--color-accent); color: var(--color-cream); position: relative; }
.cart-link:hover { background-color: var(--color-navy); color: var(--color-cream); }

.cart-dot {
  display: none;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #f5c518;
  border: 2px solid var(--color-cream);
}
.cart-link.has-item .cart-dot { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--color-navy); }

.nav-links-mobile { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-side .nav-links-desktop { display: none; }
  .nav-side--right { justify-content: flex-end; }
  .nav-side--left { justify-content: flex-start; }

  .nav-links-mobile {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background-color: var(--color-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem);
    gap: 1rem;
    border-bottom: 3px solid var(--color-accent);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 99;
  }
  .nav-links-mobile.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* =====================
   Hero
   ===================== */
.hero {
  --hero-gutter: clamp(1.5rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  /* Copy sits in the lower part of the hero, not dead center. */
  align-items: flex-end;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Pink behind the copy, easing to a light pink tint across the rest so
     the photo's backdrop blends in instead of ending in a hard band. The
     first stops track the copy (--hero-gutter + its width). */
  background-image: linear-gradient(90deg,
    rgba(240, 190, 204, 0.95) 0,
    rgba(240, 190, 204, 0.9) calc(var(--hero-gutter) + 440px),
    rgba(244, 201, 212, 0.5) calc(var(--hero-gutter) + 720px),
    rgba(244, 201, 212, 0.3) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  /* Shift the photo right so the product lands beside the copy, not under it. */
  background-position: 65% center;
  background-repeat: no-repeat;
  transition: opacity 1.2s ease;
}
.hero-bg-layer.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer { transition: none; }
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Full-width so the copy sits near the left edge, leaving the photo room. */
  max-width: none;
  padding-inline: var(--hero-gutter);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  /* Bottom padding keeps the copy in the lower part of the hero. */
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
}

.hero .eyebrow {
  background-color: rgba(250, 240, 228, 0.85);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-shadow: none;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
}

.hero .lede {
  color: var(--color-navy-deep);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 520px;
}

.hero-copy h1 { margin-block: 0.4rem 1rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-art svg { width: 100%; max-width: 420px; height: auto; }

.hero-badge {
  position: absolute;
  top: -12px;
  right: -4%;
  background-color: var(--color-accent);
  color: var(--color-navy-deep);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  padding: 0.6rem 1.1rem;
  border-radius: 50%;
  transform: rotate(8deg);
  box-shadow: var(--shadow-soft);
  line-height: 1.1;
  text-align: center;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }

  /* Phones: photo slideshow sits behind the welcome text (with a pink
     fade, like desktop); the buttons sit below the photo on the cream.
     --hero-actions-space is measured in initHeroSlideshow() so the photo
     stops just above the buttons. */
  .hero::before { display: none; }
  .hero { min-height: 0; display: block; }
  .hero-bg { bottom: var(--hero-actions-space, 130px); }
  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Pink behind the text on the left, fading out so the photo shows on the right. */
    background-image: linear-gradient(90deg, rgba(240, 190, 204, 0.94) 0%, rgba(240, 190, 204, 0.85) 45%, rgba(244, 201, 212, 0.3) 75%, rgba(244, 201, 212, 0) 100%);
  }
  .hero .container {
    padding-block: 1.8rem 2rem;
    max-width: none;
    text-align: left;
  }
  .hero .hero-art { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .hero-copy h1 { margin-block: 0.4rem 0.6rem; }
  .hero .lede {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 68%;
    margin-inline: 0;
  }
  .hero-actions { margin-top: 2.6rem; justify-content: flex-start; }
}

/* =====================
   Ticket / Bakery-box card (signature component)
   ===================== */
.ticket {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border-bottom: 4px solid var(--color-accent);
  position: relative;
  overflow: hidden;
  padding: 1.9rem 1.5rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

@media (max-width: 480px) {
  .ticket { flex-direction: column; align-items: center; text-align: center; }
}

/* gingham/picnic pattern top edge */
.ticket::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background-color: var(--color-gingham-light);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.35) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.35) 50%, transparent 50%);
  background-size: 10px 10px;
}

.ticket-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.ticket h3 { margin-bottom: 0.4rem; }

.ticket p { color: var(--color-navy-soft); font-size: 0.98rem; }

.ticket-price {
  font-family: var(--font-hand);
  color: var(--color-accent);
  font-size: 1.6rem;
  display: inline-block;
  margin-top: 0.6rem;
}

/* =====================
   Grids
   ===================== */
.grid {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =====================
   Gingham texture band (used sparingly)
   ===================== */
.gingham-band {
  background-color: var(--color-gingham-light);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.35) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.35) 50%, transparent 50%);
  background-size: 26px 26px;
}

/* =====================
   Differentiator / feature rows
   ===================== */
.feature-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.5rem 1.4rem;
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-accent);
}

.feature-row .icon {
  width: 72px; height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-row .icon--lg {
  width: 96px; height: 96px;
}

a.feature-row {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.feature-row:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.feature-row h3 { margin-bottom: 0.25rem; }
.feature-row p { color: var(--color-navy-soft); }

/* =====================
   Menu page
   ===================== */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.menu-tab {
  background-color: var(--color-card);
  border: 2px solid var(--color-accent);
  color: var(--color-navy);
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.menu-tab[aria-selected="true"] {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-blush);
}

.menu-category { display: none; }
.menu-category.is-active { display: block; }

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px dashed rgba(31,58,95,0.18);
}
.menu-item:last-child { border-bottom: none; }

.menu-item-name { font-weight: 700; color: var(--color-navy); }
.menu-item-desc { color: var(--color-navy-soft); font-size: 0.92rem; margin-top: 0.15rem; }
.menu-item-price { font-family: var(--font-hand); font-size: 1.35rem; color: var(--color-accent); white-space: nowrap; }

.menu-notice {
  background-color: var(--color-blush);
  color: var(--color-navy-deep);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.menu-notice--block {
  text-align: center;
  margin-top: 0;
  font-size: 0.95rem;
}

/* =====================
   Cookie flavor builder
   ===================== */
.cookie-builder {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-accent);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  margin-top: 1.5rem;
}

.cookie-builder-head { text-align: center; margin-bottom: 1.4rem; }
.cookie-builder-head h3 { margin-bottom: 0.4rem; }
.cookie-builder-head p { color: var(--color-navy-soft); max-width: 50ch; margin-inline: auto; }

.pack-size-select {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
@media (max-width: 620px) {
  .pack-size-select { grid-template-columns: repeat(2, 1fr); }
}

.pack-size-select--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) {
  .pack-size-select--3 { grid-template-columns: repeat(2, 1fr); }
}

.pack-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.8rem 0.6rem;
  border-radius: 10px;
  border: 2px solid rgba(31,58,95,0.18);
  background-color: var(--color-cream);
  font-family: var(--font-body);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pack-option-label { font-weight: 700; color: var(--color-navy); font-size: 0.92rem; }
.pack-option-price { font-family: var(--font-hand); color: var(--color-accent); font-size: 1.15rem; }
.pack-option.is-selected {
  border-color: var(--color-accent);
  background-color: var(--color-blush);
}

.flavor-steppers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.addon-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--color-blush);
  border-radius: var(--radius-card);
  padding: 0.8rem 1.1rem;
  margin-bottom: 1.4rem;
}
.addon-stepper[hidden] { display: none; }
.addon-stepper-label { font-weight: 700; color: var(--color-navy-deep); font-size: 0.92rem; }

.flavor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px dashed rgba(31,58,95,0.18);
}
.flavor-row:last-child { border-bottom: none; }

.flavor-name { font-weight: 700; color: var(--color-navy); }

.stepper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-navy);
  background-color: transparent;
  color: var(--color-navy);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.stepper-btn:hover { background-color: var(--color-navy); color: var(--color-cream); }
.stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper-btn:disabled:hover { background-color: transparent; color: var(--color-navy); }
.stepper-value {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.05rem;
}

.cookie-builder-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 2px solid rgba(31,58,95,0.15);
  margin-bottom: 0.8rem;
}
.builder-count { font-weight: 700; color: var(--color-navy); }
.builder-price { font-family: var(--font-hand); font-size: 1.4rem; color: var(--color-accent); }

.builder-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-navy-soft);
  margin-bottom: 1.2rem;
  min-height: 1.3em;
}
.builder-status.is-ready { color: var(--color-accent); font-weight: 700; }

.builder-call-btn { width: 100%; }
.builder-call-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.custom-callout {
  background-color: var(--color-navy);
  color: var(--color-cream);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.custom-callout h2 { color: var(--color-cream); }
.custom-callout p { color: rgba(250,240,228,0.85); max-width: 55ch; margin-inline: auto; }
.custom-callout .btn-gold { margin-top: 1.4rem; }

/* =====================
   Gallery
   ===================== */
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-card);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.gallery-item svg { width: 55%; height: 55%; }

/* =====================
   Forms
   ===================== */
.form-card {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.faq-block { margin-bottom: 1.25rem; }
.faq-block h3 { margin-bottom: 0.5rem; }
.faq-block p { color: var(--color-navy-soft); }
.faq-block a { color: var(--color-accent); text-decoration: underline; }

.menu-photo {
  margin-bottom: 1.5rem;
}
.menu-photo img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-grid .field-full { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  border: 1.5px solid rgba(31,58,95,0.25);
  background-color: #fff;
  color: var(--color-navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184,68,107,0.18);
  outline: none;
}

.field textarea { resize: vertical; min-height: 110px; }

.field-hint { font-size: 0.82rem; color: var(--color-navy-soft); margin-top: 0.3rem; margin-bottom: 0; }
.field-hint--accent { color: var(--color-accent); font-weight: 700; margin-bottom: 1.2rem; }
.field-hint--center { text-align: center; margin-top: 0.6rem; }
/* Under the Add to Cart button: more room above, less below, so the box stays the same height. */
.cookie-builder .field-hint--center { margin-top: 1.4rem; margin-bottom: 0.4rem; }
@media (max-width: 620px) {
  .cookie-builder .field-hint--center { text-align: left; }
}

/* =====================
   Cart
   ===================== */
#cartEmptyState, #cartItemsWrap { margin-top: 1.4rem; }

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px dashed rgba(31,58,95,0.18);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name { font-weight: 700; color: var(--color-navy); }
.cart-item-desc { color: var(--color-navy-soft); font-size: 0.92rem; margin-top: 0.15rem; }
.cart-item-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.cart-item-price { font-family: var(--font-hand); font-size: 1.25rem; color: var(--color-accent); white-space: nowrap; }
.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-navy-soft);
  background-color: transparent;
  color: var(--color-navy-soft);
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cart-item-remove:hover { background-color: var(--color-navy); color: var(--color-cream); border-color: var(--color-navy); }

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}
.cart-total { font-weight: 700; color: var(--color-navy); font-size: 1.1rem; }
.cart-total span { font-family: var(--font-hand); font-size: 1.5rem; color: var(--color-accent); }

.field-error {
  font-size: 0.82rem;
  color: #b3413a;
  margin-top: 0.3rem;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3413a;
}
.field.has-error .field-error { display: block; }

.form-status {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  font-weight: 700;
  display: none;
}
.form-status.is-success {
  display: block;
  background-color: rgba(31,58,95,0.08);
  color: var(--color-navy);
}
.form-status.is-error {
  display: block;
  background-color: rgba(179,65,58,0.1);
  color: #b3413a;
}

/* =====================
   Order page — options
   ===================== */
.order-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .order-options { grid-template-columns: 1fr; } }

.order-option {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-accent);
}
.order-option .icon { display: block; width: 88px; height: 88px; object-fit: contain; margin: 0 auto 1rem; }
.order-option p { color: var(--color-navy-soft); font-size: 0.95rem; margin-block: 0.5rem 1.2rem; }

/* =====================
   Testimonials
   ===================== */
.testimonial {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.testimonial p.quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-navy);
  font-size: 1.05rem;
}
.testimonial .stars { display: block; height: 32px; width: auto; margin-bottom: 0.6rem; }
.testimonial .attr { margin-top: 0.9rem; font-weight: 700; font-size: 0.9rem; color: var(--color-navy-soft); }

/* =====================
   Social feed strip
   ===================== */
.social-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}
@media (max-width: 760px) { .social-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .social-strip { grid-template-columns: repeat(2, 1fr); } }

.social-strip--fb { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .social-strip--fb { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .social-strip--fb { grid-template-columns: repeat(2, 1fr); } }

.social-tile {
  aspect-ratio: 1/1;
  background-color: var(--color-card);
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  display: block;
  overflow: hidden;
}
.social-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.social-tile:hover img { transform: scale(1.05); }

.social-cta { text-align: center; margin-top: 1.4rem; }

/* =====================
   About page
   ===================== */
.about-story-band {
  position: relative;
  background-color: var(--color-card);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.about-story-inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.about-story-inner .lede { margin-inline: auto; }

.about-hero-art {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.about-hero-art svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.about-hero-art img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 4px;
}

.about-photo-grid { margin-top: 0; }

.gallery-item--tall { aspect-ratio: 3 / 4; }

.value-list {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* =====================
   Footer
   ===================== */
.site-footer {
  background-color: var(--color-navy);
  color: rgba(250,240,228,0.85);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  border-top: 2px solid var(--color-navy-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Phones: everything left-aligned; Explore links three per row,
     Visit details two per row. */
  .footer-grid ul { grid-template-columns: auto auto auto; }
  .footer-grid ul,
  .footer-grid > div:last-child {
    display: grid;
    /* Columns size to their text so the second item sits close to the first. */
    justify-content: start;
    gap: 0.6rem 1.6rem;
  }
  .footer-grid > div:last-child { grid-template-columns: auto auto; }
  .footer-grid ul li { margin-bottom: 0; }
  .footer-grid > div:last-child h4 { grid-column: 1 / -1; margin-bottom: 0.2rem; }
  .footer-grid > div:last-child p { margin: 0; overflow-wrap: anywhere; }
}

.footer-grid h4 {
  color: var(--color-accent-light);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer-grid .brand { color: var(--color-cream); margin-bottom: 0.6rem; }
.footer-grid .brand span { color: var(--color-accent-light); }

.footer-grid p, .footer-grid a { color: rgba(250,240,228,0.75); font-size: 0.92rem; }
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--color-accent-light); }

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.9rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-color: rgba(250,240,228,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease;
}
.footer-social a:hover { background-color: var(--color-accent); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(250,240,228,0.15);
  padding-top: 1.3rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250,240,228,0.55);
}

.cottage-food-notice {
  max-width: 60ch;
  margin: 0 auto 0.7rem;
}

/* =====================
   Sticky mobile call bar
   ===================== */
.mobile-call-bar {
  display: none;
}
@media (max-width: 620px) {
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    /* Gingham frame (same pattern as the header stripe) all the way around
       the button. The solid-yellow layer carries the pattern, while the
       background-color is navy: iPhone Safari tints the strip under the
       bar with that color, so the very bottom reads navy, not yellow. */
    background-color: var(--color-navy);
    background-image:
      linear-gradient(90deg, rgba(255,255,255,0.35) 50%, transparent 50%),
      linear-gradient(rgba(255,255,255,0.35) 50%, transparent 50%),
      linear-gradient(var(--color-gingham-light), var(--color-gingham-light));
    background-size: 10px 10px;
    padding: 6px;
    /* Sit just above the iPhone home-indicator strip... */
    bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 14px rgba(0,0,0,0.15);
  }
  /* ...and fill that strip with navy below the gingham frame. */
  .mobile-call-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: env(safe-area-inset-bottom, 0px);
    background-color: var(--color-navy);
  }
  .mobile-call-bar a {
    color: var(--color-cream);
    background-color: var(--color-navy);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.2rem;
  }
  /* Room for the fixed bar, filled with footer navy instead of a cream gap. */
  .site-footer { padding-bottom: calc(1.5rem + 64px + env(safe-area-inset-bottom, 0px)); }
}

/* =====================
   Utility
   ===================== */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow--on-gold { color: var(--color-navy); }

.section--flush-bottom { padding-bottom: 0; }
.section--flush-top { padding-top: 0; }
.container--narrow { max-width: 780px; }
.hero-actions--center { justify-content: center; }
.icon-sm { width: 18px; height: 18px; }

/* =====================
   Inverted navy accent band (CTA sections)
   ===================== */
.band-navy {
  position: relative;
  background-color: var(--color-navy-light);
  padding-top: 0;
}
.band-navy::before {
  content: "";
  display: block;
  height: 14px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background-color: var(--color-gingham-light);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.35) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.35) 50%, transparent 50%);
  background-size: 14px 14px;
}
.band-navy h2 { color: var(--color-blush); }
.band-navy h2 { margin-bottom: 1.1rem; }
.band-navy p.lede { color: rgba(244, 201, 212, 0.85); margin-inline: auto; line-height: 1.4; }
@media (max-width: 620px) {
  /* Phones: left-align the closing call-to-action bands. */
  .band-navy .container.text-center { text-align: left; }
  .band-navy p.lede { margin-inline: 0; }
  .band-navy .hero-actions--center { justify-content: flex-start; }
}
.band-navy .btn-secondary {
  border-color: var(--color-blush);
  color: var(--color-blush);
}
.band-navy .btn-secondary:hover {
  background-color: var(--color-blush);
  color: var(--color-navy-deep);
}

.band-card { background-color: var(--color-card); }

.note-text {
  margin-top: 1rem;
  color: var(--color-navy-soft);
  font-size: 0.85rem;
}

/* =====================
   Editorial layout additions
   (script accents, dark band, product grid)
   ===================== */
.script-tag {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.caps-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-navy);
}

.caps-display--xl {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.05;
}

.welcome-block {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.welcome-block .lede { margin-inline: auto; margin-top: 1rem; }
.welcome-block .hero-actions { justify-content: center; margin-top: 1.8rem; }

.welcome-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.welcome-photo img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 4px;
}

.section-heading-script {
  display: block;
  font-family: var(--font-hand);
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.dark-band { background-color: var(--color-navy); overflow: hidden; }
.dark-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.dark-band h2 {
  color: var(--color-blush);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
}
.dark-band .script-tag { color: var(--color-accent-light); }
.dark-band p { color: rgba(244,201,212,0.85); margin-top: 0.8rem; max-width: 46ch; }

.dark-band--centered .container {
  grid-template-columns: 1fr;
  text-align: center;
}
.dark-band--centered p { margin-inline: auto; }
.dark-band .btn-gold { margin-top: 1.6rem; }
.dark-band .hero-art svg,
.dark-band .hero-art img { max-width: 460px; width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 860px) {
  .dark-band .container {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1rem;
    padding-block: 2rem 3rem;
  }
  .dark-band p { margin-inline: 0; }
  /* Phones: drop the desktop min-height so the cookie isn't floating in empty navy. */
  .dark-band .hero-art { min-height: 0; justify-content: center; }
  .dark-band .hero-art img { max-width: 240px; margin-inline: auto; }
}

/* =====================
   Auto-scrolling photo carousel
   (used on homepage "Most Wanted" and About gallery)
   ===================== */
.photo-carousel {
  overflow: hidden;
  margin-top: 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.photo-carousel-track {
  display: flex;
  width: max-content;
  gap: 1.2rem;
  animation: photo-carousel-scroll 50s linear infinite;
}

.photo-carousel:hover .photo-carousel-track {
  animation-play-state: paused;
}

.photo-carousel-slide {
  flex: 0 0 auto;
  width: 260px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.photo-carousel-slide img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

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

@media (max-width: 620px) {
  .photo-carousel-slide { width: 180px; }
  .photo-carousel-slide img { height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-carousel-track { animation: none; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border-bottom: 4px solid var(--color-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-card .product-photo {
  aspect-ratio: 1 / 1;
  background-color: var(--color-blush);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-photo svg { width: 55%; height: 55%; }
.product-card .product-info {
  padding: 1rem 1.2rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.product-card .product-name { font-weight: 700; color: var(--color-navy); }
.product-card .product-price {
  font-family: var(--font-hand);
  color: var(--color-accent);
  font-size: 1.3rem;
  white-space: nowrap;
}

/* =====================
   Lead-time notice popup
   ===================== */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(20, 42, 69, 0.55);
}
.lead-modal[hidden] { display: none; }

.lead-modal-card {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  border-top: 5px solid var(--color-accent);
  max-width: 440px;
  width: 100%;
  padding: 1.6rem 1.5rem;
  color: var(--color-navy-deep);
}
.lead-modal-card h3 { margin-top: 0; color: var(--color-navy); }
.lead-modal-card ul { padding-left: 1.2rem; margin: 0.8rem 0; }
.lead-modal-card li { margin-bottom: 0.35rem; }
.lead-modal-card p { font-size: 0.92rem; color: var(--color-navy-soft); margin-bottom: 1.6rem; }

/* Quote form checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-label input { width: auto; margin-top: 0.2rem; }

/* =====================
   Ingredients panel (menu)
   ===================== */
.ingredients-panel {
  margin-top: 1.4rem;
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-accent);
}
.ingredients-panel summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
}
.ingredients-body {
  padding: 0 1.2rem 1.2rem;
  color: var(--color-navy-deep);
  font-size: 0.95rem;
}
.ingredients-body ul { padding-left: 1.2rem; margin: 0.8rem 0; }
.ingredients-body li { margin-bottom: 0.35rem; }
.ingredients-body p + p { margin-top: 0.9rem; }
.ingredients-allergens { color: var(--color-navy-soft); font-size: 0.9rem; font-style: italic; margin-top: 1.2rem; }
