/* Old Town Sweet Shop — nostalgic candy-wonderland (Cass 2026-07-18).
   Warm-wood + candy-bright palette captured from real scene photo (footprint §2 PIL-quantize).
   Bevan/Alfa Slab One display + Nunito body. Clamp/calc whitespace-safe. */
:root {
  /* warm-wood frame */
  --wood-deep: #402B17;
  --wood: #A45E36;
  --wood-tan: #A27E58;
  --cream: #DFB382;
  /* candy accent */
  --candy-orange: #9B3412;
  /* candy-bright set (bulk-bin differentiator) */
  --candy-pink: #E86A9A;
  --candy-blue: #4FB6D8;
  --candy-amber: #F09A3C;
  --candy-green: #8FC66A;
  /* surface & ink */
  --paper: #FFFDF8;
  --ink: #2E2016;
  --ink2: #5C3D22;
  --tan2: #C49A6C;
  /* utility */
  --line: rgba(64,43,23,.14);
  --line-wood: rgba(164,94,54,.32);
  --wrap: 74rem;
  --gut: clamp(1.15rem, 4vw, 2.6rem);
  --rad: 5px;
  --f-disp: "Alfa Slab One", "Bevan", Georgia, serif;
  --f-body: "Nunito", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.64;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 44rem; }
.center { text-align: center; }
.center-x { margin-inline: auto; }
.accent { color: var(--candy-orange); }

/* ── placeholder figure boxes (geometry-only; NO dev text) ── */
.fig { overflow: hidden; border-radius: var(--rad); background: var(--cream); }
.fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fig--ph {
  background: linear-gradient(135deg, #EFD9B4, #DFB382);
  border: 1px dashed var(--line-wood);
}

/* ── typography ── */
.eyebrow {
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--candy-orange);
}
.h2 {
  font-family: var(--f-disp);
  font-size: clamp(1.85rem, 1.2rem + 3vw, 3.2rem);
  line-height: 1.08;
  margin-top: .45rem;
  color: var(--wood-deep);
  letter-spacing: -.01em;
}
.lede {
  font-size: clamp(1rem, .96rem + .35vw, 1.18rem);
  color: var(--ink2);
  max-width: 40rem;
  margin-top: 1rem;
}
.body { font-size: 1.05rem; margin-top: 1rem; color: var(--ink2); }

/* ── candy-rule (accent line under headings) ── */
.candy-rule {
  height: 3px;
  width: 100%;
  max-width: 12rem;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent-color, var(--candy-orange)) 0%, transparent 100%);
  border-radius: 2px;
  margin-top: 1rem;
}
.candy-rule--center { margin-inline: auto; transform-origin: center; }
.js-ready .candy-rule { opacity: 0; }
.js-ready .candy-rule.is-in { opacity: 1; animation: ruledraw .85s cubic-bezier(.42,0,.18,1) both; }
@keyframes ruledraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .js-ready .candy-rule { opacity: 1 !important; animation: none !important; }
}

/* ── buttons ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn--candy { background: var(--candy-orange); color: #fff; }
.btn--candy:hover { background: var(--wood); }
.btn--ghost { border-color: var(--candy-orange); color: var(--candy-orange); }
.btn--ghost:hover { background: var(--candy-orange); color: #fff; }
.btn--lg { padding: 1.1rem 2.2rem; font-size: .85rem; }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .24s;
}
.nav[data-nav-state="solid"] { background: var(--paper); }
.nav__inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: .75rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { min-width: 0; }
.nav__word {
  display: inline-flex; align-items: baseline; gap: .4rem; min-width: 0;
}
.nav__word-a {
  font-family: var(--f-disp);
  font-size: 1.45rem;
  color: var(--wood-deep);
  white-space: nowrap;
  letter-spacing: .01em;
}
.nav__word-b {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: .52rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--candy-orange);
}
.nav__links { display: none; list-style: none; gap: 1.6rem; }
.nav__links a {
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink2);
  transition: color .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--candy-orange); }
.nav__cta { padding: .6rem 1.2rem; font-size: .7rem; }

/* ── hero ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(26rem, 70vh, 42rem);
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #F8EED8 0%, var(--paper) 60%);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,253,248,.88) 0%, rgba(255,253,248,.55) 60%, rgba(255,253,248,.1) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gut);
}
.hero__panel { max-width: 42rem; }
.hero__kicker {
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--candy-orange);
}
.hero__title {
  font-family: var(--f-disp);
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: .01em;
  margin-top: .5rem;
  color: var(--wood-deep);
}
.hero__sub {
  font-family: var(--f-body);
  font-size: clamp(1.05rem, .95rem + .55vw, 1.28rem);
  color: var(--ink2);
  margin-top: 1.3rem;
  max-width: 36rem;
}
.hero__body {
  font-size: 1rem;
  color: var(--ink2);
  margin-top: .9rem;
  max-width: 34rem;
  line-height: 1.72;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem;
}
.hero__where {
  margin-top: 1.4rem;
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--wood-tan);
}

/* mobile hero: shorter, full-width image */
.hero--mobile-bg {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  overflow: hidden;
}
.hero--mobile-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ── sections ── */
.section { padding-block: clamp(3.25rem, 8vw, 5.5rem); }
.band-wood { background: var(--wood-deep); color: var(--cream); }
.band-wood .h2 { color: var(--cream); }
.band-wood .eyebrow { color: var(--candy-amber); }
.band-wood .lede, .band-wood .body { color: rgba(223,179,130,.85); }
.band-cream { background: #F6EDD8; }
.band-cream .h2 { color: var(--wood-deep); }

/* ── candy-bright section accent (Bulk-Bin Brights differentiator mount) ── */
/* Each section that carries --accent-color will inherit it for eyebrow + candy-rule */
.section[data-candy] .eyebrow { color: var(--accent-color, var(--candy-orange)); }

/* ── categories grid ── */
.cat-grid {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(64,43,23,.06);
}
.cat-card .fig { border-radius: 0; }
.cat-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.cat-card__title {
  font-family: var(--f-disp);
  font-size: 1.3rem;
  color: var(--wood-deep);
  letter-spacing: .01em;
}
.cat-card__text { margin-top: .45rem; font-size: .98rem; color: var(--ink2); }

/* ── heritage band ── */
.heritage-band {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--wood-deep);
  color: var(--cream);
}
.heritage-band .h2 { color: var(--cream); }
.heritage-band .eyebrow { color: var(--candy-amber); }
.heritage-band .body { color: rgba(223,179,130,.85); margin-top: .9rem; }

