/* ============================================================
   GOLDEN CRUMB BAKERY — template site
   Warm artisan broadsheet: flour cream, crust brown, ember accent.
   Fraunces (display) + Karla (body). Mobile-first.
   ============================================================ */

:root {
  --bg: #FBF4E6;                 /* flour — page */
  --ink: #40291A;               /* crust — text */
  --accent: #B45E28;            /* ember — primary actions, marks */
  --wheat: #E9D3A8;             /* wheat tint — card fills */
  --crumb: #F4E9D2;             /* crumb — alt surfaces */
  --chalk: #2E1D12;             /* chalkboard — dark section */
  --chalk-ink: #F7EEDC;         /* chalk text */
  --line: rgba(64, 41, 26, 0.16);
  --radius: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.wrap.narrow { width: min(760px, 92%); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 0.7rem; }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow.light { color: var(--wheat); }

.section { padding: 4.5rem 0; }
.section-tint { background: var(--crumb); }
.section-sub { max-width: 36rem; margin-bottom: 2.2rem; color: rgba(64, 41, 26, 0.78); }
.section-sub.light { color: rgba(247, 238, 220, 0.75); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--accent); color: #FFF8EA; }
.btn-primary:hover { background: #9A4E20; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: rgba(64, 41, 26, 0.07); }
.btn-light { background: var(--chalk-ink); color: var(--chalk); }
.btn-light:hover { background: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-word em { font-style: normal; color: var(--accent); }

.main-nav { display: none; }
.main-nav.open {
  display: flex; flex-direction: column; gap: 0.2rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 0.6rem 4% 1rem;
}
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line);
}
.main-nav a:last-child { border-bottom: none; }

.header-cta { display: flex; align-items: center; gap: 0.6rem; }
.call-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--ink); color: #FFF8EA; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
  padding: 0.55rem 1rem; border-radius: 999px;
}
.call-pill svg { width: 16px; height: 16px; }
.call-pill:hover { background: var(--accent); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; padding: 0 11px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; }
.hero h1 { font-size: clamp(2.9rem, 9vw, 5.2rem); margin-bottom: 1.1rem; }
.lede { font-size: 1.2rem; max-width: 34rem; margin-bottom: 1.8rem; color: rgba(64, 41, 26, 0.82); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.hero-hours { font-size: 0.95rem; font-weight: 600; color: rgba(64, 41, 26, 0.65); }

.hero-emblem { position: relative; justify-self: center; }
.wheat { width: min(300px, 70vw); height: auto; }
.stamp {
  position: absolute; right: -8px; bottom: 26px;
  width: 104px; height: 104px; border-radius: 999px;
  border: 3px double var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-10deg); background: rgba(251, 244, 230, 0.85);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  line-height: 1.25; text-align: center; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--crumb); }
.stats-row { display: grid; grid-template-columns: 1fr; }
.stat { padding: 1.2rem 0; text-align: center; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: none; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--accent); }
.stat span { font-size: 0.95rem; color: rgba(64, 41, 26, 0.72); }

/* ---------- chalkboard menu ---------- */
.chalkboard { background: var(--chalk); color: var(--chalk-ink); padding: 4.5rem 0 5.5rem; }
.chalkboard h2 { color: var(--chalk-ink); }
.menu-grid { display: grid; gap: 1.4rem; margin: 2.4rem 0 3rem; }
.menu-card {
  border: 1px dashed rgba(247, 238, 220, 0.35);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.menu-card h3 {
  color: var(--wheat); font-size: 1.5rem; margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px dashed rgba(247, 238, 220, 0.35);
}
.menu-list { list-style: none; }
.menu-list li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.5rem 0; }
.menu-list .item { font-weight: 600; }
.menu-list .dots { flex: 1; border-bottom: 2px dotted rgba(247, 238, 220, 0.4); transform: translateY(-4px); }
.menu-list .price { font-weight: 700; color: var(--wheat); white-space: nowrap; }

