/* ==========================================================================
   Farm Boy Produce — Florida's Original Kombucha
   Vintage Florida citrus-label aesthetic: monochrome UI, archival photography
   that blooms from black & white into color.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Work+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --ink: #121110;
  --ink-soft: #2a2724;
  --paper: #f4efe3;
  --paper-dim: #e8e0cd;
  --paper-line: rgba(18, 17, 16, 0.14);
  --overlay-max: rgba(10, 9, 8, 0.82);
  --overlay-min: rgba(10, 9, 8, 0.38);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 84px;
  --container: 1180px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.1;
}
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- fixed vintage background photo ---------- */
/* NOTE: the source photos are genuine archival B&W prints — there is no
   hidden color channel a plain grayscale(1->0) filter could reveal. Instead
   we simulate a hand-tinted vintage postcard "colorizing" the print: a warm
   sepia tone blooms in and is then rotated toward Florida's citrus palette. */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) sepia(0) saturate(1) contrast(1.05) brightness(0.94);
  animation: bloom-color 4.2s var(--ease) 0.35s 1 forwards;
}
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--overlay-max) 0%, var(--overlay-min) 38%, var(--overlay-max) 100%);
}
.page-bg--soft { filter: grayscale(1) sepia(0) saturate(1) contrast(1.02) brightness(0.88) blur(1.5px); }
.page-bg--soft.page-bg { animation-name: bloom-color-soft; }
.page-bg--plain.page-bg { filter: grayscale(1); animation: none; }

@keyframes bloom-color {
  0%   { filter: grayscale(1) sepia(0) hue-rotate(0deg) saturate(1) contrast(1.05) brightness(0.94); }
  55%  { filter: grayscale(0.45) sepia(0.2) hue-rotate(-3deg) saturate(1.1) contrast(1.08) brightness(0.96); }
  100% { filter: grayscale(0) sepia(0.16) hue-rotate(-5deg) saturate(1.15) contrast(1.12) brightness(0.98); }
}
@keyframes bloom-color-soft {
  0%   { filter: grayscale(1) sepia(0) hue-rotate(0deg) saturate(1) contrast(1.02) brightness(0.88) blur(1.5px); }
  55%  { filter: grayscale(0.45) sepia(0.2) hue-rotate(-3deg) saturate(1.1) contrast(1.04) brightness(0.9) blur(1.5px); }
  100% { filter: grayscale(0) sepia(0.16) hue-rotate(-5deg) saturate(1.15) contrast(1.06) brightness(0.92) blur(1.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .page-bg { animation: none; filter: grayscale(0) sepia(0.16) hue-rotate(-5deg) saturate(1.15) contrast(1.12) brightness(0.98); }
  .page-bg--soft { filter: grayscale(0) sepia(0.16) hue-rotate(-5deg) saturate(1.15) contrast(1.06) brightness(0.92) blur(1.5px); }
  html { scroll-behavior: auto; }
}

/* ---------- collage build (About page): recreates the original
   Premiere Pro sequence as a crossfade of the flattened collage stages,
   starting on the plain B&W print and blooming into full color. ---------- */
.collage-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #000;
}
.collage-bg__layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
}
.collage-bg__layer--base { opacity: 1; }
.collage-bg__layer--2 { animation: layer-in 1.4s var(--ease) 0.6s forwards; }
.collage-bg__layer--3 { animation: layer-in 1.4s var(--ease) 2.0s forwards; }
.collage-bg__layer--4 { animation: layer-in 1.4s var(--ease) 3.4s forwards; }
.collage-bg__layer--5 { animation: layer-in 1.6s var(--ease) 4.8s forwards; }
.collage-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--overlay-max) 0%, var(--overlay-min) 38%, var(--overlay-max) 100%);
}
@keyframes layer-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .collage-bg__layer { animation: none; opacity: 0; }
  .collage-bg__layer--5 { opacity: 1; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid rgba(244, 239, 227, 0.14);
}
.site-header__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
}
.brand__word {
  font-family: var(--font-display);
  color: var(--paper);
  text-transform: uppercase;
  line-height: 1.05;
}
.brand__word strong { display: block; font-size: 17px; letter-spacing: 0.06em; }
.brand__word span { display: block; font-size: 10px; letter-spacing: 0.18em; color: rgba(244,239,227,0.65); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 6px 2px;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--paper);
  transition: right 0.3s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--paper); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 1px solid rgba(244,239,227,0.4);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 9px; right: 9px; height: 2px; background: var(--paper);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
}
.hero--tall { min-height: 100vh; }
.hero--short { min-height: 56vh; padding: 50px 20px; }
.hero--truck { min-height: 77vh; }
.hero--collage {
  min-height: 40vh;
  height: 46vw;
  max-height: 78vh;
  padding: 40px 20px;
}
.hero__content { max-width: 760px; }
.hero__eyebrow {
  font-family: var(--font-display);
  color: var(--paper);
  letter-spacing: 0.3em;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 18px;
}
.hero__title {
  color: var(--paper);
  font-size: clamp(38px, 7vw, 88px);
  letter-spacing: 0.02em;
  text-shadow: 0 6px 30px rgba(0,0,0,0.4);
}
.hero__title small {
  display: block;
  font-size: 0.32em;
  letter-spacing: 0.3em;
  color: var(--paper);
  opacity: 0.9;
  margin-top: 10px;
}
.hero__lede {
  color: rgba(244,239,227,0.88);
  font-size: 18px;
  max-width: 540px;
  margin: 18px auto 30px;
}
.hero__logo-wrap {
  width: 162px;
  height: 162px;
  margin: 0 auto 22px;
}
.hero__logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  opacity: 0.95;
  transform: scale(1.247);
}

