/* ============================================================
   SunSplash Harvest — shared styles
   Theme: aquamarine + golden sun · sunny, beachy, tropical
   No build step, no external dependencies.
   ============================================================ */

:root {
  --sand:      #FFF7EA;   /* page background (warm sand)   */
  --sand-2:    #FBEED6;   /* alt section band              */
  --shell:     #FFFFFF;   /* cards                          */
  --ink:       #123B3A;   /* deep teal — headings          */
  --body:      #41564F;   /* muted teal-grey — body text   */
  --aqua:      #10B3AD;   /* aquamarine                     */
  --aqua-deep: #0A8A85;
  --aqua-soft: #BDEDE9;
  --gold:      #FFC24A;   /* golden sun                     */
  --gold-deep: #F2A62B;
  --gold-soft: #FFE6AC;
  --coral:     #FF7A4D;   /* warm sun accent                */
  --line:      rgba(18, 59, 58, 0.12);
  --shadow-sm: 0 4px 14px rgba(18, 59, 58, 0.08);
  --shadow:    0 14px 38px rgba(18, 59, 58, 0.13);
  --radius:    18px;
  --radius-sm: 12px;
  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--aqua-deep); text-decoration: none; }
a:hover { color: var(--aqua); }

h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--sand-2); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aqua-deep);
}

.section-head { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0.6rem 0 0.7rem; }
.section-head p { margin: 0; font-size: 1.05rem; }

