/* Dairy Tech Waikato — bespoke styles
   Steel + paddock + cream. Industrial / agricultural. */

:root {
  --bg: #f4f1ea;
  --bg-soft: #e8e3d5;
  --bg-dark: #22384a;
  --bg-darker: #16273b;
  --line: rgba(34, 56, 74, 0.12);
  --steel: #22384a;
  --steel-2: #34526b;
  --paddock: #5a8243;
  --paddock-2: #6b9c4f;
  --rust: #c46e2c;
  --text: #1a2a39;
  --text-2: #46586a;
  --text-dim: #7a8694;
  --text-on-dark: #f0ece0;
  --sans: 'Inter', system-ui, sans-serif;
  --container: 1280px;
  --r: 4px;
  --r-lg: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.accent { color: var(--rust); }

/* TOPBAR */
.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; padding: 14px 28px; background: rgba(244, 241, 234, 0.96); backdrop-filter: blur(12px); border-bottom: 2px solid var(--steel); }
.brand img { height: 42px; width: auto; }
.nav-primary { display: none; gap: 28px; font-size: 14px; }
.nav-primary a { color: var(--text-2); font-weight: 500; transition: color .2s; }
.nav-primary a:hover { color: var(--rust); }
.nav-primary .nav-cta { padding: 10px 20px; background: var(--steel); color: var(--bg); border-radius: var(--r); font-weight: 600; transition: background .2s; }
.nav-primary .nav-cta:hover { background: var(--rust); }
.nav-call { display: none; padding: 10px 18px; background: var(--rust); color: white; border-radius: var(--r); font-weight: 700; font-size: 14px; }
.nav-call:hover { background: #d8842b; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: 0; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }
.mobile-menu { position: fixed; top: 72px; left: 0; right: 0; z-index: 25; display: flex; flex-direction: column; background: var(--bg); border-bottom: 2px solid var(--steel); padding: 12px 28px; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-menu .mobile-cta { color: var(--rust); }
@media (min-width: 980px) { .nav-primary { display: flex; } .nav-call { display: inline-flex; } .nav-toggle { display: none; } .mobile-menu { display: none !important; } }

/* HERO */
.hero { position: relative; padding: clamp(80px, 9vw, 130px) 28px clamp(80px, 9vw, 130px); overflow: hidden; background: var(--bg-dark); color: var(--text-on-dark); }
.hero-pattern { position: absolute; inset: 0; opacity: 0.20; pointer-events: none; background-image: repeating-linear-gradient(45deg, rgba(244,241,234,0.05) 0 1px, transparent 1px 24px), repeating-linear-gradient(-45deg, rgba(244,241,234,0.05) 0 1px, transparent 1px 24px); }
.hero-inner { max-width: var(--container); margin: 0 auto; position: relative; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.30em; font-size: 12px; color: var(--rust); margin: 0 0 24px; font-weight: 700; }
.hero-title { font-family: var(--sans); font-size: clamp(40px, 6vw, 84px); font-weight: 700; line-height: 1.0; letter-spacing: -0.02em; margin: 0 0 28px; color: var(--text-on-dark); }
.hero-sub { max-width: 720px; font-size: clamp(16px, 1.4vw, 19px); color: rgba(240, 236, 224, 0.85); margin: 0 0 36px; line-height: 1.65; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.cta-primary, .cta-ghost { display: inline-flex; align-items: center; padding: 16px 28px; border-radius: var(--r); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; transition: background .15s, color .15s, transform .15s; }
.cta-primary { background: var(--rust); color: white; }
.cta-primary:hover { background: #d8842b; transform: translateY(-1px); }
.cta-ghost { color: var(--text-on-dark); border: 1px solid rgba(240, 236, 224, 0.4); }
.cta-ghost:hover { background: rgba(240, 236, 224, 0.08); border-color: var(--rust); color: var(--rust); }
.hero-stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-top: 32px; border-top: 1px solid rgba(240, 236, 224, 0.18); max-width: 920px; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { color: var(--rust); font-weight: 700; font-size: 22px; }
.hero-stats span { font-size: 12px; color: rgba(240, 236, 224, 0.6); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; }

/* SECTION HEADS */
.section-head { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; margin-right: 0; text-align: left; max-width: none; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.30em; font-size: 11px; color: var(--rust); margin: 0 0 16px; font-weight: 700; }
.section-title { font-family: var(--sans); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--text); }
.section-blurb { font-size: 17px; color: var(--text-2); margin: 0; line-height: 1.55; }
.lede { font-size: 19px; color: var(--text); line-height: 1.6; font-weight: 400; }
.lede strong { color: var(--rust); }

/* CAPABILITY (sheds + structures) */
.capability { padding: clamp(72px, 9vw, 120px) 28px; max-width: var(--container); margin: 0 auto; }
.structures { padding: clamp(72px, 9vw, 120px) 28px; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.structures .cap-grid { max-width: var(--container); margin: 0 auto; }
.cap-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cap { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); transition: border-color .2s, transform .2s, box-shadow .2s; }
.cap:hover { border-color: var(--rust); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(34, 56, 74, 0.08); }
.cap h3 { font-weight: 700; font-size: 19px; margin: 0 0 12px; color: var(--steel); letter-spacing: -0.01em; }
.cap p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.6; }

/* COMPONENTS */
.components { padding: clamp(72px, 9vw, 120px) 28px; max-width: var(--container); margin: 0 auto; }
.comp-grid { display: flex; flex-wrap: wrap; gap: 12px; max-width: 920px; margin: 0 auto; justify-content: center; }
.comp-tag { padding: 14px 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--steel); transition: border-color .2s, color .2s, transform .2s; }
.comp-tag:hover { border-color: var(--rust); color: var(--rust); transform: translateY(-1px); }

/* COMMERCIAL CALLOUT */
.commercial { padding: clamp(72px, 9vw, 120px) 28px; background: var(--paddock); color: white; }
.commercial-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.commercial .section-eyebrow { color: rgba(255,255,255,0.95); }
.commercial .section-title { color: white; margin-bottom: 24px; }
.commercial .lede { color: rgba(255,255,255,0.92); }
.commercial p { color: rgba(255,255,255,0.85); }

/* PROCESS */
.process { padding: clamp(72px, 9vw, 120px) 28px; }
.process-list { max-width: var(--container); margin: 0 auto; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.process-list li { padding: 32px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, transform .2s; }
.process-list li:hover { border-color: var(--rust); transform: translateY(-2px); }
.step-num { font-weight: 700; font-size: 36px; color: var(--rust); margin: 0 0 12px; line-height: 1; }
.process-list h3 { font-weight: 600; font-size: 19px; margin: 0 0 12px; color: var(--steel); letter-spacing: -0.01em; }
.process-list p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.6; }

/* ABOUT */
.about { padding: clamp(72px, 9vw, 120px) 28px; background: var(--bg-soft); }
.about-inner { max-width: 980px; margin: 0 auto; }
.about-body p { color: var(--text-2); font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.about-body p strong { color: var(--steel); }
.about-body p a { color: var(--rust); border-bottom: 1px solid var(--rust); }
.about-body .lede { color: var(--text); }

/* CONTACT STRIP */
.contact-strip { padding: clamp(72px, 9vw, 120px) 28px; background: var(--bg-dark); color: var(--text-on-dark); text-align: center; }
.contact-strip .section-eyebrow { color: var(--rust); }
.contact-strip-inner { max-width: 760px; margin: 0 auto; }
.contact-strip-title { font-family: var(--sans); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 18px; color: var(--text-on-dark); }
.contact-strip-blurb { font-size: 17px; color: rgba(240, 236, 224, 0.82); margin: 0 0 32px; }
.contact-strip-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { padding: 56px 28px 24px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-grid { max-width: var(--container); margin: 0 auto; display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 50px; width: auto; margin-bottom: 12px; }
.footer-blurb { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.55; }
.footer-eyebrow { text-transform: uppercase; letter-spacing: 0.26em; font-size: 11px; color: var(--rust); margin: 0 0 14px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col li, .footer-col a { color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--rust); }
.footer-base { max-width: var(--container); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.footer-fineprint a { color: var(--rust); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 700px) {
  .topbar { padding: 12px 18px; gap: 12px; grid-template-columns: auto 1fr auto; }
  .nav-call { display: none; }
  .hero-inner { padding: 64px 0 0 0; } /* hero already padded by section */
  .hero { padding: 56px 18px; }
  .capability, .structures, .components, .commercial, .process, .about, .contact-strip { padding-left: 18px; padding-right: 18px; }
  .footer { padding-left: 18px; padding-right: 18px; }
  .footer-base { flex-direction: column; gap: 10px; }
}
