:root {
  --ink: #102536;
  --muted: #587282;
  --soft: #eff8fb;
  --surface: #ffffff;
  --line: #d7e8ef;
  --blue: #0866a8;
  --blue-dark: #064a7a;
  --aqua: #18c7c5;
  --aqua-soft: #dffafa;
  --green: #2fb36d;
  --coral: #f17b67;
  --shadow: 0 20px 60px rgba(8, 65, 101, 0.14);
  --radius: 8px;
  --max-width: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfeff;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - var(--max-width)) / 2));
  color: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(20, 67, 94, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header.is-scrolled .brand-mark,
.site-header.nav-active .brand-mark,
.footer-brand .brand-mark {
  border-color: rgba(8, 102, 168, 0.16);
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  color: #ffffff;
}

.brand-name {
  display: block;
  font-weight: 800;
  line-height: 1.05;
}

.brand-note {
  display: block;
  color: currentColor;
  font-size: 0.75rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.nav-active .site-nav a:hover,
.site-header.nav-active .site-nav a:focus-visible {
  background: var(--soft);
}

.site-nav .nav-cta {
  margin-left: 4px;
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(5, 60, 95, 0.18);
}

.site-header.is-scrolled .nav-cta,
.site-header.nav-active .nav-cta {
  background: var(--blue);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background: url("assets/pool-service-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 36, 59, 0.84) 0%, rgba(4, 71, 101, 0.68) 43%, rgba(5, 104, 144, 0.2) 100%),
    linear-gradient(180deg, rgba(2, 21, 35, 0.58) 0%, rgba(2, 24, 38, 0.08) 45%, rgba(251, 254, 255, 0.94) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 42px;
  min-height: 90vh;
  padding-top: 140px;
  padding-bottom: 92px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.business-label,
.editable-tag {
  margin: 0 0 14px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: 5.4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.22rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--aqua);
  color: #063344;
  box-shadow: 0 16px 34px rgba(24, 199, 197, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #43dddd;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.full-width {
  width: 100%;
}

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

.trust-row span,
.area-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 750;
}

.business-panel {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(3, 26, 42, 0.16);
  backdrop-filter: blur(18px);
}

.business-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
}

.section,
.section-band,
.contact-section {
  padding: 96px 0;
}

.section-soft,
.section-band {
  background: var(--soft);
}

.intro-grid,
.why-grid,
.areas-grid,
.faq-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.05rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-copy {
  display: grid;
  gap: 16px;
}

.intro-copy p,
.section-heading p,
.contact-copy p,
.service-card p,
.why-list p,
.process-grid p,
.package-card li,
.faq-answer p,
.site-footer p,
.site-footer li {
  margin: 0;
  color: var(--muted);
}

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

.section-heading.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  margin-top: 16px;
  font-size: 1.03rem;
}

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

.service-card,
.package-card,
.testimonial-card,
.booking-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(21, 90, 127, 0.08);
}

.service-card {
  min-height: 238px;
  padding: 22px;
}

.icon-shell {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--aqua-soft);
  color: var(--blue-dark);
}

.icon-shell svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-card h3,
.why-list h3,
.process-grid h3,
.package-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.why-list article {
  min-height: 212px;
  padding: 26px;
  border: 1px solid rgba(8, 102, 168, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
}

.why-list span,
.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 850;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.package-grid.five-packages {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.package-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 26px;
}

.package-featured {
  border-color: rgba(24, 199, 197, 0.6);
  box-shadow: var(--shadow);
}

.editable-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--aqua-soft);
  color: var(--blue-dark);
  font-size: 0.68rem;
}

.package-price {
  margin: 0 0 22px;
  color: var(--blue-dark);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.05;
}

.package-price span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.package-card ul {
  display: grid;
  gap: 11px;
  margin: 0 0 24px;
  padding: 0 0 0 18px;
}

.best-for {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-note {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(8, 102, 168, 0.15);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--blue-dark);
  font-weight: 750;
  text-align: center;
}

.repair-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}

.repair-cta {
  margin-top: 26px;
}

.repair-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.repair-list article {
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(8, 102, 168, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(21, 90, 127, 0.07);
}

.repair-list h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.25;
}

.repair-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.text-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 850;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.process-section {
  background:
    linear-gradient(180deg, rgba(239, 248, 251, 0.7), rgba(255, 255, 255, 1)),
    #ffffff;
}

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

.process-grid.five-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process-grid article {
  min-height: 260px;
  padding: 26px;
  border-top: 4px solid var(--aqua);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(21, 90, 127, 0.08);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-list span {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 28px;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.testimonial-card figcaption {
  display: grid;
  gap: 3px;
  margin-top: 24px;
}

.testimonial-card strong {
  color: var(--blue-dark);
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-layout {
  align-items: start;
}

.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(21, 90, 127, 0.08);
}

.faq-item {
  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 850;
}

.faq-item:hover,
.faq-item:focus-visible {
  background: var(--soft);
  outline: none;
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--aqua-soft);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  background: var(--blue-dark);
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.faq-item[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 22px;
  border-bottom: 1px solid var(--line);
}

.faq-answer.is-open {
  display: block;
}

.contact-section {
  background: linear-gradient(135deg, #043e67, #057e9d 58%, #18b8b6);
  color: #ffffff;
}

.contact-section .section-kicker {
  color: #bff8f4;
}

.contact-copy h2,
.contact-copy p {
  color: #ffffff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-details p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-details strong {
  color: #ffffff;
}

.contact-details a {
  color: #ffffff;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.booking-form {
  padding: 26px;
  color: var(--ink);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9dde6;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(24, 199, 197, 0.17);
  outline: none;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.form-note.is-success {
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  padding: 48px 0;
  background: #f5fbfd;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr) minmax(160px, 0.5fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.site-footer a:not(.brand):hover,
.site-footer a:not(.brand):focus-visible {
  color: var(--blue);
  outline: none;
}

@media (max-width: 1080px) {
  .services-grid,
  .package-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-grid.five-packages,
  .process-grid.five-steps,
  .repair-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .business-panel {
    max-width: 520px;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    padding: 12px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: center;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    background: var(--blue);
    color: #ffffff;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .business-panel {
    align-self: auto;
  }

  .intro-grid,
  .why-grid,
  .areas-grid,
  .faq-layout,
  .contact-grid,
  .repair-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section,
  .section-band,
  .contact-section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

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

@media (max-width: 640px) {
  .brand-note {
    display: none;
  }

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

  .hero-bg {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 36, 59, 0.86), rgba(4, 71, 101, 0.62)),
      linear-gradient(180deg, rgba(2, 21, 35, 0.58), rgba(2, 24, 38, 0.1) 50%, rgba(251, 254, 255, 0.94));
  }

  .hero-actions,
  .trust-row {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .intro h2,
  .section-heading h2,
  .contact-copy h2 {
    font-size: 2.15rem;
  }

  .hero-actions .button,
  .trust-row span {
    width: 100%;
  }

  .services-grid,
  .package-grid,
  .process-grid,
  .package-grid.five-packages,
  .process-grid.five-steps,
  .repair-list,
  .why-list,
  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .service-card,
  .package-card,
  .process-grid article,
  .testimonial-card,
  .booking-form {
    padding: 22px;
  }

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

  .faq-item {
    min-height: 64px;
    padding: 16px 18px;
  }

  .faq-answer {
    padding-right: 18px;
    padding-left: 18px;
  }
}
