/* Superior Outdoor Solutions
   Layout: rounded photo-led blocks on a deep green-black ground,
   and a few loose grass clippings drifting behind the content (drawn by script.js). */

:root {
  --bg: #0F1A13;
  --ink: #EEF4EA;
  --muted: #B9C7BB;
  --line: #24352A;
  --accent: #8FD86A;
  --accent-hover: #B5EC99;
  --on-accent: #0F1A13;
  --soft: #18261C;
  --soft-ink: #D5E0D6;
  --card: #0F1A13;
  --card-line: #2A3B2E;
  --logo-line: #2A3B2E;
  --panel: #17512A;
  --panel-ink: #ffffff;
  --panel-muted: #DDEBD3;
  --panel-eyebrow: #BFE3A6;
  --inner: #0F1A13;
  --feature: #1C6B34;
  --feature-ink: #ffffff;
  --tag-bg: #0F1A13;
  --tag-ink: #EEF4EA;
  --tag-soft: #2A3B2E;
  --after-bg: #8FD86A;
  --after-ink: #0F1A13;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); }
h1, h2, h3, p, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
section[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1168px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); line-height: 1.2; }
.h2 { font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-weight: 600; font-size: 28px; line-height: 1.15; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-sm { min-height: 48px; padding: 0 22px; }
.btn-short { display: none; }   /* the one-word header button label, shown only on narrow phones */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 80px; padding-block: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 19px/1.1 var(--display); }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 52px; height: 52px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 0 30px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Hero */
.hero { padding-block: 16px 56px; }
.hero-stage { display: grid; }
.hero-photo { grid-area: 1 / 1; position: relative; min-height: 600px; border-radius: 32px; overflow: hidden; background: #2F5E3A; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-card { grid-area: 1 / 1; position: relative; align-self: end; justify-self: start; margin: clamp(12px, 2.5vw, 32px); max-width: 520px; background: var(--bg); border-radius: 24px; padding: clamp(24px, 3.2vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.hero-card h1 { font-weight: 700; font-size: clamp(38px, 4.1vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.hero-card p { font-size: 17px; color: var(--muted); }
.hero-card .actions { padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; font-weight: 600; }
.chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--soft); }
.chips svg { color: var(--accent); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--muted); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); margin-bottom: 10px; }

/* Split rows */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.split > * { min-width: 0; }
.split-media { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.split-media img { width: 100%; object-fit: cover; border-radius: 32px; }
.split-media figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }
.split-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.split-copy > p { color: var(--muted); font-size: 17px; }
.split-copy .actions { padding-top: 12px; }
.pull { font: 500 24px/1.4 var(--display); }
.byline { font-weight: 600; color: var(--muted); }
.ruled { border-top: 1px solid var(--line); }

/* Reviews */
.review-lead { display: flex; flex-wrap: wrap; gap: 16px; }
.review { min-width: 0; background: var(--soft); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { color: var(--soft-ink); display: flex; flex-direction: column; gap: 12px; }
.review .who { margin-top: auto; font-weight: 700; }
.tag { align-self: flex-start; font: 700 13px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--tag-soft); color: var(--ink); }
.review-feature { flex: 3 1 420px; background: var(--feature); color: var(--feature-ink); padding: clamp(24px, 3.2vw, 40px); gap: 20px; }
.review-feature blockquote { color: inherit; font-size: 20px; line-height: 1.55; gap: 16px; }
.review-feature .tag { background: var(--tag-bg); color: var(--tag-ink); }
.review-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.review-side .review { flex: 1 1 auto; }
.review-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: 24px; font-weight: 700; }
.links a { padding: 10px 0; }
.more { margin-top: 24px; }

