/* Sal's Pool Services LLC static site */
:root {
  --navy: #07365c;
  --blue: #0a6fb4;
  --blue-dark: #084f82;
  --aqua: #2fd0d0;
  --light: #f4fbff;
  --white: #ffffff;
  --ink: #102033;
  --muted: #607080;
  --line: #d8e8f2;
  --shadow: 0 24px 70px rgba(7, 54, 92, .18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  z-index: 99;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: -3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: .94rem;
}

.nav-menu a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 12px 16px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 99px;
}

.sr-only,
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 208, 208, .22), transparent 28%),
    linear-gradient(135deg, #eaf8ff 0%, #f8fdff 45%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  inset: auto -10% -20% auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(10, 111, 180, .18), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  min-height: 720px;
  padding: 86px 0;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .82rem;
  margin: 0 0 12px;
}

h1, h2, h3 {
  line-height: 1.08;
  color: var(--navy);
  margin: 0;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.1rem);
  letter-spacing: -.07em;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.05em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -.03em;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #40556b;
  max-width: 680px;
  margin: 22px 0 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 14px 28px rgba(10, 111, 180, .22);
}

.btn.primary:hover {
  background: var(--blue-dark);
}

.btn.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.btn.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn.full {
  width: 100%;
}

.trust-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.area-pills span {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
}

.quote-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(216,232,242,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.card-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(47, 208, 208, .28);
  pointer-events: none;
}

.price {
  color: var(--blue);
  font-size: 3.6rem;
  font-weight: 950;
  line-height: 1;
  margin: 18px 0 12px;
  letter-spacing: -.06em;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 800;
}

.quote-card ul {
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.quote-card li {
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.quote-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.fine-print {
  color: var(--muted);
  font-size: .9rem;
}

.section {
  padding: 84px 0;
}

.intro {
  background: var(--white);
}

.split,
.pricing-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.reverse {
  direction: rtl;
}

.reverse > * {
  direction: ltr;
}

.split p {
  font-size: 1.06rem;
  color: #40556b;
}

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

.section-heading p:not(.eyebrow) {
  color: #40556b;
  font-size: 1.05rem;
}

.services {
  background: var(--light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.addon,
.pricing-box,
.about-card,
.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 36px rgba(7, 54, 92, .08);
}

.service-card .icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #e8f7ff;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.service-card p,
.addon p,
.pricing-box p,
.about-card p,
.contact p {
  color: #40556b;
}

.add-ons {
  background: white;
}

.addon-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pricing {
  background:
    linear-gradient(135deg, rgba(7,54,92,.96), rgba(10,111,180,.94)),
    url("assets/water-pattern.svg");
  color: white;
}

.pricing h2,
.pricing h3 {
  color: white;
}

.pricing p {
  color: rgba(255,255,255,.82);
}

.pricing .eyebrow {
  color: var(--aqua);
}

.pricing-box {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  box-shadow: none;
}

.pricing-box .price {
  color: white;
}

.pricing-box .price span {
  color: rgba(255,255,255,.75);
}

.areas {
  background: var(--light);
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.about {
  background: white;
}

.about-card {
  background: linear-gradient(135deg, #ffffff, #f0fbff);
}

.contact {
  background: var(--light);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #b8ccd9;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(47, 208, 208, .28);
  border-color: var(--blue);
}

.site-footer {
  background: #051e33;
  color: white;
  padding: 42px 0 24px;
}

.site-footer a {
  color: white;
  font-weight: 800;
}

.site-footer p {
  color: rgba(255,255,255,.72);
  margin: 8px 0;
}

.footer-grid,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.68);
}

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

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    padding: 10px 0;
  }

  .hero-grid,
  .split,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 58px 0;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .brand strong {
    font-size: .94rem;
  }

  .brand small {
    font-size: .7rem;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .section {
    padding: 58px 0;
  }

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

  .quote-card {
    padding: 24px;
  }

  .price {
    font-size: 3rem;
  }

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
  }
}
