/* Blue Honey Farm — blueberry midnight + honey gold on warm paper */

:root {
  --midnight: #232946;
  --indigo: #2e3560;
  --berry: #5865a3;
  --bloom: #aebbdf;
  --honey: #e0a82e;
  --honey-deep: #a8760f;      /* borders / non-text accents */
  --honey-text: #7c5406;      /* AA-safe gold for small text on paper (>=4.5:1) */
  --paper: #fbf9f4;
  --paper-dim: #f3efe5;
  --ink: #26251f;
  --ink-soft: #5c5a50;
  --display: "Besley", "Georgia", serif;   /* Clarendon-genre: produce-crate letterface */
  --body: "Karla", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }
/* two-tone ring: midnight inner + honey outer stays >=3:1 on both light and dark sections */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--midnight);
  border-radius: 2px;
}

[id] { scroll-margin-top: 5.5rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- bee trail (signature) ---------- */
.bee-trail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 90px;
  pointer-events: none;
  z-index: 5;
}
.bee-trail > svg { position: absolute; inset: 0; height: 100%; }
.bee svg { display: block; }
.bee {
  position: absolute;
  left: 0; top: 0;
  will-change: transform;
  filter: drop-shadow(0 2px 3px rgba(35, 41, 70, 0.35));
}
@media (max-width: 1180px) { .bee-trail { display: none; } }

/* Mobile signature: a small bee rests by the hero copy; on capable setups it
   flies in once. Default (JS-off / reduced motion) = already resting. */
.hero-bee { display: none; }
@media (max-width: 1180px) {
  .hero-bee {
    display: block;
    position: absolute;
    top: clamp(1.2rem, 4vh, 2.4rem);
    right: clamp(1.4rem, 7vw, 4rem);
    filter: drop-shadow(0 2px 3px rgba(20, 24, 46, 0.4));
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 1180px) {
    .hero-bee svg { animation: hero-bee-fly 1.6s var(--ease-out) 0.3s backwards; }
  }
  @keyframes hero-bee-fly {
    0%   { transform: translate(-70vw, 40px) rotate(-18deg); opacity: 0; }
    18%  { opacity: 1; }
    62%  { transform: translate(-10px, -8px) rotate(7deg); }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  }

  /* hero berries ripen green -> blue once on load */
  .berry-cluster { animation: ripen 2.2s ease-out backwards; }
  @keyframes ripen {
    from { filter: hue-rotate(95deg) saturate(0.75); }
    to   { filter: none; }
  }

  /* the bee settles with a tiny bob when it reaches the end of its path */
  .bee.landed svg { animation: bee-bob 0.8s ease-out 1; }
  @keyframes bee-bob {
    0%   { transform: translateY(0); }
    35%  { transform: translateY(-5px); }
    65%  { transform: translateY(2px); }
    100% { transform: translateY(0); }
  }
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3.2rem);
  background: color-mix(in srgb, var(--midnight) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.25rem;
  text-decoration: none;
}
.brand-mark {
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--bloom) 0 26%, var(--berry) 32% 100%);
  box-shadow: 0 0 0 2px var(--honey);
}
.site-head nav { display: flex; gap: clamp(0.8rem, 2vw, 1.6rem); align-items: center; }
.site-head nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bloom);
  transition: color 0.18s ease-out;
}
.site-head nav a:hover { color: var(--paper); }
.nav-visit {
  padding: 0.35rem 0.95rem;
  border-radius: 99px;
  background: var(--honey);
  color: var(--midnight) !important;
  transition: background 0.18s ease-out;
}
.nav-visit:hover { background: #edbc4d; }
@media (max-width: 640px) {
  .site-head nav a:not(.nav-visit) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -10%, #39406e 0%, transparent 60%),
    var(--midnight);
  color: var(--paper);
  padding: clamp(4.5rem, 11vh, 8rem) clamp(1.4rem, 7vw, 6rem) clamp(5rem, 13vh, 9rem);
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  line-height: 1.04;
  font-weight: 480;
  max-width: 13.5em;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--honey);
}
.hero-sub {
  margin-top: 1.6rem;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--bloom);
}
.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 99px;
  background: var(--honey);
  color: var(--midnight);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.btn:hover { background: #edbc4d; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn.ghost {
  background: transparent;
  color: var(--bloom);
  box-shadow: inset 0 0 0 1.5px var(--berry);
}
.btn.ghost:hover { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--bloom); }

/* CSS berry cluster */
.berry-cluster {
  position: absolute;
  right: clamp(2rem, 9vw, 9rem);
  bottom: -3.2rem;
  width: 300px; height: 300px;
  opacity: 0.9;
}
.b {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--bloom) 0 18%, var(--berry) 30% 62%, var(--indigo) 100%);
  box-shadow: inset -8px -10px 22px rgba(20, 24, 46, 0.55);
}
.b::after {
  /* blossom-end star */
  content: "";
  position: absolute;
  left: 50%; top: 18%;
  width: 18%; height: 12%;
  transform: translateX(-50%);
  background: var(--midnight);
  border-radius: 50%;
  opacity: 0.55;
}
.b1 { width: 130px; height: 130px; left: 60px;  top: 30px; }
.b2 { width: 96px;  height: 96px;  left: 175px; top: 90px; }
.b3 { width: 74px;  height: 74px;  left: 30px;  top: 150px; }
.b4 { width: 58px;  height: 58px;  left: 150px; top: 185px; }
.b5 { width: 42px;  height: 42px;  left: 105px; top: 235px; }
.leaf {
  position: absolute;
  left: 118px; top: -6px;
  width: 74px; height: 34px;
  background: #6a7c52;
  border-radius: 0 100% 0 100%;
  transform: rotate(-28deg);
}
@media (max-width: 900px) { .berry-cluster { display: none; } }

