/* Tempel Farms — Version 4: clean light layout with some bold photo bands */

:root {
  --green: #245c28;
  --green-deep: #1c371d;
  --green-dark: #101c10;
  --gold: #b18433;
  --gold-lite: #d4b56a;
  /* Darker gold for small text: at least 5:1 on white, cream and the light tan. */
  --gold-text: #86601f;
  --bg: #ffffff;
  --bg-alt: #f7f4ec;
  --cream: #fbf8f1;
  --text: #1a1a1a;
  --text-soft: #3f3f3c;
  --line: #e0d8c6;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --max: 72rem;
}

*, *::before, *::after { 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 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 0.75rem; top: -100%; z-index: 300;
  background: var(--green-dark); color: #fff; padding: 0.6rem 0.9rem; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.wrap { width: min(100% - 2.25rem, var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.25rem, 44rem); margin-inline: auto; }

/* Header — large logo, white, phone */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
  padding: 0.7rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
}
.logo { display: block; line-height: 0; text-decoration: none; }
.logo img { width: 196px; height: auto; }
@media (min-width: 80rem) {
  .logo img { width: 268px; }
}

.nav-checkbox {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
}
.nav-button {
  display: inline-flex; align-items: center; gap: 0.45rem;
  cursor: pointer; font-weight: 600; font-size: 0.9rem;
  color: var(--green-deep); border: 2px solid var(--green-deep);
  padding: 0.4rem 0.7rem; background: #fff; border-radius: 2px; line-height: 1;
}
.nav-button-bars {
  display: block; width: 1rem; height: 2px; background: var(--green-deep);
  box-shadow: 0 -5px 0 var(--green-deep), 0 5px 0 var(--green-deep);
}
.site-nav { display: none; flex-basis: 100%; }
.nav-checkbox:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.4rem 0 0.15rem; }
.site-nav a {
  display: block; padding: 0.8rem 0.15rem; text-decoration: none;
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] {
  color: var(--green-deep);
  box-shadow: inset 3px 0 0 var(--gold);
  padding-left: 0.65rem;
}
.header-phone {
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.header-phone:hover { color: var(--gold-text); }

@media (min-width: 64rem) {
  .nav-button { display: none; }
  .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { display: flex; gap: 0.2rem 1.05rem; padding: 0; align-items: center; }
  .site-nav a { border-bottom: 2px solid transparent; padding: 0.45rem 0; font-size: 0.9rem; }
  .site-nav a[aria-current="page"] {
    box-shadow: none; padding-left: 0; border-bottom-color: var(--gold);
  }
  .site-nav a:hover, .site-nav a:focus-visible {
    color: var(--green-deep); border-bottom-color: var(--gold);
  }
  .header-phone { font-size: 0.95rem; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .logo img { width: 210px; }
}

/* Buttons — solid dark-green call buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.95rem 1.5rem; border-radius: 2px; line-height: 1.2;
  border: 2px solid transparent; letter-spacing: 0.02em; font-size: 1.02rem;
}
.btn-green {
  background: var(--green-deep); color: #fff; border-color: var(--green-deep);
}
.btn-green:hover, .btn-green:focus-visible {
  background: var(--green); border-color: var(--green); color: #fff;
}
.btn-gold {
  background: var(--gold); color: var(--green-dark); border-color: var(--gold);
}
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--gold-lite); border-color: var(--gold-lite); color: var(--green-dark);
}
.btn-outline {
  background: transparent; color: var(--green-deep); border-color: var(--green-deep);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--green-deep); color: #fff;
}
.btn-light {
  background: transparent; color: #fff; border-color: #fff;
}
.btn-light:hover, .btn-light:focus-visible {
  background: #fff; color: var(--green-dark);
}
/* Dark-green call button on a dark photo: white ring so it stays readable */
.photo-band .btn-green,
.hero .btn-green {
  box-shadow: 0 0 0 1px #fff;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

/* Split hero */
.split-hero {
  display: grid;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.split-copy {
  padding: 2.5rem 1.25rem;
  display: flex; flex-direction: column; justify-content: center;
}
.split-copy-inner { width: min(100%, 38rem); margin: 0 auto; }
@media (min-width: 40rem) {
  .split-copy { padding: 3.75rem 2rem; }
}
@media (min-width: 60rem) {
  .split-hero { grid-template-columns: 1fr 1fr; min-height: 36rem; }
  .split-copy { padding: 4.25rem 3.5rem 4.25rem 0; }
  .split-copy-inner {
    width: 100%;
    max-width: 36rem;
    margin: 0 0 0 auto;
    padding-right: 2rem;
    padding-left: max(1.125rem, calc((100vw - var(--max)) / 2));
  }
}
.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-text); font-weight: 700;
}
.split-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  line-height: 1.1; margin: 0 0 0.7rem; color: var(--green-dark);
}
.split-hero h1::after {
  content: ""; display: block; width: 3.5rem; height: 3px;
  background: var(--gold); margin-top: 0.95rem;
}
.split-hero .lede { margin: 0; font-size: 1.12rem; color: var(--text-soft); max-width: 36rem; }
.split-photo { background: #1a1a1a; min-height: 22rem; overflow: hidden; }
.split-photo img,
.split-photo picture { width: 100%; height: 100%; }
.split-photo picture { display: block; }
.split-photo img { object-fit: cover; object-position: 50% 42%; min-height: 22rem; }
.split-photo img.pos-bale-off { object-position: 50% 42%; }
@media (min-width: 60rem) {
  .split-photo { min-height: 100%; }
  .split-photo img { min-height: 36rem; }
}

/* Page title */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.15rem;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.4vw, 3.1rem);
  margin: 0; font-weight: 700; line-height: 1.12; color: var(--green-dark);
}
.page-hero h1::after {
  content: ""; display: block; width: 3.5rem; height: 3px;
  background: var(--gold); margin-top: 0.8rem;
}

