/* ============================================================
   MAKAYA FARMS — Design System
   Direction: Cocoa Harvest (warm, terracotta-led)
   ============================================================ */

:root {
  --bg: #F7F4EE;
  --cream: #FFFFFF;
  --ink: #161310;
  --ink-soft: rgba(22, 19, 16, 0.72);
  --ink-faint: rgba(22, 19, 16, 0.5);
  --rust: #A8693B;
  --rust-dark: #7E4E27;
  --leaf: #0E4A39;
  --leaf-dark: #093528;
  --gold: #A8823C;
  --gold-dark: #7A5E2A;
  --hairline: rgba(22, 19, 16, 0.14);
  --hairline-strong: rgba(22, 19, 16, 0.26);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: 54px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

em { font-style: italic; color: var(--leaf); font-weight: 400; }

p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
}

.lot-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf-dark);
}

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

.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s ease;
}

.btn-primary {
  background: var(--rust);
  color: var(--cream);
  border: 1px solid var(--rust);
}
.btn-primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.wordmark span { color: var(--rust); }

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.footer-logo { height: 64px; width: auto; display: block; margin-bottom: 12px; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.7;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  border-bottom-color: var(--rust);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  background: var(--rust);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.nav-cta:hover { background: var(--rust-dark); }

.nav-toggle { display: none; }

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

.hero {
  padding: 80px 48px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-top: 20px; }
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  max-width: 46ch;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-art {
  border-radius: var(--radius-md);
  height: 340px;
  background: linear-gradient(150deg, var(--leaf-dark), var(--rust));
  display: flex;
  align-items: flex-end;
  padding: 24px;
  overflow: hidden;
  position: relative;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Rotating estate hero — crossfade between slides */
.hero-art.is-slideshow img {
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.hero-art.is-slideshow img.active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-art.is-slideshow img { transition: none; }
}
.hero-art-tag {
  position: relative;
  z-index: 1;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

/* ---------- Section label ---------- */

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 40px;
}
.section-label .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  white-space: nowrap;
}
.section-label h2 { white-space: nowrap; }
.section-label .rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

section { padding: 64px 48px; }
section.tight { padding: 32px 48px 64px; }

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.product-card {
  background: var(--bg);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.product-card:hover {
  background: var(--cream);
  transform: none;
}

.product-card .card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--hairline);
}
.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 { margin-top: 14px; font-size: 21px; }
.product-card .card-desc {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 6px;
  flex: 1;
}

.status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  width: fit-content;
}
.status.available { background: rgba(92, 122, 78, 0.16); color: var(--leaf-dark); }
.status.domestic { background: rgba(193, 89, 44, 0.14); color: var(--rust-dark); }
.status.seasonal { background: rgba(217, 164, 65, 0.22); color: var(--gold-dark); }
.status.coming-soon { background: rgba(22,19,16,0.08); color: var(--ink-soft); }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.price { font-family: var(--font-mono); font-size: 13px; }
.price .unit { opacity: 0.5; font-size: 11px; }

.card-featured {
  background: var(--bg);
  color: var(--ink);
}
.card-featured .lot-tag { color: var(--leaf-dark); }

/* ---------- Category filter pills (catalogue page) ---------- */

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.filter-pill.active, .filter-pill:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ---------- Forms ---------- */

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* Custom select styling with chevron */
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23161310' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Two-column form rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.form-card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  padding: 32px;
}
.contact-aside-card {
  background: var(--rust);
  color: var(--cream);
  padding: 24px 28px;
  align-self: start;
}
.contact-aside-card .ca-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,253,248,0.18);
}
.contact-aside-card .ca-row:last-child { border-bottom: none; }
.contact-aside-card .ca-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,253,248,0.7);
  display: block;
  margin-bottom: 4px;
}
.contact-aside-card .ca-value { font-size: 14px; }
.contact-aside-card .ca-value a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(255,253,248,0.4); }
.contact-aside-card .ca-value a:hover { border-bottom-color: var(--cream); }

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 48px 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.footer-grid p, .footer-grid a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
.footer-grid a:hover { color: var(--rust); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.social-icons { display: flex; gap: 12px; margin-top: 12px; }
.social-icons a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--leaf));
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-size: 13px;
}

/* ---------- Catalogue category sections ---------- */
.cat-section { margin-bottom: 56px; }
.cat-section:last-child { margin-bottom: 0; }
.cat-section .section-label { margin-bottom: 24px; }
.cat-section .section-label .num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}

/* ---------- Product detail page ---------- */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding: 24px 48px 0;
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--rust); }

