/* ==========================================================================
   Emerald Lawns Auckland
   Palette + type derived from Steve's own materials: the van, the hi-vis,
   the mown stripe, the basalt edging timber, the shell path.
   ========================================================================== */

:root {
  /* Colour */
  --basalt:    #14180F;  /* volcanic rock / dark edging timber */
  --turf:      #1E3A16;  /* the dark mown stripe */
  --turf-lit:  #3B6B26;  /* the sunlit mown stripe */
  --hi-vis:    #C6E82F;  /* his vest and his van */
  --path:      #E8E4D8;  /* concrete / shell path */
  --paper:     #FBFAF6;
  --ink-soft:  #5D6455;

  /* Type */
  --display: "Archivo", system-ui, sans-serif;
  --body:    "Public Sans", system-ui, sans-serif;

  /* Measure */
  --page: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* The signature: mown bands. Real stripes are wide and unevenly spaced —
     narrow stops read as a barcode, so these stay broad and irregular. */
  --mow-stripe: repeating-linear-gradient(
    90deg,
    var(--turf)     0 68px,
    var(--turf-lit) 68px 137px,
    var(--turf)     137px 196px,
    var(--turf-lit) 196px 251px
  );
}

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

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

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--basalt);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--turf); }

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

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Type roles
   Archivo is used at both width extremes — expanded for display, condensed
   for labels. Same skeleton, deliberately different voices.
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--display);
  font-variation-settings: "wdth" 118, "wght" 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1.display { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3.display {
  font-size: 1.3rem;
  font-variation-settings: "wdth" 112, "wght" 700;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--display);
  font-variation-settings: "wdth" 70, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--turf-lit);
}

.lede {
  font-size: clamp(1.075rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   The mow-stripe rule — the one signature device. Section boundaries only.
   -------------------------------------------------------------------------- */

.stripe-rule {
  height: 22px;
  background-image: var(--mow-stripe);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid rgba(20, 24, 15, 0.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  font-family: var(--display);
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--turf);
  text-decoration: none;
  margin-right: auto;
}

.brand span {
  display: block;
  font-variation-settings: "wdth" 70, "wght" 600;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--turf-lit);
  margin-top: 3px;
}

.main-nav ul {
  display: flex;
  gap: 1.65rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--basalt);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { border-bottom-color: var(--hi-vis); }

.main-nav a[aria-current="page"] {
  border-bottom-color: var(--turf);
}

.header-call {
  font-family: var(--display);
  font-variation-settings: "wdth" 78, "wght" 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: var(--hi-vis);
  color: var(--basalt);
  text-decoration: none;
  padding: 0.6rem 1.05rem;
  white-space: nowrap;
}

.header-call:hover { background: var(--basalt); color: var(--hi-vis); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--turf);
  cursor: pointer;
  padding: 0.25rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-variation-settings: "wdth" 82, "wght" 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s;
}

.btn--hi-vis { background: var(--hi-vis); color: var(--basalt); }
.btn--hi-vis:hover { background: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 250, 246, 0.45);
}
.btn--ghost:hover { border-color: var(--hi-vis); color: var(--hi-vis); }

.btn--dark { background: var(--turf); color: var(--paper); }
.btn--dark:hover { background: var(--basalt); }

/* --------------------------------------------------------------------------
   Hero — the photo is never covered. Type sits in a hard-edged block on the
   left, where the photograph has no subject.
   -------------------------------------------------------------------------- */

/* hero.png is 1916x821 (2.33:1) and viewports vary far outside that ratio, so
   `cover` always sacrifices an axis. Two things keep the subject safe:

   1. Height tracks width (34vw), so on wide screens the crop window grows with
      the upscaled image instead of staying fixed and squeezing to a letterbox.
   2. Focus is 72% 62%, not centre. Steve spans y 0.27–0.84 of the source and
      the signage x 0.61–0.92, so the expendable areas are the sky above him
      and the lawn at bottom-left — which is where the panel sits anyway. */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(460px, 34vw, 900px);
  background-image: url("../img/hero.png");
  background-size: cover;
  background-position: 72% 62%;
}

