/* Top Choice Environmental — site styles
   Four text sizes per page: display (h1), section (h2), body (18px), small (15px).
   Colors: dark ink on white, one green for actions. Contrast pairs are listed in README. */

:root {
  --ink: #17201a;
  --ink-soft: #3d4a40;
  --paper: #ffffff;
  --sage: #f1f4ee;
  --line: #d3dbd1;
  --green: #1d5c34;
  --green-dark: #123d22;
  --night: #102617;
  --focus: #b4480a;
  --focus-on-dark: #ffd166;

  --size-display: clamp(2.125rem, 1.4rem + 3.2vw, 3.25rem);
  --size-section: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --size-body: 1.125rem;
  --size-small: 0.9375rem;

  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Semi Condensed", "Public Sans", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 6px;
  --bar-h: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
  scroll-padding-bottom: calc(var(--bar-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  padding-bottom: var(--bar-h);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: var(--size-display); }
h2 { font-size: var(--size-section); }
h3 { font-size: var(--size-body); font-family: var(--font-body); line-height: 1.35; margin-bottom: 0.25em; }

p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: var(--size-small); }
.muted { color: var(--ink-soft); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Preview notice */
.preview-note {
  background: var(--sage);
  border-bottom: 1px solid var(--line);
  font-size: var(--size-small);
  color: var(--ink-soft);
  text-align: center;
  padding: 6px var(--gutter);
}
.preview-note p { margin: 0 auto; max-width: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.brand {
  display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); line-height: 1; padding: 6px 0;
}
.brand-top { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; color: var(--green); margin-top: 3px; }
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  font: inherit; font-weight: 700; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  min-height: 44px; padding: 0 16px; cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--radius);
}
.site-nav a:hover { text-decoration: underline; color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--green); }
.site-nav .nav-call { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--green); cursor: pointer;
  background: var(--green); color: #fff; line-height: 1.2;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; text-decoration: none; }
.btn-line { background: var(--paper); color: var(--green); }
.btn-line:hover { background: var(--sage); color: var(--green-dark); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 20px; }
.site-nav .btn { min-height: 44px; padding: 0 16px; color: #fff; }
.site-nav .btn:hover { color: #fff; text-decoration: none; }

/* Sections */
section { padding: 64px 0; }
.band { background: var(--sage); }
.lead { max-width: 60ch; }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.proof li + li { margin-top: 0; }
.stars { color: var(--ink); letter-spacing: 1px; }

/* Page intro (interior pages) */
.page-intro { padding: 48px 0 8px; }
.page-intro h1 { max-width: 20ch; }

/* Service list on home */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.media-list { list-style: none; margin: 0; padding: 0; }
.media-list li { display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.media-list li:last-child { border-bottom: 1px solid var(--line); }
.media-list li + li { margin-top: 0; }
.media-list img { width: 128px; height: 128px; object-fit: cover; border-radius: var(--radius); }
.media-list p { margin: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin: 8px 0 24px; }
.review { margin: 0; }
.review blockquote { margin: 0 0 8px; }
.review blockquote p { margin: 0; }
.review blockquote p::before { content: "\201C"; }
.review blockquote p::after { content: "\201D"; }
.review figcaption { font-size: var(--size-small); color: var(--ink-soft); }

/* Gallery */
.gallery { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery li + li { margin-top: 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: var(--size-small); color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }

/* Service detail */
.service { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 40px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.service h2 { margin-top: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 8px 0 0; max-width: 64ch; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; min-height: 40px; }
.steps li + li { margin-top: 20px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

/* Towns */
.towns { columns: 2; column-gap: 48px; max-width: 560px; padding-left: 1.25em; }
.towns li { break-inside: avoid; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li + li { margin-top: 14px; }
.contact-list strong { display: block; }

form .field { margin-bottom: 20px; }
form label, form legend { display: block; font-weight: 700; margin-bottom: 6px; }
form .hint { display: block; font-size: var(--size-small); color: var(--ink-soft); margin: -2px 0 6px; font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #6b776d; border-radius: var(--radius); padding: 10px 12px; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
select option { font: inherit; }
.choice { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 400 !important; margin: 0 !important; }
.choice input { width: 24px; height: 24px; margin: 0; accent-color: var(--green); }
fieldset.field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: #b3261e; }
.error { display: block; color: #b3261e; font-weight: 700; font-size: var(--size-small); margin-top: 6px; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px; border-radius: var(--radius); border: 2px solid var(--green); background: var(--sage); margin-bottom: 20px; }
.form-status:empty { display: none; }
.form-status.is-error { border-color: #b3261e; }

/* Closing call band */
.cta { background: var(--night); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: #e4ebe5; }
.cta a:not(.btn) { color: #fff; }
.cta .btn { background: #fff; color: var(--night); border-color: #fff; }
.cta .btn:hover { background: var(--sage); border-color: var(--sage); color: var(--night); }
.cta .btn-line { background: transparent; color: #fff; border-color: #fff; }
.cta .btn-line:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cta :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-dark); }

/* Footer */
.site-footer { background: var(--night); color: #e4ebe5; border-top: 1px solid #2a4a33; padding: 40px 0 32px; font-size: var(--size-small); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: #b9d3c0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer p { margin: 0 0 0.6em; }
.footer-base { border-top: 1px solid #2a4a33; margin-top: 28px; padding-top: 20px; }

/* Mobile call bar */
.call-bar { display: none; }

@media (max-width: 860px) {
  :root { --bar-h: 68px; }
  .hero .wrap, .split, .service, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 32px; }
  .hero-photo { order: 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .service img { aspect-ratio: 4 / 3; }
  section { padding: 48px 0; }

  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; padding-bottom: 12px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: flex; padding: 0 4px; border-top: 1px solid var(--line); border-radius: 0; }
  .site-nav .nav-call { display: none; }

  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(16, 38, 23, 0.08);
  }
  .call-bar .btn { min-height: 52px; padding: 0 12px; }
}

@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .media-list li { grid-template-columns: 88px 1fr; gap: 14px; }
  .media-list img { width: 88px; height: 88px; }
  .towns { columns: 1; }
  .brand-top { font-size: 1.5rem; }
}

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

@media print {
  .call-bar, .nav-toggle, .preview-note, .skip { display: none !important; }
  .cta, .site-footer { background: #fff; color: #000; }
}

/* Side photo on About and Service Area */
.side-photo { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 860px) { .side-photo { aspect-ratio: 4 / 3; } }
