/* Hunter Land and Water Services — brand tokens */
:root {
  --brown: #3e2f24;
  --olive: #5f6f45;
  --glacier: #a9c9d3;
  --white: #ffffff;
  --cream: #f7f4f0;
  --text: #3e2f24;
  --text-muted: #4a3a30;
  --header-h: 4.75rem;
  --max: 70rem;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --shadow: 0 1px 2px rgba(62, 47, 36, 0.08);
  --radius: 0.35rem;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--olive);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brown);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--brown);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid rgba(62, 47, 36, 0.12);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem var(--space);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-link:focus-visible {
  outline-offset: 4px;
}

.logo-header {
  height: 3.35rem;
  width: auto;
  max-width: 12.5rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--brown);
  background: var(--white);
  color: var(--brown);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid rgba(62, 47, 36, 0.12);
  padding: 0.5rem var(--space) 1.25rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  color: var(--brown);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 0.2rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--olive);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--olive);
}

.nav-cta {
  margin-top: 0.5rem;
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.15rem;
  }
  .site-nav a { padding: 0.35rem 0; }
  .nav-cta { margin-top: 0; margin-left: 0.5rem; }
  .logo-header {
    height: 4rem;
    max-width: 15.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.25rem;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.btn-primary:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--brown);
}

.btn-secondary.dark {
  color: var(--brown);
  border-color: var(--brown);
}

.btn-secondary.dark:hover {
  background: var(--brown);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 34rem;
  min-height: min(80vh, 46rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-color: var(--brown);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center 40%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(62, 47, 36, 0.15) 0%, rgba(62, 47, 36, 0.45) 45%, rgba(62, 47, 36, 0.82) 100%),
    linear-gradient(90deg, rgba(62, 47, 36, 0.55) 0%, rgba(62, 47, 36, 0.2) 70%, rgba(62, 47, 36, 0.15) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem var(--space) 3.25rem;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.55rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  max-width: 16ch;
  color: var(--white);
}

.hero .lede,
.hero .kicker {
  max-width: 38rem;
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.hero .kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--glacier);
  margin-top: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.page-hero {
  min-height: 18rem;
  min-height: min(46vh, 26rem);
  align-items: flex-end;
}

.page-hero h1 {
  max-width: 28ch;
  font-size: clamp(1.85rem, 4.4vw, 3rem);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: 3.25rem 0;
}

.section-tight { padding: 2.25rem 0; }
.section-cream { background: var(--cream); }
.section-glacier { background: var(--glacier); }
.section-brown {
  background: var(--brown);
  color: var(--white);
}

.section-brown h2,
.section-brown p,
.section-brown a { color: var(--white); }
.section-brown a:hover { color: var(--glacier); }

.section-brown .btn-primary {
  background: var(--white);
  color: var(--brown);
  border-color: var(--white);
}
.section-brown .btn-primary:hover {
  background: var(--glacier);
  border-color: var(--glacier);
  color: var(--brown);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 0.55rem;
}

.lede {
  font-size: 1.12rem;
  max-width: 42rem;
}

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem;
    align-items: start;
  }
  .split.wide-media { grid-template-columns: 1.15fr 0.85fr; }
  .split.wide-copy { grid-template-columns: 0.95fr 1.05fr; }
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.figure figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.section-brown .figure figcaption { color: var(--glacier); }

/* Cards */
.card-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .card-grid.cols-3,
  .card-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  /* Last row of five service cards shares the row evenly */
  .card-grid.cols-3 {
    display: flex;
    flex-wrap: wrap;
  }
  .card-grid.cols-3 .card {
    flex: 1 1 calc((100% - 2.3rem) / 3);
    max-width: calc((100% - 2.3rem) / 3);
  }
  .card-grid.cols-3 .card:nth-last-child(2):nth-child(3n+1),
  .card-grid.cols-3 .card:nth-last-child(1):nth-child(3n+2) {
    flex: 1 1 calc((100% - 1.15rem) / 2);
    max-width: calc((100% - 1.15rem) / 2);
  }
}

.card {
  background: var(--white);
  border: 1px solid rgba(62, 47, 36, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 0.2rem; }

.card a.more {
  margin-top: auto;
  padding-top: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--olive);
}

.card a.more:hover { color: var(--brown); }

.list-plain {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.15rem;
}

.list-plain li { margin: 0.35rem 0; }

/* Credibility */
.cred-grid {
  display: grid;
  gap: 0.9rem 1.25rem;
  margin-top: 1.4rem;
}

@media (min-width: 40rem) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .cred-grid { grid-template-columns: repeat(3, 1fr); }
}

.cred {
  background: var(--white);
  border-left: 3px solid var(--olive);
  padding: 0.9rem 1rem;
}

.cred strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* CTA band */
.cta-band {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 52rem) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .cta-band p { margin: 0; max-width: 40rem; }
}

/* Contact + form */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

.contact-dl {
  margin: 0;
}

.contact-dl div {
  margin: 0 0 1rem;
}

.contact-dl dt {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.2rem;
}

.contact-dl dd { margin: 0; }

.form {
  background: var(--cream);
  padding: 1.35rem 1.2rem 1.5rem;
  border-radius: var(--radius);
}

.form-note {
  font-size: 0.9rem;
  margin: 0 0 1.1rem;
}

.field {
  margin: 0 0 0.95rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.req { color: var(--olive); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--brown);
  background: var(--white);
  border: 1px solid rgba(62, 47, 36, 0.28);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--olive);
  outline: 2px solid var(--olive);
  outline-offset: 0;
}

.field .hint {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-status {
  margin: 0.75rem 0 0;
  font-weight: 500;
}

/* Projects placeholder */
.gallery-placeholder {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .gallery-placeholder { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .gallery-placeholder { grid-template-columns: repeat(3, 1fr); }
}

.ph-frame {
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(62, 47, 36, 0.35);
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--brown);
  color: var(--white);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
  }
}

.logo-footer {
  height: 4.25rem;
  width: auto;
  max-width: 16rem;
  margin-bottom: 0.85rem;
}

.site-footer a { color: var(--glacier); }
.site-footer a:hover { color: var(--white); }

.site-footer h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glacier);
  margin: 0 0 0.7rem;
}

.footer-nav ul,
.footer-areas ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-block;
  padding: 0.2rem 0;
  text-decoration: none;
  font-weight: 500;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(169, 201, 211, 0.25);
  font-size: 0.85rem;
  color: var(--glacier);
}

.footer-legal p { margin: 0 0 0.4rem; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
