/* Patterson's Lawn Care & Snow Removal - polished demo site */

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

:root {
  --navy-950: #06142d;
  --navy-900: #0b2454;
  --navy-800: #123a75;
  --navy-700: #1b4f92;
  --gold-600: #d7a51e;
  --gold-500: #f2c94c;
  --gold-100: #fff2c2;
  --green-800: #1e4d26;
  --green-600: #2f7d3c;
  --green-100: #eaf7ed;
  --snow-100: #e8f2fb;
  --ink: #111827;
  --muted: #526173;
  --line: #dfe5ef;
  --soft: #f6f8fb;
  --white: #ffffff;
  --error: #b91c1c;
  --error-bg: #fff1f2;
  --shadow-sm: 0 2px 10px rgba(11, 36, 84, .08);
  --shadow-md: 0 12px 32px rgba(11, 36, 84, .14);
  --shadow-lg: 0 28px 70px rgba(6, 20, 45, .24);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { padding: 86px 0; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -120px;
  z-index: 999;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 800;
}
.skip-link:focus { top: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 800 .96rem/1 var(--font);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-600); border-color: var(--gold-600); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,.68); background: rgba(255,255,255,.04); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-call { color: var(--white); background: var(--navy-900); border-color: var(--navy-900); }
.btn-lg { min-height: 52px; padding: 15px 24px; }
.btn-full { width: 100%; }

.btn-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  position: relative;
}
.btn-icon--phone::before {
  content: "";
  position: absolute;
  inset: .12em .18em;
  border: .16em solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 0 0 0 .45em;
  transform: rotate(-28deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,229,239,.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold-500);
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(242,201,76,.22);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.14; }
.logo-name { color: var(--navy-900); font-size: 1.05rem; font-weight: 900; }
.logo-sub { color: var(--muted); font-size: .72rem; font-weight: 700; }

.main-nav ul { display: flex; align-items: center; gap: 3px; }
.main-nav a {
  display: block;
  padding: 8px 11px;
  color: #314154;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 750;
}
.main-nav a:hover,
.main-nav a.active { background: var(--gold-100); color: var(--navy-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--soft);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy-900);
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
  padding: 92px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6,20,45,.95) 0%, rgba(11,36,84,.9) 48%, rgba(11,36,84,.58) 100%),
    url("assets/images/lawn-stripes.png") center / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 22%, rgba(242,201,76,.22), transparent 34%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 380px;
  align-items: center;
  gap: 54px;
}
.eyebrow,
.section-kicker {
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 900;
}
.hero h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 900;
}
.hero-sub {
  max-width: 660px;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 18px;
  color: rgba(255,255,255,.72);
  font-weight: 650;
}
.hero-note strong { color: var(--white); }
.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.1);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-card-body {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  color: var(--white);
}
.hero-card-body strong { font-size: 1.02rem; }
.hero-card-body span { color: rgba(255,255,255,.72); font-size: .9rem; }

.trust-strip {
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-inner article {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}
.trust-inner article:last-child { border-right: 0; }
.trust-inner strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.05rem;
  font-weight: 900;
}
.trust-inner span { color: var(--muted); font-size: .9rem; }

.section-header {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}
.section-header h2,
.materials h2,
.service-area h2,
.contact h2 {
  margin: 8px 0 12px;
  color: var(--navy-900);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 900;
}
.section-header p,
.materials p,
.service-area p,
.contact p { color: var(--muted); font-size: 1.03rem; }

.services { background: var(--soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green-600);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(11,36,84,.08);
}
.service-card--snow { border-top-color: var(--navy-700); }
.service-card--work { border-top-color: var(--gold-600); }
.service-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--green-100);
  position: relative;
}
.service-icon::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 3px solid var(--green-600);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 14px 0;
  transform: rotate(-35deg);
}
.service-icon--snow { background: var(--snow-100); }
.service-icon--snow::before {
  inset: 20px 10px;
  height: 4px;
  border: 0;
  background: var(--navy-700);
  box-shadow: 0 -9px 0 var(--navy-700), 0 9px 0 var(--navy-700);
  transform: rotate(35deg);
}
.service-icon--work { background: var(--gold-100); }
.service-icon--work::before {
  inset: 12px;
  border: 3px solid var(--gold-600);
  border-radius: 4px;
  transform: rotate(0);
}
.service-card h3 {
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 900;
}
.service-card ul { margin: 18px 0 22px; }
.service-card li {
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--line);
  color: #334155;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-500);
}
.text-link {
  color: var(--navy-900);
  font-weight: 900;
}
.text-link::after { content: " ->"; color: var(--gold-600); }

.schedule-band {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
}
.schedule-band strong { margin-right: auto; }
.schedule-band span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: var(--gold-100);
  font-weight: 800;
}

