:root {
  --bg: #f4f6fb;
  --text: #1b2430;
  --muted: #6c7a89;
  --card: #ffffff;
  --line: rgba(16, 24, 40, 0.10);
  --shadow: 0 10px 25px rgba(24, 40, 72, 0.10);
  --shadow-soft: 0 6px 16px rgba(24, 40, 72, 0.10);

  --blue-700: #1f4f9b;
  --blue-800: #153e7f;
  --blue-500: #2b62c3;
  --orange: #d7872e;
  --footer: #1f2e3f;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Topbar */
.topbar {
  background: #fff;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}
.topbar__inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  color: inherit;
}
.brand__logo {
  height: 70px;
  width: auto;
  display: block;
  transform: scale(1.5);
  margin-top: -6px;
}
.brand__name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.3px;
  line-height: 1;
  margin-left: -7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__link {
  text-decoration: none;
  color: #344054;
  font-weight: 500;
  font-size: 14px;
}
.nav__link:hover { color: #111827; }
.nav__cta {
  text-decoration: none;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(215, 135, 46, 0.25);
}

/* Hero (BACKGROUND IMAGE like mock) */
.hero {
  position: relative;
  min-height: 360px;
  padding: 48px 0 28px;
  background: #eef2f8;
  overflow: hidden;
}

/* hero background image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: right center; /* keep pool on the right */
  opacity: 1;
  transform: scale(1.03);
}

/* fade overlay so text is readable like the mock */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(244,246,251, 0.96) 0%,
      rgba(244,246,251, 0.92) 38%,
      rgba(244,246,251, 0.55) 60%,
      rgba(244,246,251, 0.12) 78%,
      rgba(244,246,251, 0.00) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__content {
  width: min(580px, 100%);
}

.hero__title {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-weight: 800;
  color: #1d2a3b;
}

.hero__subtitle {
  margin: 0 0 18px;
  color: #52606d;
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 16px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
}
.btn__icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}
.btn__icon svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.btn--primary {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-800));
  color: #fff;
  min-width: 280px;
  justify-content: center;
}
.btn--ghost {
  background: rgba(255,255,255,0.72);
  color: #2f3c4a;
  border-color: rgba(16,24,40,0.12);
  min-width: 300px;
  justify-content: center;
}

.hero__badges {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 24, 40, 0.10);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #455468;
  font-size: 13px;
  font-weight: 600;
}
.badge__icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
}
.badge__icon--blue { background: #2b62c3; }
.badge__icon--green { background: #2aa66a; }

/* Sections */
.section {
  padding: 34px 0;
}
.section__title {
  margin: 0 0 6px;
  font-size: 34px;
  letter-spacing: -0.4px;
  color: #1d2a3b;
}
.section__subtitle {
  margin: 0 0 18px;
  color: #6b7a8f;
  font-size: 14px;
}

/* Cards */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(24, 40, 72, 0.08);
  padding: 18px 18px;
}
.card--flat {
  background: rgba(255,255,255,0.55);
}

.card__titleRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.miniIcon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(26, 80, 160, 0.10);
  display: inline-grid;
  place-items: center;
  font-size: 14px;
}
.card__title {
  margin: 0;
  font-size: 16px;
  color: #223246;
  font-weight: 800;
}
.card__text {
  margin: 0;
  color: #5c6b7a;
  font-size: 14px;
  line-height: 1.5;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #516071;
  font-size: 14px;
  line-height: 1.6;
}
.check { color: #2aa66a; font-weight: 900; margin-right: 10px; }

/* Recent Results grid */
.resultsGrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: start;
}

.resultsList {
  padding: 18px;
}
.resultItem {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
}
.resultItem + .resultItem {
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}
.checkBox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(42, 166, 106, 0.18);
  color: #2aa66a;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  margin-top: 2px;
}
.resultItem__title {
  font-weight: 800;
  color: #223246;
  margin-bottom: 3px;
}
.resultItem__sub {
  font-size: 13px;
  color: #6a7a8b;
}

.beforeAfter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.photo {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.10);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.photo img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.photo__label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Contact */
.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.btnWide {
  display: inline-block;
  margin-top: 12px;
  padding: 18px 26px;
  width: min(420px, 100%);
  background: linear-gradient(180deg, #2b62c3, #153e7f);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contactCard {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}
.contactMeta {
  margin-bottom: 10px;
}
.metaRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #334155;
  padding: 6px 0;
}
.metaIcon { opacity: 0.85; }

.form { margin-top: 10px; }
.input, .textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 8px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.85);
}
.input:focus, .textarea:focus {
  border-color: rgba(43, 98, 195, 0.45);
  box-shadow: 0 0 0 4px rgba(43, 98, 195, 0.10);
}
.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

/* Footer */
.footer {
  background: #223247;
  color: #cfe0f3;
  padding: 18px 0;
  margin-top: 12px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: center;
}

