/* ===========================================================
   Commodore Pool Service — stylesheet
   =========================================================== */

:root {
  /* Brand colors (from brand palette) */
  --navy-900: #0b3c5d;
  --navy-800: #0f4a70;
  --navy-700: #135a84;
  --teal-500: #1ca9c9;
  --teal-400: #149bd7;
  --teal-100: #e4f6fa;
  --gold-500: #d4af37;
  --gold-400: #e0c25e;

  --ink: #10222f;
  --ink-soft: #46606f;
  --paper: #ffffff;
  --paper-tint: #f4f9fb;
  --border: #e1ecf1;

  --success: #2f8f5b;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(7, 31, 51, 0.08);
  --shadow-md: 0 12px 30px rgba(7, 31, 51, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 31, 51, 0.18);

  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; }
section { position: relative; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-700); }
.btn-block { width: 100%; }
.btn:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  color: var(--navy-900);
}
.brand img { height: 32px; width: auto; }
.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-primary { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal-500); border-color: var(--teal-500); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.98rem;
}
.phone-link svg { width: 20px; height: 20px; color: var(--teal-500); flex-shrink: 0; }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy-900); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .header-actions .phone-link span { display: none; }
  .nav-toggle { display: inline-flex; }
  /* icon-only now, so give it a real touch target without affecting layout width */
  .header-actions .phone-link { padding: 12px; margin: -12px; }
}

/* Below ~440px the brand text, phone icon, CTA button, and hamburger no
   longer fit on one row (the CTA button alone is ~180px). The header CTA is
   fully redundant with the one already in the mobile menu, so drop it here
   to guarantee the hamburger stays on-screen and tappable. */
@media (max-width: 460px) {
  .header-actions .btn-primary { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 999;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 8px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy-900);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
/* The logo is a separate overlaid <img>, not baked into the video, so the
   video is free to crop naturally on any screen without ever affecting the
   logo's position or visibility. `100svh` (with a `100vh` fallback for
   browsers that don't support small-viewport units) keeps the hero full-bleed
   without the mobile address-bar jump that plain `100vh` causes. */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy-900);
}
.hero-media,
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Poster fallback: hidden by default, shown only under reduced motion
   (or if the browser can't play either video source). */
.hero-poster-fallback {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-media { display: none; }
  .hero-poster-fallback { display: block; }
}

/* Logo overlay: independent of the video, always centered and fully visible */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(471px, 79.75vw, 1015px);
  max-width: 80%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35));
}
.hero-intro { overflow: hidden; }
.hero-content { width: 100%; }
.hero h1,
.hero-intro h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  max-width: 820px;
  margin-bottom: 20px;
}
.hero-intro h1 em {
  font-style: normal;
  color: var(--teal-400);
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.trust-strip svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }

/* ---------- Section headings ---------- */
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }
.eyebrow {
  display: inline-block;
  color: var(--teal-500);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.section-head h1,
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { font-size: 1.08rem; }

.bg-tint { background: var(--paper-tint); }
.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy .eyebrow { color: #fff; }
.bg-navy p { color: rgba(255,255,255,0.82); }

/* ---------- Differentiators ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.diff-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.diff-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.diff-icon svg { width: 26px; height: 26px; }
.diff-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.diff-card p { margin: 0; font-size: 0.96rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card-media {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}
.service-card-body {
  padding: 30px 30px 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card .diff-icon { background: var(--navy-800); color: #fff; }
.service-card h3 { font-size: 1.3rem; }
.service-card p { font-size: 0.96rem; }
.service-list { margin: 12px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.service-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service-list svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.service-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--teal-500);
  font-size: 0.94rem;
}
.service-card .card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.service-card .card-link:hover svg { transform: translateX(3px); }

/* ---------- Before / After ---------- */
.transform-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.transform-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.transform-media img { width: 100%; }
.stat-row {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat {
  background: var(--paper-tint);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  min-width: 140px;
  border: 1px solid var(--border);
}
.stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--navy-900); }
.stat span { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
}
/* Homepage About photo only: wider column + shorter crop (service pages keep the taller portrait ratio) */
#about .about-wrap {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas: "media head" "media body";
  grid-template-rows: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
}
#about .about-media { grid-area: media; align-self: center; }
#about .about-head { grid-area: head; align-self: end; }
#about .about-body { grid-area: body; align-self: start; }
#about .about-head h2 { margin-bottom: 0.4em; }
#about .about-media img { aspect-ratio: 4/3; }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0 8px;
}
.badge-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-800);
}
.badge-pill svg { width: 18px; height: 18px; color: var(--teal-500); flex-shrink: 0; }

