/* Homepage interpretation of DESIGN.md. Keep the existing Dana typeface. */
.home-page {
  background: #fff;
  color: var(--ink);
  font-family: Dana, Tahoma, Arial, sans-serif;
  line-height: 1.75;
}

.home-page .container { width: min(100% - 48px, 1200px); }
.home-page .section-padding { padding-block: 80px; }
.home-page .bg-alt { background: var(--soft); border-block: 1px solid var(--line); }

/* Type and actions */
.home-page .btn {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  font-size: .9rem;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.home-page .btn:hover { transform: none; }
.home-page .btn-primary { color: #fff; background: var(--home-accent); }
.home-page .btn-primary:hover { background: var(--home-accent-hover); box-shadow: none; }
.home-page .btn-outline {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}
.home-page .btn-outline:hover { background: var(--soft); border-color: #cbd5e1; box-shadow: none; }
.home-page .section-label {
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--muted);
  background: none;
  border-radius: 0;
  font-size: .79rem;
  font-weight: 700;
}
.home-page .section-label::before {
  width: 18px;
  height: 1px;
  content: "";
  background: var(--home-accent);
}
.home-page .section-title {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.38;
  white-space: normal;
}
.home-page .section-sub {
  max-width: 690px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  white-space: normal;
}

/* Hero */
.home-page .hero-section {
  min-height: 0;
  padding: 80px 0 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.home-page .hero-section::before,
.home-page .hero-section::after,
.home-page .hero-bg,
.home-page .hero-overlay { display: none; }
.home-page .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.home-page .hero-copy { width: 100%; text-align: center; }
.home-page .signal-label {
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  color: var(--muted);
  background: none;
  border-radius: 0;
  font-size: .82rem;
  font-weight: 500;
}
.home-page .signal-label span {
  width: 7px;
  height: 7px;
  background: var(--home-accent);
  border-radius: 2px;
}
.home-page .hero-content h1 {
  max-width: 940px;
  margin-inline: auto;
  color: var(--ink);
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.37;
}
.home-page .hero-content .highlight { display: block; color: var(--ink); }
.home-page .hero-sub {
  max-width: 690px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}
.home-page .hero-ctas { justify-content: center; gap: 10px; margin-top: 28px; }
.home-page .hero-ctas .icon { width: 18px; height: 18px; }
.home-page .hero-stats {
  width: min(100%, 690px);
  margin: 48px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--home-shadow);
  text-align: right;
}
.home-page .stat-item { gap: 3px; padding: 16px 24px; }
.home-page .stat-item + .stat-item { border-color: var(--line); }
.home-page .stat-item strong { color: var(--ink); font-size: 1.08rem; }
.home-page .stat-item span { color: var(--muted); font-size: .79rem; }
.home-page .hero-visual {
  width: 100%;
  min-height: 0;
  height: clamp(340px, 35vw, 445px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--home-shadow);
}
.home-page .hero-visual img { filter: none; }
.home-page .hero-visual::after { background: linear-gradient(180deg, transparent 68%, rgba(17, 24, 39, .25)); }
.home-page .hero-visual figcaption {
  right: 16px;
  bottom: 16px;
  left: auto;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: none;
  box-shadow: var(--home-shadow);
}
.home-page .visual-marker { background: var(--home-accent); border-radius: 2px; }
.home-page .hero-visual figcaption strong { font-size: .83rem; }
.home-page .hero-visual figcaption small { color: var(--muted); font-size: .69rem; opacity: 1; }
.home-page .hero-visual figcaption a { margin-right: 20px; color: var(--home-accent-hover); font-weight: 700; }
.home-page .scroll-indicator { display: none; }

/* Farm introduction */
.home-page .about-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 80px; }
.home-page .about-text h2 {
  max-width: 650px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  letter-spacing: 0;
  line-height: 1.45;
}
.home-page .about-text p { max-width: 650px; color: var(--muted); line-height: 1.9; }
.home-page .about-text .lead { color: var(--body); font-size: 1rem; }
.home-page .about-text .lead strong { color: var(--ink); }
.home-page .about-features { gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.home-page .about-features li {
  min-height: 67px;
  padding: 13px 16px;
  color: var(--body);
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  font-size: .86rem;
}
.home-page .about-features li:nth-child(odd) { border-left: 1px solid var(--line); }
.home-page .about-features li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.home-page .about-features svg { color: var(--home-accent); stroke-width: 1.6; }
.home-page .about-text > .btn {
  margin-top: 24px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
.home-page .about-text > .btn:hover { background: var(--soft); border-color: #cbd5e1; }
.home-page .about-image { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--home-shadow); }
.home-page .about-image img { aspect-ratio: 4 / 4.6; }
.home-page .image-badge { right: 16px; bottom: 16px; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--home-shadow); }
.home-page .image-badge span { color: var(--ink); }
.home-page .image-badge small { color: var(--muted); }

/* Product routes */
.home-page .services-section { background: var(--soft); }
.home-page .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.home-page .service-card {
  min-height: 280px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--home-shadow);
  transition: border-color 180ms ease, background 180ms ease;
}
.home-page .service-card:hover,
.home-page .service-card:focus-within { transform: none; border-color: #aec4b0; box-shadow: var(--home-shadow); }
.home-page .card-icon,
.home-page .service-card:nth-child(n) .card-icon {
  width: 42px;
  height: 42px;
  color: var(--home-accent);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.home-page .card-icon .icon { width: 21px; height: 21px; }
.home-page .service-card h3 { margin: 24px 0 8px; color: var(--ink); font-size: 1.1rem; }
.home-page .service-card p { color: var(--muted); font-size: .88rem; line-height: 1.85; }
.home-page .card-link { gap: 7px; padding-top: 22px; color: var(--home-accent-hover); font-size: .84rem; font-weight: 700; }
.home-page .card-link:hover { color: var(--ink); }

/* Real farm imagery stays as documentary evidence. */
.home-page .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.home-page .gallery-item,
.home-page .gallery-item:nth-child(1),
.home-page .gallery-item:nth-child(4) {
  grid-column: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--home-shadow);
}
.home-page .gallery-item img { aspect-ratio: 4 / 3; }
.home-page .gallery-item:hover img { transform: scale(1.02); }
.home-page .gallery-overlay { background: rgba(29, 36, 47, .35); }
.home-page #lightbox-close,
.home-page #lightbox-prev,
.home-page #lightbox-next { border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--home-shadow); }

/* FAQ */
.home-page .faq-container {
  display: grid;
  grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr);
  align-items: start;
  column-gap: 64px;
  max-width: 1200px;
}
.home-page .faq-container > .section-label,
.home-page .faq-container > .section-title,
.home-page .faq-container > .section-sub { grid-column: 1; }
.home-page .faq-container > .section-label { grid-row: 1; }
.home-page .faq-container > .section-title { grid-row: 2; }
.home-page .faq-container > .section-sub { grid-row: 3; }
.home-page .faq-list { grid-column: 2; grid-row: 1 / span 4; gap: 8px; margin-top: 0; }
.home-page .faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--home-shadow); }
.home-page .faq-item.is-open { border-color: #bfd1c1; }
.home-page .faq-question { min-height: 64px; padding: 15px 20px; color: var(--ink); font-size: .91rem; font-weight: 500; }
.home-page .faq-icon { color: var(--home-accent-hover); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.home-page .faq-answer p { padding: 15px 20px 20px; color: var(--muted); border-color: var(--line); font-size: .89rem; line-height: 1.9; }

/* Contact and footer */
.home-page .contact-grid { gap: 16px; margin-top: 36px; }
.home-page .contact-info { gap: 12px; }
.home-page .contact-card,
.home-page .highlight-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--home-shadow); }
.home-page .contact-card { min-height: 96px; padding: 20px 24px; }
.home-page .contact-icon { color: var(--home-accent); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.home-page .contact-card h3 { color: var(--ink); }
.home-page .contact-value { color: var(--muted); }
.home-page .contact-value:hover { color: var(--home-accent-hover); }
.home-page .highlight-box { min-height: 204px; padding: 24px; }
.home-page .highlight-box h3 { color: var(--ink); font-size: 1.12rem; }
.home-page .highlight-box ul { gap: 8px; margin: 16px 0 24px; }
.home-page .highlight-box li { color: var(--muted); font-size: .88rem; }
.home-page .highlight-box li .icon { color: var(--home-accent); }

@media (max-width: 1100px) {
  .home-page .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .about-grid { gap: 48px; }
}

@media (max-width: 900px) {
  .home-page .about-grid { grid-template-columns: 1fr; }
  .home-page .about-image { width: min(100%, 620px); }
  .home-page .faq-container { column-gap: 28px; }
}

@media (max-width: 768px) {
  .home-page .container { width: min(100% - 32px, 1200px); }
  .home-page .section-padding { padding-block: 64px; }
  .home-page .hero-section { padding: 64px 0; }
  .home-page .hero-content { gap: 32px; }
  .home-page .hero-content h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1.42; }
  .home-page .hero-sub { font-size: 1rem; }
  .home-page .hero-stats { margin-top: 36px; }
  .home-page .stat-item + .stat-item { border-top: 0; border-right: 1px solid var(--line); }
  .home-page .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .home-page .stat-item { padding: 14px; }
  .home-page .stat-item strong { font-size: .9rem; }
  .home-page .stat-item span { font-size: .72rem; }
  .home-page .hero-visual { height: 340px; }
  .home-page .services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; padding: 0; overflow: visible; }
  .home-page .service-card { width: auto; min-width: 0; min-height: 260px; padding: 20px; }
  .home-page .gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 30px 0 0; padding: 0; overflow: visible; }
  .home-page .gallery-item,
  .home-page .gallery-item:nth-child(1),
  .home-page .gallery-item:nth-child(4) { width: auto; min-width: 0; flex: none; }
  .home-page .gallery-item img { aspect-ratio: 1 / 1; }
  .home-page .faq-container { display: block; }
  .home-page .faq-list { margin-top: 28px; }
  .home-page .contact-grid { grid-template-columns: 1fr; }
  .home-page .contact-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .home-page .container { width: min(100% - 28px, 1200px); }
  .home-page .hero-section { padding: 56px 0 48px; }
  .home-page .hero-content h1 { font-size: clamp(2.15rem, 9vw, 2.8rem); }
  .home-page .hero-ctas { flex-direction: column; }
  .home-page .hero-ctas .btn { width: 100%; }
  .home-page .hero-stats { grid-template-columns: 1fr; text-align: center; }
  .home-page .stat-item + .stat-item { border-top: 1px solid var(--line); border-right: 0; }
  .home-page .hero-visual { height: 300px; }
  .home-page .hero-visual figcaption { right: 10px; bottom: 10px; left: 10px; }
  .home-page .hero-visual figcaption a { display: none; }
  .home-page .about-features { grid-template-columns: 1fr; }
  .home-page .about-features li:nth-child(odd) { border-left: 0; }
  .home-page .about-features li + li { border-top: 1px solid var(--line); }
  .home-page .services-grid { grid-template-columns: 1fr; }
  .home-page .service-card { min-height: 0; }
  .home-page .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .contact-info { grid-template-columns: 1fr; }
}