.hero .wrap {
  width: 100%;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hero__panel {
  background: var(--turf);
  color: var(--paper);
  border-left: 6px solid var(--hi-vis);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 33rem;
}

.hero__panel .eyebrow { color: var(--hi-vis); }

.hero__panel h1 {
  margin-block: 0.55rem 0.85rem;
  color: var(--paper);
}

.hero__sub {
  color: rgba(251, 250, 246, 0.86);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --------------------------------------------------------------------------
   Proof strip
   -------------------------------------------------------------------------- */

.proof {
  background: var(--basalt);
  color: var(--paper);
  padding-block: 1.15rem;
}

.proof .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  align-items: baseline;
}

.proof p {
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.proof b {
  font-variation-settings: "wdth" 72, "wght" 800;
  color: var(--hi-vis);
  font-weight: inherit;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--path { background: var(--path); }
.section--turf { background: var(--turf); color: var(--paper); }
.section--turf .lede { color: rgba(251, 250, 246, 0.8); }
.section--turf .eyebrow { color: var(--hi-vis); }

.section__head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { margin-block: 0.6rem 0.9rem; }

/* --------------------------------------------------------------------------
   Visit sequence — genuinely ordered, so the numbering carries real
   information: this is what happens, in the order it happens.
   -------------------------------------------------------------------------- */

.visit {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(20, 24, 15, 0.15);
}

.visit li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: 1.6rem;
  border-bottom: 1px solid rgba(20, 24, 15, 0.15);
}

.visit .step {
  font-family: var(--display);
  font-variation-settings: "wdth" 118, "wght" 800;
  font-size: 2.1rem;
  line-height: 0.9;
  color: var(--hi-vis);
  -webkit-text-stroke: 1px var(--turf-lit);
}

.visit h3 { margin-bottom: 0.3rem; }
.visit p { color: var(--ink-soft); max-width: 52ch; }

/* --------------------------------------------------------------------------
   Service cards — no boxes. Rules and weight do the work.
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.service { border-top: 3px solid var(--turf); padding-top: 1.1rem; }
.service h3 { margin-bottom: 0.5rem; }
.service p { color: var(--ink-soft); }

.section--turf .service { border-top-color: var(--hi-vis); }
.section--turf .service p { color: rgba(251, 250, 246, 0.78); }

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */

.quote {
  max-width: 40ch;
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 500;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.quote cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 70, "wght" 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--hi-vis);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--path);
}

.gallery figcaption {
  font-family: var(--display);
  font-variation-settings: "wdth" 70, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   Areas
   -------------------------------------------------------------------------- */

.areas { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }

.areas li {
  font-family: var(--display);
  font-variation-settings: "wdth" 78, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.86rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(20, 24, 15, 0.2);
}

.section--turf .areas li { border-color: rgba(251, 250, 246, 0.3); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}

.about img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-left: 6px solid var(--hi-vis);
}

@media (max-width: 900px) {
  .about img { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.quote-form { display: grid; gap: 1.15rem; max-width: 34rem; }

.quote-form label {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 70, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  margin-bottom: 0.4rem;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(20, 24, 15, 0.28);
  background: var(--paper);
  border-radius: 0;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 3px solid var(--turf);
  outline-offset: 1px;
}

.quote-form button { justify-self: start; cursor: pointer; }

.contact-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.direct { display: grid; gap: 1.5rem; }
.direct dt {
  font-family: var(--display);
  font-variation-settings: "wdth" 70, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.direct dd {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: 1.35rem;
}
.direct dd a { text-decoration: none; border-bottom: 2px solid var(--hi-vis); }

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.cta-band { background: var(--hi-vis); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { max-width: 20ch; margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--basalt);
  color: rgba(251, 250, 246, 0.72);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.94rem;
}

.site-footer a { color: var(--paper); }

.site-footer .brand { color: var(--paper); margin: 0 0 1.25rem; }
.site-footer .brand span { color: var(--hi-vis); }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-bottom: 1.75rem;
}

.footer-legal {
  border-top: 1px solid rgba(251, 250, 246, 0.16);
  padding-top: 1.25rem;
  font-size: 0.84rem;
  color: rgba(251, 250, 246, 0.5);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .about,
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; order: 3; }

  .main-nav {
    order: 4;
    flex-basis: 100%;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.75rem;
  }

  .main-nav ul.open { display: flex; }

  .main-nav li { border-top: 1px solid rgba(20, 24, 15, 0.12); }

  .main-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 0;
  }

  .site-header .wrap { flex-wrap: wrap; gap: 0.75rem; }

  /* Narrow viewports are taller than they are wide, so overlaying the panel
     would crop the photo to a meaningless vertical slice. Stack instead:
     the photo keeps a sane ratio of its own, the panel sits under it. */
  .hero {
    display: block;
    min-height: 0;
    background-image: none;
  }

  .hero::before {
    content: "";
    display: block;
    aspect-ratio: 4 / 3;
    background-image: url("../img/hero.png");
    background-size: cover;
    background-position: 64% center;
  }

  .hero .wrap { padding-top: 0; }

  .hero__panel {
    max-width: none;
    margin-top: -2.5rem;
    position: relative;
  }

  .visit li { grid-template-columns: 3rem 1fr; }
  .visit .step { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
