/* Blake's Lawn Service — styles
   Palette pulled from the logo: striped lawn greens, silhouette black,
   white, and the red of the zero-turn mower. */

:root {
  --field-deep: #143a12;   /* hero band, shadow stripe */
  --field-dark: #1d5419;   /* light stripe on the hero band */
  --field: #2a7a22;        /* logo's darker mowing stripe */
  --field-bright: #3f9a30; /* logo's lighter mowing stripe */
  --field-pale: #e8f0e3;   /* section background */
  --field-line: #cfdcc7;   /* borders on pale surfaces */
  --ink: #000000;          /* headings, same black as the logo silhouettes */
  --ink-body: #1c231b;     /* body text */
  --ink-soft: #4a554a;     /* secondary text */
  --paper: #ffffff;
  --mower-red: #c1272d;
  --mower-red-dark: #9e1f24;
  --on-dark: #ffffff;
  --on-dark-soft: #cfe3c9;

  --display: "Archivo", "Arial Black", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 28px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 100%;
  color: var(--ink);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 900; font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--field); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--field-deep); }

:focus-visible {
  outline: 3px solid var(--mower-red);
  outline-offset: 3px;
}
.hero-shell :focus-visible { outline-color: #ffd23f; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  padding: 10px 14px; background: var(--paper); color: var(--ink);
  border-radius: var(--radius-sm); z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ----- Buttons ----- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--body); font-weight: 600; font-size: 1.0625rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
}
.button-primary { background: var(--mower-red); color: var(--on-dark); border-color: var(--mower-red); }
.button-primary:hover { background: var(--mower-red-dark); border-color: var(--mower-red-dark); color: var(--on-dark); }
.button-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.55); }
.button-ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,0.08); color: var(--on-dark); }

.text-link { font-weight: 600; }

/* ----- Hero shell: full-bleed cover photo ----- */
.hero-shell {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: min(88vh, 820px);
  margin: clamp(8px, 1.5vw, 18px);
  border-radius: var(--radius-lg);
  color: var(--on-dark);
  background-color: #0b160a;
  overflow: hidden;
}
.hero-cover {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 62%;
}
/* Darken the left side and the top edge so the headline and nav stay readable over the photo. */
.hero-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 5, 0.86) 0%, rgba(6, 16, 5, 0.6) 42%, rgba(6, 16, 5, 0.1) 100%),
    linear-gradient(180deg, rgba(6, 16, 5, 0.6) 0%, rgba(6, 16, 5, 0) 28%);
}

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; }
.brand-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--paper); flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; color: var(--on-dark);
  border: 2px solid rgba(255,255,255,0.45); border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav a { color: var(--on-dark); text-decoration: none; font-weight: 500; padding: 8px 2px; display: inline-block; }
.site-nav ul a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; color: var(--on-dark); }
.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 2px solid rgba(255,255,255,0.55); border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.phone-link:hover { border-color: var(--on-dark); background: rgba(255,255,255,0.08); }

.hero {
  flex: 1; display: flex; align-items: flex-end;
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(40px, 7vw, 80px);
}
.hero-copy { max-width: 640px; }
.hero h1 { color: var(--on-dark); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero p { margin-top: 20px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #e4eee0; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ----- Sections ----- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head {
  display: grid; gap: 12px 48px; align-items: end;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head p { color: var(--ink-soft); max-width: 48ch; }
@media (min-width: 800px) {
  .section-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .section-head p { justify-self: end; text-align: right; }
}

/* Why */
.why { background: var(--paper); }
.why-list { display: grid; gap: 32px; }
@media (min-width: 720px) { .why-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.why-list li { border-top: 3px solid var(--field-bright); padding-top: 20px; }
.why-icon { width: 36px; height: 36px; fill: none; stroke: var(--field); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.why-list h3 { margin-bottom: 8px; }
.why-list p { color: var(--ink-soft); }

/* Services */
.services { background: var(--field-pale); }
.service-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--field-line);
  display: flex; flex-direction: column;
}
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-media { display: block; }
.service-body h3 a { color: var(--ink); text-decoration: none; }
.service-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.service-body ul { display: grid; gap: 6px; color: var(--ink-soft); }
.service-body li { padding-left: 18px; position: relative; }
.service-body li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--field-bright);
}
.service-body .text-link { margin-top: auto; align-self: flex-start; }

/* Work */
.work { background: var(--paper); }
.sub-heading { font-size: 1.125rem; color: var(--ink-soft); margin: 0 0 16px; }
.sub-heading + .compare-grid { margin-bottom: clamp(36px, 5vw, 56px); }
.compare-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .compare-grid { grid-template-columns: 1fr 1fr; } }

/* Before/after slider: the "after" photo sits on top and is clipped at --pos.
   An invisible range input covers the frame so drag, touch, and arrow keys all move the divider. */
