/* =========================================================
   Almighty Pools — Stylesheet
   Palette pulled from the logo: deep navy + bright aqua + white
   Mobile-first. Larger screens enhanced via min-width queries.
   ========================================================= */

:root {
  /* Brand */
  --navy-900: #1a2a63;
  --navy:     #26398c;   /* logo text blue */
  --blue:     #2f4bb0;
  --aqua:     #40c0e6;   /* logo wave */
  --aqua-600: #1fa6d4;
  --aqua-700: #1789b5;

  /* Neutrals */
  --ink:    #16233f;
  --body:   #43506b;
  --muted:  #6b7794;
  --line:   #e4eaf2;
  --tint:   #eef7fc;
  --tint-2: #f6fafd;
  --white:  #ffffff;

  /* System */
  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 12px 30px -12px rgba(26, 42, 99, .22);
  --shadow-lg:0 24px 60px -20px rgba(26, 42, 99, .35);
  --ring:     0 0 0 4px rgba(64, 192, 230, .35);
  --nav-h:    80px;
  --maxw:     1180px;
  --ease:     cubic-bezier(.22, 1, .36, 1);

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

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 100%; height: 100%; }

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

/* Anchor offset so sticky nav doesn't cover section headings */
section[id], #home { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn--lg    { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--aqua  { background: var(--aqua); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(64,192,230,.8); }
.btn--aqua:hover  { background: #55cbee; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(64,192,230,.9); }
.btn--navy  { background: var(--navy); color: #fff; }
.btn--navy:hover  { background: var(--blue); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.65); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy));
  color: #dbe6ff; font-size: .8rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; height: 34px; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--aqua); }
.topbar__item--pill { display: none; }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
.nav.is-scrolled { box-shadow: 0 8px 24px -14px rgba(26,42,99,.4); background: rgba(255,255,255,.97); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 58px; width: auto; }

.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; color: var(--ink);
  padding: .5rem .8rem; border-radius: 8px; font-size: .95rem; position: relative;
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--aqua-700); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem;
  height: 2px; border-radius: 2px; background: var(--aqua);
}
.nav__phone {
  display: none; align-items: center; gap: .4rem; font-family: var(--font-head);
  font-weight: 600; color: var(--navy); margin-left: .5rem; font-size: .95rem;
}
.nav__phone svg { width: 17px; height: 17px; fill: var(--aqua-600); }
.nav__cta { margin-left: .6rem; }

/* Hamburger */
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
}
.nav__toggle span { height: 2.5px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 12vw, 8.5rem);
  color: #fff; text-align: center;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  /* Fallback tint shown before the video paints */
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 45%, var(--aqua-700) 120%);
}
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
/* Brand-tinted, darker toward the bottom where text sits — keeps the water visible but readable */
.hero__overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 20%, transparent 0%, rgba(20,32,79,.35) 100%),
    linear-gradient(180deg, rgba(20,32,79,.62) 0%, rgba(26,42,99,.34) 42%, rgba(23,137,181,.5) 100%);
}
.hero__inner { position: relative; max-width: 800px; width: 100%; }
.hero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; color: #bff0ff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero__title {
  color: #fff; font-weight: 800; font-size: clamp(2.4rem, 8vw, 4.4rem);
  letter-spacing: -.02em; margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(11, 20, 54, .45);
}
.hero__title span {
  background: linear-gradient(100deg, #7fe0ff, #40c0e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1rem, 2.6vw, 1.2rem); color: #eef3ff; max-width: 620px; margin: 0 auto 2rem; text-shadow: 0 1px 12px rgba(11, 20, 54, .4); }
.hero__cta { display: flex; flex-direction: column; gap: .8rem; align-items: center; justify-content: center; margin-bottom: 2.6rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__trust li { font-size: .9rem; color: #cfe0ff; }
.hero__trust strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 100px); z-index: -1; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; color: var(--aqua-700); margin-bottom: .6rem;
}
.section__title { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
.section__lead { font-size: 1.05rem; color: var(--muted); }
.section__lead em { color: var(--aqua-700); font-style: normal; font-weight: 600; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.2rem; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfe6f4; }
.card--featured { border-color: var(--aqua); box-shadow: 0 20px 44px -18px rgba(64,192,230,.55); }
.card__badge {
  position: absolute; top: -12px; left: 1.8rem; background: var(--aqua); color: var(--navy-900);
  font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px;
}
.card__icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--aqua-700)); margin: 0 auto 1.1rem;
}
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.3rem; text-align: center; }
.card__text { color: var(--muted); font-size: .98rem; }
.card__list { margin-top: 1rem; display: grid; gap: .5rem; }
.card__list li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: var(--body); }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px;
  background: var(--tint); border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--aqua);
}
.card__list li::after {
  content: ""; position: absolute; left: 5px; top: .62em; width: 6px; height: 3px;
  border-left: 2px solid var(--aqua-700); border-bottom: 2px solid var(--aqua-700);
  transform: rotate(-45deg);
}

