/* =========================================================
   Sourdough You Know - DESIGN OPTION 2: "Bold Farmers-Market"
   Self-contained theme. Edit the tokens in :root to recolor.
   ========================================================= */

/* ---- Brand tokens ---- */
:root {
  --tomato:     #E4572E;   /* primary */
  --tomato-dk:  #C23E1B;
  --mustard:    #F4A91F;   /* secondary / sunshine */
  --teal:       #1F8A82;   /* fresh accent */
  --teal-dk:    #156B64;
  --pink:       #F2728C;   /* pop */
  --cream:      #FFF7E8;   /* page background */
  --cream-2:    #FDEFD3;   /* alt block */
  --ink:        #262220;   /* text / borders */
  --ink-soft:   #5A524C;
  --white:      #FFFFFF;

  --bd: 3px solid var(--ink);                 /* signature chunky border */
  --shadow: 6px 6px 0 var(--ink);             /* hard offset shadow */
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  --radius: 18px;
  --radius-sm: 12px;
  --pill: 100px;

  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.6;
  font-weight: 600;
  /* faint polka texture */
  background-image: radial-gradient(rgba(38,34,32,0.05) 2px, transparent 2px);
  background-size: 30px 30px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: 14px; font-weight: 600; }

/* sticker-style eyebrow tag */
.sticker {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--mustard); color: var(--ink);
  border: var(--bd); border-radius: var(--pill);
  padding: 6px 16px; box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
  margin-bottom: 16px;
}
.sticker.teal { background: var(--teal); color: var(--white); }
.sticker.pink { background: var(--pink); color: var(--ink); }
.sticker.tomato { background: var(--tomato); color: var(--white); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border: var(--bd); border-radius: var(--pill);
  background: var(--white); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--tomato); color: var(--white); }
.btn-mustard { background: var(--mustard); color: var(--ink); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }

/* ---- Bunting divider ---- */
.bunting {
  height: 22px;
  background:
    linear-gradient(135deg, var(--tomato) 50%, transparent 51%) 0 0/22px 22px repeat-x,
    linear-gradient(225deg, var(--tomato) 50%, transparent 51%) 11px 0/22px 22px repeat-x;
  filter: drop-shadow(0 2px 0 var(--ink));
}

