/* ==========================================================================
   Pool Deal Direct — shared stylesheet
   Zero external requests: system font stack, inline SVG icons only.
   ========================================================================== */

:root {
  --navy: #0a2540;
  --navy-deep: #061a2e;
  --navy-soft: #14365c;
  --aqua: #00b4d8;
  --cyan: #48cae4;
  --teal: #0096c7;
  --white: #ffffff;
  --light: #f2f7fb;
  --text: #16283a;
  --muted: #5d6f82;
  --line: #e2eaf1;
  --deal: #f4511e;          /* discount badge */
  --deal-dark: #d63d0f;
  --gold: #ffb703;
  --green: #2a9d48;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.10);
  --shadow-hover: 0 12px 32px rgba(10, 37, 64, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Sticky nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 26, 46, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(72, 202, 228, 0.18);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.2px; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand em { font-style: normal; color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: #cfe3f2; font-size: 0.92rem; font-weight: 600;
  padding: 10px 12px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { background: rgba(72, 202, 228, 0.14); color: #fff; text-decoration: none; }
.nav-links a.hot {
  background: var(--deal); color: #fff;
}
.nav-links a.hot:hover { background: var(--deal-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, #0d3a5f 100%);
  color: #fff; padding: 72px 0 0;
}
.hero::before { /* soft aqua glow */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(0, 180, 216, 0.28), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(72, 202, 228, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; padding-bottom: 46px; }
.hero-kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(72, 202, 228, 0.45); border-radius: 999px;
  padding: 7px 18px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--cyan); }
.hero p.sub {
  max-width: 640px; margin: 18px auto 0; color: #bcd3e6; font-size: 1.12rem;
}
.hero-cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 700; border-radius: 10px;
  padding: 13px 28px; font-size: 1rem; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--deal); color: #fff; box-shadow: 0 8px 20px rgba(244, 81, 30, 0.35); }
.btn-primary:hover { background: var(--deal-dark); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.hero-wave { position: relative; z-index: 1; margin-bottom: -1px; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--navy-deep); color: #fff;
  border-top: 1px solid rgba(72, 202, 228, 0.15);
}
.stats-bar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center;
}
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--cyan); }
.stat-label { font-size: 0.82rem; color: #9db4c9; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--light); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.section-title { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.3px; color: var(--navy); }
.section-title .hot-dot { color: var(--deal); }
.section-sub { color: var(--muted); margin-bottom: 26px; max-width: 720px; }
.see-all { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

/* ---------- Deal grid + cards ---------- */
.deal-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.deal-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform 0.16s ease, box-shadow 0.16s ease;
  position: relative;
}
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.deal-visual {
  height: 150px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.deal-visual svg { width: 72px; height: 72px; opacity: 0.95; }
/* category gradient tiles */
.v-heater    { background: linear-gradient(135deg, #ff8a3d, #f4511e); }
.v-heatpump  { background: linear-gradient(135deg, #0096c7, #00b4d8); }
.v-solar     { background: linear-gradient(135deg, #ffb703, #fb8500); }
.v-cleaner   { background: linear-gradient(135deg, #5e60ce, #48cae4); }
.v-chemical  { background: linear-gradient(135deg, #2a9d48, #80ed99); }
.v-pump      { background: linear-gradient(135deg, #0077b6, #48cae4); }
.v-filter    { background: linear-gradient(135deg, #415a77, #778da9); }
.v-salt      { background: linear-gradient(135deg, #00b4d8, #90e0ef); }
.v-cover     { background: linear-gradient(135deg, #3a506b, #1c2541); }
.v-code      { background: linear-gradient(135deg, #0a2540, #14365c); }
.deal-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--deal); color: #fff; font-weight: 800; font-size: 0.85rem;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,0.22);
  letter-spacing: 0.4px;
}
.deal-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.deal-store {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.1px; color: var(--teal); margin-bottom: 6px;
}
.deal-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--navy); }
.deal-price { margin-bottom: 14px; font-size: 1.05rem; }
.deal-price s { color: var(--muted); margin-right: 8px; }
.deal-price strong { color: var(--deal-dark); font-size: 1.28rem; font-weight: 800; }
.deal-cta {
  margin-top: auto; display: block; text-align: center;
  background: var(--navy); color: #fff; font-weight: 700;
  padding: 11px 16px; border-radius: 9px; font-size: 0.95rem;
}
.deal-cta:hover { background: var(--navy-soft); color: #fff; text-decoration: none; }
.deal-note { font-size: 0.78rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- Store sections ---------- */
.store-block { margin-bottom: 44px; }
.store-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.store-logo {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.3rem;
}
.store-head h3 { font-size: 1.25rem; color: var(--navy); }
.store-head p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Category teasers ---------- */
.cat-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cat-card {
  border-radius: var(--radius); overflow: hidden; color: #fff;
  min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; position: relative; box-shadow: var(--shadow);
}
.cat-card:hover { text-decoration: none; transform: translateY(-3px); }
.cat-card h3 { font-size: 1.3rem; margin-bottom: 4px; position: relative; z-index: 1; }
.cat-card p { font-size: 0.92rem; opacity: 0.92; position: relative; z-index: 1; }
.cat-card .go { margin-top: 10px; font-weight: 700; position: relative; z-index: 1; }
.cat-card svg.bg-icon {
  position: absolute; right: -18px; top: -18px; width: 150px; height: 150px; opacity: 0.22;
}
.cat-flagship { grid-column: 1 / -1; min-height: 190px; }

/* ---------- Trust strip ---------- */
.trust-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 8px; }
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.trust-item h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.trust-item p { font-size: 0.93rem; color: var(--muted); }
.trust-item .t-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}
.trust-item .t-icon svg { width: 24px; height: 24px; }

/* ---------- Guide / article pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #0d3a5f);
  color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 240px at 85% 20%, rgba(0,180,216,0.25), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.4px; position: relative; }
.page-hero .crumb { font-size: 0.85rem; color: var(--cyan); margin-bottom: 12px; position: relative; }
.page-hero .crumb a { color: var(--cyan); }
.page-hero p.lead { color: #bcd3e6; max-width: 700px; margin-top: 12px; font-size: 1.08rem; position: relative; }

.article { max-width: 780px; margin: 0 auto; padding: 48px 20px 64px; }
.article h2 { font-size: 1.5rem; color: var(--navy); margin: 38px 0 14px; letter-spacing: -0.2px; }
.article h3 { font-size: 1.18rem; color: var(--navy); margin: 26px 0 10px; }
.article p { margin-bottom: 16px; color: #33475c; }
.article ul, .article ol { margin: 0 0 18px 22px; color: #33475c; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 0.95rem; }
.article th, .article td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.article th { background: var(--navy); color: #fff; font-weight: 700; }
.article tr:nth-child(even) td { background: var(--light); }
.article .callout {
  background: #e8f6fc; border-left: 4px solid var(--aqua);
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0;
}
.article .callout p { margin: 0; }
.faq { margin-top: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px;
  background: #fff; overflow: hidden;
}
.faq summary { padding: 15px 18px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--teal); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 18px 16px; color: #33475c; }
.updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.byline { font-size: 0.9rem; color: var(--muted); margin-bottom: 26px; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 620px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--font); font-size: 1rem; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--aqua); border-color: var(--aqua); }
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Media kit ---------- */
.ad-format {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.ad-format h3 { color: var(--navy); margin-bottom: 8px; }
.ad-format p { color: var(--muted); font-size: 0.95rem; }
.price-tag {
  display: inline-block; background: var(--light); color: var(--navy);
  font-weight: 800; padding: 6px 14px; border-radius: 999px; margin-top: 10px; font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9db4c9; padding: 48px 0 28px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: 30px; }
.footer-grid h2.fh {
  margin-top: 0; color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #9db4c9; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; display: block; }
.footer-disclosure {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  font-size: 0.82rem; color: #7d93a9; max-width: 900px;
}
.footer-bottom { margin-top: 18px; font-size: 0.82rem; color: #63798f; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; border-bottom: 1px solid rgba(72,202,228,0.18);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-toggle { display: block; }
  .site-nav .wrap { position: relative; }
}
@media (max-width: 640px) {
  .stats-bar .wrap { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .section { padding: 40px 0; }
  .hero { padding-top: 52px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article table { font-size: 0.85rem; }
  .article th, .article td { padding: 8px 10px; }
}

/* product photos in deal cards */
.deal-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.affiliate-note { font-size: .82rem; color: var(--muted); margin: 2px 0 16px; }
.affiliate-note a { color: var(--teal); font-weight: 600; }