/* ---------- ribbon ---------- */
.ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--honey-deep);
  border-block: 1px solid var(--honey-deep);
}
.ribbon > div {
  background: var(--honey);
  color: var(--midnight);
  padding: 1.05rem 1.4rem;
  font-size: 0.98rem;
}
.ribbon strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a3205;            /* solid dark gold-brown on honey — AA at this size */
  margin-bottom: 0.15rem;
}
.ribbon a {
  color: inherit;
  text-decoration-color: rgba(35, 41, 70, 0.4);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease-out,
              text-decoration-thickness 0.25s ease-out,
              text-underline-offset 0.25s ease-out;
}
/* honey-drip underline: thickens and eases downward on hover */
.ribbon a:hover {
  text-decoration-color: #4a3205;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* ---------- sections shared ---------- */
main section { padding: clamp(3.8rem, 9vh, 6.5rem) clamp(1.4rem, 7vw, 6rem); }
main h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  max-width: 18em;
  margin-bottom: 1.2rem;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: 2.4rem;
}
.about-grid h3 {
  font-size: 1.32rem;
  margin-bottom: 0.55rem;
  color: var(--indigo);
}
.about-grid p { color: var(--ink-soft); }
.upick-note {
  margin-top: 2.8rem;
  padding: 1.3rem 1.6rem;
  background: var(--paper-dim);
  border: 1px solid #e6e1d2;
  border-radius: 10px;
  max-width: 36em;
}

/* ---------- story ---------- */
.story {
  background: var(--indigo);
  color: var(--paper);
}
.story-inner { max-width: 36em; }
.story-lede {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--bloom);
  margin-bottom: 1.5rem;
}
.story p + p { margin-top: 1.1rem; }
.story-inner > p:not(.story-lede) { color: #d5dbee; }

/* ---------- gallery ---------- */
.gallery-note { color: var(--ink-soft); margin-bottom: 2rem; }
.gallery-note a, .reviews-link a {
  color: var(--honey-text);
  font-weight: 700;
  transition: color 0.18s ease-out;
}
.gallery-note a:hover, .reviews-link a:hover { color: var(--ink); }
/* Masonry: every tile keeps its photo's native aspect ratio — nothing crops. */
.photo-grid {
  columns: 3 280px;
  column-gap: 14px;
}
.ph {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--indigo);
  break-inside: avoid;
  margin-bottom: 14px;
}
/* native ratios of the six photos (prevents layout shift while they load) */
.ph-a { aspect-ratio: 1 / 1; }        /* bushes.jpg 640x640 */
.ph-b { aspect-ratio: 640 / 582; }    /* field.jpg */
.ph-c { aspect-ratio: 1 / 1; }        /* berries.jpg 640x640 */
.ph-d { aspect-ratio: 660 / 1174; }   /* honey.jpg (portrait) */
.ph-e { aspect-ratio: 3 / 4; }        /* upick.jpg 1080x1440 (full-body portrait) */
.ph-f { aspect-ratio: 1320 / 1032; }  /* haul.jpg */
.ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease-out;
}
/* fade-in on load is JS-gated so JS-off visitors always see the photos */
.js .ph img { opacity: 0; }
.js .ph img.is-loaded { opacity: 1; }
.ph:hover img { transform: scale(1.03); }
.ph figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 0.9rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(35, 41, 70, 0.82));
  transition: transform 0.3s var(--ease-out);
}
.ph:hover figcaption { transform: translateY(-2px); }

/* ---------- reviews ---------- */
.reviews { background: var(--paper-dim); }
.rating-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}
.stars { color: var(--honey-text); letter-spacing: 0.12em; font-size: 1.25rem; }
.stars.sm { font-size: 0.95rem; display: block; margin-bottom: 0.55rem; }

/* honest 4.8/5: muted base stars with a gold fill clipped to 96% */
.stars-partial {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.stars-base { color: #cfc8b4; }
.stars-fill {
  position: absolute;
  inset: 0;
  color: var(--honey-text);
  clip-path: inset(0 4% 0 0);
  transition: clip-path 0.9s var(--ease-out) 0.15s;
}
/* ink in the first time the section scrolls into view (JS adds .stars-in) */
.js .reviews:not(.stars-in) .stars-fill { clip-path: inset(0 100% 0 0); }
.pull-quote {
  max-width: 30em;
  margin-bottom: 2.8rem;
}
.pull-quote p {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--indigo);
}
.pull-quote cite, .review cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--honey-text);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
}
/* six cards = two clean rows of three; stops the 4+2 orphan row on wide screens */
@media (min-width: 1400px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}
.review {
  background: var(--paper);
  border: 1px solid #e6e1d2;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.review p { font-size: 0.98rem; color: var(--ink-soft); }
.reviews-link { margin-top: 2rem; }

/* ---------- closing ---------- */
.closing {
  background: var(--indigo);
  color: var(--paper);
}
.closing h2 { color: var(--paper); }
.closing p { max-width: 36em; color: #d5dbee; }
.closing .hero-cta { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--midnight);
  color: var(--bloom);
  padding: clamp(3rem, 7vh, 4.5rem) clamp(1.4rem, 7vw, 6rem) 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.foot-brand {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}
.site-foot a {
  color: var(--paper);
  text-decoration-color: var(--berry);
  transition: text-decoration-color 0.18s ease-out;
}
.site-foot a:hover { text-decoration-color: var(--honey); }
.site-foot p + p { margin-top: 0.7rem; }
.foot-fine {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--indigo);
  font-size: 0.85rem;
  color: var(--bloom);          /* was --berry (2.6:1 on midnight); bloom clears AA */
}
