/* Summit Water Systems Group — crisp alpine */

:root {
  --blue: #1D4ED8;
  --blue-deep: #1E3A8A;
  --cyan: #22D3EE;
  --cyan-dark: #0E7490;
  --ink: #10203F;
  --slate: #4B5A75;
  --band: #F3F6FB;
  --line: #DCE4F0;
  --white: #FFFFFF;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

.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;
}

/* Type */
h1, h2, h3, h4 {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-intro { color: var(--slate); max-width: 620px; margin-bottom: 2.25rem; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }
.btn-cyan { background: var(--cyan); color: var(--blue-deep); }
.btn-cyan:hover { background: var(--white); }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.logo {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo span { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--blue); border-bottom-color: var(--cyan); }
.nav-cta { padding: 0.5rem 1.1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero — full-bleed photo with brand-tinted scrim */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  background:
    linear-gradient(180deg, rgba(12, 26, 56, 0.78) 0%, rgba(30, 58, 138, 0.62) 55%, rgba(12, 26, 56, 0.55) 100%),
    url("https://images.unsplash.com/photo-1511711890176-b3a26e4fb6d1?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
  /* Photo: macro shot of water drop — Mayank Dhanawade / Unsplash */
  text-align: center;
  padding: 7rem 0 0;
}
.hero-inner { max-width: 820px; padding-bottom: 5rem; margin-top: auto; }
.hero-kicker {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.1rem; text-shadow: 0 2px 18px rgba(12, 26, 56, 0.45); }
.hero-sub {
  font-size: 1.16rem;
  color: #DCE9FB;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--white); border-color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--blue-deep); }
.hero-divider { line-height: 0; margin-top: auto; }
.hero-divider svg { width: 100%; height: clamp(90px, 13vw, 190px); }

/* Photo treatments */
.framed-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--cyan);
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.12);
  margin: 0;
}
.framed-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.about-photo { aspect-ratio: 4 / 5; max-height: 520px; }

.photo-band { margin: 2.5rem 0 0; border-radius: var(--radius); overflow: hidden; }
.photo-band img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }

.savings-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.savings-photo { aspect-ratio: 3 / 2; }

.contact-photo {
  margin: -1.75rem -1.5rem 1.4rem;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
  line-height: 0;
}
.contact-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.photo-strip { margin: 0; line-height: 0; }
.photo-strip img { width: 100%; height: clamp(160px, 24vw, 300px); object-fit: cover; }

/* Sections */
.section { padding: 5rem 0; }
.band { background: var(--band); }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.10);
}
.card p { color: var(--slate); font-size: 0.95rem; }
.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #CFF7FC;
  color: var(--cyan-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.icon-chip svg { width: 24px; height: 24px; }

/* Value props */
.value-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.value-col { border-top: 3px solid var(--line); padding-top: 1.5rem; }
.value-col p { color: var(--slate); font-size: 0.95rem; }
.drop-icon svg { width: 44px; height: 44px; margin-bottom: 0.9rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--slate); }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field input[type="file"] { font-size: 0.92rem; color: var(--slate); }
.field input.invalid, .field textarea.invalid { border-color: #C0362C; }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-field input { margin-top: 0.3rem; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.checkbox-field label { font-weight: 400; font-size: 0.88rem; color: var(--slate); margin: 0; }

.form-status { margin-top: 1rem; font-weight: 600; color: var(--blue); min-height: 1.4em; }
.form-status.error { color: #C0362C; }
.form-status.light { color: var(--cyan); }
.form-status.light.error { color: #FFC9C4; }

.contact-info-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.contact-info-col h3 { color: var(--blue-deep); }
.contact-info-col address { font-style: normal; color: var(--slate); margin-bottom: 0.75rem; }
.contact-line { margin-bottom: 0.25rem; }
.contact-line a { font-weight: 600; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.contact-info-col h4 { margin: 1.25rem 0 0.5rem; font-size: 0.95rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.4rem 0; border-bottom: 1px solid var(--band); }
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--slate); text-align: right; }

/* Newsletter */
.newsletter {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.newsletter-pitch { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.25rem; }
.newsletter-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1 1 260px;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
}
.microcopy { font-size: 0.85rem; opacity: 0.75; margin-top: 0.75rem; }

/* Footer */
.site-footer { background: #0C1A38; color: #C6D3EA; padding: 3rem 0 1.5rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: 0.15rem; }
.footer-city { font-size: 0.9rem; margin: 0; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: #C6D3EA; text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--cyan); }
.copyright { padding-top: 1.5rem; font-size: 0.85rem; }
.copyright p { margin: 0; }

/* Legal pages */
.legal-main { padding: 4rem 0 5rem; }
.legal-main .container { max-width: 760px; }
.legal-main h1 { color: var(--blue-deep); margin-bottom: 0.5rem; }
.legal-updated { color: var(--slate); font-size: 0.92rem; margin-bottom: 2rem; }
.legal-main h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal-main p, .legal-main li { color: var(--slate); }
.legal-main ul { margin: 0 0 1rem 1.4rem; }

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .value-cols { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { aspect-ratio: 16 / 10; max-height: none; }
  .savings-head { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .hero { padding-top: 5rem; min-height: 68vh; }
  .card-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1.25rem;
    box-shadow: 0 12px 24px rgba(16, 32, 63, 0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--band); }
  .nav-cta { margin-top: 0.9rem; }
}