.footerBrand {
  display: flex;
  align-items: center;
  gap: 1px;
}
.footerBrand__logo {
  width: 48px;
  height: auto;
}
.footerBrand__name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: #eaf2ff;
  line-height: 1;
  margin-left: -7px;

}

.footerInfo {
  display: grid;
  gap: 8px;
  justify-content: center;
}
.footerRow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footerIcon { opacity: 0.9; }

.footerLink {
  color: rgba(234,242,255,0.85);
  text-decoration: none;
  justify-self: end;
  font-weight: 600;
  font-size: 13px;
}

/* Thank You Page */
.thankCard {
  max-width: 720px;
  margin: 60px auto;
  padding: 50px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(24, 40, 72, 0.12);
}

.thankTitle {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #1d2a3b;
}

.thankText {
  font-size: 16px;
  color: #52606d;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Different colors for phone vs email icons */
.metaIcon--phone { filter: hue-rotate(210deg) saturate(1.4); } /* blue-ish */
.metaIcon--email { filter: hue-rotate(20deg) saturate(1.4); }  /* orange-ish */

/* Optional: match footer too */
.footerIcon--phone { filter: hue-rotate(210deg) saturate(1.2); }
.footerIcon--email { filter: hue-rotate(20deg) saturate(1.2); }

/* ================================
   Most Recent Pool Transformations Carousel
================================ */

/* ================================
   Most Recent Pool Transformations Carousel
================================ */

/* Outer wrapper */
.carousel {
  position: relative;
  margin-top: 18px;
  padding: 0 46px; /* creates room for arrows INSIDE container */
}

/* Track */
.carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 14px;
  scroll-snap-type: x mandatory;

  scrollbar-width: none; /* Firefox */
}
.carousel__track::-webkit-scrollbar { display: none; }

/* Each item (BIGGER) */
.carousel__item {
  flex: 0 0 auto;
  width: 420px;          /* ✅ bigger */
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  box-shadow: 0 10px 22px rgba(24, 40, 72, 0.14);
}

/* Make the carousel image taller than your before/after */
.carousel__item img {
  width: 100%;
  height: 280px;         /* ✅ bigger/taller */
  object-fit: cover;
  display: block;
}

/* Label */
.carousel__item .photo__label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 10px;
}

/* Clickable zoom button wrapper (if using my button markup) */
.carousel__zoom {
  all: unset;
  display: block;
  cursor: zoom-in;
}
.carousel__zoom:focus-visible {
  outline: 3px solid rgba(43, 98, 195, 0.35);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Arrows (mock style) */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(16, 24, 40, 0.18);
  background: rgba(255, 255, 255, 0.92);

  /* ✅ Safari support */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  font-size: 22px;
  font-weight: 900;
  color: #1d2a3b;

  display: grid;
  place-items: center;

  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.carousel__btn.left { left: 10px; }
.carousel__btn.right { right: 10px; }

.carousel__btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: #fff;
}
.carousel__btn:active {
  transform: translateY(-50%) scale(0.98);
}

/* Mobile sizing */
@media (max-width: 980px) {
  .carousel { padding: 0 10px; }
  .carousel__btn { display: none; } /* swipe instead */
  .carousel__item { width: 86vw; }
  .carousel__item img { height: 260px; }
}

/* ================================
   Lightbox (click-to-enlarge)
================================ */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;

  /* ✅ Flex centering fixes mobile alignment */
  justify-content: center;
  align-items: center;

  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

/* Dark backdrop */
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* Image */
.lightbox__img {
  position: relative;
  max-width: 95%;
  max-height: 80vh;

  object-fit: contain;
  border-radius: 14px;

  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* Close button */
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);

  color: #fff;
  font-size: 28px;
  cursor: pointer;

  display: grid;
  place-items: center;
  z-index: 3;
}

.lightbox__close:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Mobile extra polish */
@media (max-width: 600px) {
  .lightbox__img {
    max-width: 100%;
    max-height: 75vh;
  }
}



/* Responsive */
@media (max-width: 980px) {
  .cards3 { grid-template-columns: 1fr; }
  .resultsGrid { grid-template-columns: 1fr; }
  .contactGrid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn--primary, .btn--ghost { min-width: 0; width: 100%; }
  .hero__badges { flex-wrap: wrap; }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .footerLink { justify-self: start; }
}

/* ===== Mobile Header Fix: Links in One Clean Row ===== */
@media (max-width: 720px) {

  .topbar__inner {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
    gap: 12px;
  }

  /* Logo stays centered */
  .brand {
    width: 100%;
    justify-content: center;
  }

  /* CTA button centered under logo */
  .nav__cta {
    width: auto;
    margin: 0 auto;
    order: 1;
  }

  /* Links row */
  .nav {
    width: 100%;
    justify-content: center;
    gap: 20px;
    order: 2;
    flex-wrap: nowrap; /* ✅ prevents stacking */
  }

  .nav__link {
    font-size: 14px;
    padding: 8px 0;
    text-align: center;
    white-space: nowrap;
  }
}