.seasonal { background: var(--white); }
.season-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.season-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(30,77,38,.28), rgba(6,20,45,.9)),
    url("assets/images/mulch-bed.png") center / cover no-repeat;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.season-card--gold {
  background:
    linear-gradient(180deg, rgba(242,201,76,.16), rgba(6,20,45,.92)),
    url("assets/images/business-sign.png") center / cover no-repeat;
}
.season-card--blue {
  background:
    linear-gradient(180deg, rgba(18,58,117,.14), rgba(6,20,45,.94)),
    url("assets/images/lawn-stripes.png") center / cover no-repeat;
}
.season-card span {
  color: var(--gold-500);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.season-card h3 {
  margin-top: 8px;
  font-size: 1.45rem;
  line-height: 1.1;
}
.season-card p { margin-top: 10px; color: rgba(255,255,255,.8); }

.work { background: var(--soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr .9fr;
  gap: 18px;
}
.gallery-grid figure {
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
}
.gallery-grid figure:first-child { grid-row: span 2; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform .28s ease;
}
.gallery-grid figure:hover img { transform: scale(1.035); }
.gallery-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6,20,45,.82);
  color: var(--white);
  font-size: .86rem;
  font-weight: 900;
}

.materials {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}
.materials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
}
.materials h2 { color: var(--white); }
.materials p { color: rgba(255,255,255,.75); }
.materials-panel {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
}
.materials-panel strong { font-size: 1.25rem; }
.materials-panel span { color: rgba(255,255,255,.7); }
.materials-panel a { color: var(--gold-500); font-size: 1.7rem; font-weight: 900; }

.service-area { background: var(--white); }
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 32px;
}
.area-callout {
  display: grid;
  gap: 6px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-md);
}
.area-callout span { font-weight: 800; }
.area-callout strong { font-size: 2rem; line-height: 1; }

.contact {
  background:
    linear-gradient(180deg, rgba(246,248,251,.96), rgba(246,248,251,.96)),
    url("assets/images/lawn-stripes.png") center / cover no-repeat;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}
.phone-card {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.phone-card span { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.phone-card strong { color: var(--navy-900); font-size: 2rem; line-height: 1; }

.estimate-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 15px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #2f3d4f;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.required-mark { color: var(--navy-800); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 500 .96rem/1.45 var(--font);
}
.form-group textarea { resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 4px rgba(242,201,76,.2);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}
.select-wrap select { appearance: none; padding-right: 34px; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
  background: var(--error-bg);
}
.field-error {
  display: block;
  margin-top: 5px;
  color: var(--error);
  font-size: .78rem;
  font-weight: 800;
}
.form-required-note,
.form-note { color: var(--muted); font-size: .82rem; }
.form-note { margin-top: 12px; text-align: center; }
.form-note a { color: var(--navy-800); font-weight: 900; }
.form-success,
.form-error {
  margin-top: 15px;
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 800;
}
.form-success { background: var(--gold-100); color: var(--navy-900); }
.form-error { background: var(--error-bg); color: var(--error); }
.form-success[hidden],
.form-error[hidden] { display: none; }

.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.72);
  padding-top: 42px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 26px;
  align-items: start;
  padding-bottom: 32px;
}
.footer-grid strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}
.footer-grid span { display: block; color: rgba(255,255,255,.52); margin-top: 4px; }
.footer-grid nav {
  display: grid;
  gap: 8px;
}
.footer-grid nav a:hover { color: var(--white); }
.footer-phone {
  color: var(--gold-500);
  font-size: 1.25rem;
  font-weight: 900;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  color: rgba(255,255,255,.42);
  font-size: .82rem;
  text-align: center;
}

.sticky-call {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  gap: 10px;
  padding: 10px 12px;
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,.12);
}
.btn-call-sticky,
.btn-estimate-sticky {
  flex: 1;
  min-height: 48px;
  padding: 12px 10px;
  font-size: .86rem;
}
.btn-call-sticky { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); }
.btn-estimate-sticky { color: var(--white); border-color: rgba(255,255,255,.34); background: transparent; }

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 190;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  cursor: pointer;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

@media (max-width: 920px) {
  .header-call { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 12px 20px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .hero-grid,
  .materials-grid,
  .area-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-card,
  .materials-panel,
  .area-callout { max-width: 520px; }
  .services-grid,
  .season-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure:first-child { grid-row: auto; grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  section { padding: 62px 0; }
  .container { width: min(100% - 28px, 1120px); }
  .hero { min-height: auto; padding: 64px 0 58px; }
  .hero h1 { font-size: clamp(2.35rem, 15vw, 3.75rem); }
  .hero-actions .btn { width: 100%; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-inner article { border-right: 0; border-bottom: 1px solid var(--line); }
  .schedule-band { align-items: stretch; }
  .schedule-band strong { width: 100%; margin-right: 0; }
  .schedule-band span { flex: 1; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:first-child { grid-column: auto; }
  .estimate-form { padding: 22px 16px; }
  .phone-card strong,
  .area-callout strong { font-size: 1.55rem; }
  .sticky-call { display: flex; }
  body { padding-bottom: 70px; }
  .scroll-top { bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .btn:hover,
  .gallery-grid figure:hover img { transform: none; }
}

@media print {
  .site-header,
  .sticky-call,
  .scroll-top,
  .estimate-form,
  .hero-actions { display: none; }
  body { color: #000; background: #fff; padding: 0; }
  .hero,
  .materials,
  .site-footer { color: #000; background: #fff; }
  .hero-bg { display: none; }
  section { padding: 20px 0; }
}
