/* Poolguard — static single-page site */
:root {
  --blue: #0b4fe0;
  --blue-700: #0a3bb0;
  --navy: #0a2a8a;
  --navy-900: #061a5c;
  --ink: #0e1a33;
  --muted: #55627a;
  --yellow: #fccb26;
  --yellow-600: #e8b400;
  --tint: #eef4ff;
  --line: #dbe4f5;
  --white: #fff;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(6, 26, 92, .25);
  --head: "Titillium Web", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; color: var(--navy-900); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 .95rem/1 var(--body); padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { font-size: 1rem; padding: 1.05em 1.75em; }
.btn--block { width: 100%; }
.btn--accent { background: var(--yellow); color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(232, 180, 0, .7); }
.btn--accent:hover { background: var(--yellow-600); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa .ico { width: 1.25em; height: 1.25em; }

/* Top bar */
.topbar { background: var(--navy-900); color: #cfd8f3; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; }
.topbar__list { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar__list a { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
.topbar__list a:hover { color: var(--yellow); }
.topbar__est { font-family: var(--head); font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(6,26,92,.35); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand img { width: 136px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: .3em 0; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--yellow); transform: scaleX(0); transition: transform .2s; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { padding: .75em 1.3em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--navy-900); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(125deg, var(--blue) 0%, var(--navy) 55%, var(--navy-900) 100%); }
.hero__water { position: absolute; inset: 0; background: url("../img/hero/pool-water.webp") center/cover no-repeat; opacity: .22; mix-blend-mode: screen; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 900; text-transform: uppercase; line-height: .98; margin-bottom: .35em; }
.text-accent { display: block; color: var(--yellow); }
.lead { font-size: 1.125rem; color: #dce5ff; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .92rem; color: #dce5ff; }
.hero__points li { display: flex; align-items: center; gap: .5em; }
.hero__points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23061a5c' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Hero slider */
.slider { position: relative; }
.slider__stage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; }
.slider__stage::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 68%); }
.slide { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transform: translateX(30px) scale(.96); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.slide img { height: 62%; width: auto; max-width: 88%; object-fit: contain; margin-bottom: 8%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.slide figcaption { position: absolute; left: 0; bottom: 4%; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: .8rem 1.1rem; box-shadow: var(--shadow); border-left: 5px solid var(--yellow); max-width: 70%; }
.slide figcaption small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.slide figcaption strong { display: block; font-family: var(--head); font-size: 1.35rem; line-height: 1.15; color: var(--navy-900); }
.slide figcaption span { font-size: .85rem; color: var(--muted); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.slider__btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.slider__btn:hover { background: rgba(255,255,255,.15); }
.slider__btn svg { width: 22px; height: 22px; fill: currentColor; }
.slider__dots { display: flex; gap: .45rem; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.slider__dots button[aria-selected="true"] { width: 26px; background: var(--yellow); }

.hazard { height: 10px; background: repeating-linear-gradient(-55deg, var(--yellow) 0 18px, #111 18px 36px); }
.hero .hazard { position: absolute; left: 0; right: 0; bottom: 0; }

/* Retailers */
.retailers { border-bottom: 1px solid var(--line); }
.retailers__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding: 1.8rem 0; }
.retailers__title { font-size: 1.35rem; margin: 0; }
.retailers__logos { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.retailers__logos img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 4px; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__head--left { text-align: left; margin: 0; }
.kicker { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.kicker--light { color: var(--yellow); }

/* About */
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__badge { position: absolute; right: -18px; bottom: 28px; background: var(--yellow); color: var(--navy-900); border-radius: 16px; padding: 1rem 1.25rem; max-width: 190px; box-shadow: var(--shadow); }
.about__badge strong { display: block; font-family: var(--head); font-size: 2.4rem; line-height: 1; }
.about__badge span { font-size: .85rem; font-weight: 600; }
.about__copy p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.checks li { display: flex; gap: .6em; font-weight: 600; font-size: .95rem; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__img { aspect-ratio: 1 / 1; overflow: hidden; background: #f4f7fd; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product__img img { transform: scale(1.05); }
.product__body { padding: 1.1rem 1.2rem 1.3rem; }
.product__body h3 { margin-bottom: .15em; color: var(--navy-900); }
.product__sizes { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--navy-900); background: var(--yellow); border-radius: 6px; padding: .15em .55em; margin-bottom: .7em; }
.product__body p:last-child { color: var(--muted); font-size: .93rem; margin: 0; }

/* Equipment */
.equipment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.equip { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s, box-shadow .25s; }
.equip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.equip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.equip__body { padding: 1.1rem 1.25rem 1.35rem; }
.equip__body h3 { color: var(--navy-900); }
.equip__body p { color: var(--muted); font-size: .93rem; margin: 0; }
.equip--feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border: 0; }
.equip--feature img { aspect-ratio: auto; flex: 1 1 0; min-height: 280px; height: 100%; background: #f4f4f4; }
.equip--feature .equip__body { padding: 1.6rem 1.8rem 2rem; }
.equip--feature h3 { color: #fff; font-size: 1.8rem; }
.equip--feature p { color: #cdd7f5; font-size: 1.02rem; margin-bottom: 1.3rem; }
.price { display: inline-block; font-family: var(--head); font-weight: 900; font-size: 1.5rem; color: var(--navy-900); background: var(--yellow); border-radius: 8px; padding: .1em .5em; margin-bottom: .6rem; }

/* Order */
.order { position: relative; background: linear-gradient(125deg, var(--blue) 0%, var(--navy-900) 100%); color: #fff; padding: clamp(4rem, 8vw, 6rem) 0; overflow: hidden; }
.order::before { content: ""; position: absolute; inset: 0; background: url("../img/hero/pool-water.webp") center/cover; opacity: .14; mix-blend-mode: screen; }
.order__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.order h2 { color: #fff; }
.order h2 a { color: var(--yellow); text-decoration: none; }
.order__copy p { color: #dce5ff; font-size: 1.05rem; margin-bottom: 1.6rem; }
.order__card { background: #fff; color: var(--ink); border-radius: 20px; padding: 2rem; box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); }
.order__card h3 { color: var(--navy-900); font-size: 1.5rem; }
.order__card p { color: var(--muted); margin-bottom: 1.4rem; }
.order__card .btn { font-size: .95rem; white-space: normal; text-align: center; }
.order__alt { list-style: none; margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.order__alt a { font-weight: 700; color: var(--navy-900); text-decoration: none; }
.order__alt a:hover { color: var(--blue); }

/* FAQ */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq { display: grid; gap: 1rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 1.4rem; transition: box-shadow .2s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__item summary { list-style: none; cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); padding: 1.2rem 2.2rem 1.2rem 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; }
.contact__list .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue); fill: #fff; }
.contact__list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__list a { display: block; font-weight: 700; text-decoration: none; color: var(--navy-900); }
.contact__list a:hover { color: var(--blue); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.contact__map { min-height: 380px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.footer { background: var(--navy-900); color: #b9c4e6; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer__brand img { width: 160px; margin-bottom: 1rem; }
.footer__brand p { max-width: 26em; font-size: .95rem; }
.footer__nav, .footer__contact { display: grid; gap: .55rem; align-content: start; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0 1.6rem; font-size: .85rem; }

/* WhatsApp float */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

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

/* Responsive */
@media (max-width: 1024px) {
  .equipment { grid-template-columns: repeat(2, 1fr); }
  .equip--feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 6rem 2rem 2rem; background: #fff; box-shadow: -20px 0 40px -20px rgba(0,0,0,.3); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav__link { font-size: 1.1rem; }
  .nav-toggle { position: relative; z-index: 2; }
  .hero__inner, .about__inner, .order__inner, .faq__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .slider__stage { max-width: 380px; }
  .about__badge { right: 12px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar__addr, .topbar__est { display: none; }
  .equipment { grid-template-columns: 1fr; }
  .equip--feature { grid-column: auto; }
  .products { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .product__body { padding: .9rem; }
  .product__body h3 { font-size: 1.05rem; }
  .product__body p:last-child { font-size: .85rem; }
  .checks { grid-template-columns: 1fr; }
  .retailers__inner { justify-content: center; text-align: center; }
  .retailers__logos { justify-content: center; gap: .8rem; }
  .retailers__logos img { width: 66px; height: 66px; }
  .slide figcaption { max-width: 80%; padding: .6rem .9rem; }
  .slide figcaption strong { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Last equipment card fills the final row as a wide card on desktop */
@media (min-width: 1025px) {
  .equipment .equip:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .equipment .equip:last-child img { width: 280px; aspect-ratio: 4 / 3; flex: none; }
  .equipment .equip:last-child .equip__body { padding: 1.5rem 2rem; }
}
