/* Brownhill Farms — base styles */

:root {
  --bg: oklch(0.972 0.008 85);
  --bg-alt: oklch(0.94 0.012 85);
  --ink: oklch(0.24 0.012 70);
  --ink-soft: oklch(0.32 0.012 70);
  --muted: oklch(0.5 0.012 70);
  --green: oklch(0.48 0.09 145);
  --rust: oklch(0.52 0.09 45);
  --green-light: oklch(0.85 0.05 145);
  --green-dim: oklch(0.72 0.07 145);
  --paper: oklch(0.98 0.006 85);
  --panel-text: oklch(0.8 0.008 85);
  --near-black: oklch(0.15 0.02 70);
  --lightbox-bg: oklch(0.18 0.02 70);
  --cta-bg: #234b41;
  --cta-text: oklch(0.98 0.01 145);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', Helvetica, sans-serif;
}

* { box-sizing: border-box; }

img, video { max-width: 100%; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--rust); }

::selection { background: var(--green); color: var(--bg); }

.bhf-eyebrow-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
  text-shadow: 0 1px 12px oklch(0.15 0.02 70 / 0.7);
  background: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-block;
}

/* Nav */
.bhf-nav-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-family: Newsreader, serif;
  display: block;
}
.bhf-nav-item:hover,
.bhf-nav-item.is-active { color: var(--green); }
.bhf-nav-label { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.bhf-nav-item.is-active .bhf-nav-label { border-bottom-color: var(--green); }

.bhf-cta-btn {
  padding: 18px 36px;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  width: 270px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bhf-cta-btn:hover { background: var(--ink); color: var(--paper); }

.bhf-tour-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: zoom-in;
  filter: saturate(0.95);
  display: block;
}
.bhf-tour-img:hover { filter: saturate(1.1); }

.bhf-toggle {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: none;
  border-bottom: 1px solid oklch(0.48 0.09 145 / 0.4);
  background: none;
  padding: 0 0 4px;
  font-weight: 500;
}
.bhf-toggle:hover { color: var(--rust); border-bottom-color: var(--rust); }

.bhf-footer-link {
  cursor: pointer;
  font-family: Newsreader, serif;
  font-size: 20px;
  color: var(--ink);
}
.bhf-footer-link:hover { color: var(--green); }

.bhf-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.bhf-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.bhf-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bhf-hamburger.is-open span:nth-child(2) { opacity: 0; }
.bhf-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.bhf-mobile-nav { display: none; }
.bhf-mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 102px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 20px 32px;
  border-top: 1px solid oklch(0.24 0.012 70 / 0.12);
  background: var(--bg);
  overflow-y: auto;
  z-index: 49;
}
.bhf-mobile-nav .bhf-nav-item { padding: 18px 4px; font-size: 26px; }

.bhf-bio-toggle-block { display: none; }
.bhf-bio-toggle-block.is-open { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }

.bhf-lightbox { display: none; }
.bhf-lightbox.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(0.18 0.02 70 / 0.94);
  align-items: center;
  justify-content: center;
  padding: 56px;
  cursor: zoom-out;
}
.bhf-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bhf-lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.9 0.01 85);
}

/* Responsive */
@media (max-width: 860px) {
  .bhf-container, .bhf-hdr { padding-left: 24px !important; padding-right: 24px !important; }
}

@media (max-width: 700px) {
  .bhf-nav-desktop { display: none !important; }
  .bhf-hamburger { display: flex !important; }
  .bhf-container, .bhf-hdr { padding-left: 20px !important; padding-right: 20px !important; }
  .bhf-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .bhf-stats-grid > div { border-right: 1px solid oklch(0.24 0.012 70 / 0.12) !important; border-bottom: 1px solid oklch(0.24 0.012 70 / 0.12) !important; padding: 26px 18px !important; min-height: auto !important; }
  .bhf-stats-grid > div:nth-child(2n) { border-right: none !important; }
  .bhf-stats-grid > div:nth-last-child(-n+2) { border-bottom: none !important; }
  .bhf-2col { grid-template-columns: 1fr !important; gap: 44px !important; }
  .bhf-3col { grid-template-columns: 1fr !important; }
  .bhf-3col > div { padding: 0 !important; }
  .bhf-sticky { position: static !important; top: auto !important; }
  .bhf-tour-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .bhf-bio-row { grid-template-columns: 1fr !important; gap: 28px !important; }
  .bhf-cta-btn { width: 100% !important; }
  .bhf-footer-top { flex-direction: column !important; align-items: flex-start !important; gap: 44px !important; }
  .bhf-footer-top nav { align-self: flex-start !important; flex-wrap: wrap; }
}
