/* Aquapulse Irrigation — first-draft site styles */

:root {
  --deep: #08323c;
  --deep-2: #0b4150;
  --lagoon: #0e6674;
  --aqua: #1a8486;
  --spray: #4fb8b2;
  --spray-soft: #d8f0ee;
  --leaf: #2f6f48;
  --sand: #f3efe6;
  --mist: #eef6f5;
  --foam: #f7fbfa;
  --paper: #fcfcfa;
  --ink: #13282e;
  --ink-soft: #3d555c;
  --line: #d3e3e1;
  --white: #ffffff;
  --focus: #1a8486;
  --header-h: 4.25rem;
  --radius: 1rem;
  --radius-sm: 0.7rem;
  --shadow: 0 12px 32px rgba(8, 50, 60, 0.08);
  --shadow-soft: 0 4px 18px rgba(8, 50, 60, 0.06);
  --font: "Segoe UI", "Avenir Next", "Helvetica Neue", "Nimbus Sans", Arial, system-ui, sans-serif;
  --space: 1.25rem;
  --max: 70rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--lagoon);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--deep);
}

:focus-visible {
  outline: 3px solid var(--spray);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  margin-right: auto;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  color: var(--deep);
}

.logo-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.logo-word {
  white-space: nowrap;
}

.logo-aqua,
.logo-pulse {
  font-size: 1.05rem;
}

.logo-aqua {
  font-weight: 650;
  color: var(--lagoon);
}

.logo-pulse {
  font-weight: 750;
  color: var(--deep);
}

.logo-sub {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-phone:hover {
  color: var(--lagoon);
}

.header-phone svg,
.btn svg,
.contact-phone svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0.65rem;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--deep);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--lagoon);
}

.site-nav .nav-cta {
  margin-left: 0.25rem;
  color: var(--white);
}

.site-nav .nav-cta:hover {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--lagoon);
  color: var(--white);
  border-color: var(--lagoon);
}

.btn-primary:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--deep);
  border-color: color-mix(in srgb, var(--deep) 22%, transparent);
}

.btn-ghost:hover {
  background: var(--mist);
  color: var(--deep);
}

.btn-block {
  width: 100%;
}

.hero {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, #d9efef 0%, transparent 60%),
    linear-gradient(180deg, var(--foam) 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lagoon);
}

h1, h2, h3 {
  margin: 0;
  color: var(--deep);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 780;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.lede,
.section-intro {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-art {
  position: relative;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
  background: var(--mist);
}

.spray-arc {
  stroke-dasharray: 6 10;
}

.drop {
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .spray-arc {
    animation: spray-flow 3.2s linear infinite;
  }
  .spray-2 { animation-delay: -1s; }
  .spray-3 { animation-delay: -2s; }
  .drop {
    animation: drop-fall 3.6s ease-in-out infinite;
  }
  .d2 { animation-delay: -1.2s; }
  .d3 { animation-delay: -2.2s; }
}

@keyframes spray-flow {
  to { stroke-dashoffset: -48; }
}

@keyframes drop-fall {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  40% { opacity: 0.95; }
  100% { transform: translateY(10px); }
}

.season-bar {
  background: var(--deep);
  color: var(--mist);
  padding: 1.15rem 0;
}

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

.season-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem;
}

.season-item + .season-item {
  border-left: 1px solid color-mix(in srgb, var(--spray) 35%, transparent);
  padding-left: 1.5rem;
}

.season-name {
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--spray);
}

.season-desc {
  font-size: 1rem;
  color: #e8f4f3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 11.5rem;
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--mist);
  position: relative;
  height: 100%;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-item:hover img,
  .gallery-item:focus-visible img {
    transform: scale(1.04);
  }
}

.gallery-item:focus-visible {
  outline: 3px solid var(--spray);
  outline-offset: 3px;
}

.area-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.15rem;
  align-items: stretch;
}

.area-photo {
  margin: 0;
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  min-height: 100%;
  height: 100%;
  position: relative;
  background: var(--deep);
}

