/* ═══════════════════════════════════════════════════════════
   Hannah's First Fruits — warm cream paper · terracotta accent.
   Lean, mobile-first landing page.
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper:      #e6e0d8;   /* matches the cream in the brand images */
  --paper-2:    #ded6ca;
  --card:       #f0ebe1;
  --ink:        #26221c;
  --ink-soft:   #7a7062;
  --clay:       #bf7a54;
  --clay-deep:  #a5623a;
  --clay-soft:  #d9a988;
  --line:       #d3c8b6;

  --radius:     18px;
  --radius-sm:  11px;
  --shadow:     0 22px 50px -28px rgba(38, 28, 16, .5);
  --shadow-sm:  0 10px 24px -16px rgba(38, 28, 16, .45);
  --maxw:       1080px;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Jost", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; font-size: clamp(2rem, 5vw, 2.9rem); }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }

/* ───────── buttons ───────── */
.btn {
  --btn-bg: var(--clay); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.6rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1.5px solid transparent; background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: var(--clay-deep); }
.btn--primary { background: var(--clay); }
.btn--cream { background: var(--paper); color: var(--clay-deep); }
.btn--cream:hover { background: #fff; }
.btn--pill { padding: .5rem 1.2rem; font-size: .85rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* ───────── header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem;
  padding: .5rem clamp(1rem, 4vw, 2.2rem);
  background: rgba(230, 224, 216, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { margin-right: auto; display: flex; align-items: center; }
.brand__logo { height: 60px; width: auto; margin: -8px 0; }
.nav { display: none; gap: 1.7rem; }
.nav a { font-weight: 500; font-size: .92rem; letter-spacing: .02em; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--clay); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.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); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  position: sticky; top: 58px; z-index: 49; display: flex; flex-direction: column;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: .4rem clamp(1rem, 4vw, 2.2rem) 1rem; box-shadow: var(--shadow-sm);
}
.mobile-nav a { padding: .7rem .2rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; color: var(--clay); font-weight: 600; }

/* ───────── banner (scrolling tagline ticker) ───────── */
.banner { background: var(--ink); color: var(--paper); }
.dot { color: var(--clay-soft); }
.marquee { overflow: hidden; }
.marquee__track { display: inline-flex; animation: scroll 30s linear infinite; }
.marquee__set { display: flex; align-items: center; gap: 2.4rem; padding: .6rem 1.2rem; }
.marquee__set span { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* desktop: each set fills the full width; the four phrases spread evenly */
@media (min-width: 820px) {
  .marquee__set { width: 100vw; gap: 0; justify-content: space-around; padding: .7rem 1.2rem; }
  .marquee__set span { font-size: 1.15rem; }
}

/* ───────── stock counter (centered solid pill) ───────── */
.stock { display: flex; justify-content: center; padding: 1.5rem 1rem .3rem; }
.stock__pill {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .72rem 1.7rem;
  background: var(--clay); color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgba(165, 98, 58, .7);
  font-size: 1.1rem; letter-spacing: .01em; line-height: 1;
}
.stock__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.4em; color: #fff; }
.stock__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none;
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
/* low stock (≤3) — solid red, urgent */
.stock.is-low .stock__pill { background: #c0492f; box-shadow: 0 14px 30px -14px rgba(192, 73, 47, .7); }
/* sold out — muted solid */
.stock.is-out .stock__pill { background: #d8cdbb; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.stock.is-out .stock__dot { background: #a89e8d; animation: none; }
.stock.is-out a { color: var(--clay-deep); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .stock__dot { animation: none; } }

/* ───────── sections ───────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1.1rem, 4vw, 2rem); }
.section--tint { max-width: none; background: var(--paper-2); border-block: 1px solid var(--line); }
.section--tint > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section__sub { color: var(--ink-soft); font-size: 1.08rem; }
.section__sub strong { color: var(--ink); white-space: nowrap; }

/* ───────── hero ───────── */
.hero { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(1.6rem, 5vw, 2.8rem) clamp(1.1rem, 4vw, 2rem) clamp(2.4rem, 6vw, 3.4rem); }
.hero__logo { width: min(340px, 76%); height: auto; margin: 0 auto .4rem; }
.hero__tag { font-size: 1.12rem; color: var(--ink-soft); max-width: 30ch; margin: 0 auto 1.6rem; }
.hero .btn { margin-bottom: 1rem; }
.hero__note { font-size: .8rem; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; margin: 0; }

/* ───────── menu ───────── */
.menu-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.flavour { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.flavour:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flavour img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.flavour figcaption { padding: .9rem 1rem 1.1rem; text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.menu-foot { text-align: center; color: var(--ink-soft); margin: 2rem auto 0; font-size: .98rem; max-width: 44ch; }

/* ───────── collection ───────── */
.collect-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.collect-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); text-align: center; }
.collect-card__tag { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 .5rem; }
.collect-card__price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--clay); margin: 0 0 .6rem; line-height: 1; }
.collect-card__body { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.collect-card__body strong { color: var(--ink); }

/* ───────── faq ───────── */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--clay); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--ink-soft); }

/* ───────── footer ───────── */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 4.5rem) clamp(1.1rem, 4vw, 2rem) 2rem; text-align: center; }
.footer__cta h2 { color: #fff; }
.footer__cta .btn { margin: .4rem 0 1rem; }
.footer__cta p { color: rgba(236,228,214,.6); font-size: .9rem; }
.legal { max-width: 720px; margin: 2.4rem auto 0; border-top: 1px solid rgba(236,228,214,.15); padding-top: 1.4rem; text-align: left; }
.legal summary { cursor: pointer; color: rgba(236,228,214,.8); font-weight: 500; font-size: .92rem; }
.legal__body { margin-top: 1rem; color: rgba(236,228,214,.6); font-size: .88rem; }
.legal__body h4 { margin: 1.2rem 0 .4rem; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: rgba(236,228,214,.85); }
.legal__body ol { padding-left: 1.2rem; }
.footer__legal { margin: 1.8rem auto 0; color: rgba(236,228,214,.42); font-size: .82rem; }

/* ───────── responsive ───────── */
@media (min-width: 620px) {
  .menu-grid, .collect-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 820px) {
  .nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .btn { transition: none; }
}
