/* ═══════════════════════════════════════
   SHARED STYLES — The Pool Company
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1a2a5e;
  --navy-dark: #111d45;
  --sky: #5aa7d4;
  --sky-light: #a8d4ed;
  --white: #fff;
  --off-white: #f4f8fb;
  --gray: #7a8fa6;
}
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: 'DM Sans', sans-serif; color: var(--navy); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 201; background: rgba(255,255,255,0.97); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; padding: 0; height: 100px; transition: height .4s ease; border-bottom: 1px solid rgba(26,42,94,.08); }
.nav-logo { height: 88px; display: block; transition: height .4s ease; }
.site-header.scrolled { height: 68px; }
.site-header.scrolled .nav-logo { height: 56px; }

.nav-links-bar { position: fixed; left: 0; right: 0; z-index: 200; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem 1.6rem; padding: 10px 4vw; min-height: 48px; top: 100px; transition: top .4s ease; }
.nav-links-bar a { text-decoration: none; color: rgba(255,255,255,0.85); font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; transition: color .2s; white-space: nowrap; padding: 4px 0; }
.nav-links-bar a:hover, .nav-links-bar a.active { color: var(--sky-light); border-bottom: 2px solid var(--sky); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: 200px 5vw 80px; background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a7a 100%); text-align: center; position: relative; overflow: hidden; }
.page-hero-waves { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; overflow: hidden; }
.page-wave { position: absolute; bottom: 0; left: -10%; width: 120%; border-radius: 50% 50% 0 0 / 60px; animation: wave 7s ease-in-out infinite; }
.page-wave1 { height: 50px; background: rgba(90,167,212,.12); animation-delay: 0s; }
.page-wave2 { height: 35px; background: rgba(90,167,212,.08); animation-delay: -2.5s; }
@keyframes wave { 0%,100% { transform: translateX(0) scaleY(1); } 50% { transform: translateX(3%) scaleY(1.12); } }
.page-hero .eyebrow { font-size: .75rem; letter-spacing: .4em; text-transform: uppercase; color: var(--sky-light); margin-bottom: 1rem; opacity: .8; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem,5vw,4.5rem); color: #fff; font-weight: 900; line-height: 1.1; }
.page-hero h1 span { color: var(--sky); }
.page-hero p { font-size: 1.05rem; color: var(--sky-light); max-width: 560px; margin: 1.2rem auto 0; line-height: 1.7; font-weight: 300; }

/* ── SHARED SECTION STYLES ── */
section { padding: 90px 5vw; }
.section-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; color: var(--sky); font-weight: 600; margin-bottom: .8rem; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4vw,3rem); font-weight: 900; color: var(--navy); line-height: 1.15; }
.section-intro { font-size: 1.05rem; color: var(--gray); max-width: 560px; line-height: 1.75; margin-top: 1rem; }

/* ── BUTTONS ── */
.btn-primary { background: var(--sky); color: var(--white); padding: .95rem 2.4rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all .2s; box-shadow: 0 4px 24px rgba(90,167,212,.4); display: inline-block; }
.btn-primary:hover { background: #4494c0; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(90,167,212,.5); }
.btn-outline { border: 2px solid rgba(26,42,94,.3); color: var(--navy); padding: .95rem 2.4rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all .2s; display: inline-block; }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: white; }
.btn-white-outline { border: 2px solid rgba(255,255,255,.4); color: var(--white); padding: .95rem 2.4rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all .2s; display: inline-block; }
.btn-white-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ── FOOTER ── */
footer { background: var(--navy-dark); color: rgba(255,255,255,.65); padding: 60px 5vw 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 48px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.footer-desc { font-size: .88rem; line-height: 1.75; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .8rem; }

/* ── PHONE BAR ── */
.phone-bar { background: var(--sky); color: white; text-align: center; padding: .7rem 1rem; font-size: .9rem; font-weight: 600; }
.phone-bar a { color: white; text-decoration: none; }

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links-bar { gap: .3rem 1rem; }
}
@media(max-width:600px) {
  .site-header { height: 70px; }
  .nav-logo { height: 58px; }
  .site-header.scrolled { height: 56px; }
  .site-header.scrolled .nav-logo { height: 46px; }
  .nav-links-bar { top: 70px !important; gap: .2rem .7rem; padding: 8px 2vw; }
  .nav-links-bar a { font-size: .68rem; }
  .page-hero { padding: 170px 5vw 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 60px 5vw; }
}

/* ── SEO HIDDEN ── */
.seo-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