/* About banner — crop to sky + machine, no text on the photo */
.about-banner {
  position: relative; height: min(42vw, 22rem); min-height: 14rem;
  background: #0a1008; overflow: hidden;
}
.about-banner picture, .about-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.about-banner picture { display: block; }
.about-banner img { object-fit: cover; object-position: 62% 38%; }

/* Photo bands — gradient fades to fully clear (no seam) */
.photo-band {
  position: relative; color: #fff;
  min-height: 28rem; display: flex; align-items: flex-end;
  background: #0a1008; overflow: hidden;
}
.photo-band picture, .photo-band-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.photo-band picture { display: block; }
.photo-band-img { object-fit: cover; object-position: 62% 40%; }
.photo-band-img.pos-swather { object-position: 50% 58%; }
.photo-band-overlay {
  position: relative; z-index: 1; width: 100%;
  background: linear-gradient(
    to top,
    rgba(8, 12, 6, 0.9) 0%,
    rgba(8, 12, 6, 0.62) 32%,
    rgba(8, 12, 6, 0.28) 62%,
    rgba(8, 12, 6, 0) 100%
  );
  padding: 8rem 0 2.75rem;
}
.photo-band h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  margin: 0 0 0.9rem; font-weight: 700; line-height: 1.15;
  text-shadow: none;
}
.photo-band h2::after {
  content: ""; display: block; width: 3.5rem; height: 3px;
  background: var(--gold); margin-top: 0.65rem;
}
.photo-band p { margin: 0 0 1rem; max-width: 40rem; font-size: 1.08rem; }
.photo-band p:last-child { margin-bottom: 0; }

/* Slogan closer — large type only, no small text over the sky */
.slogan-band { min-height: 30rem; }
.slogan-band .photo-band-overlay { padding: 10rem 0 3rem; }
.slogan-band h2 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  max-width: 16ch;
  line-height: 1.1;
}