/* Inner pages (Our work, Reviews, Service area): the big title at the top, and the space under the page's content */
.page-head { padding-top: 64px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { font-weight: 700; font-size: clamp(44px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.page-head p { font: 500 22px/1.4 var(--display); color: var(--muted); }
.page-body { padding-bottom: clamp(56px, 8vw, 96px); }

/* Our work */
.projects { display: flex; flex-direction: column; gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.project { min-width: 0; background: var(--soft); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.project-row { display: flex; flex-wrap: wrap; gap: 16px; }
.project-row > .project { flex: 1 1 420px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot { position: relative; border-radius: 16px; overflow: hidden; }
.shot > img { width: 100%; }
.shot-portrait > img { aspect-ratio: 3 / 4; object-fit: cover; }
.shot-tall > img { aspect-ratio: 9 / 16; object-fit: cover; }
.shot-double { display: flex; flex-direction: column; gap: 4px; }
.shot-double > img { aspect-ratio: 1.84; object-fit: cover; object-position: top; }
.shot-double > img + img { object-position: bottom; }
.shot-crop { aspect-ratio: var(--ar, 1.74); }
.shot-crop > img { position: absolute; top: 0; left: 0; width: var(--w, 100%); height: auto; max-width: none; transform: translate(var(--x, 0%), var(--y, 0%)); }
.shot-fill { flex: 1 1 auto; min-height: 260px; }
.shot-fill > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 30% center; }
.label { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); background: var(--tag-bg); color: var(--tag-ink); padding: 7px 12px; border-radius: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; }
.label-after { background: var(--after-bg); color: var(--after-ink); }

/* Contact and footer */
.contact { padding-bottom: clamp(56px, 8vw, 96px); }
.panel { background: var(--panel); color: var(--panel-ink); border-radius: 32px; padding: clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.panel > * { flex: 1 1 380px; min-width: 0; }
.panel-copy { display: flex; flex-direction: column; gap: 14px; }
.panel-copy .eyebrow { color: var(--panel-eyebrow); }
.panel-copy h2 { font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.panel-copy p { font-size: 17px; color: var(--panel-muted); }
.panel-link { align-self: flex-start; padding: 10px 0; font-weight: 700; color: var(--panel-ink); }
.panel-link:hover { color: var(--panel-eyebrow); }
.panel-card { background: var(--inner); color: var(--ink); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.panel-card p { color: var(--muted); }
.panel-card .email { align-self: flex-start; max-width: 100%; font-weight: 700; padding: 10px 0; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer .wrap { min-height: 96px; padding-block: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-weight: 600; }
.footer-links a { padding: 10px 0; }

/* Contact page: the estimate form. */
:root { --form-error: #FFB4A8; }
.form-card { max-width: 700px; display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--card-line); border-radius: 24px; background: var(--card); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--card-line); border-radius: 14px; background: var(--soft); color: var(--ink); font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.form-card button.btn { align-self: flex-start; font: inherit; font-weight: 700; cursor: pointer; }
.form-card button.btn:disabled { opacity: 0.6; cursor: default; }
.form-status { font-weight: 600; color: var(--accent); }
.form-status[data-kind="error"] { color: var(--form-error); }
.form-status[data-kind="wait"] { color: var(--muted); }
.form-note { max-width: 700px; margin-top: 20px; color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy policy and terms: plain reading pages. */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--soft-ink); }
.prose h2 { margin-top: 18px; font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--ink); }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; list-style: disc; }
.prose strong { color: var(--ink); }
.form-note + .form-note { margin-top: 8px; }

/* Phones. The header becomes two rows: logo and estimate button, then the menu tabs. The tab row stays pinned to
   the top of the screen while the page scrolls. This starts at tablet width, where the one-row header runs out of room. */
@media (max-width: 1080px) {
  /* The first header row is exactly 64px tall, and the header is allowed to slide up by that much before it sticks,
     which leaves just the tab row on screen. */
  .site-header { position: sticky; top: -64px; z-index: 30; background: var(--bg); }
  .site-header .wrap { min-height: 0; padding-block: 0; gap: 0 12px; }
  .site-header .brand { height: 64px; gap: 10px; font-size: 16px; }
  .site-header .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
  .site-header .btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
  /* Five tabs on one row. On a very narrow phone the row can be swiped sideways instead of wrapping. */
  .nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); font-size: 15px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 12px 0; white-space: nowrap; }
  section[id], main[id] { scroll-margin-top: 64px; }
}

/* Phones again: everything below the header is tightened up and stacked for a narrow screen. */
@media (max-width: 700px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

  /* Hero: one card, with the photo filling its top and the text underneath. Nothing overlaps the photo. */
  .hero { padding-block: 12px 40px; }
  .hero-stage { border: 1px solid var(--card-line); border-radius: 24px; overflow: hidden; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; border-radius: 0; }
  .hero-card { grid-area: 2 / 1; justify-self: stretch; max-width: none; margin: 0; padding: 22px 20px 24px; gap: 12px; border-radius: 0; }
  .hero-card h1 { font-size: 34px; }
  .hero-card p { font-size: 16px; }
  .actions .btn { flex: 1 1 auto; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; font-size: 14px; }
  .chips li { min-height: 44px; padding: 8px 12px; border-radius: 14px; line-height: 1.25; }
  .chips svg { flex: none; }

  .section { padding-block: 44px; }
  .section-head { margin-bottom: 24px; }
  .h2 { font-size: 30px; }
  .h3 { font-size: 23px; }

  /* Service cards: icon on the left, text beside it. */
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 20px; border-radius: 20px; }
  .card .icon { grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; }
  .card .h3 { align-self: center; font-size: 21px; }
  .card p { grid-column: 2; font-size: 15px; }

  .split { gap: 24px; }
  .split-media img { border-radius: 24px; }
  .split-copy > p { font-size: 16px; }
  .pull { font-size: 20px; }
  .review { padding: 22px; border-radius: 20px; }
  .review-feature blockquote { font-size: 17px; }

  .page-head { padding-top: 36px; margin-bottom: 24px; }
  .page-head h1 { font-size: 40px; }
  .page-head p { font-size: 19px; }

  /* Our work: photos two to a row, with smaller labels. */
  .project { padding: 14px; gap: 12px; border-radius: 20px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pair { gap: 8px; }
  .shot { border-radius: 12px; }
  .label { left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 5px 8px; border-radius: 10px; font-size: 10px; }

  .panel { padding: 24px 18px; gap: 24px; border-radius: 24px; }
  .panel-copy h2 { font-size: 28px; }
  .panel-card { padding: 22px; border-radius: 20px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 24px; }
}

/* Narrow phones: the header button shortens to one word so it fits beside the logo. */
@media (max-width: 430px) {
  .btn-long { display: none; }
  .btn-short { display: inline; }
}
/* Narrow phones: slightly smaller tab lettering so all five still fit. */
@media (max-width: 430px) {
  .nav { gap: 8px; font-size: 14px; }
}
@media (max-width: 380px) {
  .nav { gap: 6px; font-size: 13px; }
}
/* The very narrowest phones: no room for the header button beside the logo. The Estimate tab just below does the same job. */
@media (max-width: 359px) {
  .site-header .btn-sm { display: none; }
}

/* Clippings: loose blades of cut grass drifting behind the page content, drawn by script.js. Without the script nothing shows. */
.clippings { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Page changes: the soft glow on the menu tab that the page is pulled into and comes back out of. */
:root { --glow: rgba(143, 216, 106, 0.55); --glow-none: rgba(143, 216, 106, 0); }
html.moving { overflow-x: clip; }
.fx-glow { position: fixed; z-index: 40; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--glow) 0%, var(--glow-none) 68%); }
/* The page being opened stays out of sight until script.js starts bringing its blocks out of the tab. */
html.arriving main, html.arriving .contact, html.arriving .site-footer { visibility: hidden; }

/* "Skip to content" link: off screen until someone reaches it with the Tab key. */
.skip { position: absolute; left: 16px; top: -100px; z-index: 60; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; color: var(--on-accent); }
