/* ==========================================================================
   Nolan AgriTech, LLC — shared stylesheet
   ========================================================================== */

:root {
  --cream: #F7F3EC;
  --bg: #F0EBE1;
  --card: #FDFAF5;
  --earth: #2C2416;
  --earth-soft: #4A3F2C;
  --moss: #3D5A3E;
  --moss-dark: #2A3D2B;
  --moss-light: #5A7F5C;
  --wheat: #C8A96E;
  --wheat-light: #E8D5A8;
  --rust: #B84A2F;
  --mist: #8FA89B;
  --border: #D8CEBC;
  --text: #2C2416;
  --text-muted: #6B5F4C;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 12px rgba(44,36,22,0.08);
  --shadow-md: 0 8px 28px rgba(44,36,22,0.12);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--earth);
  line-height: 1.15;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

.eyebrow {
  font-family: 'DM Mono', 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.eyebrow.on-dark { color: var(--wheat); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.85rem 1.7rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--moss); color: var(--cream); }
.btn-primary:hover { background: var(--moss-dark); }
.btn-outline { border-color: var(--earth); color: var(--earth); background: none; }
.btn-outline:hover { background: var(--earth); color: var(--cream); }
.btn-outline.on-dark { border-color: var(--wheat); color: var(--wheat); }
.btn-outline.on-dark:hover { background: var(--wheat); color: var(--earth); }

/* ── NAV ── */
header.site-header {
  background: var(--earth);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--wheat);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--wheat);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.brand span { color: var(--cream); font-style: italic; font-size: 0.95rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wheat-light);
  padding: 0.5rem 0.9rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cream);
  border-bottom-color: var(--wheat);
}
.nav-cta {
  margin-left: 0.5rem;
  border: 1px solid var(--wheat);
  color: var(--wheat) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 3px;
}
.nav-cta:hover {
  background: var(--wheat);
  color: var(--earth) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--earth);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 2rem 1.5rem;
    display: none;
    border-bottom: 2px solid var(--wheat);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { margin-top: 0.5rem; text-align: center; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-dark) 55%, var(--earth) 100%);
  color: var(--cream);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C8A96E' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 720px; }
.hero h1 { font-size: 3rem; margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--wheat); }
.hero p.lead { font-size: 1.1rem; color: var(--wheat-light); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-dark) 60%, var(--earth) 100%);
  color: var(--cream);
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { color: var(--cream); font-size: 2.4rem; margin-bottom: 0.7rem; }
.page-hero p { color: var(--wheat-light); max-width: 620px; font-size: 1.02rem; }

/* ── CARDS / GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon { font-size: 1.8rem; margin-bottom: 0.9rem; display: block; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.section-label { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-label h2 { font-size: 2.1rem; margin-bottom: 0.8rem; }
.section-label p { color: var(--text-muted); font-size: 1.02rem; }

/* ── PRODUCT BLOCK (technology page) ── */
.product-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.8rem;
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-sm);
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
}
.product-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.product-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--moss);
  color: var(--cream);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
}
.product-tag.trade { background: var(--rust); }
.product-tag.clear { background: var(--wheat); color: var(--earth); }
.product-tag.trace { background: var(--moss-dark); }
.product-desc { color: var(--text-muted); max-width: 760px; margin-bottom: 1.6rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 2rem;
}
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 1.3rem;
  position: relative;
}
.feature-grid li::before {
  content: '→';
  position: absolute; left: 0; color: var(--moss); font-weight: 600;
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(200,169,110,0.25);
  padding-top: 1.8rem;
  margin-top: 2.2rem;
}
.stat-item label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  display: block;
  margin-bottom: 0.25rem;
}
.stat-item strong { font-size: 1.5rem; color: var(--wheat); font-weight: 400; font-family: 'DM Serif Display', serif; }

/* ── DIVIDER / DARK SECTION ── */
.section-dark {
  background: var(--earth);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: var(--wheat-light); }

/* ── LIST / SERVICES ── */
.service-row {
  display: flex;
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--wheat);
  background: var(--earth);
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-row h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.service-row p { color: var(--text-muted); font-size: 0.95rem; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--moss-dark), var(--earth));
  color: var(--cream);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 14px;
  margin: 0 2rem;
}
.cta-band h2 { color: var(--cream); font-size: 2rem; margin-bottom: 0.8rem; }
.cta-band p { color: var(--wheat-light); margin-bottom: 1.8rem; }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--earth);
  color: var(--wheat-light);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: var(--wheat);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.88rem;
  color: var(--wheat-light);
  margin-bottom: 0.55rem;
  opacity: 0.9;
}
.footer-grid a:hover { color: var(--cream); }
.footer-brand p { max-width: 320px; opacity: 0.75; font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid rgba(200,169,110,0.2);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ── FORM (contact) ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--moss);
}

.contact-info-card {
  background: var(--earth);
  color: var(--cream);
  border-radius: 14px;
  padding: 2.5rem;
}
.contact-info-card h3 { color: var(--wheat); font-size: 1.3rem; margin-bottom: 1.5rem; }
.contact-line { margin-bottom: 1.4rem; }
.contact-line label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.3rem;
}
.contact-line a, .contact-line span { color: var(--cream); font-size: 0.98rem; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -0.4rem;
  margin-bottom: 1.6rem;
}

/* ── PHOTOGRAPHY ── */
.hero, .page-hero {
  background-size: cover;
  background-position: center;
}

.photo-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin: 0 2rem;
  box-shadow: var(--shadow-md);
}
.photo-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,18,8,0.88));
  color: var(--cream);
  padding: 2rem 2.2rem 1.3rem;
}
.photo-caption .eyebrow { margin-bottom: 0.3rem; }
.photo-caption p { color: var(--wheat-light); font-size: 0.92rem; max-width: 520px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--card);
  border: 1px solid var(--border);
}
.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.photo-grid figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.photo-grid figcaption strong { color: var(--earth); display: block; margin-bottom: 0.15rem; font-family: 'DM Serif Display', serif; font-size: 1.02rem; font-weight: 400; }

.content-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 320px;
}
.content-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
