/* JP Lawn & Property Services — static site
   Warm, modern family-business design. System-plus web fonts, lawn-green palette. */
:root {
  /* Palette sampled from images/official-logo.webp (unchanged asset). */
  --forest: #024d26;
  --forest-deep: #020b08;
  --lawn: #083f1d;
  --leaf: #778e36;
  --mist: #ecf0c3;
  --cream: #f5f7ea;
  --paper: #fcfdf6;
  --ink: #04120b;
  --muted: #4a5c38;
  --line: #c5d0a8;
  --yellow: #e3c833;
  --yellow-deep: #c9ad20;
  --danger: #9b2c1c;
  --danger-bg: #fff1ed;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(11, 42, 30, .12);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --tap: 44px;
  --header-h: 76px;
}
html[data-color-mode=dark] {
  --forest: #0a5c2e;
  --forest-deep: #020b08;
  --lawn: #8aa64a;
  --leaf: #778e36;
  --mist: #0d2418;
  --cream: #07140e;
  --paper: #0c1c14;
  --ink: #ecf0c3;
  --muted: #a9b98a;
  --line: #1e3d2a;
  --yellow: #e3c833;
  --danger: #ffb4a8;
  --danger-bg: #3a1d18;
  --shadow: 0 20px 50px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lawn); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link {
  position: fixed; left: 16px; top: -120px; z-index: 100;
  background: var(--yellow); color: var(--forest-deep);
  padding: 10px 14px; font-weight: 700; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; line-height: 1.15; font-size: .95rem;
  min-height: var(--tap);
}
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.nav-controls { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: 999px;
}
.nav a:hover { background: var(--mist); }
.nav .button.compact { padding: 0 18px; margin-left: 6px; }
.menu-button {
  display: none;
  min-height: var(--tap); min-width: var(--tap);
  padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 700;
}
.color-mode-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 600; font-size: .85rem;
}
.color-mode-toggle .sun-icon,
.color-mode-toggle .moon-icon { width: 17px; height: 17px; }
html[data-color-mode=dark] .sun-label,
html[data-color-mode=sunlight] .dark-label,
html[data-color-mode=dark] .sun-icon,
html[data-color-mode=sunlight] .moon-icon { display: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid var(--forest);
  background: var(--forest); color: #fff;
  font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #083f1d; }
.button.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--forest-deep); }
.button.yellow:hover { background: var(--yellow-deep); }
.button.secondary, .button.ghost {
  background: transparent; color: var(--forest); border-color: var(--line);
}
html[data-color-mode=dark] .button.secondary,
html[data-color-mode=dark] .button.ghost { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: min(86vh, 760px);
  background: var(--forest-deep);
  color: #f4f8f1;
  overflow: hidden;
}
.hero-copy {
  padding: 72px 40px 64px max(32px, calc(50vw - 560px));
  display: flex; flex-direction: column; justify-content: center;
}
.eyebrow {
  display: inline-block;
  letter-spacing: .16em; text-transform: uppercase;
  font-size: .72rem; font-weight: 700; color: #b8d4b0; margin-bottom: 14px;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: var(--yellow);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  color: #fff;
}
.hero h1 em { font-style: italic; font-weight: 500; color: #dcecd4; }
.hero-description { margin: 0 0 28px; font-size: 1.15rem; max-width: 36rem; color: #d7e6d2; }
.hero-phone, .hero-copy .actions a.hero-phone {
  color: #fff; font-weight: 700; text-decoration: none;
  min-height: var(--tap); display: inline-flex; align-items: center;
}
.hero-area {
  margin: 28px 0 0;
  font-size: .98rem;
  color: #c9dbc6;
  max-width: 38rem;
  line-height: 1.6;
}
.hero-image { position: relative; min-height: 100%; }
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.image-label {
  position: absolute; left: 20px; bottom: 20px;
  background: color-mix(in srgb, var(--forest-deep) 72%, transparent);
  color: #fff; padding: 14px 18px; border-radius: 14px; backdrop-filter: blur(8px);
}
.image-label span { display: block; font-weight: 700; }
.image-label small { color: #d5e6d0; }

/* Sections */
.section { padding: 88px 0; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.compact-title-row, .section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  margin-bottom: 36px;
}
.text-link { font-weight: 700; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.compact-service-grid, .service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.compact-service-grid article, .service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  min-height: 160px;
}
.compact-service-grid article span, .service-card span {
  display: block; font-weight: 700; color: var(--lawn); font-size: .8rem; letter-spacing: .08em;
  margin-bottom: 10px;
}
.compact-service-grid h3, .service-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.compact-service-grid p, .service-card p { margin: 0; color: var(--muted); }
.compact-facts {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin-top: 28px; color: var(--muted); font-weight: 600; font-size: .95rem;
}
.compact-facts span::before { content: "•"; color: var(--leaf); margin-right: 10px; }
.compact-facts span:first-child::before { content: none; margin: 0; }

/* Photos */
.compact-proof { background: var(--mist); }
.compact-proof-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.compact-job-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.compact-job-gallery figure { margin: 0; }
.compact-job-gallery img {
  width: 100%; height: 280px; object-fit: cover; border-radius: 18px;
  box-shadow: var(--shadow);
}
.compact-job-gallery figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.photo-note { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.why-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.why-card ol { margin: 16px 0 20px; padding-left: 1.15rem; }
.why-card li { margin: 8px 0; }

/* Offer */
.compact-offer-section { padding-top: 20px; padding-bottom: 100px; }
.compact-offer-card {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--forest);
  color: #f4f8f1;
  border-radius: 28px;
  padding: 36px 40px;
}
.compact-offer-card h2 { color: #fff; margin: 8px 0 8px; }
.compact-offer-card p { margin: 0; color: #d5e6d0; max-width: 36rem; }
.offer-code {
  display: inline-block; background: var(--yellow); color: var(--forest-deep);
  font-weight: 800; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; font-size: .85rem;
}
.offer-text-link { color: #fff; font-weight: 700; min-height: var(--tap); display: inline-flex; align-items: center; }

/* Footer */
footer {
  background: var(--forest-deep);
  color: #d5e3d1;
  padding: 56px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
footer .brand { margin-bottom: 12px; }
footer .brand img { width: 64px; height: 64px; border-radius: 14px; background: #fcfdf6; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin: 0 0 8px; }
footer a { color: #fff; text-decoration: none; display: inline-flex; min-height: var(--tap); align-items: center; }
footer a:hover { text-decoration: underline; }
.footer-bottom {
  width: min(1120px, calc(100% - 40px)); margin: 28px auto 0;
  border-top: 1px solid #2a4a3b; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: .8rem; color: #9fb5a6;
}

/* Sticky mobile bar */
.mobile-cta { display: none; }

/* Estimate */
.estimate-page { background: var(--cream); }
.estimate-section { padding: 48px 0 80px; }
.estimate-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.estimate-intro h1 {
  font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px;
}
.contact-mini { margin-top: 24px; display: grid; gap: 4px; }
.contact-mini a { font-weight: 700; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.estimate-form, form.estimate-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-progress {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 22px;
}
.form-progress span {
  border-top: 3px solid var(--line);
  padding-top: 10px;
  font-size: .82rem; color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}
.form-progress span b {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mist); font-size: .8rem;
}
.form-progress span.active { border-color: var(--lawn); color: var(--ink); font-weight: 700; }
.form-progress span.active b { background: var(--forest); color: #fff; }
.form-progress span.done { border-color: var(--leaf); }
.form-note { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field, .field.wide, label.field { display: block; font-weight: 700; font-size: .9rem; }
.field.wide, .form-grid .wide { grid-column: 1 / -1; }
.field :is(input, select, textarea) {
  display: block; width: 100%; margin-top: 7px;
  min-height: var(--tap); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink); font-size: 16px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field small { display: block; font-weight: 500; color: var(--muted); margin-top: 6px; }
.service-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 16px; }
.check-option, .frequency-option {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; min-height: var(--tap);
  background: var(--cream); font-weight: 600;
}
.check-option input, .frequency-option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--forest); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.fine-print { color: var(--muted); text-align: right; margin: 14px 0 0; font-size: .78rem; }
.honeypot, .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  display: none; color: var(--danger); background: var(--danger-bg);
  border: 1px solid #b13521; border-radius: 10px; padding: 12px 14px; margin-top: 14px;
}
.form-error.is-visible { display: block; }
.field :is(input,select,textarea)[aria-invalid=true] { border-color: #b13521; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-weight: 500; font-size: .92rem; }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--forest); }
.promo-note { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.frequency-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.job-details { margin: 8px 0 18px; }
.detail-note { color: var(--muted); font-size: .88rem; }

/* Legal / thank you */
.legal-page { max-width: 800px; padding: 64px 0 100px; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.03em; }
.legal-page h2 { margin-top: 36px; margin-bottom: 12px; font-size: 1.4rem; }
.confirmation { max-width: 820px; min-height: 60vh; padding: 80px 0 100px; }
.confirmation h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.1rem); letter-spacing: -.03em; line-height: 1.1; }

/* 404 */
.page-404 { text-align: left; padding: 80px 0 120px; }
.page-404 h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); }


/* Areas we serve */
.areas-section { padding-top: 48px; padding-bottom: 24px; }
.areas-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 16px 0 18px; padding: 0;
}
.areas-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: .95rem;
}

/* End-of-page quote CTA */
.quote-end { padding-top: 20px; padding-bottom: 80px; }
.quote-end-card {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--forest);
  color: #f4f8f1;
  border-radius: 28px;
  padding: 36px 40px;
}
.quote-end-card h2 { color: #fff; margin: 8px 0 8px; }
.quote-end-card p { margin: 0; color: #d5e6d0; max-width: 36rem; }
.quote-end-card .eyebrow { color: #cfe3c6; }
.quote-end-text-link {
  color: #fff; font-weight: 700; text-decoration: none;
  min-height: var(--tap); display: inline-flex; align-items: center;
}

/* Pay / review helpers */
.pay-section { padding-top: 48px; padding-bottom: 24px; }
.pay-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  max-width: 760px;
}
.pay-card h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.review-google, .invoice-pay { margin-top: 20px; }
.estimate-intro .actions { margin: 16px 0 8px; }

@media (max-width: 900px) {
  .hero, .estimate-grid, .compact-proof-grid, .footer-grid, .compact-offer-card,
  .compact-service-grid, .service-grid, .form-grid, .service-options, .frequency-options,
  .quote-end-card {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 0; }
  .hero-copy { padding: 48px 22px 36px; }
  .hero-image { min-height: 280px; }
  .hero-image img { position: relative; height: 280px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
  }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .header { position: sticky; }
  .compact-job-gallery img { height: 200px; }
  .mobile-cta {
    display: grid;
    grid-template-columns: .8fr .8fr 1.4fr;
    gap: 7px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(11, 42, 30, .12);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center;
    min-height: var(--tap); border-radius: 10px;
    font-size: .8rem; font-weight: 700; text-decoration: none;
    color: var(--forest); background: var(--mist);
  }
  .mobile-cta a:last-child { background: var(--yellow); color: var(--forest-deep); }
  body { padding-bottom: 88px; }
  footer { padding-bottom: 24px; }
  .section { padding: 64px 0; }
  .compact-offer-section { padding-bottom: 80px; }
  .compact-offer-card, .estimate-form, .why-card, .quote-end-card, .pay-card { padding: 24px 20px; border-radius: 20px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .fine-print { text-align: left; }
  .section-head, .compact-title-row { align-items: start; flex-direction: column; }
}
@media (max-width: 500px) {
  .mobile-cta { grid-template-columns: 1fr 1fr 1.3fr; }
  .brand span { max-width: 9.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.frequency-option small { display: block; font-weight: 500; color: var(--muted); }
.form-error[hidden] { display: none !important; }
fieldset legend small { font-weight: 500; color: var(--muted); }