.area-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.area-layout .area-grid {
  grid-template-columns: 1fr;
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: min(92vw, 90rem);
  max-height: 92vh;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(8, 32, 38, 0.88);
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0.6rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--deep);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--mist);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tint {
  background:
    linear-gradient(180deg, var(--mist) 0%, #e7f3f1 100%);
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-head.tight {
  margin-bottom: 0;
}

.section-head h2 {
  margin-top: 0.15rem;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.service-card {
  grid-column: span 2;
}

.service-grid li:nth-child(n+4) {
  grid-column: span 3;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: var(--mist);
  color: var(--lagoon);
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}

.service-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}



.products-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 2rem 3rem;
  align-items: center;
}

.brand-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-soft);
  font-size: 1.15rem;
  color: var(--deep);
}

.brand-mark {
  width: 3.5rem;
  height: 2.2rem;
  color: var(--aqua);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.area-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.area-card {
  background: var(--deep);
  color: var(--mist);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.7rem 1.5rem 1.6rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 100% 100%, rgba(79, 184, 178, 0.28), transparent 62%);
  pointer-events: none;
}

.area-card h3 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.35rem;
}

.area-card p {
  margin: 0;
  color: #cfe6e4;
  max-width: 28ch;
  position: relative;
}

.area-icon {
  width: 2rem;
  height: 2rem;
  color: var(--spray);
  margin-bottom: auto;
  position: relative;
}

.section-contact {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
  padding-bottom: 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.contact-methods {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.contact-methods p {
  margin: 0;
  font-size: 1rem;
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--lagoon);
  text-decoration: none;
}

.contact-methods a:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-phone a {
  font-size: 1.2rem;
  color: var(--deep);
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.95rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2308323c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--spray) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--aqua);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.site-footer {
  background: var(--deep);
  color: #cfe6e4;
  padding: 2.25rem 0 2.4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.footer-logo {
  color: var(--white);
}

.footer-logo:hover {
  color: var(--white);
}

.footer-logo .logo-aqua {
  color: var(--spray);
}

.footer-logo .logo-pulse {
  color: var(--white);
}

.footer-logo .logo-sub {
  color: #9ec4c2;
}

.footer-logo .logo-mark {
  color: #0a4452;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0 0 0.3rem;
}

.footer-meta a {
  color: var(--spray);
  font-weight: 650;
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--white);
  text-decoration: underline;
}

.copyright {
  margin-top: 0.7rem !important;
  font-size: 0.85rem;
  color: #8fb3b1;
}

@media (max-width: 900px) {
  .hero-grid,
  .products-grid,
  .contact-grid,
  .area-layout {
    grid-template-columns: 1fr;
  }

  .area-photo {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .area-layout .area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 12rem;
  }

  h1 {
    max-width: 16ch;
  }

  .hero-art {
    order: -1;
    max-width: 32rem;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card,
  .service-grid li:nth-child(n+4) {
    grid-column: auto;
  }

  .service-grid li:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 18px 28px rgba(8, 50, 60, 0.12);
  }

  .header-inner {
    position: relative;
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin: 0.75rem 0 0.25rem;
    text-align: center;
    border-bottom: 0;
  }

  .header-phone {
    font-size: 0.9rem;
  }
}

@media (max-width: 720px) {
  .header-phone {
    font-size: 0.85rem;
    gap: 0.3rem;
  }

  .season-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .season-item + .season-item {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--spray) 35%, transparent);
    padding-left: 0.25rem;
    padding-top: 0.7rem;
  }

  .service-grid,
  .area-grid,
  .area-layout .area-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 0.55rem;
    grid-auto-rows: 9.5rem;
  }

  .hero {
    padding-top: 1.4rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 3.25rem 0;
  }

  .footer-inner,
  .footer-meta {
    text-align: left;
    align-items: flex-start;
  }

  .quote-form {
    padding: 1.15rem;
  }
}

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

  .btn {
    transition: none;
  }
}
