/* ============================================================
   POOL GUARDIAN — Shared Stylesheet
   ============================================================ */

:root {
  --navy:        #0F2A4A;
  --navy-deep:   #0A1D33;
  --sky:         #2B9FE0;
  --sky-light:   #E8F4FC;
  --ice:         #F4F8FB;
  --slate:       #5A6B7D;
  --slate-light: #8C9BAC;
  --green:       #3BAF75;
  --green-light: #E6F7EE;
  --amber:       #E0A52B;
  --amber-light: #FBF1DE;
  --white:       #FFFFFF;
  --border:      #E1E8EF;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(15,42,74,0.06);
  --shadow-lg:   0 12px 40px rgba(15,42,74,0.10);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--ice);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Typography helpers ===== */
.mono { font-family: 'JetBrains Mono', monospace; }

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 500;
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-head h2 { font-size: 38px; margin-bottom: 16px; }
.section-head p  { color: var(--slate); font-size: 17px; }

/* ===== Layout ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 90px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover {
  background: var(--sky);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43,159,224,0.35);
}
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--navy); background: var(--white); }
.btn-sky { background: var(--sky); color: var(--white); }
.btn-sky:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,42,74,0.25);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ===== Header / Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244,248,251,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  flex-shrink: 0;
  z-index: 201;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; }

nav ul { display: flex; gap: 30px; align-items: center; }
nav a { font-size: 14.5px; font-weight: 500; color: var(--navy); transition: color 0.15s; }
nav a:hover { color: var(--sky); }
nav a.active { color: var(--sky); }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.nav-actions .btn { padding: 10px 22px; font-size: 14px; }

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile nav drawer ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 199;
  padding: 90px 32px 40px;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.mobile-nav ul li { border-bottom: 1px solid var(--border); }
.mobile-nav ul a {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--navy);
  transition: color 0.15s;
}
.mobile-nav ul a:hover, .mobile-nav ul a.active { color: var(--sky); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav-actions .btn { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }

/* ===== Placeholder image blocks ===== */
.ph {
  background: var(--sky-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--sky);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  padding: 20px;
  border: 1.5px dashed rgba(43,159,224,0.35);
}
.ph svg { width: 32px; height: 32px; opacity: 0.6; }
.ph-dark { background: rgba(43,159,224,0.12); border-color: rgba(43,159,224,0.25); color: #B9D3EA; }
.ph-video { background: var(--navy); border-color: rgba(43,159,224,0.3); color: #B9D3EA; position: relative; }
.ph-video .play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(43,159,224,0.85);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.ph-video .play-btn svg { width: 26px; height: 26px; fill: white; margin-left: 3px; }

/* ===== Footer ===== */
footer { background: var(--navy-deep); color: #9DB7CE; padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand .logo-mark { background: var(--sky); }
.footer-brand .logo-mark svg { stroke: var(--navy-deep); }
.footer-brand p { font-size: 14px; color: #7E9BB5; max-width: 280px; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #9DB7CE; transition: color 0.15s; }
.footer-col a:hover { color: var(--sky); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(157,183,206,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.social-row a:hover { border-color: var(--sky); color: var(--sky); }
.social-row svg { width: 15px; height: 15px; }
.footer-bottom {
  border-top: 1px solid rgba(157,183,206,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #7E9BB5;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 60%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(43,159,224,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .section-eyebrow { color: var(--sky); }
.page-hero h1 { font-size: 46px; color: var(--white); margin-bottom: 16px; max-width: 700px; }
.page-hero p { font-size: 18px; color: #B9D3EA; max-width: 560px; margin-bottom: 28px; }
.page-hero-meta { display: flex; gap: 36px; margin-top: 10px; flex-wrap: wrap; }
.page-hero-meta .stat strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--sky); }
.page-hero-meta .stat span { font-size: 13px; color: #B9D3EA; }

/* ===== Closing CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(43,159,224,0.18) 0%, transparent 70%);
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: 36px; color: var(--white); margin-bottom: 14px; }
.cta-band p  { color: #B9D3EA; font-size: 17px; margin-bottom: 32px; }
.cta-band-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Cards ===== */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* ===== Check list ===== */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-list .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--sky);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
  font-weight: 700;
}

/* ===== Tags / pills ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.tag-green  { background: var(--green-light);  color: #1F7A4D; }
.tag-amber  { background: var(--amber-light);  color: #8A6A1A; }
.tag-sky    { background: var(--sky-light);    color: #1470A0; }
.tag-navy   { background: var(--navy); color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  nav, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 30px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-wrap { padding: 16px 20px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 16px; }
  .cta-band-btns { flex-direction: column; align-items: center; }
}
