/* =========================================================
   Sourdough You Know - shared stylesheet (brand source of truth)
   Edit the color tokens in :root to recolor the whole site.
   ========================================================= */

/* ---- Brand tokens ---- */
:root {
  --crust:        #B9772E;   /* primary, golden-baked ochre */
  --crust-deep:   #8A5621;   /* hover / strong */
  --crust-pale:   #EFD9BC;   /* soft fill */
  --char:         #2A211A;   /* espresso text / dark sections */
  --char-soft:    #4A3D32;   /* secondary text */
  --flour:        #FAF4E8;   /* page background, warm cream */
  --flour-dim:    #F0E6D2;   /* alt section background */
  --sage:         #6E7C4E;   /* farm / market accent */
  --sage-deep:    #55623B;
  --jam:          #9B3B45;   /* CTA pop / berry accent */
  --jam-deep:     #7E2E37;
  --line:         #E2D5BE;   /* hairline borders */
  --white:        #FFFDF8;

  --shadow-sm:    0 2px 8px rgba(42, 33, 26, 0.08);
  --shadow-md:    0 10px 30px rgba(42, 33, 26, 0.12);
  --shadow-lg:    0 24px 60px rgba(42, 33, 26, 0.20);

  --radius:       16px;
  --radius-sm:    10px;
  --radius-pill:  100px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-hand:    "Caveat", cursive;

  --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(--char);
  background: var(--flour);
  line-height: 1.6;
  /* subtle paper/linen texture */
  background-image:
    radial-gradient(rgba(185, 119, 46, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(110, 124, 78, 0.03) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
}
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.12; color: var(--char); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crust);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--char-soft); margin-top: 14px; }
.hand { font-family: var(--font-hand); color: var(--crust); font-size: 1.4em; line-height: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--crust); color: var(--white); }
.btn-primary:hover { background: var(--crust-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-jam { background: var(--jam); color: var(--white); }
.btn-jam:hover { background: var(--jam-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--char); border-color: var(--char); }
.btn-outline:hover { background: var(--char); color: var(--flour); }
.btn-light { background: var(--white); color: var(--char); }
.btn-light:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 244, 232, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--crust); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-hand); font-size: 1.05rem; color: var(--crust); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 0.92rem; font-weight: 500; color: var(--char-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--char); background: var(--flour-dim); }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--char); margin: 4px auto; transition: .2s; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; min-height: 78vh; padding: 64px 0; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy p { font-size: 1.18rem; color: var(--char-soft); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 0.84rem; font-weight: 500; color: var(--char-soft);
  box-shadow: var(--shadow-sm);
}
.hero-art {
  position: relative; aspect-ratio: 4/5; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 20%, #E7B574 0%, var(--crust) 45%, var(--crust-deep) 100%);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center; text-align: center; color: var(--white); padding: 32px;
}
.hero-art .loaf { font-size: clamp(5rem, 14vw, 9rem); line-height: 1; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.hero-art .loaf-note { font-family: var(--font-hand); font-size: 1.7rem; margin-top: 10px; }
.hero-art .img-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* generic image placeholder block (owner swaps for a real photo) */
.ph {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--crust-pale), var(--flour-dim));
  color: var(--crust-deep); font-weight: 600;
  border: 1px dashed var(--crust); border-radius: var(--radius);
  padding: 18px; gap: 6px;
}
.ph .ph-emoji { font-size: 2.2rem; }
.ph small { font-weight: 500; color: var(--char-soft); font-size: 0.78rem; }

/* ---- Bands & alt sections ---- */
.band-dark { background: var(--char); color: var(--flour); }
.band-dark h2, .band-dark h3 { color: var(--flour); }
.band-dark .section-tag { color: var(--crust-pale); }
.band-cream { background: var(--flour-dim); }
.band-sage { background: var(--sage); color: var(--white); }
.band-sage h2, .band-sage .section-tag { color: var(--white); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 24px; }
.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: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--char-soft); font-size: 0.96rem; }
.card .icon { font-size: 2rem; margin-bottom: 12px; }

/* menu item card */
.item { display: flex; gap: 16px; align-items: flex-start; }
.item-emoji {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: var(--crust-pale); display: grid; place-items: center; font-size: 1.7rem;
}
.item-body { flex: 1; }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item-head h3 { font-size: 1.18rem; }
.price { font-family: var(--font-display); font-weight: 600; color: var(--crust); white-space: nowrap; }
.price em { font-style: normal; color: var(--char-soft); font-size: 0.78rem; font-family: var(--font-body); }

.editable {
  border-left: 3px solid var(--sage);
  background: rgba(110,124,78,0.07);
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem; color: var(--sage-deep);
}
.editable strong { color: var(--sage-deep); }

/* ---- Events / schedule ---- */
.sched-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.date-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; position: relative; transition: transform .15s, box-shadow .15s;
}
.date-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.date-card .mon { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crust); }
.date-card .day { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; }
.date-card .dow { font-size: 0.82rem; color: var(--char-soft); }
.date-card.past { opacity: 0.5; }
.date-card.next { border-color: var(--crust); background: var(--crust); color: var(--white); box-shadow: var(--shadow-md); }
.date-card.next .mon, .date-card.next .dow { color: var(--crust-pale); }
.date-card .next-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--jam); color: var(--white); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill);
  white-space: nowrap;
}

.vendor-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vendor-tags span {
  background: var(--white); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: var(--radius-pill); font-size: 0.84rem; color: var(--char-soft);
}
.vendor-tags span.us { background: var(--crust); color: var(--white); border-color: var(--crust); font-weight: 600; }

/* ---- Flyer gallery + lightbox ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.flyer {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--white);
  aspect-ratio: 3/4; transition: transform .18s, box-shadow .18s;
}
.flyer:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }
.flyer .flyer-ph { width: 100%; height: 100%; }
.flyer figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(42,33,26,0.82));
  color: var(--white); padding: 26px 18px 14px; font-size: 0.9rem; font-weight: 600;
}
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 15, 11, 0.9); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,0.14); color: #fff;
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { font-size: 1.4rem; flex-shrink: 0; }
.info-row h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--crust); margin-bottom: 3px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--char);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--crust); border-color: var(--crust); }
.map-ph { aspect-ratio: 16/10; }
.note { font-size: 0.8rem; color: var(--char-soft); margin-top: 10px; }

/* ---- CTA strip ---- */
.cta-strip { text-align: center; }
.cta-strip h2 { margin-bottom: 14px; }
.cta-strip p { color: var(--char-soft); max-width: 36em; margin: 0 auto 26px; font-size: 1.08rem; }
.band-dark .cta-strip p { color: var(--crust-pale); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { background: var(--char); color: var(--flour); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand-name { color: var(--flour); }
.footer p { color: rgba(250,244,232,0.6); font-size: 0.92rem; margin-top: 14px; max-width: 30em; }
.footer h4 { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(250,244,232,0.45); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: rgba(250,244,232,0.72); font-size: 0.92rem; }
.footer ul a:hover { color: var(--flour); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(250,244,232,0.1);
  display: grid; place-items: center; font-size: 1.1rem;
}
.footer-social a:hover { background: var(--crust); }
.footer-bottom { border-top: 1px solid rgba(250,244,232,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: rgba(250,244,232,0.5); }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 32px; padding: 48px 0; }
  .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: 60px 0; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--flour); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 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; }
}