.special-card {
  background: var(--accent); color: #FFF8EA;
  border-radius: var(--radius); padding: 1.8rem;
  max-width: 34rem;
}
.special-card .eyebrow { color: #FFE9C9; }
.special-card h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.special-card p { margin-bottom: 1.2rem; color: rgba(255, 248, 234, 0.9); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin-top: 0.5rem; }
.timeline li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.2rem;
  padding: 1.3rem 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .time {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--accent); white-space: nowrap;
}
.timeline h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.timeline p { color: rgba(64, 41, 26, 0.75); font-size: 1.02rem; }

/* ---------- pastry case ---------- */
.case-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.case-card {
  background: #FFFDF6; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; text-align: center;
}
.case-card svg { width: 100%; max-width: 220px; height: auto; margin-bottom: 0.6rem; }
.case-card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.case-card figcaption span { font-size: 0.92rem; color: rgba(64, 41, 26, 0.65); }

/* ---------- corkboard notes ---------- */
.notes-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; margin-top: 2rem; }
.note {
  background: #FFFDF6; border: 1px solid var(--line); border-radius: 4px;
  padding: 1.6rem 1.5rem 1.3rem; position: relative;
  box-shadow: 0 3px 10px rgba(64, 41, 26, 0.08);
}
.note::before {
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 999px; background: var(--accent);
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.25);
}
.note:nth-child(odd) { transform: rotate(-1.2deg); }
.note:nth-child(even) { transform: rotate(1deg); }
.note p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; margin-bottom: 0.9rem; }
.note footer { font-size: 0.92rem; font-weight: 600; color: rgba(64, 41, 26, 0.6); }

/* ---------- faq ---------- */
.accordion { margin-top: 1.5rem; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; color: var(--ink);
  padding: 1.15rem 0.2rem;
}
.acc-btn::after {
  content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--accent);
  transition: transform 0.2s ease;
}
.acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.acc-panel p { padding: 0 0.2rem 1.2rem; color: rgba(64, 41, 26, 0.8); }

/* ---------- order ---------- */
.order-grid { display: grid; gap: 2.5rem; }
.shop-facts { list-style: none; margin: 1.6rem 0; }
.shop-facts li { padding: 0.7rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.15rem; }
.shop-facts li:last-child { border-bottom: 1px solid var(--line); }
.shop-facts strong { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.shop-facts a { color: var(--ink); font-weight: 700; }

.map-ph {
  border: 2px dashed var(--line); border-radius: var(--radius);
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  background: var(--crumb); color: rgba(64, 41, 26, 0.5); font-weight: 600;
}

.order-form {
  background: #FFFDF6; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: grid; gap: 1.1rem; align-content: start;
}
.order-form label { display: grid; gap: 0.4rem; font-weight: 700; font-size: 0.98rem; }
.order-form input, .order-form select, .order-form textarea {
  font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; background: var(--bg); width: 100%;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-note { font-size: 0.92rem; color: rgba(64, 41, 26, 0.6); }

/* ---------- footer ---------- */
.site-footer { background: var(--chalk); color: rgba(247, 238, 220, 0.78); padding: 3rem 0 2rem; }
.footer-grid { display: grid; gap: 1.8rem; }
.site-footer .brand-word { color: var(--chalk-ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-footer nav a { color: rgba(247, 238, 220, 0.78); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--wheat); }
.fine { font-size: 0.95rem; }
.credit { border-top: 1px solid rgba(247, 238, 220, 0.2); padding-top: 1.2rem; }
.credit strong { color: var(--wheat); }

/* ---------- reveal motion (one idea: rise) ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.32s ease-out, transform 0.32s ease-out; }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .main-nav { display: flex; gap: 1.4rem; position: static; }
  .main-nav a { border-bottom: none; padding: 0.3rem 0; }
  .main-nav a:hover { color: var(--accent); }
  .nav-toggle { display: none; }

  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero-emblem { justify-self: end; }

  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: none; border-right: 1px solid var(--line); padding: 1.4rem 1rem; }
  .stat:last-child { border-right: none; }

  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .special-card { margin-top: -1rem; margin-left: 2rem; }

  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .case-card:nth-child(2) { transform: translateY(1.6rem); }
  .case-card:nth-child(5) { transform: translateY(1.6rem); }

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

  .order-grid { grid-template-columns: 1fr 1fr; align-items: start; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .credit { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
