/* =========================================================================
   Billie's Bakery & Co. — stylesheet
   A small, warm, home bakery. Billie is the cat (and the boss).
   Palette + type are intentionally cozy, not corporate.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Warm bakery palette */
  --cream:      #fff8ef;
  --cream-deep: #fbeede;
  --butter:     #f6c667;
  --butter-soft:#fcdf9e;
  --caramel:    #c98a5e;
  --crust:      #b4703d;
  --cocoa:      #4a3527;
  --cocoa-soft: #6f5746;
  --berry:      #e08a8a;  /* soft strawberry accent */
  --sage:       #9bb18c;  /* gentle herb green */

  --ink:    var(--cocoa);
  --ink-soft: var(--cocoa-soft);
  --paper:  var(--cream);
  --card:   #fffdf9;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --radius:    18px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(74, 53, 39, .08);
  --shadow:    0 10px 30px rgba(74, 53, 39, .12);
  --shadow-lg: 0 20px 50px rgba(74, 53, 39, .16);

  --wrap: 1120px;
}

/* ---- Reset-ish -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  /* faint speckle texture, like flour on a counter */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,138,94,.05) 0 2px, transparent 2px),
    radial-gradient(circle at 75% 65%, rgba(201,138,94,.045) 0 2px, transparent 2px),
    radial-gradient(circle at 50% 90%, rgba(201,138,94,.04) 0 1.5px, transparent 1.5px);
  background-size: 280px 280px, 340px 340px, 200px 200px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p  { margin: 0 0 1rem; }
a  { color: var(--crust); text-decoration-color: rgba(180,112,61,.35); text-underline-offset: 3px; }
a:hover { color: var(--cocoa); }
img { max-width: 100%; display: block; }

/* ---- Layout helpers --------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; color: var(--crust);
  margin: 0 0 1rem;
}
.eyebrow::before { content: "🐾"; font-size: .9em; filter: saturate(.7); }

/* Placeholder text convention: anything the friend should rewrite is wrapped
   in [ ] inside the markup. We give it a faint, friendly highlight so it is
   easy to spot — remove the .ph class (or just the brackets) once written. */
.ph {
  /* Subtle marker — easy to spot, but doesn't fight the text underneath.
     A faint dotted underline + a whisper of tint. Replace the bracketed
     text (and you can drop the .ph wrapper) once it's written. */
  border-bottom: 1.5px dotted rgba(180,112,61,.45);
  background: rgba(246,198,103,.10);
  border-radius: 3px;
  padding: 0 .1em;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--crust);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-weight: 800; font-size: 1rem;
  padding: .85rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: none; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--secondary { --btn-bg: var(--butter); --btn-fg: var(--cocoa); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--crust);
  box-shadow: inset 0 0 0 2px rgba(180,112,61,.4);
}
.btn--ghost:hover { color: var(--cocoa); box-shadow: inset 0 0 0 2px var(--crust); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.1rem; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,239,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,138,94,.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1; }
.brand__tag  { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--crust); font-weight: 800; }

.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; padding: .5rem .85rem; border-radius: var(--radius-pill);
  text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .98rem;
  transition: background .18s ease, color .18s ease;
}
.nav__links a:hover { background: var(--cream-deep); color: var(--ink); }
.nav__links a[aria-current="page"] { background: var(--butter-soft); color: var(--cocoa); }
.nav__cta { margin-left: .4rem; }

.nav__toggle {
  display: none; border: none; background: var(--cream-deep);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2.5px; border-radius: 2px;
  background: var(--cocoa); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top:  6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- Logo placeholder ------------------------------------------------- */
/* Obvious "drop your real logo here" mark. Swap the <img>/this block later. */
.logo-ph {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--butter-soft) 0 7px, var(--butter) 7px 14px);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.logo-ph::after { content: "🐱"; font-size: 1.4rem; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero__art { position: relative; }
.tagline-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid rgba(201,138,94,.22);
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  font-weight: 800; font-size: .9rem; color: var(--crust); box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__note { margin-top: 1.4rem; font-size: .95rem; color: var(--ink-soft); }

/* ---- Image placeholder ------------------------------------------------ */
/* Friendly labeled boxes that stand in for real photos. */
.img-ph {
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.6) 0 30%, transparent 31%),
    linear-gradient(150deg, var(--butter-soft), var(--cream-deep));
  color: var(--crust); border-radius: var(--radius-lg);
  border: 2px dashed rgba(180,112,61,.4);
  aspect-ratio: 4 / 3; padding: 1.5rem;
  box-shadow: var(--shadow); position: relative;
}
.img-ph__icon { font-size: 2.6rem; margin-bottom: .4rem; }
.img-ph__label { font-weight: 800; font-family: var(--body); font-size: .95rem; }
.img-ph__hint { font-size: .82rem; color: var(--cocoa-soft); margin-top: .25rem; max-width: 30ch; }
.img-ph--tall  { aspect-ratio: 3 / 4; }
.img-ph--wide  { aspect-ratio: 16 / 9; }
.img-ph--square{ aspect-ratio: 1 / 1; }