.product-detail {
  padding: 40px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.product-detail .pd-image {
  background: var(--hairline);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-detail .pd-image img { width: 100%; height: 100%; object-fit: cover; }

.pd-lot-ticket {
  border: 1px solid var(--hairline);
  background: var(--cream);
  margin-top: 28px;
}
.pd-lot-ticket .lt-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
}
.pd-lot-ticket .lt-row:last-child { border-bottom: none; }
.lt-label { color: var(--ink-faint); }
.lt-value { font-weight: 500; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--hairline-strong);
}
.qty-control button {
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.qty-control button:hover { background: var(--hairline); }
.qty-control input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--hairline-strong);
  border-right: 1px solid var(--hairline-strong);
  height: 38px;
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--cream);
  color: var(--ink);
}
.qty-unit { font-size: 13px; color: var(--ink-faint); }

.pd-actions { display: flex; gap: 14px; margin-top: 24px; }

.pd-related { padding: 0 48px 80px; }

/* ---------- Inquiry cart (sticky bar + drawer) ---------- */

#inquiry-bar {
  position: sticky;
  bottom: 0;
  left: 0; right: 0;
  background: var(--ink);
  color: var(--cream);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  z-index: 50;
  font-size: 14px;
}
#inquiry-bar.visible { display: flex; }
#inquiry-bar .ib-count { font-family: var(--font-mono); color: var(--gold); }
#inquiry-bar button {
  background: var(--cream);
  color: var(--ink);
  border: none;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 22px;
  cursor: pointer;
}

#inquiry-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--bg);
  border-left: 1px solid var(--hairline-strong);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
#inquiry-drawer.open { transform: translateX(0); }
#inquiry-drawer .id-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--hairline);
}
#inquiry-drawer .id-close {
  background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink);
  line-height: 1;
}
#inquiry-drawer .id-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.id-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.id-item .id-remove {
  background: none; border: none; color: var(--rust); font-size: 12px; cursor: pointer;
  font-family: var(--font-mono);
}
#inquiry-drawer .id-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--hairline);
}
#inquiry-drawer .id-footer p {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.overlay-scrim {
  position: fixed; inset: 0;
  background: rgba(28, 27, 23, 0.4);
  z-index: 90;
  display: none;
}
.overlay-scrim.visible { display: block; }

/* ---------- AI chat widget ---------- */

.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 94px;
  height: 58px;
  padding: 0 22px;
  border-radius: 29px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  z-index: 60;
  transition: transform 0.15s ease;
}
.chat-launcher:hover { transform: scale(1.04); }
.chat-launcher svg { width: 18px; height: 18px; fill: var(--gold); }