/* wordmark (two-tone, theme colors) */
.wm-aqua { color: var(--aqua-deep); }
.wm-gold { color: var(--gold-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 700; line-height: 1;
  padding: 0.9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, filter .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(100deg, var(--gold), var(--gold-deep)); color: #3a2503; }
.btn-primary:hover { filter: brightness(1.05); color: #3a2503; }
.btn-aqua { background: linear-gradient(100deg, var(--aqua), var(--aqua-deep)); color: #fff; }
.btn-aqua:hover { filter: brightness(1.05); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--aqua); color: var(--aqua-deep); }
.btn-ghost:hover { background: var(--aqua); color: #fff; }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.92rem; }

/* ---------- pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--gold-soft); color: #7a5209; border: 1px solid rgba(242,166,43,0.4);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 234, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 2px 8px rgba(18,59,58,0.18); }
.brand-name { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--aqua-deep); }
.nav-links a.active { color: var(--aqua-deep); }
.nav-links a.active::after {
  content: ""; display: block; height: 3px; border-radius: 3px;
  background: var(--gold); margin-top: 3px;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 420px at 82% -10%, rgba(255, 194, 74, 0.42), transparent 62%),
    radial-gradient(680px 520px at 8% 0%, rgba(16, 179, 173, 0.20), transparent 60%),
    linear-gradient(180deg, var(--aqua-soft) 0%, var(--sand) 60%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 1rem 0 0; }
.hero-tag { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; color: var(--ink); margin: 1rem 0 0; }
.hero-sub { font-size: 1.08rem; margin: 1rem 0 0; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: 22px; box-shadow: var(--shadow);
  border: 5px solid #fff; aspect-ratio: 1000/620; object-fit: cover;
}
.hero-media::after {
  content: "🌴"; position: absolute; top: -14px; left: -14px; font-size: 2rem;
  transform: rotate(-12deg); filter: drop-shadow(0 3px 5px rgba(0,0,0,.15));
}

/* wave divider */
.wave { display: block; line-height: 0; }
.wave svg { width: 100%; height: 60px; display: block; }

/* ---------- value props ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value {
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.value .ico { font-size: 1.8rem; }
.value h3 { font-size: 1.2rem; margin: 0.7rem 0 0.4rem; }
.value p { margin: 0; font-size: 0.98rem; }

/* stat callout */
.stat {
  margin-top: 2.2rem; background: linear-gradient(100deg, var(--aqua-deep), var(--aqua));
  color: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.4rem; box-shadow: var(--shadow-sm);
}
.stat b { font-size: 2rem; color: var(--gold-soft); }
.stat span { font-size: 1.02rem; opacity: 0.95; }

/* ---------- flavor grid ---------- */
.cat-head { margin: 2.6rem 0 1.2rem; display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.cat-head h3 { font-size: 1.35rem; }
.cat-head span { font-size: 0.9rem; color: var(--body); }
.cat-head:first-of-type { margin-top: 0; }

.flavor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem; }
.flavor {
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border-top: 4px solid var(--accent, var(--aqua));
  transition: transform .16s ease, box-shadow .16s ease;
}
.flavor:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flavor-media img { width: 100%; aspect-ratio: 1000/545; object-fit: cover; }
.flavor-media.placeholder {
  aspect-ratio: 1000/545; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.4rem; text-align: center;
  background: linear-gradient(135deg, var(--accent, var(--aqua)), #2f1f10); color: #fff;
}
.flavor-media.placeholder .ph-glyph { font-size: 2.6rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.28)); }
.flavor-media.placeholder .ph-note {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92;
}
.flavor-body { padding: 1.15rem 1.25rem 1.4rem; }
.flavor-name { font-size: 1.25rem; margin: 0.5rem 0 0.35rem; }
.flavor-note { margin: 0; font-size: 0.96rem; }

.flavor-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 999px;
}
.badge-free   { background: var(--aqua-soft); color: var(--aqua-deep); }
.badge-green  { background: #DCF3DE; color: #2E7D3C; }
.badge-black  { background: #F0E3D2; color: #8a5a24; }
.badge-season { background: var(--gold-soft); color: #8a5c09; }
.badge-zero   { background: #123B3A; color: #BDEDE9; }

/* ---------- featured flavors (home teaser) ---------- */
.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.teaser {
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
  background: var(--shell); border: 1px solid var(--line);
}
.teaser img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.teaser span { display: block; padding: 0.6rem 0.7rem; font-weight: 700; font-size: 0.9rem; color: var(--ink); }

/* ---------- signup / email capture (inert) ---------- */
.signup {
  background: linear-gradient(115deg, var(--aqua-deep), var(--aqua));
  border-radius: 26px; padding: clamp(2rem, 5vw, 3.2rem); text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.signup h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.signup p { margin: 0.7rem auto 0; max-width: 34rem; opacity: 0.96; }
.capture { display: flex; gap: 0.6rem; max-width: 30rem; margin: 1.6rem auto 0.6rem; }
.capture input {
  flex: 1 1 auto; min-width: 0; padding: 0.9rem 1.1rem; font-size: 1rem;
  border: 0; border-radius: 999px; background: #fff; color: var(--ink); outline: none;
  box-shadow: inset 0 0 0 2px transparent;
}
.capture input::placeholder { color: #8aa19d; }
.capture input:focus { box-shadow: inset 0 0 0 2px var(--gold); }
.capture .btn-primary { flex: 0 0 auto; }
.fineprint { font-size: 0.82rem; opacity: 0.85; margin: 0.5rem 0 0; }

/* ---------- story ---------- */
.prose { max-width: 44rem; margin: 0 auto; }
.prose p { font-size: 1.08rem; margin: 0 0 1.2rem; }
.prose h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 2.4rem 0 0.9rem; }
.pullquote {
  margin: 2.4rem auto; text-align: center; max-width: 40rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--ink); line-height: 1.2;
}
.pullquote .wm-gold { color: var(--gold-deep); }
.story-band { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin: 2rem 0; }
.story-band img { width: 100%; aspect-ratio: 1000/420; object-fit: cover; }

/* ---------- contact ---------- */
.socials { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--ink);
  padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--shell);
}
.socials a:hover { border-color: var(--aqua); color: var(--aqua-deep); }

/* ---------- footer ---------- */
.footer { background: #0C3B39; color: #CFE7E4; padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer .brand-name { color: #fff; }
.footer-tag { margin: 0.8rem 0 0; max-width: 20rem; color: #A9CCC8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: #CFE7E4; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-legal { width: 100%; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.6rem; padding-top: 1.4rem; font-size: 0.85rem; color: #8FB6B2; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-media { order: -1; max-width: 460px; margin: 0 auto; }
  .values { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav-links { gap: 0.9rem; }
  .brand-name { display: none; }
  .nav-links a:not(.btn) { font-size: 0.9rem; }
  .capture { flex-direction: column; }
  .capture .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
