/* ============================================
   Waterworks 302 — stylesheet
   ============================================ */

:root {
  --navy-900: #061a2e;
  --navy-800: #0a2540;
  --navy-700: #113357;
  --blue-500: #1f7ac4;
  --blue-400: #3aa0e8;
  --blue-300: #7bd3ff;
  --blue-50:  #eaf6ff;
  --sky:      #d8ecfa;

  --ink:      #0b1b2b;
  --ink-soft: #3c4a5a;
  --mute:     #6b7c8f;
  --line:     #d7e3ee;
  --bg:       #fbfdff;
  --card:     #ffffff;

  --green:    #3d8a3d;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 2px 6px rgba(10, 37, 64, .04);
  --shadow-md: 0 6px 18px rgba(10, 37, 64, .08), 0 2px 6px rgba(10, 37, 64, .05);
  --shadow-lg: 0 18px 48px rgba(10, 37, 64, .14), 0 6px 16px rgba(10, 37, 64, .06);

  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-800); color: #fff; padding: 10px 14px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; border-radius: 8px; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(251, 253, 255, .82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(215, 227, 238, .6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 28px; height: auto; filter: drop-shadow(0 2px 4px rgba(31, 122, 196, .25)); }
.brand-word {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px; letter-spacing: -.01em; color: var(--navy-800);
}
.brand-word em { font-style: italic; color: var(--blue-500); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue-400); transform: scaleX(0);
  transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--navy-800); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: none; }

@media (min-width: 860px) {
  .nav-cta { display: inline-flex; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 122, 196, .32), 0 2px 6px rgba(31, 122, 196, .2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(31, 122, 196, .4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #fff; color: var(--navy-800);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-400); color: var(--blue-500); }

.btn-ghost {
  background: transparent; color: var(--navy-800);
  padding: 10px 16px; font-size: 14px; border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-500); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; overflow: hidden;
  color: var(--navy-800);
  background: linear-gradient(180deg, #eaf6ff 0%, #f5fbff 70%, #fbfdff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31, 122, 196, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 122, 196, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 70%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: float 12s ease-in-out infinite;
}
.blob-1 { width: 460px; height: 460px; background: #b9e3ff; top: -140px; left: -120px; }
.blob-2 { width: 380px; height: 380px; background: #c7f0d9; bottom: -140px; right: -80px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -24px, 0); }
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad) clamp(80px, 12vw, 140px);
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 60px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(31, 122, 196, .09);
  color: var(--blue-500); font-weight: 600;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 0 rgba(58, 160, 232, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(58, 160, 232, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(58, 160, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 160, 232, 0); }
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 22px 0 18px;
  color: var(--navy-800);
}
.accent {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-300) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic;
}
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-badges {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 14px; color: var(--ink-soft);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(61, 138, 61, .14); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}

/* Hero sprinkler art */
.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 1;
}
.sprinkler {
  width: 100%; height: 100%;
  filter: drop-shadow(0 20px 40px rgba(31, 122, 196, .18));
}

/* bob in on load */
.hero-art { animation: rise .9s var(--ease) both .1s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* sprinkler internals */
.sun { transform-origin: 320px 120px; animation: sunspin 40s linear infinite; }
@keyframes sunspin { to { transform: rotate(360deg); } }

.cloud-1 { animation: drift 18s ease-in-out infinite; }
.cloud-2 { animation: drift 22s ease-in-out infinite -6s; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(14px); }
}

.sprinkler-head { transform-origin: 210px 310px; animation: wobble 5s ease-in-out infinite; }
@keyframes wobble {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

.arc {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: spray 3.2s ease-in-out infinite;
}
.a1 { animation-delay: 0s; }
.a2 { animation-delay: .2s; }
.a3 { animation-delay: .4s; }
.a4 { animation-delay: .6s; }
.a5 { animation-delay: .8s; }

@keyframes spray {
  0%   { stroke-dashoffset: 220; opacity: 0; }
  30%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -60; opacity: 0; }
}

.drop { opacity: 0; animation: drip 3.2s ease-in infinite; }
.d1 { animation-delay: 1.0s; }
.d2 { animation-delay: 1.3s; }
.d3 { animation-delay: 1.6s; }
.d4 { animation-delay: 1.9s; }
.d5 { animation-delay: 2.2s; }
@keyframes drip {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(60px); }
}

.blades path { stroke-dasharray: 18; stroke-dashoffset: 18; animation: grow 1.4s var(--ease) forwards .6s; }
.blades path:nth-child(2) { animation-delay: .7s; }
.blades path:nth-child(3) { animation-delay: .8s; }
.blades path:nth-child(4) { animation-delay: .9s; }
.blades path:nth-child(5) { animation-delay: 1.0s; }
.blades path:nth-child(6) { animation-delay: 1.1s; }
.blades path:nth-child(7) { animation-delay: 1.2s; }
@keyframes grow { to { stroke-dashoffset: 0; } }

/* Wave divider */
.wave {
  position: relative;
  color: var(--bg);
  line-height: 0;
}
.wave svg { width: 100%; height: 70px; display: block; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--pad);
}
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 14px;
}
.section-head h2 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -.02em;
  color: var(--navy-800); margin: 0 0 14px;
}
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* SERVICES */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 122, 196, .09), transparent 40%);
  opacity: 0; transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c6dcee; }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, #e8f5ff, #c7e8ff);
  color: var(--blue-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 196, .12);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; margin: 0 0 8px; color: var(--navy-800); }
