:root {
  --ink: #121212;
  --night: #071114;
  --charcoal: #172024;
  --mist: #f6fbfd;
  --paper: #ffffff;
  --line: #d9e7eb;
  --blue: #139fd7;
  --blue-dark: #0878a7;
  --gold: #d6a329;
  --orange: #f39800;
  --leaf: #5aa832;
  --text: #283338;
  --muted: #607078;
  --shadow: 0 18px 55px rgba(7, 17, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--mist);
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.topline {
  background: linear-gradient(90deg, var(--night), #12313a);
  color: var(--paper);
  font-weight: 800;
  text-align: center;
  padding: 0.48rem 1rem;
  font-size: 0.9rem;
  border-bottom: 3px solid var(--orange);
}

.topline a {
  color: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 112px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.8rem;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.35rem;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 0.55rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.page {
  display: none;
  min-height: 70vh;
  opacity: 0;
  transform: translateY(18px);
}

.page.active {
  display: block;
  animation: pageIn 580ms ease both;
}

@keyframes pageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 2rem;
  min-height: 700px;
  padding: 5rem 5vw 6rem;
  overflow: hidden;
  background: var(--night);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 17, 20, 0.88), rgba(7, 17, 20, 0.6), rgba(7, 17, 20, 0.28)),
    url("assets/images/sprinkler-hero.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  z-index: -1;
  background: linear-gradient(0deg, var(--mist), rgba(246, 251, 253, 0));
}

.hero-content {
  max-width: 720px;
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.86rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.02;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: 4.4rem;
  font-weight: 900;
}

.hero-copy,
.page-hero p,
.section-copy p,
.story-card p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}

.btn-call {
  min-height: 58px;
  padding: 0.98rem 1.45rem;
  font-size: 0.95rem;
}

.btn-secondary {
  border-color: rgba(19, 159, 215, 0.72);
  color: var(--paper);
  background: rgba(7, 17, 20, 0.72);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.hero-brand {
  justify-self: end;
  width: min(100%, 520px);
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(7, 17, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-brand img {
  width: 100%;
  margin: auto;
  filter: drop-shadow(0 16px 25px rgba(0, 0, 0, 0.34));
}

.hero-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--paper);
}

.hero-stat strong {
  color: var(--gold);
  font-size: 2rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.78);
}

.quick-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-bar div {
  min-height: 112px;
  padding: 1.4rem 5vw;
  background: var(--paper);
}

.quick-bar strong,
.quick-bar span {
  display: block;
}

.quick-bar strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.quick-bar span {
  margin-top: 0.35rem;
  color: var(--muted);
}

.section {
  padding: 5.2rem 5vw;
}

.split-section,
.values-section,
.compare-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 4rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.section-copy h2,
.section-heading h2,
.story-card h2,
.cta-band h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 2.55rem;
  font-weight: 900;
}

.section-copy p,
.story-card p {
  color: var(--muted);
}

.image-panel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 380px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.image-panel:hover img {
  transform: scale(1.04);
}

.image-panel.tall {
  min-height: 620px;
}

.image-panel.tall img {
  min-height: 620px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.check-grid span {
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  border-left: 4px solid var(--blue);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(7, 17, 20, 0.06);
}

.services-band {
  max-width: none;
  background: var(--night);
  color: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.services-band .section-heading h2 {
  color: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
}

.service-card,
.tune-card,
.story-card,
.contact-card,
.timeline div,
.compare-list div {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 15px 38px rgba(7, 17, 20, 0.08);
}

.service-card {
  min-height: 240px;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.service-number {
  display: block;
  margin-bottom: 2rem;
  color: var(--gold);
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 0.7rem;
  color: var(--paper);
  font-size: 1.25rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 5vw;
  background:
    linear-gradient(90deg, rgba(19, 159, 215, 0.92), rgba(90, 168, 50, 0.9)),
    url("assets/images/about-sprinklers.jpg") center / cover;
  color: var(--paper);
}

.cta-band h2 {
  max-width: 740px;
  margin: 0;
  color: var(--paper);
}

.cta-band .eyebrow {
  color: var(--paper);
}

.page-hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 5rem 5vw;
  color: var(--paper);
  background: var(--night);
}

.page-hero > div {
  max-width: 780px;
}

.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(7, 17, 20, 0.9), rgba(7, 17, 20, 0.42)),
    url("assets/images/about-sprinklers.jpg") center / cover;
}

.tune-hero {
  background:
    linear-gradient(90deg, rgba(7, 17, 20, 0.9), rgba(7, 17, 20, 0.36)),
    url("assets/images/sprinkler-hero.jpg") center / cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(7, 17, 20, 0.9), rgba(7, 17, 20, 0.42)),
    url("assets/images/about-sprinklers.jpg") center / cover;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 1.2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.story-card {
  padding: 2rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.timeline div {
  min-height: 176px;
  padding: 1.4rem;
}

.timeline strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
}

.timeline span,
.compare-list span {
  color: var(--muted);
  line-height: 1.6;
}

.values-section {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.9fr);
}

