/* ============================================================
   Warblers Meadery — gold.css (visual-redesign override layer)
   Loaded LAST in the cascade, after styles.css. Contains the
   entire aesthetic upgrade as one removable unit: delete this
   link (and js/reveal.js) to revert to the base design system.
   No selector here is renamed or removed from styles.css — the
   JS contract (cart, age gate, mural, hero bees) is untouched.
   Layers, in surgical order:
     1 tokens · 2 typography · 3 color · 4 spacing
     5 components · 6 atmosphere · 7 motion
   ============================================================ */

/* ---------- 1 · Tokens ---------- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow:
    0 24px 48px -20px rgba(31, 42, 21, 0.35),
    0 8px 20px -14px rgba(31, 42, 21, 0.2);
  --shadow-soft:
    0 6px 18px -10px rgba(31, 42, 21, 0.22),
    0 2px 6px -4px rgba(31, 42, 21, 0.12);
}

/* ---------- 2 · Typography ---------- */
h1, h2, h3, h4 { text-wrap: balance; }
h1 {
  font-size: clamp(2.6rem, 1.7rem + 3.8vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h2 { letter-spacing: -0.025em; line-height: 1.08; }
h3 { letter-spacing: -0.015em; }
.lede { line-height: 1.6; }
.eyebrow { letter-spacing: 0.18em; font-size: 0.74rem; }
.hero-tag { line-height: 1.45; }
::selection { background: rgba(224, 166, 58, 0.35); }
::placeholder { color: var(--ink-soft); opacity: 0.65; }

/* ---------- 3 · Color (consistency fixes) ---------- */
/* Focus ring + input glow used an off-palette yellow-green;
   align both to the honey accent. */
:focus-visible { outline-color: var(--honey-deep); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--honey-deep);
  box-shadow: 0 0 0 3px rgba(224, 166, 58, 0.28);
}
.newsletter input:focus { box-shadow: 0 0 0 3px rgba(31, 42, 21, 0.18); }

/* ---------- 4 · Spacing ---------- */
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.pagehead { padding-block: clamp(3rem, 7vw, 5.25rem) clamp(2rem, 4vw, 3rem); }
.grid { gap: clamp(1.4rem, 3.5vw, 2.25rem); }
.product-body { padding: 1.5rem 1.5rem 1.65rem; }
.badge { padding: 0.32em 0.85em; letter-spacing: 0.07em; }
.eyebrow { margin-bottom: 0.9rem; }

/* ---------- 5 · Components ---------- */
/* Buttons: slower, springier physics; shadow expands with lift. */
.btn {
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(31, 42, 21, 0.45);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.12s;
}
.btn[disabled]:hover { transform: none; box-shadow: none; }

/* Cards: deeper lift, honey border glow, slow image zoom. */
.product-card {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.4s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 166, 58, 0.5);
  box-shadow: var(--shadow);
}
.product-thumb img, .product-thumb svg {
  transition: transform 0.9s var(--ease-out);
}
.product-card:hover .product-thumb img,
.product-card:hover .product-thumb svg { transform: scale(1.045); }

/* Header: stronger frost, so content scrolls under glass. */
.site-header {
  background: rgba(245, 239, 221, 0.78);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}
.nav-links a { transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out); }

/* Quiet cards & list rows pick up the hover language too. */
.appearance-card, .stockist, .event, .form-card, .hours-card {
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.appearance-card:hover, .stockist:hover, .event:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* Footer social: small physical response. */
.social a { transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.social a:hover { transform: translateY(-2px); }

/* ---------- 6 · Atmosphere ---------- */
/* Warm ambient light instead of a flat cream sheet. */
body {
  background:
    radial-gradient(1100px 520px at 12% -120px, rgba(242, 194, 48, 0.12), transparent 60%),
    radial-gradient(900px 460px at 92% 40px, rgba(224, 166, 58, 0.09), transparent 55%),
    var(--cream);
}
/* Grain — felt, not seen. Sits above everything at whisper opacity. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 7 · Motion ---------- */
/* Entry: staggered fade-up-deblur on the hero and page headers. */
@keyframes gold-enter {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.hero-brand .hero-label-frame { animation: gold-enter 0.8s var(--ease-out) both; }
.hero-brand .hero-tag  { animation: gold-enter 0.8s 0.12s var(--ease-out) both; }
.hero-brand .hero-cta  { animation: gold-enter 0.8s 0.24s var(--ease-out) both; }
.hero-brand .hero-note { animation: gold-enter 0.8s 0.36s var(--ease-out) both; }
.pagehead .eyebrow { animation: gold-enter 0.7s var(--ease-out) both; }
.pagehead h1       { animation: gold-enter 0.7s 0.1s var(--ease-out) both; }
.pagehead .lede    { animation: gold-enter 0.7s 0.2s var(--ease-out) both; }

/* Scroll reveals — js/reveal.js tags below-fold blocks with
   [data-reveal] and adds .is-visible in view. JS-off browsers
   never get the attribute, so content is never hidden. */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Reduced motion: kill entries and reveals outright — the base
   stylesheet already zeroes durations, this guarantees nothing
   is ever stuck hidden or blurred. */
@media (prefers-reduced-motion: reduce) {
  .hero-brand .hero-label-frame, .hero-brand .hero-tag,
  .hero-brand .hero-cta, .hero-brand .hero-note,
  .pagehead .eyebrow, .pagehead h1, .pagehead .lede { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