/* Hay for sale hero */
.hero {
  position: relative; min-height: 22rem;
  display: flex; align-items: flex-end;
  background: var(--green-dark); color: #fff; overflow: hidden;
}
.sale-hero { min-height: 22rem; }
@media (min-width: 56rem) {
  .hero, .sale-hero { min-height: 34rem; }
}
.hero picture, .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero picture { display: block; }
.hero-img { object-fit: cover; object-position: 50% 50%; }
.hero-img.pos-dusk { object-position: 50% 62%; }
.hero-overlay {
  position: relative; z-index: 1; width: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 16, 8, 0.9) 0%,
    rgba(10, 16, 8, 0.58) 34%,
    rgba(10, 16, 8, 0.22) 64%,
    rgba(10, 16, 8, 0) 100%
  );
  padding: 7rem 0 2.6rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1; margin: 0 0 0.7rem;
}
.hero .lede {
  margin: 0; max-width: 36rem;
  font-size: 1.2rem; color: #fff; font-weight: 600;
}

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2, .block-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  margin: 0 0 0.95rem; font-weight: 700; line-height: 1.15; color: var(--green-dark);
}
.section h2::after, .block-title::after {
  content: ""; display: block; width: 3.5rem; height: 3px;
  background: var(--gold); margin-top: 0.6rem;
}
.section p { margin: 0 0 1rem; }
.section p:last-child { margin-bottom: 0; }

.size-grid {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: grid; gap: 1.1rem;
}
.size-grid li {
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 28, 16, 0.05);
  padding: 1.6rem 1.3rem 1.45rem;
}
.size-index {
  display: block; font-size: 0.75rem; letter-spacing: 0.16em;
  color: var(--gold-text); font-weight: 700; margin-bottom: 0.45rem;
}
.size-name {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  color: var(--green-dark);
}
@media (min-width: 40rem) {
  .size-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery { display: grid; gap: 1.15rem; margin-top: 1.6rem; }
.gallery figure {
  margin: 0; background: #ddd; overflow: hidden; aspect-ratio: 3 / 4;
}
.gallery picture { display: block; width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .pos-field { object-position: 50% 58%; }
.gallery .pos-windrow { object-position: 50% 45%; }
.gallery .pos-bale { object-position: 50% 40%; }
.gallery figure:only-child { max-width: 28rem; }
@media (min-width: 40rem) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery.three { grid-template-columns: repeat(3, 1fr); }
}

.media-split {
  display: grid; gap: 1.75rem; align-items: center; margin-top: 1.5rem;
}
.farm-video {
  width: 100%; background: #111; border: 1px solid var(--line);
}
@media (min-width: 50rem) {
  .media-split { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
}

.price-note { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; color: var(--green-dark); }
.note { margin: 1.4rem 0 0; }
.about-text p { font-size: 1.15rem; }
.about-layout { display: grid; gap: 2rem; }
@media (min-width: 50rem) {
  .about-layout { max-width: 44rem; }
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list > li {
  background: var(--cream); border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 1.35rem 1.35rem 1.4rem; margin: 0 0 1rem;
}
.contact-label {
  display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-text); margin-bottom: 0.35rem;
}
.contact-value { font-size: 1.32rem; font-weight: 700; margin: 0; line-height: 1.35; }
.contact-value a { text-underline-offset: 0.16em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.address { font-style: normal; font-size: 1.15rem; line-height: 1.5; margin: 0; }

/* Footer — light, with logo */
.site-footer {
  background: var(--cream);
  color: var(--text);
  border-top: 3px solid var(--gold);
  padding: 2.75rem 0 2.4rem;
}
.site-footer a { color: var(--green-deep); text-underline-offset: 0.18em; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold-text); }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 50rem) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2.5rem; align-items: start; }
}
.footer-logo img { width: 200px; height: auto; }
.footer-place { margin: 0.55rem 0 0; color: var(--green-deep); letter-spacing: 0.04em; }
.footer-col h2 {
  font-family: var(--font); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-text); margin: 0 0 0.7rem; font-weight: 700;
}
.footer-col h2::after { display: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 0.4rem; }
.footer-col a { text-decoration: none; font-weight: 600; }
.footer-col a:hover { text-decoration: underline; }

main { display: block; }


