/* =========================================================
   NovaAgriculture — design tokens
   Palette: deep field green, harvest gold, soil brown, wheat cream
   Type: Fraunces (display/serif) + Work Sans (body/UI)
   ========================================================= */
:root {
  --green-deep:   #203C2B;
  --green-mid:    #33553D;
  --gold:         #C08A28;
  --gold-soft:    #E4BE72;
  --soil:         #5A3B26;
  --cream:        #F6F1E3;
  --cream-dim:    #EDE5D0;
  --ink:          #23241E;
  --ink-soft:     #565646;
  --line:         #D8CDAE;
  --white:        #FFFEFB;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a { color: var(--green-mid); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--soil); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-line { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn-line:hover { background: var(--green-deep); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-mark {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.5rem; color: var(--green-deep);
}
.brand-tag { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.02em; }
.main-nav { display: flex; gap: 20px; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 0.92rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--gold); color: var(--green-deep); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .main-nav {
    position: absolute; top: 82px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--green-deep); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green-deep);
  color: var(--cream);
  overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero-eyebrow { color: var(--gold-soft); font-weight: 600; margin-bottom: 14px; font-size: 0.95rem; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #D8E0D2; font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: 3px; width: 100%; height: 420px; object-fit: cover; }
.hero-figure::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold);
  border-radius: 3px; z-index: -1;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure img { height: 280px; }
}

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--soil); color: var(--cream); }
.stat-strip .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding: 34px 24px; }
.stat { text-align: left; min-width: 130px; }
.stat .num { font-family: 'Fraunces', serif; font-size: 2.1rem; color: var(--gold-soft); display: block; }
.stat .label { font-size: 0.85rem; color: #E4D9C4; }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head .kicker { color: var(--gold); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; display: block; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px; background: var(--white); transition: background 0.15s; }
.service-card:hover { background: var(--cream-dim); }
.service-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 2px; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; margin-bottom: 14px; }
.service-card a.more { font-weight: 600; color: var(--soil); }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-split img { border-radius: 3px; height: 460px; object-fit: cover; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } .about-split img { height: 280px; } .about-split .img-col { order: -1; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 2px; }
.gallery-grid img { height: 240px; width: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-size: 0.82rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.55)); color: #fff;
}
@media (max-width: 750px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Service detail page ---------- */
.service-detail-hero { background: var(--cream-dim); border-bottom: 1px solid var(--line); }
.service-detail-hero .container { padding: 46px 24px; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list li a {
  display: flex; justify-content: space-between; padding: 16px 4px; color: var(--ink); font-weight: 500;
}
.service-list li a:hover, .service-list li a.active { color: var(--gold); }
.detail-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
@media (max-width: 800px) { .detail-layout { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row .k { font-weight: 600; color: var(--green-deep); min-width: 110px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--green-deep); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px; font-family: inherit; font-size: 0.96rem;
  background: var(--white); color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.map-frame { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; height: 320px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.alert-success { background: #EAF3E4; border: 1px solid #9DBE86; color: #35562A; padding: 14px 18px; border-radius: 3px; margin-bottom: 20px; }
.alert-error { background: #F6E4E1; border: 1px solid #D79A8E; color: #7A2E20; padding: 14px 18px; border-radius: 3px; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #CBD6C4; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 56px 0 30px; }
.footer-grid > div { min-width: 0; }
.site-footer .contact-list li { font-size: 0.85rem; line-height: 1.5; word-break: break-word; overflow-wrap: break-word; }
.site-footer h4 { color: var(--gold-soft); font-family: 'Work Sans', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.site-footer a { color: #CBD6C4; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); color: #3A2607; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; padding: 40px 24px; flex-wrap: wrap; gap: 20px; }
.cta-band h3 { color: #3A2607; margin: 0; }