/* ---------- buttons ---------- */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1.5px solid var(--paper);
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--paper); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--paper); }
.btn--outline:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ---------- paper panels (content over the fixed photo) ---------- */
.panel {
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.panel--first { border-radius: 18px 18px 0 0; margin-top: -24px; }
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 86px 24px;
}
.section--tight { padding: 56px 24px; }
.section.section--story-top { padding-top: 260px; }
.section.section--contact-top { padding-top: 34px; }
.section.section--products-top { padding-top: 34px; }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__kicker {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.65;
  margin-bottom: 10px;
}
.section__title { font-size: clamp(28px, 4vw, 42px); }
.section__lede { color: var(--ink-soft); font-size: 17px; }
.rule {
  width: 64px; height: 3px; background: var(--ink);
  margin: 18px auto 0;
}

/* ---------- values row ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 10px;
}
.value {
  border: 1px solid var(--paper-line);
  padding: 30px 24px;
  text-align: center;
  background: rgba(255,255,255,0.35);
}
.value__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  opacity: 0.55;
  margin-bottom: 10px;
}
.value h3 { font-size: 19px; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- story / about layout ---------- */
.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.story__photo {
  position: relative;
  border: 8px solid var(--paper);
  outline: 1px solid var(--paper-line);
  box-shadow: 0 24px 50px rgba(18,17,16,0.18);
  transform: rotate(-1.4deg);
}
.story__photo img {
  filter: grayscale(1) contrast(1.05);
  animation: bloom-color 2.6s var(--ease) forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}
@supports not (animation-timeline: view()) {
  .story__photo img { filter: grayscale(0.15) contrast(1.05); }
}
.story h2 { font-size: clamp(26px, 3.4vw, 36px); }
.story__quote {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--ink);
}
.story__quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.story__quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink-soft);
}
.story__signature {
  margin-top: 22px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: uppercase;
}

/* ---------- product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}
.product-card {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--paper-line);
  padding: 26px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 34px rgba(18,17,16,0.14); }
.product-card img { height: 210px; width: auto; margin-bottom: 18px; }
.product-card__tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
  margin-bottom: 6px;
}
.product-card h3 { font-size: 18px; margin-bottom: 6px; }
.product-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.product-card__size {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--ink);
}

/* ---------- where to buy ---------- */
.retailers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.retailer-card {
  border: 1px solid var(--paper-line);
  background: rgba(255,255,255,0.4);
  padding: 26px;
}
.retailer-card__kind {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
  margin-bottom: 10px;
}
.retailer-card h3 { font-size: 19px; margin-bottom: 6px; }
.retailer-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 4px; }

.map-frame {
  position: relative;
  width: 100%;
  height: 44vw;
  min-height: 420px;
  max-height: 680px;
  background: var(--paper-dim);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(244,239,227,0.8); max-width: 520px; margin: 0 auto 26px; }

/* ---------- contact / form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info h2 { font-size: clamp(26px, 3.4vw, 34px); }
.contact-detail { margin-top: 26px; }
.contact-detail__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
  margin-bottom: 4px;
}
.contact-detail a, .contact-detail p { font-size: 16px; margin: 0; }
.social-row { display: flex; gap: 14px; margin-top: 26px; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid var(--ink);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-row a:hover { border-color: var(--ink); transform: translateY(-2px); }
.icon-svg { width: 18px; height: 18px; fill: currentColor; display: block; }

.form {
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--paper-line);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 13px;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.form-success {
  display: none;
  border: 1px solid var(--ink);
  padding: 22px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 14px;
}
.form-success.is-visible { display: block; }
.form.is-submitted form { display: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(244,239,227,0.75);
  padding: 56px 24px 28px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 46px; border-radius: 50%; }
.footer-brand strong {
  display: block; font-family: var(--font-display);
  color: var(--paper); text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px;
}
.footer-brand span { display: block; font-size: 11px; letter-spacing: 0.14em; opacity: 0.7; text-transform: uppercase; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; letter-spacing: 0.06em; }
.footer-nav a:hover { color: var(--paper); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.9;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social a:hover { opacity: 1; transform: translateY(-2px); }
.footer-social img { width: 26px; height: 26px; display: block; }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(244,239,227,0.14);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.6;
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .story, .contact-grid { grid-template-columns: 1fr; }
  .story__photo { transform: none; order: -1; }
  .values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s var(--ease); }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(244,239,227,0.1); }
  .nav-toggle { display: block; }
  .section { padding: 60px 20px; }
  .section.section--story-top { padding-top: 110px; }
  .section.section--contact-top { padding-top: 70px; }
  .section.section--products-top { padding-top: 70px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