.chat-panel {
  position: fixed;
  bottom: 94px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 70;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: var(--ink);
  color: var(--cream);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header strong { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.chat-header .chat-sub { font-size: 12px; color: rgba(255,253,248,0.6); display:block; margin-top:2px; }
.chat-close { background: none; border: none; color: var(--cream); font-size: 22px; cursor: pointer; line-height: 1; }

.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { background: var(--cream); border: 1px solid var(--hairline); align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-msg.user { background: var(--leaf); color: var(--cream); align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-msg.typing { color: var(--ink-faint); font-style: italic; }

.chat-input-row { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--hairline); background: var(--bg); }
.chat-input-row input {
  flex: 1; font-family: var(--font-body); font-size: 14px;
  padding: 11px 14px; border: 1px solid var(--hairline-strong);
  border-radius: 22px; background: var(--cream); color: var(--ink);
}
.chat-input-row input:focus { outline: none; border-color: var(--leaf); }
.chat-input-row button {
  background: var(--leaf); color: var(--cream); border: none;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-input-row button svg { width: 18px; height: 18px; fill: var(--cream); }

@media (max-width: 560px) {
  .chat-launcher { right: 80px; padding: 0 16px; font-size: 13px; }
  .chat-launcher .cl-text { display: none; }
  .chat-panel { right: 12px; bottom: 84px; height: 70vh; }
}

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  z-index: 60;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float .wa-label {
  position: absolute;
  right: 70px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.wa-float:hover .wa-label { opacity: 1; }

@media (max-width: 560px) {
  .wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float .wa-label { display: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .wrap, .hero, section, .site-nav, .site-footer { padding-left: 24px; padding-right: 24px; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  h1 { font-size: 38px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav {
    flex-wrap: wrap;
    gap: 12px 0;
  }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 20px;
    justify-content: flex-start;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
  .nav-links { gap: 16px; flex-wrap: wrap; }
}

/* ---------- Global overflow & mobile correctness ---------- */

html, body { overflow-x: hidden; max-width: 100%; }
* { min-width: 0; }
img, svg, video { max-width: 100%; height: auto; }

/* Section label: stop forcing nowrap that pushes the rule off-screen */
@media (max-width: 700px) {
  .section-label { flex-wrap: wrap; gap: 8px 14px; }
  .section-label h2 { white-space: normal; }
  .section-label .num { white-space: normal; }
  .section-label .rule { display: none; }
}

/* Contact form & any 2-column inline grid: collapse to one column on small screens */
@media (max-width: 820px) {
  section[style*="grid-template-columns:1.4fr 1fr"],
  section[style*="grid-template-columns:1.3fr 1fr"],
  section[style*="grid-template-columns:1fr 1fr"],
  section .wrap[style*="grid-template-columns:1fr 1fr"],
  .wrap[style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }
  .wrap[style*="grid-template-columns:1fr 1fr"] > div { margin-bottom: 32px; }
  .wrap[style*="grid-template-columns:1fr 1fr"] > div:last-child { margin-bottom: 0; }
  .form-card { margin-bottom: 24px; }
  .contact-aside-card { margin-top: 0; }
  .wrap[style*="max-width:760px"] { max-width: 100% !important; }
}

/* Stack the two floating buttons vertically on phones so they don't overlap */
@media (max-width: 560px) {
  .wa-float { bottom: 16px; right: 16px; }
  .chat-launcher { bottom: 84px; right: 16px; }
  .chat-panel { bottom: 150px; right: 12px; left: 12px; width: auto; max-width: none; height: 65vh; }
}

/* Product detail two-column -> one column on mobile */
@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr !important; gap: 28px; padding-left: 24px; padding-right: 24px; }
}

/* ============================================================
   HARVEST PAGE — story timeline + photo gallery + lightbox
   ============================================================ */

/* Hero band specific to the harvest page */
.harvest-hero {
  position: relative;
  padding: 88px 48px 72px;
  background: var(--leaf-dark);
  color: var(--cream);
  overflow: hidden;
}
.harvest-hero .eyebrow { color: var(--gold); }
.harvest-hero h1 {
  margin-top: 18px;
  font-size: 52px;
  line-height: 1.04;
  max-width: 16ch;
  color: var(--cream);
}
.harvest-hero h1 em { font-style: italic; color: var(--gold); }
.harvest-hero .hero-sub {
  margin-top: 24px;
  max-width: 56ch;
  color: rgba(255,253,248,0.82);
  font-size: 18px;
  line-height: 1.7;
}
.harvest-hero .hero-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255,253,248,0.7);
}
.harvest-hero .hero-meta strong { color: var(--gold); font-weight: 500; }

/* Intro / lead prose */
.harvest-lead { max-width: 760px; }
.harvest-lead p { font-size: 17px; line-height: 1.85; margin-top: 18px; }
.harvest-lead p:first-child { margin-top: 0; }

/* Year markers down the page */
.year-block { margin-bottom: 18px; }
.year-tag {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 0;
  position: relative;
}
.year-tag .yr {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  color: var(--leaf);
  line-height: 1;
  letter-spacing: -0.01em;
}
.year-tag .yr-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  white-space: nowrap;
}
/* Hairline spine that runs from the year label across the page */
.year-tag::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
  margin-left: 4px;
  transform: translateY(-6px);
}

/* Two-column year layout: content + standing banner rail */
.year-layout {
  display: grid;
  grid-template-columns: 1fr 232px;
  gap: 40px;
  align-items: start;
}
.year-layout.no-banner { grid-template-columns: 1fr; }
.year-main { min-width: 0; }
.year-banner {
  position: sticky;
  top: 32px;
}
.year-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(22,19,16,0.10);
}
.year-banner figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .year-layout { grid-template-columns: 1fr; gap: 28px; }
  .year-banner {
    position: static;
    max-width: 260px;
    margin: 0 auto;
  }
}

/* Galleries inside the two-column year layout get 2 columns (narrower main) */
.year-main .harvest-gallery { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) {
  .year-main .harvest-gallery { grid-template-columns: 1fr; }
}