.card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.card-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-500); padding: 5px 10px; border-radius: 999px;
  background: rgba(31, 122, 196, .08);
}

/* WHY */
.why {
  background: linear-gradient(180deg, #0a2540 0%, #113357 100%);
  color: #e8f2fb; max-width: none;
  padding-left: 0; padding-right: 0;
}
.why-inner { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.why .kicker { color: var(--blue-300); }
.why .section-head h2 { color: #fff; }
.why .section-head p { color: rgba(232, 242, 251, .75); }

.pillars {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pillars li {
  position: relative;
  padding: 28px 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.pillars li:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(123, 211, 255, .3);
}
.pillar-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 42px; font-weight: 600; font-style: italic;
  color: var(--blue-300); opacity: .9; line-height: 1; margin-bottom: 14px;
}
.pillars h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px; color: #fff; margin: 0 0 6px; }
.pillars p { color: rgba(232, 242, 251, .72); margin: 0; font-size: 15px; }

/* ABOUT */
.about { padding-top: clamp(80px, 10vw, 120px); padding-bottom: clamp(60px, 8vw, 100px); }
.about-inner {
  max-width: 860px; margin: 0 auto; text-align: center;
}
.about blockquote {
  margin: 18px 0 0; padding: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35; color: var(--navy-800);
  letter-spacing: -.01em;
}
.about blockquote p { margin: 0; position: relative; }
.about blockquote p::before, .about blockquote p::after {
  content: '"'; color: var(--blue-300); font-size: 1.4em; line-height: 0;
  vertical-align: -.2em; margin: 0 .1em;
}
.about blockquote footer {
  margin-top: 20px;
  font-family: 'Inter', sans-serif; font-style: normal;
  font-size: 15px; color: var(--ink-soft); font-weight: 500;
}
.about blockquote footer strong { color: var(--navy-800); }

/* CONTACT */
.contact { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(90px, 12vw, 140px); }
.contact-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 760px; margin: 0 auto;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-400);
}
.contact-card.primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: #fff; border-color: transparent;
}
.contact-card.primary .contact-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.contact-card.primary .contact-label { color: rgba(255, 255, 255, .7); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-500);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 2px;
}
.contact-value { font-size: 17px; font-weight: 600; }

/* ============================================
   FOOTER
   ============================================ */
.foot {
  background: #071829; color: #c9d7e5;
  padding: 44px var(--pad);
}
.foot-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.foot .brand-word { color: #fff; }
.foot .brand-word em { color: var(--blue-300); }
.foot-tag { margin: 4px 0; color: rgba(201, 215, 229, .75); font-size: 14.5px; }
.foot-copy { margin: 0; color: rgba(201, 215, 229, .5); font-size: 13px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }

/* ============================================
   MOBILE STICKY CALL BAR
   ============================================ */
.mobile-call {
  display: none;
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: #fff; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(31, 122, 196, .45), 0 3px 8px rgba(0, 0, 0, .15);
  align-items: center; gap: 10px;
  z-index: 40;
}
.mobile-call svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .mobile-call { display: inline-flex; }
  body { padding-bottom: 84px; }
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
