/* Miere de la Silvia - bright, sunlit beekeeping landing page (rebuild).
   Built per taste-skill (design-taste-frontend). Light theme.
   Serif (Lora) for headings, a clean sans for body, gold accents on ivory.
   Wavy photo bands (hero beekeeper, jar) keep their organic edges. The page
   sits on a centred sheet; the honey video runs behind it so the two edge bees
   walk in the left/right margins. */

:root {
  --paper: #fdfaf3;        /* sheet base, near-white warm */
  --cream: #f7efdd;        /* warm section tint */
  --white: #fffdf8;
  --ink: #41392d;          /* warm dark text, never black */
  --ink-soft: #6f6657;
  --ink-faint: #9a9082;
  --gold: #e0a52b;
  --gold-bright: #f0b537;
  --gold-deep: #b07d1a;
  --gold-soft: rgba(224, 165, 43, 0.15);
  --sky-1: #cfe6f1;
  --sky-2: #fdf6e6;
  --line: rgba(65, 57, 45, 0.12);
  --line-strong: rgba(65, 57, 45, 0.22);
  --r-input: 10px;
  --sheet: 1180px;
  --maxw: 1000px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #efe6d3; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #3a2c10; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- Living bee backdrop + page sheet ---------- */
.bee-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #efe4cd; }
.bee-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.15) brightness(1.07); }
.sheet { position: relative; z-index: 1; width: 100%; max-width: var(--sheet); margin-inline: auto; background: var(--paper); min-height: 100vh; box-shadow: 0 0 1px rgba(65,57,45,0.4), 0 0 90px rgba(60,42,12,0.26); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 30px; }
.eyebrow { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-deep); font-weight: 700; margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; border: 0; border-radius: 999px; padding: 0.82rem 1.5rem; font-family: var(--sans); font-size: 0.98rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: transform 0.16s ease, background 0.2s ease, box-shadow 0.2s ease; }
.btn-primary { background: var(--gold); color: #3a2c10; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 14px 30px -16px rgba(224,165,43,0.9); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: rgba(255,255,255,0.6); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(3px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-deep); color: var(--gold-deep); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: 70px; display: flex; align-items: center; background: rgba(253,250,243,0.86); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 22px; max-width: var(--sheet); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.brand .hex { width: 18px; height: 20px; color: var(--gold-deep); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-size: 0.95rem; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--gold-deep); }
.nav-cta { padding: 0.56rem 1.15rem; font-size: 0.9rem; }

/* ---------- Wavy photo bands (hero + jar) ---------- */
.band-wrap { position: relative; }
.band { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.band-wrap .container { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; }
.copy { max-width: 27em; }
.copy .lead { font-family: var(--sans); color: var(--ink-soft); }

/* Hero: full-bleed photo, text on the left, wavy bottom */
.hero { position: relative; min-height: clamp(440px, 56vh, 545px); display: flex; align-items: center; overflow: hidden; background: var(--sky-2); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(253,247,233,0.94) 0%, rgba(253,247,233,0.62) 32%, rgba(253,247,233,0.08) 56%, rgba(253,247,233,0) 72%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); margin-bottom: 16px; }
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 24em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(34px, 5vw, 62px); z-index: 3; display: block; }
.hero-wave path { fill: var(--paper); }

/* Story band */
.story { position: relative; background: var(--white); overflow: hidden; }
/* the jar band has wavy edges all around; overflow the sides so the left/right
   wave curves clip off (sides fill edge-to-edge) while top/bottom waves stay */
.jar-band { width: 126%; max-width: none; margin-left: -13%; }
.story-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(255,253,248,0.92) 0%, rgba(255,253,248,0.6) 28%, rgba(255,253,248,0.08) 52%, rgba(255,253,248,0) 68%); }
.story-copy { max-width: 25em; }
.story h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); }
.story-copy .lead { margin-top: 14px; font-size: 1.05rem; }

/* full letter, tucked behind a quiet reveal */
.story-more { max-width: 40em; margin: clamp(36px, 5vw, 64px) auto; }
.story-more summary { list-style: none; cursor: pointer; text-align: center; color: var(--gold-deep); font-weight: 600; font-size: 1.05rem; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--sans); }
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary::after { content: " \2193"; }
.story-more[open] summary { opacity: 0.6; margin-bottom: 22px; }
.story-more[open] summary::after { content: " \2191"; }
.letter { max-width: 38em; margin: 0 auto; }
.letter p { font-family: var(--serif); color: var(--ink); font-size: 1.16rem; line-height: 1.8; margin-block: 0.85em; }
.letter .em { font-style: italic; color: var(--gold-deep); font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.9rem); line-height: 1.34; margin-block: 0.55em; text-align: center; }

/* ---------- Features ---------- */
.craft { position: relative; background: var(--paper); padding-block: clamp(64px, 9vw, 116px); }
.sec-head { text-align: center; max-width: 34em; margin: 0 auto 54px; }
.sec-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
.sec-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.08rem; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { text-align: center; }
.feature .ic { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 16px; }
.feature .ic svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }
.spoon { position: absolute; top: clamp(-22px, calc(2vw - 30px), 4px); right: clamp(0px, 2vw, 24px); width: clamp(216px, 24vw, 331px); height: auto; z-index: 4; pointer-events: none; filter: drop-shadow(0 18px 22px rgba(70,48,18,0.24)); }

/* ---------- Quote + values ---------- */
.quote { background: var(--cream); padding-block: clamp(64px, 9vw, 112px); text-align: center; }
.quote .qmark { display: block; font-family: var(--serif); font-size: 5rem; line-height: 0.6; color: var(--gold); height: 2.1rem; }
.quote blockquote { margin: 0 auto; max-width: 22em; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-style: italic; color: var(--ink); line-height: 1.34; }
.quote .qby { margin-top: 20px; color: var(--gold-deep); font-weight: 600; }
.values { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: 52px; }
.value { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.96rem; }
.value svg { width: 34px; height: 34px; color: var(--gold-deep); }

/* ---------- Gift ---------- */
.gift { position: relative; background: var(--paper); padding-block: clamp(64px, 9vw, 112px); }
.gift-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.gift h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.8rem); }
.gift-copy .lead { color: var(--ink-soft); margin-top: 16px; font-size: 1.08rem; max-width: 30em; }
.signup { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-input); padding: 0.82rem 1.05rem; color: var(--ink); font-family: var(--sans); font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.signup .btn { justify-content: center; margin-top: 4px; }
.signup .ok { color: var(--gold-deep); font-size: 0.95rem; min-height: 1.2em; font-weight: 600; }
.signup .note { color: var(--ink-faint); font-size: 0.86rem; }

/* ---------- Footer ---------- */
.footer { background: var(--cream); text-align: center; padding-block: 60px 46px; border-top: 1px solid var(--line); }
.footer .brand { justify-content: center; }
.footer .blurb { color: var(--ink-soft); margin-top: 14px; }
.footer .contact { margin-top: 16px; }
.footer .contact a { color: var(--gold-deep); font-weight: 600; }
.footer .fineprint { color: var(--ink-faint); font-size: 0.85rem; margin-top: 20px; }

/* ---------- Motion: scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); transition-delay: calc(var(--i,0) * 80ms); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .gift-inner { grid-template-columns: 1fr; gap: 30px; }
  .spoon { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
  /* stack band text below the photo so it never crowds the image */
  .band-wrap .container { position: static; }
  .hero, .story { background: var(--cream); }
  .hero-scrim, .story-scrim { display: none; }
  .copy { max-width: 100%; padding: 22px 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