/* little stamp that sits on the hero image */
.stamp {
  position: absolute; bottom: -18px; right: -14px;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--berry); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-weight: 600; line-height: 1.05;
  font-size: .82rem; padding: .8rem;
  box-shadow: var(--shadow); border: 3px dashed rgba(255,255,255,.6);
  transform: rotate(-8deg);
}
.stamp small { display: block; font-family: var(--body); font-weight: 800; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .15rem; }

/* ---- Cards / grids ---------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,138,94,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; background: var(--cream-deep); margin-bottom: 1rem;
}

/* ---- "Billie says" margin notes -------------------------------------- */
.billie-note {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--cream-deep); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; border-left: 5px solid var(--butter);
  box-shadow: var(--shadow-sm);
}
.billie-note__cat {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--butter); display: grid; place-items: center; font-size: 1.5rem;
}
.billie-note p { margin: 0; font-style: italic; color: var(--cocoa-soft); }
.billie-note strong { font-style: normal; color: var(--crust); display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .15rem; }

/* ---- Section in a soft band ------------------------------------------ */
.band { background: var(--cream-deep); }
.band--butter { background: linear-gradient(180deg, var(--butter-soft), var(--cream-deep)); }

/* wavy top divider */
.wave { display: block; width: 100%; height: 40px; }

/* ---- Menu page -------------------------------------------------------- */
.menu-group { margin-bottom: 2.5rem; }
.menu-group__head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.2rem; }
.menu-group__head h3 { margin: 0; }
.menu-group__head .rule { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(201,138,94,.4) 0 6px, transparent 6px 12px); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.menu-item {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .9rem 1.1rem; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(201,138,94,.1);
}
.menu-item__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.menu-item__desc { color: var(--ink-soft); font-size: .92rem; margin-top: .15rem; }
.menu-item__price { font-weight: 800; color: var(--crust); white-space: nowrap; }
.menu-item__leader { flex: 1; border-bottom: 2px dotted rgba(201,138,94,.35); transform: translateY(-4px); }

/* ---- About page ------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.timeline li { display: flex; gap: 1rem; }
.timeline .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--butter); margin-top: .4rem; box-shadow: 0 0 0 4px var(--cream-deep); }

/* ---- Contact / form --------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-methods a, .contact-methods .cm {
  display: flex; gap: 1rem; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--card); padding: 1.1rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(201,138,94,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-methods a:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.cm__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--cream-deep); display: grid; place-items: center; font-size: 1.4rem; }
.cm__label { font-weight: 800; }
.cm__value { color: var(--ink-soft); font-size: .92rem; }

.form-card { background: var(--card); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); border: 1px solid rgba(201,138,94,.14); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 800; margin-bottom: .4rem; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border-radius: 14px; border: 2px solid rgba(201,138,94,.25);
  background: var(--cream); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--crust); box-shadow: 0 0 0 4px rgba(180,112,61,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 14px; font-weight: 700; display: none; }
.form-status.is-ok  { display: block; background: rgba(155,177,140,.25); color: #4a5d3c; }
.form-status.is-err { display: block; background: rgba(224,138,138,.22); color: #7a3838; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--cocoa); color: var(--cream); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.site-footer a { color: var(--butter-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: var(--cream); font-size: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: rgba(255,248,239,.8); text-decoration: none; }
.footer-links a:hover { color: var(--butter-soft); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand .brand__name { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(255,248,239,.15); padding-top: 1.5rem; font-size: .88rem; color: rgba(255,248,239,.65); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---- Reveal on scroll (progressive enhancement) ---------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; inset: calc(100% + 0px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--cream); padding: 1rem; margin: 0 .6rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow); border: 1px solid rgba(201,138,94,.18);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__cta { margin: .3rem 0 0; }
}
@media (max-width: 560px) {
  .grid--3, .grid--2, .footer-grid, .field--row { grid-template-columns: 1fr; }
  .stamp { width: 96px; height: 96px; }
  .brand__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