.compare { margin: 0; }
.compare-frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--field-pale); user-select: none; -webkit-user-select: none;
}
.compare-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-label {
  position: absolute; top: 14px; z-index: 2; pointer-events: none;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; line-height: 1.2;
}
.compare-label-before { left: 14px; background: rgba(0, 0, 0, 0.55); color: var(--on-dark); }
.compare-label-after { right: 14px; background: var(--field); color: var(--on-dark); }
.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px;
  margin-left: -1px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none;
}
.compare-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--field); border: 2px solid var(--field-bright);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.compare-handle .icon { width: 22px; height: 22px; stroke-width: 2.25; }
.compare-range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.compare-frame:focus-within { outline: 3px solid var(--mower-red); outline-offset: 3px; }
.compare-frame:focus-within .compare-handle { border-color: var(--mower-red); }
.compare figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: 36px 16px 14px; color: var(--on-dark); font-size: 0.9375rem; font-weight: 500; text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.photo { margin: 0; }
.photo-button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--field-pale);
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
}
.photo-button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-soft); }

.gallery { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }


/* Quote */
.quote { background: var(--field-pale); }
.quote-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; } }
.quote-intro p { max-width: 46ch; }
.quote-intro > p { margin-top: 12px; color: var(--ink-soft); }
.contact-block { margin-top: 28px; display: grid; gap: 16px; }
.contact-block strong { color: var(--ink); }
.contact-block a { font-weight: 600; }

.quote-form {
  background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px;
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; color: var(--ink); }
.required { color: var(--mower-red); }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; color: var(--ink-body);
  min-height: 48px; padding: 10px 12px;
  border: 1.5px solid #9aab92; border-radius: var(--radius-sm); background: var(--paper);
  width: 100%;
}
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible {
  outline: 3px solid var(--field-bright); outline-offset: 0; border-color: var(--field);
}
.quote-form input[aria-invalid="true"], .quote-form select[aria-invalid="true"] { border-color: var(--mower-red); }
.field-help { font-size: 0.9375rem; color: var(--ink-soft); }
.field-error { font-size: 0.9375rem; color: var(--mower-red-dark); font-weight: 600; display: none; }
.field-error:not(:empty) { display: block; }
.form-note { font-size: 0.9375rem; color: var(--ink-soft); }
.quote-form .button { justify-self: start; }
.quote-form .button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-weight: 600; }
.form-status.is-error { color: var(--mower-red-dark); }
.form-status.is-success { color: var(--field); }

/* Footer */
.site-footer { background: var(--paper); border-top: 4px solid var(--field-bright); padding: 48px 0 28px; }
.footer-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: auto 1fr auto; gap: 48px; } }
.footer-brand img { width: 160px; height: 160px; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact strong { color: var(--ink); }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { font-weight: 500; }
.footer-legal { margin-top: 36px; font-size: 0.9375rem; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 96vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(6, 18, 5, 0.88); }
.lightbox img { max-width: min(96vw, 1200px); max-height: 82vh; width: auto; height: auto; margin-inline: auto; border-radius: var(--radius-sm); }
.lightbox-caption { color: var(--on-dark); text-align: center; margin-top: 12px; font-size: 1rem; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox:focus-visible { outline: none; }

/* ----- Mobile nav ----- */
@media (max-width: 799px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px);
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--field-deep); border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius); padding: 12px; z-index: 50;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 10px; border-radius: var(--radius-sm); }
  .phone-link { justify-content: center; }
  .brand-name { font-size: 1rem; }
}
@media (max-width: 640px) {
  .hero-shell::before {
    background:
      linear-gradient(180deg, rgba(6, 16, 5, 0.7) 0%, rgba(6, 16, 5, 0.45) 40%, rgba(6, 16, 5, 0.82) 100%);
  }
  .hero-cover { object-position: 62% center; }
}
@media (max-width: 480px) {
  .gallery { gap: 12px; }
  .hero-actions .button { width: 100%; }
}

/* ----- Service pages ----- */
.hero-shell-page { min-height: min(62vh, 560px); }
.hero-kicker { font-weight: 600; color: var(--on-dark-soft); margin: 0 0 10px; }
.hero-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.hero-page p { margin-top: 12px; }

.service-nav { background: var(--paper); border-bottom: 1px solid var(--field-line); }
.service-nav ul { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a {
  display: block; padding: 16px 14px; white-space: nowrap;
  color: var(--ink-soft); font-weight: 600; text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.service-nav a:hover { color: var(--ink); }
.service-nav a[aria-current="page"] { color: var(--field); border-bottom-color: var(--field-bright); }

.service-intro { background: var(--paper); }
.intro-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .intro-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.intro-grid h2 { margin-bottom: 14px; }
.intro-grid > div > p { font-size: 1.125rem; max-width: 58ch; }
.checklist { display: grid; gap: 10px; padding: 22px 24px; background: var(--field-pale); border-radius: var(--radius); }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--field-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.gallery-section { background: var(--field-pale); }
.gallery-section .photo-button { background: var(--paper); }

.cta-band { background: var(--paper); border-top: 1px solid var(--field-line); }
.cta-inner { display: grid; gap: 24px; }
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }
.cta-inner p { margin-top: 8px; color: var(--ink-soft); max-width: 50ch; }
.cta-band .button-ghost { color: var(--field); border-color: var(--field-line); }
.cta-band .button-ghost:hover { color: var(--field-deep); border-color: var(--field); background: var(--field-pale); }