/* Large photo tiles — layout idea from Bales Hay Sales, Tempel photos and labels only */
.feature-tiles {
  display: grid;
  gap: 0.65rem;
  background: #fff;
  padding: 0 0 0.65rem;
}
@media (min-width: 40rem) {
  .feature-tiles { grid-template-columns: 1fr 1fr; }
}
.feature-tile {
  position: relative;
  display: block;
  min-height: 16.5rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #1a1a1a;
}
@media (min-width: 40rem) {
  .feature-tile { min-height: 22rem; }
}
.feature-tile picture,
.feature-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.feature-tile picture { display: block; }
.feature-tile img { object-fit: cover; }
.feature-tile .pos-bale { object-position: 50% 38%; }
.feature-tile .pos-dusk { object-position: 50% 55%; }
.feature-tile .pos-hand { object-position: 28% 48%; }
.feature-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 4rem 1.25rem 1.2rem;
  background: linear-gradient(to top, rgba(8,12,6,0.78) 0%, rgba(8,12,6,0.35) 55%, rgba(8,12,6,0) 100%);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .feature-tile img { transition: transform 0.45s ease; }
  .feature-tile:hover img { transform: scale(1.04); }
}


/* Version 4 additions */

/* Fade-in on scroll — only when JS adds .has-reveal, and never if motion is reduced */
.has-reveal .js-reveal {
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.has-reveal .js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Home video sits in the split photo panel, over the still poster */
.split-photo { position: relative; }
.split-photo .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 92%;
  display: none;
}
.split-photo.is-playing .hero-video { display: block; }