/* ── split layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
}

/* ── stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
}
.stat__num {
  font-family: var(--f-disp);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.4rem);
  color: var(--candy-orange);
  line-height: 1;
}
.stat__label {
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wood-tan);
  margin-top: .3rem;
}

/* ── full-bleed image band ── */
.band-figure { position: relative; overflow: hidden; }
.band-figure .fig { border-radius: 0; }
.band-figure--wide .fig { aspect-ratio: 4 / 5; }

/* ── visit CTA band ── */
.band-cta {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--candy-orange);
  color: #fff;
  text-align: center;
}
.band-cta .h2 { color: #fff; }
.band-cta .lede { color: rgba(255,255,255,.9); margin-inline: auto; }

/* ── FAQ ── */
.faq-list { margin-top: clamp(1.6rem, 4vw, 2.4rem); border-top: 2px solid var(--line); }
.faq-item { padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: var(--f-disp);
  font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem);
  color: var(--wood-deep);
}
.faq-a { font-size: 1rem; color: var(--ink2); margin-top: .45rem; }

/* ── story page ── */
.story-body { max-width: 42rem; }
.story-body p { font-size: 1.08rem; color: var(--ink2); margin-top: 1.1rem; line-height: 1.78; }

/* ── candy page category rows ── */
.candy-row {
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  align-items: start;
}
.candy-row__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.candy-row__name {
  font-family: var(--f-disp);
  font-size: clamp(1.2rem, 1rem + .55vw, 1.6rem);
  color: var(--wood-deep);
}
.candy-row__desc { font-size: .98rem; color: var(--ink2); }

/* ── visit details ── */
.visit-details {
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}
.detail-block__label {
  font-family: var(--f-body);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--candy-orange);
  margin-bottom: .35rem;
}
.detail-block__val { font-size: 1.05rem; color: var(--ink2); line-height: 1.68; }
.detail-block__val a { color: var(--wood); font-weight: 700; }
.detail-block__val a:hover { color: var(--candy-orange); }

/* ── footer ── */
.footer { background: var(--wood-deep); color: var(--cream); padding-top: clamp(3rem, 6vw, 4.2rem); }
.footer__inner { display: flex; flex-direction: column; gap: 2.2rem; }
.footer__brand .nav__word-a { color: #fff; }
.footer__brand .nav__word-b { color: var(--candy-amber); }
.footer__tag { font-family: var(--f-disp); font-size: 1rem; margin-top: .7rem; color: var(--cream); line-height: 1.4; }
.footer__nav { margin-top: 1.1rem; }
.footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.footer__nav a { font-family: var(--f-body); font-size: .82rem; font-weight: 700; color: var(--cream); opacity: .8; }
.footer__nav a:hover { opacity: 1; color: var(--candy-amber); }
.footer__nap p { color: rgba(223,179,130,.85); font-size: .95rem; line-height: 1.8; }
.footer__nap a:hover { color: var(--candy-amber); }
.footer__hours-title {
  font-family: var(--f-body); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  font-size: .74rem; margin-bottom: .4rem; color: var(--candy-amber);
}
.footer__hours p { color: rgba(223,179,130,.85); font-size: .95rem; line-height: 1.8; }
.footer__legal {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(223,179,130,.18);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: .75rem; padding-bottom: 6rem;
}
.footer__legal p { color: rgba(223,179,130,.55); font-size: .8rem; }
.footer__legal-cta { color: var(--candy-amber); font-family: var(--f-body); font-weight: 800; letter-spacing: .06em; font-size: .82rem; }

/* ── mobile bar ── */
.mobar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(64,43,23,.1);
}
.mobar a {
  flex: 1; text-align: center; padding: .95rem;
  font-family: var(--f-body); font-weight: 800;
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
}
.mobar__call { color: var(--ink2); border-right: 1px solid var(--line); }
.mobar__cta { background: var(--candy-orange); color: #fff; }

/* ── scroll reveal ── */
[data-reveal] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].reveal-init { opacity: 0; transform: translateY(14px); }
  [data-reveal].reveal-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s ease; }
}

/* ── responsive ── */
@media (min-width: 600px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .visit-details { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 700px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 850px) {
  .nav__links { display: flex; }
  .mobar { display: none; }
  .footer__legal { padding-bottom: 1.5rem; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
  .split { grid-template-columns: 1.1fr 1fr; }
  .band-figure--wide .fig { aspect-ratio: 16 / 9; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .visit-details { grid-template-columns: repeat(4, 1fr); }
}