/* ---- Navigation ---- */
.nav { position: sticky; top: 0; z-index: 60; background: var(--cream); border-bottom: var(--bd); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--tomato); color: var(--white);
  border: var(--bd); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  transform: rotate(-4deg);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.brand-name small { display: block; font-weight: 600; font-size: 0.74rem; color: var(--tomato); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem;
  padding: 8px 14px; border-radius: var(--pill); color: var(--ink);
  border: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { background: var(--mustard); border: 2px solid var(--ink); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 4px auto; border-radius: 3px; }

/* ---- Hero ---- */
.hero { padding: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; padding: 64px 0 72px; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy h1 .hl { color: var(--tomato); }
.hero-copy p { font-size: 1.2rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: var(--bd); border-radius: var(--pill);
  padding: 7px 15px; font-size: 0.86rem; font-weight: 700; box-shadow: var(--shadow-sm);
}
.hero-art {
  aspect-ratio: 1/1; border: var(--bd); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background: repeating-linear-gradient(45deg, var(--mustard) 0 28px, #FBC04A 28px 56px);
  display: grid; place-items: center; text-align: center; position: relative; overflow: hidden;
}
.hero-art .loaf { font-size: clamp(6rem, 16vw, 11rem); line-height: 1; filter: drop-shadow(4px 6px 0 rgba(38,34,32,0.25)); }
.hero-art .blob {
  background: var(--white); border: var(--bd); border-radius: var(--pill);
  padding: 8px 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  box-shadow: var(--shadow-sm); transform: rotate(-3deg); margin-top: 6px;
}
.hero-art .img-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art .price-sticker {
  position: absolute; top: 18px; right: 18px;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--pink); color: var(--ink); border: var(--bd); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; text-align: center; line-height: 1.1;
  font-family: var(--font-display); font-weight: 700; transform: rotate(8deg);
}

/* placeholder block */
.ph {
  display: grid; place-items: center; text-align: center; gap: 6px;
  background: var(--cream-2); color: var(--tomato-dk); font-weight: 700;
  border: 3px dashed var(--ink); border-radius: var(--radius); padding: 18px;
}
.ph .ph-emoji { font-size: 2.4rem; }
.ph small { font-weight: 600; color: var(--ink-soft); font-size: 0.78rem; }

/* ---- Color bands ---- */
.band-tomato { background: var(--tomato); color: var(--white); border-top: var(--bd); border-bottom: var(--bd); }
.band-tomato h2, .band-tomato h3 { color: var(--white); }
.band-teal { background: var(--teal); color: var(--white); border-top: var(--bd); border-bottom: var(--bd); }
.band-teal h2, .band-teal h3 { color: var(--white); }
.band-cream { background: var(--cream-2); border-top: var(--bd); border-bottom: var(--bd); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: var(--bd); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 58px; height: 58px; border-radius: 14px; border: var(--bd);
  display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 14px;
  background: var(--cream-2);
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
/* rotating accent on icon tiles */
.card:nth-child(4n+1) .icon { background: var(--mustard); }
.card:nth-child(4n+2) .icon { background: var(--pink); }
.card:nth-child(4n+3) .icon { background: #9ED9D2; }
.card:nth-child(4n+4) .icon { background: #F6C45A; }

/* menu item */
.item { display: flex; gap: 16px; align-items: flex-start; }
.item-emoji {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 14px; border: var(--bd);
  background: var(--cream-2); display: grid; place-items: center; font-size: 1.8rem;
}
.item-body { flex: 1; }
.item-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-head h3 { font-size: 1.2rem; }
/* price tag sticker */
.price {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  background: var(--mustard); color: var(--ink); border: 2px solid var(--ink);
  border-radius: var(--pill); padding: 3px 12px; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink);
}
.price em { font-style: normal; }

.owner-note {
  background: var(--white); border: 3px dashed var(--teal);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.9rem; color: var(--teal-dk); font-weight: 700;
}
.owner-note strong { color: var(--tomato-dk); }

/* ---- Events / schedule ---- */
.sched-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.date-card {
  background: var(--white); border: var(--bd); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; position: relative; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.date-card:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.date-card .mon { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tomato); }
.date-card .day { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; line-height: 1.1; }
.date-card .dow { font-size: 0.82rem; color: var(--ink-soft); }
.date-card.past { opacity: 0.45; }
.date-card.next { background: var(--tomato); color: var(--white); box-shadow: var(--shadow); }
.date-card.next .mon, .date-card.next .dow { color: var(--cream-2); }
.date-card .next-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  background: var(--teal); color: var(--white); border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 11px; border-radius: var(--pill); white-space: nowrap; box-shadow: 2px 2px 0 var(--ink);
}

.vendor-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.vendor-tags span {
  background: var(--white); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  padding: 6px 13px; border-radius: var(--pill); font-size: 0.86rem; font-weight: 700;
}
.vendor-tags span.us { background: var(--tomato); color: var(--white); }
.band-cream .vendor-tags span { background: var(--white); }

/* ---- Flyer gallery + lightbox ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.flyer {
  position: relative; border: var(--bd); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--white); aspect-ratio: 3/4; cursor: zoom-in;
  transition: transform .12s ease, box-shadow .12s ease;
}
.flyer:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }
.flyer .flyer-ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.flyer figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--mustard); color: var(--ink); border-top: var(--bd);
  padding: 12px 16px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(38,34,32,0.88);
  display: none; align-items: center; justify-content: center; padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border: var(--bd); border-radius: 10px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 50px; height: 50px; border-radius: 50%;
  border: var(--bd); background: var(--mustard); color: var(--ink); font-size: 1.6rem; cursor: pointer;
  line-height: 1; box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 700;
}
.lightbox-close:hover { background: var(--pink); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 2px dashed var(--ink); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { font-size: 1.5rem; flex-shrink: 0; }
.info-row h4 { font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tomato); margin-bottom: 3px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border: var(--bd); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 0; box-shadow: var(--shadow-sm); }
.map-ph { aspect-ratio: 16/10; }
.note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; font-weight: 600; }

/* ---- CTA strip ---- */
.cta-strip { text-align: center; }
.cta-strip h2 { margin-bottom: 12px; }
.cta-strip p { max-width: 36em; margin: 0 auto 24px; font-size: 1.12rem; }
.band-tomato .cta-strip p, .band-teal .cta-strip p { color: var(--cream); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: var(--cream); padding: 60px 0 26px; border-top: var(--bd); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer .brand-name { color: var(--cream); }
.footer .brand-name small { color: var(--mustard); }
.footer p { color: rgba(255,247,232,0.66); margin-top: 14px; max-width: 30em; font-size: 0.94rem; }
.footer h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mustard); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: rgba(255,247,232,0.78); font-size: 0.95rem; font-weight: 700; }
.footer ul a:hover { color: var(--mustard); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%; background: var(--tomato); color: var(--white);
  border: 2px solid var(--cream); display: grid; place-items: center; font-size: 1.1rem; font-weight: 700;
}
.footer-social a:hover { background: var(--mustard); color: var(--ink); }
.footer-bottom { border-top: 2px dashed rgba(255,247,232,0.3); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: rgba(255,247,232,0.6); font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 56px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sched-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--cream); border-bottom: var(--bd); padding: 16px 24px 22px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; text-align: center; }
  .nav-cta { margin: 6px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sched-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}