/* Sticky call button — phones only */
.call-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: block;
  background: var(--green-deep);
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1rem max(0.9rem, env(safe-area-inset-bottom));
  letter-spacing: 0.02em;
  box-shadow: 0 -4px 18px rgba(16, 28, 16, 0.18);
}
.call-sticky:hover, .call-sticky:focus-visible { color: #fff; background: var(--green); }
@media (min-width: 48rem) {
  .call-sticky { display: none; }
}
@media (max-width: 47.99rem) {
  body { padding-bottom: 4.5rem; }
}

/* Preview banner on the Home video preview page only */
.preview-banner {
  background: var(--green-deep);
  color: #fff;
  font-size: 0.92rem;
  padding: 0.7rem 0;
  text-align: center;
}
.preview-banner p { margin: 0; }
.preview-banner a { color: #fff; }

/* Quote form */
#quote { scroll-margin-top: 12rem; }
@media (min-width: 64rem) {
  #quote { scroll-margin-top: 18rem; }
}
.quote-intro { margin-bottom: 1.5rem; }
.quote-form {
  display: grid;
  gap: 1.05rem;
  margin-top: 0.5rem;
}
.quote-form .field { display: flex; flex-direction: column; gap: 0.35rem; }
.quote-form .field-row {
  display: grid;
  gap: 1.05rem;
}
@media (min-width: 40rem) {
  .quote-form .field-row { grid-template-columns: 1fr 1fr; }
}
.quote-form label, .quote-form .field-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-dark);
}
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form select,
.quote-form textarea {
  font: inherit;
  font-size: 1.0625rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.quote-form textarea { min-height: 7rem; resize: vertical; }
.quote-form input:focus-visible,
.quote-form select:focus-visible,
.quote-form textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}
.quote-form .choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
}
.quote-form .choices label {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.quote-preview-notice {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  color: var(--green-dark);
  font-weight: 600;
}
.quote-preview-notice:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
.form-note { margin: 0; font-size: 0.95rem; color: var(--text-soft); }

/* On the farm gallery */
.farm-gallery {
  display: grid;
  gap: 1.25rem 0.85rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 56rem) {
  .farm-gallery { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.1rem; }
}
.farm-gallery figure { margin: 0; }
.farm-gallery .gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.farm-gallery .thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1a1a;
}
.farm-gallery .is-small .thumb { aspect-ratio: 4 / 3; }
.farm-gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.farm-gallery .pos-field { object-position: 50% 58%; }
.farm-gallery .pos-windrow { object-position: 50% 45%; }
.farm-gallery .pos-bale { object-position: 50% 40%; }
.farm-gallery .pos-hand { object-position: 28% 48%; }
.farm-gallery .pos-swather { object-position: 50% 58%; }
.farm-gallery figcaption {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-dark);
}
@media (prefers-reduced-motion: no-preference) {
  .farm-gallery .thumb img { transition: transform 0.45s ease; }
  .farm-gallery .gallery-item:hover img,
  .farm-gallery .gallery-item:focus-visible img { transform: scale(1.03); }
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 72rem);
  max-height: 96vh;
}
.lightbox::backdrop { background: rgba(10, 14, 8, 0.88); }
.lightbox-inner {
  position: relative;
  color: #fff;
  text-align: center;
}
.lightbox img {
  max-width: min(96vw, 72rem);
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.lightbox-caption {
  margin: 0.75rem 0 0;
  font-weight: 600;
}
.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  background: var(--green-deep);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-close:focus-visible { background: var(--green); }

/* Delivery section */
.delivery-section h2 { margin-top: 0; }
.delivery-section .actions { margin-top: 1.25rem; }
#delivery { scroll-margin-top: 12rem; }
@media (min-width: 64rem) {
  #delivery { scroll-margin-top: 18rem; }
}
.delivery-grid {
  list-style: none;
  margin: 1.6rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.delivery-grid li {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 28, 16, 0.05);
  padding: 1.45rem 1.3rem 1.3rem;
}
.delivery-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.delivery-grid p { margin: 0; color: var(--text); }
@media (min-width: 40rem) {
  .delivery-grid { grid-template-columns: 1fr 1fr; }
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 400;
}

/* Preview-only draft wording banner (remove before publish) */
.draft-wording-banner {
  background: #6b140c;
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1rem;
  margin: 0;
}

/* Caring for our land / Farming practices */
.practice-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
}
@media (min-width: 40rem) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
}
.practice-card {
  background: #fff;
  border: 2px solid var(--line, #cfc6b4);
  border-radius: 0.4rem;
  padding: 1.1rem 1.15rem 1.2rem;
}
.practice-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  color: var(--green-dark);
}
.practice-card p { margin: 0; }
.planned-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff8e8;
  color: #6b140c;
  border: 2px solid #b18433;
  border-radius: 0.25rem;
  padding: 0.15rem 0.45rem;
  margin: 0 0 0.45rem;
}
.practice-photo {
  margin: 0 0 1.5rem;
}
.practice-photo img, .practice-photo picture img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  display: block;
}
.care-land { margin-top: 2rem; }
.lab-soon {
  background: #fbf8f1;
  border: 2px solid var(--line, #cfc6b4);
  border-radius: 0.4rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0 0;
  font-weight: 700;
}

.care-land, #where-were-headed, .practice-grid { scroll-margin-top: 6.5rem; }
#caring-for-our-land { scroll-margin-top: 6.5rem; }

/* ---- QA fixes, Nov 22 2026 ---- */

/* 1. The lab-results line sits in a cream box on the hero photo: dark text so it can be read. */
.hero .lab-soon {
  display: inline-block;
  color: var(--green-dark);
  background: var(--cream);
  border-color: var(--gold);
  padding: 0.55rem 0.85rem;
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

/* 6. Compact header on phones and tablets: logo, phone and Menu on one row. */
@media (max-width: 63.99rem) {
  .header-inner { padding: 0.45rem 0; gap: 0.4rem 0.75rem; flex-wrap: wrap; }
  .logo { order: 0; }
  .logo img { width: 150px; }
  .header-phone { order: 1; margin-left: auto; font-size: 0.9rem; padding: 0.55rem 0.1rem; }
  .nav-button { order: 2; padding: 0.55rem 0.7rem; }
  .site-nav { order: 3; }
  #quote, #delivery { scroll-margin-top: 8rem; }
}
@media (max-width: 39.99rem) {
  .logo img { width: 118px; }
  .header-phone { font-size: 0.86rem; }
  .nav-button { font-size: 0.86rem; padding: 0.5rem 0.6rem; }
  html { scroll-padding-top: 6.5rem; }
  #quote, #delivery, .care-land, #where-were-headed, .practice-grid, #caring-for-our-land, #buy-online { scroll-margin-top: 6.5rem; }
}
@media (max-width: 22rem) {
  .logo img { width: 100px; }
  .header-phone { font-size: 0.8rem; }
}

/* 5. Photo viewer: Close sits above the photo, the caption has its own solid bar, and the page behind is fully dimmed. */
.lightbox::backdrop { background: rgb(8, 12, 7); opacity: 1; }
.lightbox {
  max-width: min(96vw, 72rem);
  max-height: 100vh;
  max-height: 100dvh;
  overflow: visible;
}
.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--green-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lightbox-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.45rem;
  background: var(--green-dark);
}
.lightbox-close {
  position: static;
  min-height: 44px;
  min-width: 88px;
  padding: 0.55rem 1rem;
  border: 2px solid #fff;
  border-radius: 2px;
  background: var(--green-deep);
}
.lightbox img {
  max-height: calc(100vh - 9.5rem);
  max-height: calc(100dvh - 9.5rem);
  max-width: 100%;
  background: #000;
}
.lightbox-caption {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--green-dark);
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  text-align: center;
}
.lightbox-caption:empty { display: none; }