/* Photo gallery grid — uniform tiles, rows always align */
.harvest-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.gal {
  position: relative;
  overflow: hidden;
  background: var(--hairline);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
}
.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;   /* keep heads/faces, which sit high in standing-person photos */
  display: block;
  transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1);
}
.gal:hover img { transform: scale(1.045); }
.gal figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--cream);
  background: linear-gradient(to top, rgba(9,53,40,0.92), rgba(9,53,40,0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gal:hover figcaption, .gal:focus-within figcaption { opacity: 1; transform: translateY(0); }

/* Feature tile — one image per gallery may span two columns for rhythm */
.gal.feature { grid-column: span 2; aspect-ratio: 16 / 9; }

/* Legacy span/aspect classes from earlier markup are neutralised:
   the uniform grid above controls layout. Kept so existing HTML
   doesn't need rewriting. */
.gal.span-4, .gal.span-5, .gal.span-6,
.gal.span-7, .gal.span-8, .gal.span-12,
.gal.tall, .gal.wide, .gal.land { grid-column: auto; aspect-ratio: 4 / 5; }

@media (max-width: 760px) {
  .harvest-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal.feature { grid-column: span 2; aspect-ratio: 3 / 2; }
  .gal figcaption { opacity: 1; transform: none; font-size: 11.5px; padding: 10px; }
}
@media (max-width: 460px) {
  .harvest-gallery { grid-template-columns: 1fr; }
  .gal, .gal.feature { aspect-ratio: 4 / 5; grid-column: auto; }
}

/* School-building callout (2024) */
.harvest-callout {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin-top: 24px;
  max-width: 720px;
}
.harvest-callout p { font-size: 17px; line-height: 1.8; }

/* Lightbox */
.lb-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9,53,40,0.94);
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lb-scrim.open { display: flex; }
.lb-scrim img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-cap {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  text-align: center;
  color: rgba(255,253,248,0.85);
  font-size: 14px;
  padding: 0 24px;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,253,248,0.1);
  border: 1px solid rgba(255,253,248,0.25);
  color: var(--cream);
  width: 46px; height: 46px;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,253,248,0.22); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb-close { top: 14px; right: 14px; }
}

/* ============================================================
   MOBILE COMMERCIAL PASS — most visitors are on phones.
   Goal: products visible fast, order actions obvious, no clutter.
   ============================================================ */

@media (max-width: 760px) {
  /* Tighter section padding so content (esp. products) sits higher */
  section { padding: 40px 22px; }
  section.tight { padding: 24px 22px 40px; }

  /* Nav: keep it usable, logo + links + order CTA */
  .site-nav { padding: 16px 22px; flex-wrap: wrap; gap: 10px 16px; }
  .nav-cta { padding: 11px 18px; font-size: 13px; }

  /* Hero headline scales down so it doesn't eat the whole first screen */
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .hero-sub { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { flex: 1; text-align: center; }
}

@media (max-width: 560px) {
  /* Order bar: full-width, big tap target, clear of floating buttons */
  #inquiry-bar {
    padding: 12px 16px;
    bottom: 0;
  }
  #inquiry-bar button {
    padding: 13px 18px;
    font-size: 14px;
  }
  /* Lift floating buttons so the sticky order bar never hides them */
  body:has(#inquiry-bar.visible) .wa-float { bottom: 78px; }
  body:has(#inquiry-bar.visible) .chat-launcher { bottom: 146px; }

  /* Product cards: roomier image, bigger tap area, clear price/CTA */
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-card { padding-bottom: 4px; }
  .product-card .card-image { aspect-ratio: 4 / 3; }
  .product-card h3 { font-size: 22px; }
  .card-footer { font-size: 14px; }
  .card-footer span:last-child { color: var(--rust); font-weight: 500; }

  /* Catalogue: shrink hero so products appear sooner */
  .catalogue-hero h1, header h1 { font-size: 32px; line-height: 1.1; }

  /* Filter pills: horizontal scroll strip instead of a tall stack */
  .filter-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-pill { flex: 0 0 auto; white-space: nowrap; }
}

/* ---------- Harvest page on mobile ---------- */
@media (max-width: 760px) {
  /* Year header: stack number over label, no awkward spine gap */
  .year-tag { flex-wrap: wrap; gap: 4px 12px; align-items: center; }
  .year-tag .yr { font-size: 40px; }
  .year-tag::after { display: none; }   /* the page-wide rule looks broken when wrapped */
  .year-block {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);  /* clean divider instead of the spine */
  }

  /* Standing banner: show it ABOVE the photos on mobile (anchors the year first),
     and keep it readable, not full-bleed tall */
  .year-layout { display: flex; flex-direction: column; gap: 20px; }
  .year-banner { order: -1; max-width: 220px; margin: 0 auto; position: static; }

  /* Gallery captions: keep them but quieter, always legible */
  .gal figcaption {
    opacity: 1; transform: none;
    font-size: 11px; padding: 8px 10px;
    background: linear-gradient(to top, rgba(9,53,40,0.88), rgba(9,53,40,0));
  }
  /* 2 columns on mobile = far less scrolling through photos */
  .harvest-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 380px) {
  .harvest-gallery, .year-main .harvest-gallery { grid-template-columns: 1fr; }
}

/* ---------- Per-section commercial CTA band (used on harvest) ---------- */
.shop-cta {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--leaf-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.shop-cta p {
  color: var(--cream);
  font-size: 15px;
  margin: 0;
  max-width: 46ch;
}
.shop-cta .btn-primary { white-space: nowrap; }
@media (max-width: 560px) {
  .shop-cta { padding: 18px; }
  .shop-cta p { font-size: 14px; }
  .shop-cta .btn-primary { width: 100%; text-align: center; }
}
