/* ==========================================================================
   PoolSitter — Dallas Pool Cleaning & Care
   Brand tokens derived from logo: deep teal droplet + soft gray wordmark
   ========================================================================== */

:root {
  /* Color tokens — primary brand: #3f90ad */
  --ps-deep:      #2b6e87;   /* deepest — footer, dark sections */
  --ps-deep-2:    #2b6e87;   /* secondary dark — gradients */
  --ps-teal:      #3f90ad;   /* PRIMARY brand color */
  --ps-teal-600:  #3f90ad;   /* icon / accent — same as primary */
  --ps-blue:      #70b5ce;   /* secondary light blue */
  --ps-sky:       #e5f3f8;   /* light section tint */
  --ps-sky-2:     #cce8f2;
  --ps-mist:      #f5fbfd;   /* page background */
  --ps-white:     #FFFFFF;
  --ps-gray-700:  #3a5560;   /* body copy */
  --ps-gray-500:  #6a7e85;   /* muted copy */
  --ps-gray-400:  #a6b8bc;   /* decorative */
  --ps-line:      #d4e8ef;

  /* Type */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Shape & motion */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 40px -16px rgba(30, 79, 94, 0.25);
  --shadow-card: 0 10px 30px -14px rgba(30, 79, 94, 0.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------- */
/* Base                                                                    */
/* ---------------------------------------------------------------------- */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ps-gray-700);
  background-color: var(--ps-mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  color: var(--ps-deep);
  letter-spacing: -0.01em;
}

p { line-height: 1.75; }

a { color: var(--ps-teal); text-decoration: none; }
a:hover { color: var(--ps-deep); }

:focus-visible {
  outline: 3px solid var(--ps-teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.bg-mist  { background-color: var(--ps-mist) !important; }
.bg-sky   { background-color: var(--ps-sky) !important; }
.bg-deep  { background-color: var(--ps-teal) !important; }
.text-teal{ color: var(--ps-teal-600) !important; }
.text-deep{ color: var(--ps-deep) !important; }
.text-muted-ps { color: var(--ps-gray-500) !important; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ps-teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--ps-teal-600);
  display: inline-block;
  border-radius: 2px;
}

.section { padding: 42px 0; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

/* ---------------------------------------------------------------------- */
/* Top utility bar                                                        */
/* ---------------------------------------------------------------------- */
.topbar {
  background: var(--ps-deep);
  color: #c4e3f0;
  font-size: 0.86rem;
  padding: 7px 0;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar .topbar-sep { color: rgba(255,255,255,.25); margin: 0 .65rem; }

/* ---------------------------------------------------------------------- */
/* Navbar                                                                  */
/* ---------------------------------------------------------------------- */
.navbar-ps {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  transition: box-shadow .25s var(--ease), padding .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar-ps.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(18,63,75,.35);
  padding: 9px 0;
  border-bottom-color: var(--ps-line);
}
.navbar-ps .navbar-brand img { height: 42px; transition: height .25s var(--ease); }
.navbar-ps.is-scrolled .navbar-brand img { height: 36px; }

.navbar-ps .nav-link {
  font-weight: 600;
  color: var(--ps-deep);
  margin: 0 4px;
  padding: 8px 12px !important;
  border-radius: 999px;
  font-size: 0.96rem;
}
.navbar-ps .nav-link:hover,
.navbar-ps .nav-link.active {
  color: var(--ps-teal);
  background: var(--ps-sky);
}

.btn-ps-primary {
  background: var(--ps-teal-600);
  border: 1px solid var(--ps-teal-600);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 26px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 10px 22px -10px rgba(63,144,173,.55);
}
.btn-ps-primary:hover {
  background: var(--ps-deep);
  border-color: var(--ps-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ps-outline {
  background: transparent;
  border: 1.5px solid var(--ps-white);
  color: var(--ps-white);
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 26px;
  transition: all .2s var(--ease);
}
.btn-ps-outline:hover { background: var(--ps-white); color: var(--ps-deep); transform: translateY(-2px); }

.btn-ps-outline-teal {
  background: transparent;
  border: 1.5px solid var(--ps-teal-600);
  color: var(--ps-teal-600);
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 26px;
  transition: all .2s var(--ease);
}
.btn-ps-outline-teal:hover { background: var(--ps-teal-600); color: #fff; transform: translateY(-2px); }

.btn-ps-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ---------------------------------------------------------------------- */
/* Mega-menu: Service Areas                                                */
/* ---------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* dropdown positions relative to the nav-item (Bootstrap default: position:relative via .dropdown) */

  .dropdown-mega {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 660px;
    padding: 18px 20px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--ps-line);
    box-shadow: 0 20px 50px -12px rgba(18,63,75,.22);
    margin-top: 4px;
  }

  .mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 4px;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--ps-line);
  }

  .mega-county {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ps-teal);
    padding: 0 .75rem 8px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--ps-sky-2);
    display: block;
  }

  .mega-col .dropdown-item {
    font-size: .875rem;
    padding: 5px .75rem;
    border-radius: 6px;
    color: var(--ps-gray-700);
    font-weight: 500;
    line-height: 1.65;
  }
  .mega-col .dropdown-item:hover,
  .mega-col .dropdown-item:focus {
    background: var(--ps-sky);
    color: var(--ps-deep);
  }
}

/* Mobile: stack columns vertically */
@media (max-width: 991.98px) {
  .mega-grid  { display: block; }
  .mega-col   { display: block; }
  .mega-county {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ps-teal);
    padding: 10px 1rem 4px;
  }
  .mega-col .dropdown-item { padding-left: 1.5rem; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
@media (max-width: 767.98px) {
  .hero { min-height: 88vh; }
}

/* Full-screen background slider */
#heroSlider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
#heroSlider .carousel-inner {
  height: 100%;
  border-radius: 0;
  overflow: hidden;
}
#heroSlider .carousel-item {
  height: 100%;
}
#heroSlider .carousel-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,40,52,.72) 0%,
    rgba(10,40,52,.60) 50%,
    rgba(10,40,52,.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 40px;
}