/* 7. Farming practices photos: keep them a sensible height inside the column on wider screens. */
@media (min-width: 40rem) {
  .practice-photo img, .practice-photo picture img {
    height: clamp(18rem, 40vw, 30rem);
    object-fit: cover;
    object-position: 50% 50%;
  }
}

/* 10. Buy online: one card per lot, with a big Reserve button for each grade. */
.buy-online { scroll-margin-top: 8rem; }
.buy-intro { max-width: none; }
.buy-lots {
  list-style: none;
  margin: 1.4rem 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.buy-lot {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 28, 16, 0.05);
  padding: 1.3rem 1.2rem 1.3rem;
}
.buy-lot h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
  color: var(--green-dark);
}
.buy-lot .buy-lot-note { margin: 0 0 0.9rem; color: var(--text-soft); }
.buy-grade {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}
.buy-grade:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.buy-grade-price { margin: 0; font-weight: 700; color: var(--green-dark); font-size: 1.05rem; }
.btn.btn-reserve {
  max-width: none;
  width: 100%;
  min-height: 52px;
  justify-content: center;
  text-align: center;
  font-size: 1.05rem;
}
.buy-other { margin: 0.4rem 0 0; color: var(--text-soft); }
.buy-grades.is-single { grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  /* One centered column (Zane, 4:35 PM): cards stack, buttons sit side by side inside a card. */
  .buy-grades { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .buy-grade, .buy-grade:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
}

/* Compact header on computers too (about 110px at 1280): smaller logo, menu and phone on one row. */
@media (min-width: 64rem) {
  .header-inner { padding: 0.4rem 0; }
  .logo img, .logo picture img { width: 140px; }
  html { scroll-padding-top: 8rem; }
  #quote, #delivery, .buy-online, .care-land, #where-were-headed, .practice-grid, #caring-for-our-land { scroll-margin-top: 8rem; }
}

/* Grades as their own panels under the hay heading (Zane, Nov 22, 2026, 6:35 PM MT). One column on every screen. */
.buy-grades, .buy-grades.is-single { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.buy-grade, .buy-grade:first-of-type {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: var(--cream);
  padding: 0.9rem 1rem 1rem;
  margin: 0;
}
.buy-lot h3 { font-size: 1.45rem; }
.buy-grade-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.1rem 1rem; }
.buy-grade-name { margin: 0; font-family: var(--display); font-size: 1.18rem; line-height: 1.25; color: var(--green-dark); }
.buy-grade-desc { margin: 0 0 0.3rem; color: var(--text-soft); font-size: 1rem; line-height: 1.55; }
@media (min-width: 48rem) {
  .buy-grades { grid-template-columns: 1fr; }
  .buy-grade, .buy-grade:first-of-type { padding: 1rem 1.2rem 1.1rem; }
  .buy-grade .btn-reserve { width: auto; min-width: 16rem; align-self: flex-start; }
}
.hay-types { max-width: 44rem; margin: 1.5rem auto 2rem; }
.hay-types h2 { margin: 0 0 0.6rem; }
.hay-types ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.hay-types li { margin: 0 0 0.35rem; }

/* Large squares: the final bill uses the actual scale weight (Zane, 6:53 PM). */
.buy-lot .scale-note {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  color: #101c10;
  background: #fff;
  border-left: 4px solid #86601f;
  border-radius: 0.3rem;
  padding: 0.6rem 0.85rem;
  margin: 0.2rem 0 0.9rem;
}

.buy-lot-weight{margin:.2rem 0 .6rem;font-weight:600}
