/* Pool & Spa MD — static rebuild. Colors/fonts from the original Elementor kit. */
:root {
  --navy: #082D53;
  --red: #B8292D;
  --blue: #1D69B7;
  --text: #414141;
  --white: #FFFFFF;
  --offwhite: #F8F8F8;
  --line: #D9D9D9;
  --muted: #A7A7A7;
  --gray: #787878;
  --dark: #292929;
  --ink: #111111;
  --shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.15);
  --radius: 25px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { width: min(var(--max), calc(100% - 30px)); margin: 0 auto; }

/* ---- Header ---- */
.topbar {
  background: var(--navy);
  border-bottom: 1px solid #FFFFFF1F;
  padding: 5px 15px;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar a {
  color: var(--offwhite);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar a:hover { color: #fff; }
.topbar svg { width: 12px; height: 12px; fill: #fff; }

.header-main {
  padding: 8px 15px;
  background: #fff;
}
.header-main .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.phone-block {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.phone-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center; flex-shrink: 0;
}
.phone-icon svg { width: 20px; height: 20px; fill: #fff; }
.phone-block .label { display: block; font-size: 13px; line-height: 1.2; color: var(--gray); font-weight: 400; }
.phone-block .number { display: block; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.2; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  padding: 12px 22px;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus { background: var(--blue); }
.btn-light { background: #fff; color: var(--navy) !important; }
.btn-light:hover { background: var(--offwhite); color: var(--navy) !important; }
.btn-circle {
  width: 42px; height: 42px; padding: 9px;
  border-radius: 50%;
}

.nav-bar { background: var(--offwhite); padding: 12px 15px; }
.nav-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: var(--red);
  color: #fff;
  border: 0;
  cursor: pointer;
  margin-right: auto;
}
.nav-toggle:hover, .nav-toggle:focus { background: var(--blue); }
.nav-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 0;
  display: inline-block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }

.search-toggle {
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: var(--gray);
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
}
.search-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.search-toggle:hover { color: var(--navy); }

.search-overlay {
  position: fixed; inset: 0;
  background: #00000082;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.search-overlay.is-open { display: flex; }
.search-overlay form {
  width: min(640px, 100%);
  position: relative;
}
.search-overlay input[type="search"] {
  width: 100%;
  padding: 18px 56px 18px 20px;
  border: 0;
  font-size: 18px;
  border-radius: 4px;
}
.search-overlay .close-search {
  position: absolute; top: -48px; right: 0;
  background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer;
}
.search-note { color: #fff; margin-top: 16px; text-align: center; font-size: 14px; }

.mobile-nav {
  display: none;
  background: var(--navy);
  padding: 12px 15px 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--blue); }

/* ---- Page heroes ---- */
.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy) center top / cover no-repeat;
  padding: 60px 15px;
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--navy);
  opacity: 0.9;
}
.page-hero h1 {
  position: relative;
  font-family: Montserrat, sans-serif;
  font-size: clamp(30px, 5vw, 55px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
}
.page-hero--image { background-image: url("../assets/t2001x1212.webp"); }

/* ---- Home ---- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 50px 15px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
}
.eyebrow .tick { width: 20px; height: 2px; background: currentColor; flex-shrink: 0; }
.eyebrow.light { color: #fff; }
.eyebrow.dark { color: var(--navy); }
.hero h1 {
  font-family: Poppins, sans-serif;
  font-size: clamp(32px, 4.6vw, 57px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 15px 0 20px;
}
.hero h1 span { color: var(--red); }
.hero .lede {
  color: var(--offwhite);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 36em;
}
.hero-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
}

.intro { padding: 110px 15px; }
.intro .wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: start;
}
.intro-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.intro-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}
.intro-gallery img:first-child {
  grid-column: 1 / -1;
  height: 280px;
}
.intro h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--navy);
  margin: 12px 0 18px;
}
.intro .copy { color: var(--text); font-size: 15px; line-height: 1.6; }
.intro-side-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  margin: 22px 0;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  margin-top: 10px;
}
.checklist { list-style: none; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--text);
}
.checklist li strong { color: var(--navy); }
.check {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
}
.check svg { width: 11px; height: 11px; fill: currentColor; }

.cta-band {
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 280px;
}
.cta-band .photo {
  background: center / cover no-repeat;
  min-height: 260px;
}
.cta-band .panel {
  background: var(--red);
  color: #fff;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 36px); color: #fff; margin: 12px 0 22px; }
.cta-band .eyebrow { color: #fff; }

/* ---- Services ---- */
.section { padding: 75px 15px; }
.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--navy);
  margin: 12px 0 16px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 50px;
}
.service-card { position: relative; padding-bottom: 16px; }
.service-title-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}
.service-num {
  font-family: Poppins, sans-serif;
  font-size: 45px;
  font-weight: 600;
  line-height: 1.3;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000;
  text-align: right;
}
.service-card h3 { font-size: 27px; color: var(--navy); padding-bottom: 20px; align-self: center; }
.service-card .tagline { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.service-card .desc { margin-bottom: 12px; }
.service-card .features { list-style: none; margin: 0 0 16px; }
.service-card .features li {
  padding: 4px 0 4px 22px;
  position: relative;
}
.service-card .features li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
}
.prescription { font-style: italic; color: var(--dark); margin-bottom: 8px; }
.service-card .btn-circle { margin-top: 8px; }

/* ---- Portfolio ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.compare {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  user-select: none;
  touch-action: none;
  background: #111;
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare .after-wrap {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
}
.compare .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.compare .handle::after {
  content: "↔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: #fff;
  color: var(--navy);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.compare input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}
.compare-label {
  position: absolute;
  top: 10px;
  z-index: 2;
  background: rgba(8,45,83,.8);
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}
.compare-label.before { left: 10px; }
.compare-label.after { right: 10px; }

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.case {
  background: var(--offwhite);
  padding: 28px 22px;
  border-radius: 16px;
  text-align: center;
}
.case h3 { color: var(--navy); font-size: 22px; margin: 8px 0 10px; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.quote-mark { width: 48px; height: 48px; margin-bottom: 8px; }
.testimonial {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.testimonial .body { margin-bottom: 16px; color: var(--text); }
.testimonial .meta { display: flex; align-items: center; gap: 12px; }
.testimonial .meta img {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
}
.testimonial .name { font-weight: 600; color: var(--navy); }
.testimonial .job { font-size: 13px; color: var(--gray); }

/* ---- Forms ---- */
.page-content { padding: 60px 15px 80px; }
.page-content .lead { max-width: 46em; font-size: 16px; line-height: 1.6; }
form.job-form, form.license-form {
  max-width: 820px;
  margin-top: 32px;
}
.form-section {
  margin: 0 0 28px;
  padding: 24px;
  background: var(--offwhite);
  border-radius: 16px;
}
.form-section h2, .form-section h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 18px;
}
label.field, .fieldset-label {
  display: block;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--dark);
}
.req { color: var(--red); }
.field-row { margin-bottom: 16px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"],
select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.radios, .checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.radios label, .checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.form-note {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff3cd;
  border: 1px solid #ffbc7d;
  color: var(--navy);
  border-radius: 8px;
}
.form-note.is-visible { display: block; }
.form-error { color: var(--red); font-size: 13px; margin-top: 4px; display: none; }
.field-row.has-error .form-error { display: block; }
.field-row.has-error input, .field-row.has-error select, .field-row.has-error textarea { border-color: var(--red); }

/* ---- Footer ---- */
.footer-contact {
  background: #1a1a1a center / cover no-repeat;
  background-image: url("../assets/plumbero-img45.png");
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  padding: 20px 15px 15px;
  position: relative;
  z-index: 1;
}
.footer-contact .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fc-item { display: flex; align-items: center; gap: 14px; }
.fc-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center; flex-shrink: 0;
}
.fc-icon svg { width: 20px; height: 20px; fill: #fff; }
.fc-item .lbl { display: block; color: var(--line); font-size: 14px; }
.fc-item .val { display: block; color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.fc-item a.val:hover { color: var(--red); }

.site-footer {
  background: var(--navy);
  color: var(--line);
  padding: 30px 15px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #A7A7A730;
}
.site-footer .logo-col img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin-bottom: 14px;
}
.social {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--muted);
  background: var(--navy);
  color: var(--muted);
  text-decoration: none;
  border-radius: 4px;
}
.social:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.site-footer h2 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links a {
  color: var(--line);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 15px;
}
.footer-links a:hover { color: var(--red); }
.footer-deco {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}
.copyright { color: var(--line); padding: 0 0 24px; font-size: 14px; }

/* ---- 404 ---- */
.not-found { padding: 80px 15px; text-align: center; }
.not-found h1 { font-size: 48px; color: var(--navy); margin-bottom: 12px; }

@media (max-width: 1024px) {
  .hero .wrap, .intro .wrap, .cta-band { grid-template-columns: 1fr; }
  .hero-photo { height: 360px; }
  .intro { padding: 70px 15px; }
  .cta-band .panel { padding: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { display: none; }
  .logo img { width: 64px; height: 64px; }
  .header-contact { gap: 12px; }
  .phone-block .label { display: none; }
  .phone-block .number { font-size: 13px; }
  .header-main .btn { padding: 10px 12px; }
  .hero { padding: 36px 10px; }
  .hero-photo { height: 240px; border-radius: 20px; }
  .intro-gallery img, .intro-gallery img:first-child { height: 160px; }
  .services-grid, .cases, .testimonials, .footer-contact .wrap, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .page-hero { min-height: 320px; padding: 40px 10px; }
  .section, .page-content { padding: 50px 10px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .site-footer .logo-col img { margin-left: auto; margin-right: auto; }
  .social { margin: 0 auto; }
  .service-num { font-size: 40px; }
  .service-card h3 { font-size: 22px; }
}
