/* Built by build.mjs from site.json. Edit site.json (or the template), then run: node build.mjs */
/* Shared base for every template. A template's styles.css sets the look (custom properties) and styles its own sections. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p, ul, ol, dl, dd, figure, h1, h2, h3, h4, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
  .js [data-hero] { visibility: hidden; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* SplitText line masks: room for descenders while lines slide in. */
[data-split] > div, [data-hero-lines] > div { padding-bottom: 0.12em; margin-bottom: -0.12em; }

.wrap { max-width: var(--max); margin-inline: auto; }
.section { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 0.75rem 1rem; border-radius: 8px;
  background: var(--fg); color: var(--bg);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Concept label: deliberately plain, so it reads as a note on top of the design, not part of it. */
.concept-bar {
  padding: 0.6rem var(--gutter);
  background: #161616; color: #F4F4F0;
  font: 500 0.8125rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
}
.concept-bar a { color: inherit; font-weight: 700; }

@media (max-width: 759px) {
  .nav-wide { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 1.5rem;
  border: 0; border-radius: var(--radius-btn, 999px);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* "Open now" badge, filled in by site.js */
.open-now { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.open-now::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--closed, #B42318); }
.open-now.is-open::before { background: var(--open, #1A7F37); box-shadow: 0 0 0 4px color-mix(in srgb, var(--open, #1A7F37) 22%, transparent); }

/* Hours */
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.hours-row dt { font-weight: 600; }
.hours-row dd { font-variant-numeric: tabular-nums; text-align: right; }
.hours-row.is-today { font-weight: 800; }
.hours-row.is-today dt::after { content: " (today)"; font-weight: 500; }

/* Map */
.map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Forms */
.lead-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field > label, .checks legend { font-weight: 700; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--muted); }
/* Text boxes only: checkboxes and radios keep their own small size. */
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--input-border, var(--line)); border-radius: var(--radius-input, 8px);
  background: var(--input-bg, #FFFFFF); color: var(--input-fg, var(--fg));
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.check-options input { flex: none; width: 1.1rem; height: 1.1rem; }
.checks { margin: 0; padding: 0; border: 0; min-width: 0; }
.checks legend { padding: 0; margin-bottom: 0.6rem; }
.check-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check-options label {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem;
  border: 1.5px solid var(--input-border, var(--line)); border-radius: 999px;
  background: var(--input-bg, #FFFFFF); color: var(--input-fg, var(--fg));
  font-weight: 500; cursor: pointer;
}
.check-options label:has(:checked) { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.check-options input { margin: 0; accent-color: var(--accent); }
.hp { display: none; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-weight: 700; }
.form-error { padding: 1rem 1.1rem; border-left: 3px solid var(--closed, #B42318); background: rgba(180, 35, 24, 0.08); }
@media (min-width: 640px) {
  .lead-form { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .field-wide, .checks, .form-end, .form-error { grid-column: 1 / -1; }
}

/* Footer */
.site-footer { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 2rem; background: var(--footer-bg); color: var(--footer-fg); }
.footer-grid { display: grid; gap: 2rem; }
.footer-name { margin-bottom: 0.75rem; font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; }
.footer-h { margin-bottom: 0.6rem; font: 700 0.9375rem/1.2 var(--font-body); opacity: 0.7; }
.site-footer p + p { margin-top: 0.25rem; }
.site-footer a { text-underline-offset: 0.2em; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  font-size: 0.875rem; opacity: 0.8;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; }
}

/* Mobile Call / Book bar */
.sticky-bar { display: none; }
@media (max-width: 759px) {
  .sticky-bar {
    position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding: 7px;
    border-radius: 999px; background: var(--bar-bg); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 0.3s;
  }
  .sticky-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .sticky-call { color: var(--bar-fg); box-shadow: inset 0 0 0 1.5px currentColor; }
  .sticky-book { background: var(--accent); color: var(--accent-fg); }
  .js .sticky-bar:not(.is-shown) { transform: translateY(150%); opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 7rem; }
}

/* Landscaping template: coastal garden. Sun-bleached sage, deep palm green, fresh-cut lime, mower stripes. */

:root {
  --bg: #F2F1E6;
  --fg: #18301F;
  --muted: #4F5E50;
  --line: rgba(24, 48, 31, 0.16);
  --lime: #C9E265;
  --stripe-a: #8DB654;
  --stripe-b: #78A443;
  --accent: var(--lime);
  --accent-fg: var(--fg);
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  --btn-hover-bg: var(--lime);
  --btn-hover-fg: var(--fg);
  --focus: var(--fg);
  --radius-input: 12px;
  --footer-bg: var(--fg);
  --footer-fg: var(--bg);
  --bar-bg: var(--fg);
  --bar-fg: var(--bg);
  --font-display: "Zilla Slab", Rockwell, Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1320px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

.section-title { font: 700 clamp(2.4rem, 5.6vw, 4.5rem)/0.98 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h); padding: 0.5rem var(--gutter);
  background: rgba(242, 241, 230, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font: 700 1.4rem/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none; }
.mark { display: grid; flex: none; grid-template-columns: repeat(4, 1fr); width: 28px; height: 28px; overflow: hidden; border-radius: 8px; }
.mark-stripe:nth-child(odd) { background: var(--stripe-a); }
.mark-stripe:nth-child(even) { background: var(--stripe-b); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); font-weight: 600; }
.site-nav a:not(.btn) {
  padding-block: 0.3rem; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.site-nav a:not(.btn):hover { background-size: 100% 2px; }

/* Hero */
.hero { padding-top: clamp(2rem, 6vw, 4.5rem); }
.hero-top { display: grid; gap: 1.5rem 3rem; padding-inline: var(--gutter); }
.hero-title { font: 700 clamp(3.2rem, 13vw, 9rem)/0.92 var(--font-display); letter-spacing: -0.03em; }
.hero-sub { max-width: 40ch; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-photo {
  position: relative; overflow: hidden;
  height: clamp(320px, 62svh, 760px);
  margin: clamp(2rem, 5vw, 3.5rem) var(--gutter) 0;
  border-radius: clamp(16px, 2.5vw, 28px);
}
.hero-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }

/* Mower stripes that cover the photo until site.js mows them away */
.mow { position: absolute; inset: 0; display: none; grid-template-columns: repeat(10, 1fr); }
@media (prefers-reduced-motion: no-preference) {
  .js .mow { display: grid; }
}
.mow-band { transform-origin: 50% 0; }
.mow-band:nth-child(odd) { background: var(--stripe-a); }
.mow-band:nth-child(even) { background: var(--stripe-b); transform-origin: 50% 100%; }

@media (min-width: 900px) {
  .hero-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
  .hero-title { font-size: clamp(4rem, 8vw, 8.5rem); }
}

/* Services */
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { max-width: 46ch; color: var(--muted); font-size: 1.125rem; }
.service-grid { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
.service-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.service:hover .service-photo img { transform: scale(1.05); }
.service h3 { margin-top: 1.1rem; font: 700 clamp(1.4rem, 2vw, 1.65rem)/1.1 var(--font-display); }
.service p { max-width: 38ch; margin-top: 0.45rem; color: var(--muted); }
.service .service-price { margin-top: 0.6rem; color: var(--fg); font-weight: 700; }
@media (min-width: 640px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; column-gap: 3rem; }
}
@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Lawn band: fresh mower stripes with the crew's promise on top */
.lawn-band {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: clamp(220px, 34vw, 420px); padding: 3rem var(--gutter);
  text-align: center;
}
.lawn-stripes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); }
.lawn-stripe:nth-child(odd) { background: var(--stripe-a); }
.lawn-stripe:nth-child(even) { background: var(--stripe-b); }
.lawn-line { position: relative; max-width: 16ch; font: 700 clamp(2.2rem, 6vw, 5rem)/1 var(--font-display); letter-spacing: -0.02em; }

/* How it works */
.steps { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.steps li { display: grid; gap: 0.6rem; align-content: start; }
.step-num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--lime); font: 700 1.4rem/1 var(--font-display); }
.steps h3 { margin-top: 0.4rem; font: 700 1.5rem/1.1 var(--font-display); }
.steps p { max-width: 34ch; color: var(--muted); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
}

/* Where we work */
.area { background: #E6E7D5; }
.area-wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.area-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.area-list li { padding: 0.5rem 1rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 0.9375rem; font-weight: 600; }
.area-info .hours { max-width: 440px; margin-top: 1.25rem; }
.area-map .map { aspect-ratio: 4 / 3.4; border-radius: 18px; }
@media (min-width: 900px) {
  .area-wrap { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

/* Quote */
.quote-wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.quote-intro p { max-width: 36ch; margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; }
.quote-intro .quote-call { color: var(--fg); font-weight: 600; }
@media (min-width: 900px) {
  .quote-wrap { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}

/* Footer: a strip of mower stripes along the top */
.site-footer { border-top: 12px solid; border-image: repeating-linear-gradient(90deg, var(--stripe-a) 0 64px, var(--stripe-b) 64px 128px) 12; }
.footer-name { font-weight: 700; }
