/* Green & Clean. Brand tokens up top: a rebrand is a change to :root only. */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #2f7a22;        /* logo dark green, text-safe on white */
  --green-dark: #1f5516;
  --green-bright: #7cc242; /* logo leaf green, decorative only */
  --green-tint: #eef6e8;
  --ink: #23282c;          /* logo charcoal */
  --ink-soft: #4b5359;
  --line: #dde3d8;
  --paper: #fcfdfb;
  --white: #ffffff;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 72px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

.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;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

.ico { width: 1.25em; height: 1.25em; flex: none; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

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

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.site-header nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ink); font-weight: 500; text-decoration: none; border-radius: 999px;
}
.nav-links a:hover { color: var(--green); background: var(--green-tint); }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 88px) 0 var(--section); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.05; }
.hero .lead { margin: 20px 0 32px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- Services ---------- */

.services { padding-bottom: var(--section); }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 40px; border-top: 1px solid var(--line);
}
.service-grid li { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.service-grid li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.service-grid img { width: 72px; height: auto; margin-bottom: 16px; }
.service-grid p { margin-top: 8px; color: var(--ink-soft); }

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

.areas { background: var(--green); color: var(--white); padding: clamp(48px, 6vw, 72px) 0; }
.areas-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.areas p { margin-top: 12px; color: rgb(255 255 255 / 0.88); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 18px; border-radius: 999px;
  background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.3);
  font-weight: 500;
}

/* ---------- Why ---------- */

.why { padding: var(--section) 0; }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }

.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { color: var(--green); margin-top: 0.15em; }
.checks strong { font-weight: 650; }

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

.about { background: var(--green-tint); padding: var(--section) 0; }
.about-head .lead { margin-top: 16px; }
.story {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; margin-top: 48px;
}
.story-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.story p { margin-top: 12px; color: var(--ink-soft); max-width: 55ch; }

.how-title { margin-top: 72px; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.how li { background: var(--white); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--green-bright); }
.how p { margin-top: 8px; color: var(--ink-soft); }

/* ---------- Promise ---------- */

.promise { padding: var(--section) 0 0; }
.promise-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center;
  /* Dark scrim over the photo keeps the white text at AA contrast */
  background:
    linear-gradient(rgb(20 26 22 / 0.74), rgb(20 26 22 / 0.74)),
    var(--ink) url("assets/img/leaves.webp") center / cover;
  color: var(--white); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
}
.promise-inner p { margin-top: 12px; color: rgb(255 255 255 / 0.88); }
.checks-light { margin-top: 0; }
.checks-light .ico { color: var(--green-bright); }

/* ---------- Contact ---------- */

.contact { padding: var(--section) 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact .lead { margin-top: 16px; }
.contact-list { display: grid; gap: 20px; margin-top: 32px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.contact-list .label { display: block; font-size: 0.875rem; color: var(--ink-soft); }
.contact-list a { font-weight: 600; font-size: 1.0625rem; display: inline-block; padding: 2px 0; }

.quote-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.quote-box > p { margin-top: 8px; color: var(--ink-soft); }
.quote-box .checks { margin: 16px 0 28px; }

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

.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner img { width: 150px; }
.footer-inner p { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-media { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-media { animation-delay: 0.1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

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

@media (max-width: 900px) {
  .hero-inner, .areas-inner, .why-inner, .story, .promise-inner, .contact-inner { grid-template-columns: 1fr; }
  .why-media { order: 2; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .service-grid li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .how { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .site-header .btn { margin-left: auto; }
  .brand img { height: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid li, .service-grid li:nth-child(even) {
    display: grid; grid-template-columns: 56px 1fr; column-gap: 16px;
    padding: 20px 0; border-left: 0;
  }
  .service-grid img { width: 56px; grid-row: span 2; margin: 0; }
  .how { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
