/* ---------------------------------------------------------------------------
   Terra Nova Hydroseeding — marketing site
   Design direction 1a "Earthen Editorial": Instrument Serif headings, Manrope
   for everything else, warm paper background, deep soil footer.

   Palette and type are lifted directly from the design handoff. The mockup was
   drawn as a 520px-wide browser card, i.e. a scaled miniature of a desktop
   page, so type here is scaled up with clamp() to hold the same proportions at
   real viewport widths.
   --------------------------------------------------------------------------- */

:root {
  --paper:      #f4f1ea;
  --paper-warm: #efeadf;
  --ink:        #2a2620;
  --ink-soft:   #4a453c;
  --muted:      #8a8272;
  --muted-2:    #5a544a;
  --line:       #cdc6b8;
  --green:      #2f7d4f;
  --green-soft: #7a9a6a;
  --green-pale: #a8c48f;
  --soil:       #2a2620;
  --soil-text:  #eee7d8;
  --soil-muted: #b3aa98;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 88px);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  font: 600 13px var(--sans);
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ------------------------------------------------------------------- nav -- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.wordmark {
  font: italic 400 clamp(26px, 2.6vw, 34px)/1 var(--serif);
  letter-spacing: .2px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.wordmark { gap: clamp(10px, 1vw, 14px); }
/* The supplied mark is light artwork, so on the cream header it uses the
   plated version and on the dark footer the transparent one. */
.wordmark-mark { height: clamp(38px, 3.2vw, 50px); width: auto; border-radius: 22%; }
.wordmark-light { color: var(--soil-text); display: inline-flex; align-items: center; gap: 12px; }
.wordmark-light .wordmark-mark { border-radius: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  font: 600 13px var(--sans);
  color: var(--muted-2);
}
.nav-links a {
  color: var(--muted-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--line); }

.lang { display: flex; align-items: center; gap: 5px; color: #a39b8c; }
.lang-sep { color: #a39b8c; }
.lang-btn {
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  font: 700 13px var(--sans);
  color: #a39b8c;
}
.lang-btn.is-active { color: var(--green); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ hero -- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 46px) var(--gutter) clamp(34px, 4.4vw, 60px);
}

.eyebrow {
  font: 600 clamp(10px, .85vw, 12px) var(--sans);
  letter-spacing: 2.5px;
  color: var(--green-soft);
  margin: 0 0 clamp(14px, 1.6vw, 22px);
  text-transform: uppercase;
}

h1 {
  font: 400 clamp(42px, 6.4vw, 104px)/1.02 var(--serif);
  letter-spacing: -.5px;
  margin: 0;
  max-width: 15ch;
}

.hero-sub {
  font: italic 400 clamp(17px, 1.7vw, 26px)/1.35 var(--serif);
  color: var(--muted);
  margin: clamp(12px, 1.4vw, 20px) 0 0;
  max-width: 34ch;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 34px);
}

.btn {
  display: inline-flex;
  align-items: center;
  font: 600 clamp(13px, 1.05vw, 15px) var(--sans);
  padding: clamp(13px, 1.2vw, 17px) clamp(22px, 2vw, 30px);
  border-radius: 2px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #266840; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------------------ art -- */

/*
 * Art bands. The height is fixed here and the image is object-fit cover, so
 * swapping an SVG illustration for a real photograph of any aspect ratio needs
 * no other change and causes no layout shift.
 */
.band {
  margin: 0;
  height: clamp(200px, 30vw, 420px);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #dfe4d2, #dfe4d2 11px, #d6dcc8 11px, #d6dcc8 22px);
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band-tall { height: 100%; min-height: 300px; border-radius: 3px; }

/* ----------------------------------------------------------------- stats -- */

.stats {
  display: flex;
  flex-wrap: wrap;
  background: var(--soil);
  color: var(--soil-text);
}
.stat {
  flex: 1 1 200px;
  padding: clamp(20px, 2.4vw, 34px) clamp(22px, 2.6vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, .1);
}
.stat:last-child { border-right: 0; }
.stat-figure {
  font: 400 clamp(30px, 3.4vw, 54px)/1 var(--serif);
  color: var(--green-pale);
}
.stat-label {
  font: 500 clamp(11px, .95vw, 14px) var(--sans);
  color: var(--soil-muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------- sections -- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 120px) var(--gutter);
}
.section-alt { background: var(--paper-warm); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-inline: auto; }

.section-head { max-width: 60ch; margin-bottom: clamp(30px, 3.6vw, 56px); }

h2 {
  font: 400 clamp(30px, 3.8vw, 60px)/1.06 var(--serif);
  letter-spacing: -.4px;
  margin: 0;
}

h3 {
  font: 700 clamp(15px, 1.2vw, 19px) var(--sans);
  margin: 0 0 8px;
  letter-spacing: -.1px;
}

.lede {
  font: 400 clamp(15px, 1.15vw, 18px)/1.6 var(--sans);
  color: var(--muted-2);
  margin: clamp(12px, 1.2vw, 18px) 0 0;
  max-width: 62ch;
}

/* ----------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}
.card p {
  font: 400 14.5px/1.6 var(--sans);
  color: var(--muted-2);
  margin: 0;
}
.card-art {
  height: clamp(120px, 12vw, 170px);
  border-radius: 3px;
  margin-bottom: 16px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #e3ebda, #e3ebda 9px, #dae4cf 9px, #dae4cf 18px);
}
.card-art img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------- steps -- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 2.2vw, 34px);
  counter-reset: step;
}
.steps li { border-top: 1px solid var(--line); padding-top: 18px; }
.step-no {
  display: block;
  font: 400 clamp(24px, 2.4vw, 34px)/1 var(--serif);
  color: var(--green-soft);
  margin-bottom: 12px;
}
.steps p {
  font: 400 14px/1.6 var(--sans);
  color: var(--muted-2);
  margin: 0;
}

/* ----------------------------------------------------------------- split -- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

/* ------------------------------------------------------------------- cta -- */

.cta {
  background: var(--soil);
  color: var(--soil-text);
  padding: clamp(56px, 7vw, 120px) var(--gutter);
  text-align: center;
}
.cta h2 { color: var(--soil-text); }
.cta .lede { color: var(--soil-muted); margin-inline: auto; }
.cta-actions { justify-content: center; }
.cta .btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--soil-text); }
.cta .btn-ghost:hover { border-color: var(--soil-text); }

/* ---------------------------------------------------------------- footer -- */

.footer {
  background: #211d17;
  color: var(--soil-muted);
  padding: clamp(36px, 4vw, 60px) var(--gutter) 24px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-note { font: 500 13px var(--sans); margin: 8px 0 0; }
.footer-cols { display: flex; flex-direction: column; gap: 8px; font: 500 13px var(--sans); }
.footer-cols a { color: var(--soil-muted); text-decoration: none; }
.footer-cols a:hover { color: var(--soil-text); }
.footer-legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font: 500 12px var(--sans);
  color: #7d766a;
}

/* ------------------------------------------------------------------ resp -- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 34px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 0 auto; width: 18px; }

  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-top: 16px;
  }
  .nav.is-open .nav-links { display: flex; }
}