.diffs-inline { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.diffs-inline li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--navy-900); }
.diffs-inline svg { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }

/* ---------- Service Area ---------- */
.area-wrap { text-align: center; }
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 36px 0 28px;
}
.area-chip {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.area-note {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ---------- Pool School banner ---------- */
.banner-split {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.banner-split .diff-icon { background: rgba(255,255,255,0.14); color: var(--gold-400); width: 64px; height: 64px; border-radius: 16px; }
.banner-split .diff-icon svg { width: 30px; height: 30px; }
.banner-split h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.banner-split p { color: rgba(255,255,255,0.82); margin: 0; max-width: 520px; }

/* ---------- FAQ ---------- */
.faq-groups { display: flex; flex-direction: column; gap: 40px; max-width: 820px; margin: 0 auto; }
.faq-group h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-900);
  cursor: pointer;
}
.faq-question svg {
  width: 22px; height: 22px;
  color: var(--teal-500);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 4px 20px; margin: 0; font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-500), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: 1.9rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  align-items: center;
}
.contact-list { display: flex; flex-direction: column; gap: 32px; margin: 0; }
.contact-list li { display: flex; gap: 18px; align-items: center; }
.contact-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 26px; height: 26px; color: #fff; }
.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2px;
}
.contact-list a, .contact-value { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; overflow-wrap: break-word; }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.social-row a:hover { background: var(--teal-500); }
.social-row svg { width: 20px; height: 20px; color: #fff; }

.contact-form {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label,
.form-field .field-label { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.form-field .req { color: var(--gold-400); }
.form-field .opt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.form-field input:not([type="file"]),
.form-field select,
.form-field textarea {
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.98rem;
  color: #fff;
  min-height: 48px;
  background: rgba(255,255,255,0.07);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-field select option { color: var(--ink); background: #fff; }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:not([type="file"]):focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(20,155,215,0.25);
}
.form-field .file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  min-height: 48px;
  border: 1.5px dashed rgba(255,255,255,0.28);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--teal-400); color: #fff; }
.file-drop svg { width: 20px; height: 20px; flex-shrink: 0; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.submit-btn { margin-top: 26px; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.92rem; }
.submit-btn svg { width: 18px; height: 18px; }
.form-note { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin: 18px 0 0; text-align: center; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e7f6ee; color: var(--success); }
.form-status.error { background: #fbe9e9; color: #b3392f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand span {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.15rem;
}
.footer-col h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-licenses { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-licenses span {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.76rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .transform-wrap, .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto 20px; }
  .diff-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-split { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 720px) {
  .diff-grid, .services-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}


.site-footer p { color: rgba(255,255,255,0.72); }

.banner-split .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--gold-400);
  font-size: 0.94rem;
}
.banner-split .card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.banner-split .card-link:hover svg { transform: translateX(3px); }

/* ---------- Before / after comparison slider ---------- */
.compare {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 1400 / 940;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
  user-select: none;
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.compare-knob svg { width: 22px; height: 22px; }
.compare-tag {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7,31,51,0.7);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare-tag-before { left: 16px; }
.compare-tag-after { right: 16px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.compare:has(.compare-range:focus-visible) .compare-knob { outline: 3px solid var(--teal-400); outline-offset: 3px; }

/* About section on tablets/phones: heading on top (centered), then photo, then description */
@media (max-width: 1024px) {
  #about .about-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "body";
    grid-template-rows: auto;
    row-gap: 28px;
  }
  #about .about-head { text-align: center; align-self: auto; }
  #about .about-media { max-width: 560px; width: 100%; margin: 0 auto; }
  #about .about-body { align-self: auto; }
}

/* Contact section on tablets/phones: keep both boxes inside the screen width */
.contact-wrap > * { min-width: 0; }
@media (max-width: 1024px) {
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .contact-list a, .contact-value { overflow-wrap: anywhere; }
}
@media (max-width: 720px) {
  .contact-info { padding: 32px 24px; }
  .contact-form { padding: 32px 24px; }
  .contact-icon { width: 48px; height: 48px; }
  .contact-icon svg { width: 22px; height: 22px; }
  .contact-list li { gap: 14px; }
}

/* Call-to-action boxes and button rows on phones: let long button text wrap and center everything */
@media (max-width: 720px) {
  .cta-band > div:first-child { width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .hero-ctas .btn { white-space: normal; text-align: center; }
}

/* Two-card rows (equipment/brands, pool school pricing): side by side on wide screens, stacked on phones */
.diff-grid-2 { grid-template-columns: 1fr 1fr; max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) {
  .diff-grid-2 { grid-template-columns: 1fr; }
}
