/* ==========================================================================
   Lee's Bees — main stylesheet
   One stylesheet for the whole site. Colors, fonts, and spacing are defined
   as variables below so they can be changed in one place.
   ========================================================================== */

:root {
  /* Colors (from the Lee's Bees logo: navy + honey gold) */
  --navy: #26336b;
  --navy-dark: #1b2550;
  --gold: #f0b429;
  --gold-soft: #fdf6e3;
  --amber: #8a5a00;
  --bg: #faf6ee;
  --surface: #ffffff;
  --text: #2c2820;
  --muted: #6b6257;
  --line: #e5dcc9;

  /* Badge colors */
  --ok-text: #1c6b31;
  --ok-bg: #e7f5ea;
  --out-text: #9c2420;
  --out-bg: #fae9e8;
  --soon-text: #8a5a00;
  --soon-bg: #fdf0cf;

  /* Type */
  --font-body: "Source Sans 3", Arial, sans-serif;
  --font-heading: "Archivo", Arial, sans-serif;

  /* Layout */
  --content-width: 1080px;
  --radius: 10px;
  --space: 1.25rem;
}

/* ---- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.4em; }

/* Homepage hero may run a touch larger than the interior page titles */
.hero h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.12; text-wrap: balance; }

p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 20px;
}

main { padding-block: 2rem 3rem; }

.lead { font-size: 1.25rem; }
.muted { color: var(--muted); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Header & navigation ------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 58px; width: auto; }

@media (max-width: 400px) {
  .brand img { height: 50px; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  background: var(--surface);
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  min-height: 44px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover { background: var(--gold-soft); color: var(--navy); }

.site-nav a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

/* Mobile navigation */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav { width: 100%; }

  /* Menu is collapsed only when JavaScript is available to open it */
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; padding-block: 0.5rem; }
  .site-nav a { padding: 0.8rem 0.75rem; }
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--navy);
  min-height: 44px;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--navy); }
.btn-secondary:hover { background: var(--gold-soft); color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }

/* ---- Pollination contact actions ---------------------------------------- */
.pollination-actions { margin-top: 1rem; align-items: center; }
.pollination-actions .btn-call { font-size: 1.05rem; padding: 0.8rem 1.5rem; }

@media (max-width: 520px) {
  .pollination-actions { flex-direction: column; align-items: stretch; }
  .pollination-actions .btn { width: 100%; text-align: center; }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---- Notices (seasonal announcements) ------------------------------------ */

.notice {
  background: var(--gold-soft);
  border-left: 6px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.notice > :last-child { margin-bottom: 0; }
.notice strong:first-child { color: var(--amber); }

/* ---- Cards --------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space);
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(38, 51, 107, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(38, 51, 107, 0.13);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  padding: 14px;
}

.card img.cover { object-fit: cover; padding: 0; height: 190px; }

.card-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }

.card-body h3, .card-body h2 { margin-top: 0; font-size: 1.15rem; }

.card-body p { flex: 1; font-size: 0.95rem; margin-bottom: 0.75rem; }

.card a.card-link { font-weight: 700; }

/* ---- Availability badges -------------------------------------------------- */

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.badge-available { background: var(--ok-bg); color: var(--ok-text); }
.badge-soldout { background: var(--out-bg); color: var(--out-text); }
.badge-soon { background: var(--soon-bg); color: var(--soon-text); }

/* ---- Product pages -------------------------------------------------------- */

.breadcrumb { font-size: 0.95rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1.75rem;
  list-style: none;
}

.subnav a {
  display: block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.subnav a:hover { background: var(--gold-soft); }
.subnav a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.product-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

.product-media {
  position: sticky;
  top: 1rem;
}

.product-media img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  object-fit: contain;
}

/* The product jar/comb/pollen photo — keep it modest so it does not dominate */
.product-media img:first-of-type { max-width: 230px; }

@media (max-width: 760px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-media { position: static; max-width: 320px; margin-inline: auto; }
}

/* Details list (floral source, color, flavor, ...) */
.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.details dt { font-weight: 700; color: var(--navy); }
.details dd { margin: 0; }

@media (max-width: 500px) {
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: 0.6rem; }
}

/* ---- Contact page --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space);
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-card h3, .contact-card h2 { margin-top: 0; font-size: 1.1rem; }
.contact-card p:last-child { margin-bottom: 0; }

/* Primary contact block: the one place the business phone number appears */
.contact-primary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0 2rem;
  font-size: 1.2rem;
}
.contact-primary p { margin: 0.2rem 0; }
.contact-primary a { font-weight: 700; }

/* ---- Contact form ---------------------------------------------------------- */

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1rem;
  margin: 1.5rem 0 1rem;
  max-width: 640px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.contact-form .req { font-weight: 400; font-size: 0.85rem; color: var(--muted); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
}

.contact-form .field-note {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.contact-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0 0 1em;
}
.contact-form legend { font-weight: 700; color: var(--navy); padding: 0 0.35rem; }
.contact-form .radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 1.5rem 0 0;
  min-height: 44px;
}
.contact-form .radio-label input { width: 1.15rem; height: 1.15rem; }

/* Honeypot field: visually removed, still present for spam bots */
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-status { min-height: 1.5em; font-weight: 600; }
.form-status-ok { color: var(--ok-text); }
.form-status-error { color: var(--out-text); }

.privacy-note { font-size: 0.95rem; }