.hero .container { position: relative; z-index: 2; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #d6eef8;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: .04em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #7ed4ec; box-shadow: 0 0 0 4px rgba(126,212,236,.25); }

.hero h1 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.hero h1 .accent { color: #90d0e8; }

.hero .lead-ps {
  color: #ddeef7;
  font-size: 1.14rem;
  max-width: 560px;
  margin: 20px 0 36px;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  font-weight: 700;
}
.hero-stats .stat span {
  font-size: 0.84rem;
  color: #a8d2e5;
}

/* wave divider between hero and next section */
.wave-divider {
  position: relative;
  display: block;
  width: 100%;
  height: 90px;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ---------------------------------------------------------------------- */
/* Page header (non-home pages)                                           */
/* ---------------------------------------------------------------------- */
.page-header {
  background: radial-gradient(120% 160% at 90% 0%, rgba(63,144,173,.92) 0%, rgba(11,45,58,.92) 45%, rgba(10,40,52,.95) 100%);
  color: #fff;
  padding: 130px 0 86px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ph-img, url('../assets/pool.webp')) center/cover no-repeat;
  opacity: .18;
  z-index: 0;
  mix-blend-mode: luminosity;
}
.page-header::after {
  content: "";
  position: absolute; left: -120px; bottom: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 50px rgba(255,255,255,.035);
  z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .eyebrow { color: #9dd1e5; }
.page-header .eyebrow::before { background: #9dd1e5; }
.page-header h1 { color: #fff; font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.page-header p { color: #c4e3f0; max-width: 600px; }
.breadcrumb-ps { font-size: .9rem; color: #9cc8dc; }
.breadcrumb-ps a { color: #DFF1F4; font-weight: 600; }
.breadcrumb-ps .sep { margin: 0 8px; opacity: .6; }

/* ---------------------------------------------------------------------- */
/* Buttons general CTA pair                                               */
/* ---------------------------------------------------------------------- */
.cta-pair { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* Cards: Why choose us / services / values                               */
/* ---------------------------------------------------------------------- */
.icon-droplet {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--ps-teal-600), var(--ps-deep-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 12px 22px -10px rgba(63,144,173,.55);
}

.card-ps {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card-ps:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.card-ps h3, .card-ps h4 { font-size: 1.18rem; margin: 18px 0 10px; }
.card-ps p:last-child { margin-bottom: 0; }

.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-row .heart-bullet {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--ps-sky);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ps-teal-600);
  margin-top: 2px;
}

/* ---------------------------------------------------------------------- */
/* Services list/table                                                    */
/* ---------------------------------------------------------------------- */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ps-line);
  overflow: hidden;
  height: 100%;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.service-card .service-top {
  background: linear-gradient(135deg, var(--ps-deep-2), var(--ps-teal-600));
  padding: 26px 28px;
  color: #fff;
  position: relative;
}
.service-card .service-top .tag {
  position: absolute; top: 20px; right: 22px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
}
.service-card .service-top h3 { color: #fff; margin: 10px 0 4px; font-size: 1.25rem; }
.service-card .service-top .price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #CFF3E0; }
.service-card .service-body { padding: 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-card .service-body ul { list-style: none; padding: 0; margin: 0 0 22px; }
.service-card .service-body ul li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; font-size: .95rem; color: var(--ps-gray-700);
  border-bottom: 1px dashed var(--ps-line);
}
.service-card .service-body ul li:last-child { border-bottom: none; }
.service-card .service-body ul li svg { flex-shrink: 0; margin-top: 3px; color: var(--ps-teal-600); }
.service-card .service-body .cta-row { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* Process steps (real sequence — numbered)                               */
/* ---------------------------------------------------------------------- */
.step {
  position: relative;
  padding-left: 0;
}
.step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--ps-sky-2);
  -webkit-text-stroke: 1.5px var(--ps-teal-600);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

/* ---------------------------------------------------------------------- */
/* Testimonials                                                           */
/* ---------------------------------------------------------------------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border: 1px solid var(--ps-line);
  height: 100%;
}
.testimonial-card .stars { color: #F6B73C; letter-spacing: 2px; margin-bottom: 12px; font-size: .95rem; }
.testimonial-card .quote { font-size: .98rem; color: var(--ps-gray-700); }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ps-sky);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--ps-teal-600);
}
.testimonial-card .who b { display: block; color: var(--ps-deep); font-size: .92rem; }
.testimonial-card .who span { font-size: .8rem; color: var(--ps-gray-500); }

/* ---------------------------------------------------------------------- */
/* Service area band                                                      */
/* ---------------------------------------------------------------------- */
.area-band {
  background: var(--ps-teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.area-band .chip {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .86rem;
  margin: 5px;
}

/* ---------------------------------------------------------------------- */
/* CTA banner                                                              */
/* ---------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ps-teal-600), var(--ps-deep-2));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #DCF1F4; }

/* ---------------------------------------------------------------------- */
/* About page extras                                                      */
/* ---------------------------------------------------------------------- */
.value-pill {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--ps-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.value-pill .icon-droplet { width: 46px; height: 46px; font-size: 1.15rem; border-radius: 12px; }

.timeline-ps { border-left: 2px solid var(--ps-sky-2); padding-left: 28px; margin-left: 6px; }
.timeline-ps .t-item { position: relative; padding-bottom: 30px; }
.timeline-ps .t-item:last-child { padding-bottom: 0; }
.timeline-ps .t-item::before {
  content: ""; position: absolute; left: -34.5px; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ps-teal-600);
  border: 3px solid var(--ps-mist);
  box-shadow: 0 0 0 2px var(--ps-teal-600);
}
.timeline-ps .t-year { font-family: var(--font-display); font-weight: 700; color: var(--ps-teal-600); font-size: .9rem; letter-spacing: .04em; }

.photo-frame {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ps-sky), var(--ps-sky-2));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-height: 360px;
}
.photo-frame .ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(44,126,158,.18);
}
.photo-frame .ring.r1 { width: 220px; height: 220px; }
.photo-frame .ring.r2 { width: 320px; height: 320px; }
.photo-frame img.icon-floating { width: 120px; opacity: .95; filter: drop-shadow(0 16px 30px rgba(18,63,75,.25)); }

/* ---------------------------------------------------------------------- */
/* Contact page                                                           */
/* ---------------------------------------------------------------------- */
.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ps-line);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-control-ps {
  border: 1.5px solid var(--ps-line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .96rem;
  background: var(--ps-mist);
}
.form-control-ps:focus {
  border-color: var(--ps-teal-600);
  box-shadow: 0 0 0 4px rgba(63,144,173,.15);
  background: #fff;
}
.form-label-ps {
  font-weight: 600;
  font-size: .88rem;
  color: var(--ps-deep);
  margin-bottom: 6px;
}

.contact-info-card {
  background: var(--ps-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
}
.contact-info-card .info-row { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info-card .info-row .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-card .info-row b { display: block; color: #fff; font-size: .95rem; }
.contact-info-card .info-row span, .contact-info-card .info-row a { color: #BFE1E7; font-size: .92rem; }
.contact-info-card hr { border-color: rgba(255,255,255,.15); margin: 28px 0; }
.hours-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 6px 0; color: #c4e3f0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.hours-row:last-child { border-bottom: none; }
.hours-row b { color: #fff; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ps-line);
  height: 100%;
  min-height: 280px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

.alert-ps-success {
  display: none;
  background: #E7F8EF;
  border: 1px solid #B7E6C8;
  color: #1F7A45;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  font-size: .92rem;
  align-items: center;
  gap: 10px;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.footer-ps {
  background: var(--ps-deep);
  color: #b8dcea;
  padding-top: 70px;
}
.footer-ps h5 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-ps a { color: #b8dcea; }
.footer-ps a:hover { color: #fff; }
.footer-ps .footer-brand img { height: 38px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-ps p.tagline { color: #96c0d6; font-size: .92rem; max-width: 280px; }
.footer-ps ul { list-style: none; padding: 0; margin: 0; }
.footer-ps ul li { margin-bottom: 11px; font-size: .93rem; }
.footer-ps .social-row { display: flex; gap: 10px; margin-top: 18px; }
.footer-ps .social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.footer-ps .social-row a:hover { background: var(--ps-teal-600); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px;
  padding: 20px 0;
  font-size: .84rem;
  color: #87b5cc;
}
.footer-bottom a { color: #b8dcea; }

/* back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ps-teal-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -10px rgba(30,79,94,.5);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .25s var(--ease);
  z-index: 999;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--ps-deep); }

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll                                                        */
/* ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* misc helpers */
.rounded-ps { border-radius: var(--radius-lg) !important; }
.fw-display { font-family: var(--font-display); }

/* ---------------------------------------------------------------------- */
/* Hero pool slider (index)                                                */
/* ---------------------------------------------------------------------- */
.hero-pool-wrap {
  position: relative;
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
/* single static img (fallback / sub-pages reusing the wrap) */
.hero-pool-wrap > img {
  width: 100%;
  max-width: 540px;
  border-radius: 24px;
  box-shadow: 0 36px 72px -14px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.14);
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}
/* Full-screen hero slider indicators & controls */
.hero-indicators {
  bottom: 110px; /* above wave divider */
  margin-left: 0; margin-right: 0;
  z-index: 5;
}
.hero-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.45); opacity: 1; transition: background .25s, transform .25s;
  margin: 0 5px;
}
.hero-indicators .active { background: #fff; transform: scale(1.35); }
.hero-prev, .hero-next {
  width: 46px; height: 46px;
  top: 50%; transform: translateY(-50%); bottom: auto;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s, background .25s;
  backdrop-filter: blur(6px);
  z-index: 5;
}
.hero:hover .hero-prev,
.hero:hover .hero-next { opacity: 1; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.28); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
@media (max-width: 767.98px) {
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
  .hero-indicators { bottom: 100px; }
}
.hero-pool-badge {
  position: absolute;
  bottom: -18px;
  left: 50px;
  z-index: 10;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 34px -8px rgba(18,63,75,.4);
  min-width: 200px;
}
.hero-pool-badge .badge-ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--ps-teal-600), var(--ps-deep-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
}
.hero-pool-badge b { display: block; color: var(--ps-deep); font-size: .9rem; line-height: 1.2; }
.hero-pool-badge span { font-size: .76rem; color: var(--ps-gray-500); }

/* ---------------------------------------------------------------------- */
/* Pool photo gallery section                                              */
/* ---------------------------------------------------------------------- */
.pool-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  gap: 14px;
}
.pool-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.pool-gallery-item.span-2 {
  grid-row: 1 / 3;
}
.pool-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}
.pool-gallery-item:hover img { transform: scale(1.06); }
.pool-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,63,75,.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.pool-gallery-item:hover .pool-gallery-overlay { opacity: 1; }

/* ---------------------------------------------------------------------- */
/* Service cards with photo header (index & services page)                 */
/* ---------------------------------------------------------------------- */
.svc-card { padding: 0 !important; overflow: hidden; position: relative; }
.svc-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .875rem; font-weight: 600; color: var(--ps-teal);
}
.svc-link::after { content: none; }
.svc-card:hover .svc-link { color: var(--ps-deep); }
.svc-img {
  position: relative;
  height: 170px;
}
.svc-img-inner {
  position: absolute; inset: 0; overflow: hidden;
}
.svc-img-inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s var(--ease);
}
.svc-card:hover .svc-img-inner img { transform: scale(1.07); }
.svc-ico {
  position: absolute;
  bottom: -18px; left: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ps-teal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(43,110,135,.35);
  z-index: 1;
}
.svc-body { padding: 32px 24px 24px; }
.svc-body h4 { margin-bottom: 8px; font-size: 1.05rem; }

/* ---------------------------------------------------------------------- */
/* Sub-page feature image band                                             */
/* ---------------------------------------------------------------------- */
.feature-img-band {
  width: 100%; height: 320px; overflow: hidden; position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.feature-img-band img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.feature-img-band .img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 24px 18px;
  background: linear-gradient(to top, rgba(18,63,75,.7) 0%, transparent 100%);
  color: #fff; font-size: .88rem; font-weight: 600;
}
@media (max-width: 991.98px) {
  .pool-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 220px 220px 220px;
  }
  .pool-gallery-item.span-2 { grid-row: auto; }
}
@media (max-width: 575.98px) {
  .pool-gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .pool-gallery-item img { height: 220px; }
}

/* ---------------------------------------------------------------------- */
/* Homepage video player                                                   */
/* ---------------------------------------------------------------------- */
.ps-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -16px rgba(0,0,0,.65);
  background: #000;
  cursor: pointer;
  max-width: 860px;
  margin: 0 auto;
}
.ps-video-wrap video { width: 100%; display: block; }
.ps-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,63,75,.22);
  border: none; padding: 0; width: 100%;
  transition: background .25s var(--ease), opacity .3s var(--ease);
}
.ps-video-play:hover { background: rgba(18,63,75,.35); }
.ps-video-play.is-hidden { opacity: 0; pointer-events: none; }
.ps-play-circle {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ps-video-play:hover .ps-play-circle {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

/* ---------------------------------------------------------------------- */
/* About page: real pool photo                                             */
/* ---------------------------------------------------------------------- */
.photo-frame-real {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.photo-frame-real img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.photo-frame-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  gap: 12px;
}
.photo-frame-badge .badge-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ps-teal-600), var(--ps-deep-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.photo-frame-badge b { display: block; color: var(--ps-deep); font-size: .88rem; }
.photo-frame-badge span { font-size: .76rem; color: var(--ps-gray-500); }

/* ---------------------------------------------------------------------- */
/* Service card photo header                                               */
/* ---------------------------------------------------------------------- */
.service-card-photo {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