/* ---------- Why us ---------- */
.why { display: grid; gap: 2.4rem; }
.why__intro .section__title { text-align: left; }
.features { display: grid; gap: 1.2rem; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.feature__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); margin-bottom: .9rem; }
.feature__icon svg { width: 26px; height: 26px; fill: var(--aqua-600); }
.feature h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1.4rem; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.6rem 1.6rem; box-shadow: var(--shadow);
}
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), var(--aqua-600)); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin: 0 auto .9rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .3rem; text-align: center; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.gallery__item {
  position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--navy); box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.6rem .9rem .75rem; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  background: linear-gradient(to top, rgba(13, 22, 55, .82), rgba(13, 22, 55, 0));
  transform: translateY(0); transition: background .3s;
}

/* ---------- Reviews ---------- */
.stars { color: #ffc24b; font-size: 1.5rem; letter-spacing: .15em; margin-top: .4rem; }
.reviews { display: grid; gap: 1.2rem; }
.review {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); position: relative;
}
.review::before {
  content: "\201C"; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--aqua);
  opacity: .35; position: absolute; top: .4rem; right: 1.2rem;
}
.review p { font-size: 1rem; color: var(--ink); font-style: italic; }
.review footer { display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--muted); }
.review__avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), var(--aqua-600)); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; flex: none;
}
.review footer strong { color: var(--ink); }

/* ---------- CTA banner ---------- */
.ctaBanner {
  background:
    radial-gradient(100% 140% at 90% 0%, rgba(64,192,230,.5), transparent 55%),
    linear-gradient(120deg, var(--navy-900), var(--navy));
  color: #fff;
}
.ctaBanner__inner { padding: clamp(2.4rem, 6vw, 3.6rem) 20px; text-align: center; display: grid; gap: 1.4rem; place-items: center; }
.ctaBanner h2 { color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
.ctaBanner p { color: #d6e2ff; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2.4rem; }
.contact__info .section__title { text-align: left; }
.contact__list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; }
.contact__ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint);
}
.contact__ic svg { width: 22px; height: 22px; fill: var(--aqua-600); }
.contact__list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact__list a, .contact__plain { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.contact__list a:hover { color: var(--aqua-700); }

/* Form */
.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2rem); box-shadow: var(--shadow-lg);
}
.form__row { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--tint-2); transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--aqua); background: #fff; box-shadow: var(--ring);
}
.field input.is-invalid, .field select.is-invalid { border-color: #e2544b; background: #fdf2f1; }
.form__note { margin: .8rem 0 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form__note.is-ok { color: var(--aqua-700); }
.form__note.is-err { color: #d63c33; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(160deg, var(--navy-900), #14204f); color: #c4d0ec; }
.footer__inner { display: grid; gap: 2rem; padding-top: clamp(2.6rem, 6vw, 4rem); padding-bottom: 2.4rem; }
.footer__logo { height: 46px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer__brand p { font-size: .92rem; color: #a9b6d8; max-width: 320px; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--aqua); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: .3rem; }
.footer__col a, .footer__plain { font-size: .92rem; color: #a9b6d8; transition: color .2s; }
.footer__col a:hover { color: var(--aqua); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__barInner { display: flex; flex-direction: column; gap: .3rem; text-align: center; padding: 1.2rem 20px; font-size: .82rem; color: #8fa0c8; }
.footer__barInner p { margin: 0; color: #8fa0c8; }

/* ---------- Floating call button (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--aqua); box-shadow: 0 12px 26px -8px rgba(64,192,230,.9);
  animation: fabPulse 2.4s var(--ease) infinite;
}
.fab svg { width: 26px; height: 26px; fill: var(--navy-900); }
@keyframes fabPulse { 0%,100% { box-shadow: 0 12px 26px -8px rgba(64,192,230,.9), 0 0 0 0 rgba(64,192,230,.45); } 50% { box-shadow: 0 12px 26px -8px rgba(64,192,230,.9), 0 0 0 12px rgba(64,192,230,0); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   MOBILE NAV DRAWER (default state on small screens)
   ========================================================= */
@media (max-width: 899px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1.4rem; box-shadow: 0 24px 40px -20px rgba(26,42,99,.4);
    transform: translateY(-140%); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .25s, visibility .25s;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: .9rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav__link.is-active::after { display: none; }
  .nav__phone { display: flex; padding: 1rem .4rem; border-bottom: 1px solid var(--line); margin: 0; font-size: 1.05rem; }
  .nav__cta { margin: 1.1rem 0 0; }
}

/* =========================================================
   TABLET / DESKTOP ENHANCEMENTS
   ========================================================= */
@media (min-width: 560px) {
  .hero__cta { flex-direction: row; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .footer__barInner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 900px) {
  :root { --nav-h: 90px; }
  .topbar__inner { justify-content: space-between; }
  .topbar__item--pill { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__logo { height: 66px; }
  .nav__phone { display: inline-flex; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 3rem; }
  .contact { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 3.5rem; }
  .ctaBanner__inner { grid-template-columns: 1fr auto; text-align: left; }
  .fab { display: none; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