.person {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.person img { border-radius: var(--radius); border: 1px solid var(--line); width: 180px; }

.person-info { flex: 1; min-width: 240px; }
.person-info h3 { margin-top: 0; }

/* ---- Figures -------------------------------------------------------------- */

figure { margin: 1.75rem 0; text-align: center; }
figure img {
  display: block;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }

/* Honey-house photo: display the approved crop at its natural aspect,
   scaled down and centered. No further cropping or zooming. */
.figure-honeyhouse img {
  width: 100%;
  max-width: 680px;
  height: auto;
  margin-inline: auto;
}
.figure-honeyhouse figcaption {
  margin-top: 0.4rem;
  font-size: 0.82rem;
}

/* Honey-house pair (About page): two matched landscape cards — same width,
   same 3:2 aspect ratio, tops and bottoms aligned, centered on the page.
   honey-house.jpeg is already 3:2 (no crop); honey_harvest.jpeg is 4:3 and
   gets a light top/bottom crop via object-fit: cover so the two cards match,
   keeping its honey boxes and frames in frame. On mobile the pair wraps and
   stacks vertically, keeping the same card style. */
.honey-pair {
  display: flex;
  gap: var(--space);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.honey-pair .figure-honeyhouse {
  margin: 1.75rem 0;
  width: 420px;
  max-width: 100%;
}
.honey-pair .figure-honeyhouse img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

/* Person portraits (Jeffrey / Hye-Sook): keep proportional, never crop or over-enlarge */
.person img {
  width: 200px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
/* Desktop only (image beside text): nudge the photo down toward the upper-middle
   of the paragraph so it feels balanced, not top-heavy. Removed once stacked. */
@media (min-width: 520px) {
  .person img { margin-top: 6px; }
}

/* "The next generation of Lee's Bees" (About page): two matched 4:5 photo cards.
   Both images are cropped to the same portrait ratio via object-fit: cover;
   object-position keeps the important content (Wayland + open hive; Willow's
   face, hands, and frog) in frame. */
.kids-title { text-align: center; margin: 1.75rem 0 0; }
.kids-photos {
  display: flex;
  gap: var(--space);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.kids-photos figure { margin: 0.75rem 0; width: 220px; max-width: 100%; }
.kids-photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.kids-photos .kid-wayland { object-position: 80% 50%; }

/* ---- Press / featured-in list --------------------------------------------- */

.press-list { list-style: none; padding: 0; margin: 1rem 0; }

.press-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.press-list img { width: auto; max-height: 40px; }

/* ---- Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #e9e4d8;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  padding-block: 2.25rem;
}

.site-footer h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-block: 1rem;
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Homepage hero copy --------------------------------------------------- */

.hero-copy .btn-row { margin-bottom: 0.5rem; }

.secondary-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  margin-top: 0.25rem;
}

/* Credibility strip beneath the hero */
.credibility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin: 1.25rem 0 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
}
.credibility span { display: inline-flex; align-items: center; }
.credibility span + span::before {
  content: "\00B7";
  color: var(--gold);
  margin-right: 1.25rem;
  margin-left: -0.75rem;
}

/* ---- Section headers ------------------------------------------------------ */

.section-lead { max-width: 60ch; color: var(--muted); }

/* ---- Homepage feature bands (pollination / bees) -------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(38, 51, 107, 0.08);
  margin: 1.5rem 0;
}

.feature .feature-media { height: 100%; min-height: 260px; }
.feature .feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature .feature-body { padding: 1.5rem 1.75rem; }
.feature .feature-body h2 { margin-top: 0; }
.feature.feature-reverse .feature-media { order: 2; }

/* Honey section: image panel kept at a fixed size (matching the visual weight of the
   text panel); the photo is shown in full at its native aspect ratio via object-fit:
   contain, letterboxed on a neutral background rather than cropped or stretched. */
.feature.feature-reverse {
  grid-template-columns: 43% 57%;
  align-items: center;
}
.feature.feature-reverse .feature-media {
  height: auto;
  min-height: 0;
  aspect-ratio: 678 / 540;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gold-soft);
}
.feature.feature-reverse .feature-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature .feature-media { min-height: 200px; }
  .feature.feature-reverse .feature-media { order: 0; }
  .feature.feature-reverse .feature-media {
    min-height: 0;
    aspect-ratio: auto;
    max-height: 300px;
  }
}

/* ---- Seasonal status blocks ----------------------------------------------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space);
  padding: 0;
  margin: 1.25rem 0 2rem;
  list-style: none;
}

.status-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.status-block h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.status-block p { margin: 0; }
.status-block .status-items { font-weight: 600; color: var(--navy); }

/* ---- Bee Shepherd's Year timeline ----------------------------------------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
}

.timeline .when {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}
.timeline .what { margin: 0; }

@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---- Blockquote (bee shepherd) -------------------------------------------- */

blockquote.pull {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--gold);
  font-size: 1.15rem;
  color: var(--navy);
  font-style: italic;
}
blockquote.pull footer { font-style: normal; font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; }

/* ---- Press cards ---------------------------------------------------------- */

.press-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space);
  padding: 0;
  margin: 1.25rem 0;
  list-style: none;
}
.press-cards li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.press-cards .outlet { font-weight: 700; color: var(--navy); display: block; }
.press-cards .year { color: var(--muted); font-size: 0.9rem; }

/* ---- Accessibility -------------------------------------------------------- */

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