.value-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.value-list article {
  padding: 1.2rem 0 1.2rem 1.2rem;
  border-left: 4px solid var(--gold);
}

.value-list h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.2rem;
}

.value-list p {
  margin-bottom: 0;
}

.tune-section {
  max-width: 1240px;
  margin: 0 auto;
}

.tune-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tune-card {
  overflow: hidden;
  min-height: 430px;
}

.tune-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tune-card div:last-child {
  padding: 1.25rem;
}

.tune-card h3 {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 1.25rem;
}

.tune-card p {
  color: var(--muted);
  line-height: 1.65;
}

.tune-card-text {
  display: grid;
  align-content: center;
  padding: 1.4rem;
  background:
    linear-gradient(145deg, rgba(19, 159, 215, 0.08), rgba(214, 163, 41, 0.12)),
    var(--paper);
}

.spray-icon,
.filter-icon {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--night);
}

.spray-icon::before,
.spray-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border-top: 3px solid var(--blue);
  border-radius: 50%;
  transform-origin: left bottom;
}

.spray-icon::before {
  transform: rotate(-30deg);
}

.spray-icon::after {
  transform: rotate(-70deg);
  border-top-color: var(--gold);
}

.filter-icon::before,
.filter-icon::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  background: var(--blue);
}

.filter-icon::before {
  top: 22px;
  height: 12px;
}

.filter-icon::after {
  top: 42px;
  height: 24px;
  background: var(--gold);
}

.fine-print {
  max-width: 1240px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.compare-section {
  padding-top: 0;
}

.compare-list {
  display: grid;
  gap: 1rem;
}

.compare-list div {
  padding: 1.4rem;
}

.compare-list strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--orange);
  font-size: 1.4rem;
}

.contact-section {
  max-width: 1240px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.contact-card {
  padding: 2rem;
}

.contact-card img {
  width: 140px;
  margin-bottom: 1.5rem;
}

.contact-card h2 {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: 2rem;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-phone {
  display: inline-flex;
  margin: 0.8rem 0 1.2rem;
  color: var(--blue-dark);
  font-size: 1.55rem;
  font-weight: 900;
}

.contact-note {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font: inherit;
  background: var(--mist);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(19, 159, 215, 0.2);
  border-color: var(--blue);
}

.form-help {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-help code {
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 3rem 5vw;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer img {
  width: 96px;
  margin-bottom: 0.8rem;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-contact {
  display: grid;
  gap: 0.45rem;
}

.footer-contact a {
  color: var(--paper);
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.sprinkler-transition {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.sprinkler-transition.is-active {
  opacity: 1;
  visibility: visible;
}

.transition-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 20, 0), rgba(19, 159, 215, 0.16), rgba(246, 251, 253, 0.62));
  transform: translateX(-110%);
}

.sprinkler-transition.is-active .transition-wash {
  animation: washAcross 850ms ease forwards;
}

.spray-field {
  position: absolute;
  inset: 0;
}

.droplet {
  position: absolute;
  left: var(--start-x);
  top: var(--start-y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 18px rgba(19, 159, 215, 0.72);
  transform: translate(-50%, 0) scale(0.4);
  animation: dropletFly var(--speed) cubic-bezier(0.16, 0.8, 0.35, 1) forwards;
  animation-delay: var(--delay);
}

@keyframes washAcross {
  0% {
    transform: translateX(-110%);
  }
  58% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(115%);
  }
}

@keyframes dropletFly {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.35);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3.4rem;
  }

  .hero-brand {
    justify-self: start;
    max-width: 520px;
  }

  .quick-bar,
  .service-grid,
  .tune-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .values-section,
  .compare-section,
  .about-story,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .values-section .image-panel {
    order: 2;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 74px;
    padding: 0 1rem;
  }

  .brand img {
    width: 92px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    gap: 0;
    padding: 0.8rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 1rem;
  }

  .hero {
    padding: 4rem 1rem 4.5rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: 2.25rem;
    overflow-wrap: break-word;
  }

  .hero-copy,
  .page-hero p,
  .section-copy p,
  .story-card p {
    font-size: 1rem;
  }

  .topline {
    font-size: 0.82rem;
    line-height: 1.25;
    padding: 0.55rem 0.7rem;
  }

  .topline a,
  .hero-content,
  .page-hero > div,
  .section-heading,
  .section-copy {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-actions,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stat {
    grid-template-columns: 1fr;
  }

  .quick-bar,
  .service-grid,
  .tune-grid,
  .timeline,
  .check-grid,
  .site-footer,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero,
  .cta-band {
    padding: 3.6rem 1rem;
  }

  .section-copy h2,
  .section-heading h2,
  .story-card h2,
  .cta-band h2 {
    font-size: 1.85rem;
    overflow-wrap: break-word;
  }

  .image-panel,
  .image-panel img,
  .image-panel.tall,
  .image-panel.tall img {
    min-height: 320px;
  }

  .tune-card {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .section-copy h2,
  .section-heading h2,
  .story-card h2,
  .cta-band h2 {
    font-size: 1.65rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .sprinkler-transition {
    display: none;
  }
}
