/*
 * Knowledge Center article pages (template-kc-article.php + template-parts/kc-article.php).
 * Extracted from poolboys-library-*.html. Loaded only on the KC Article template.
 * The FAQ accordion uses the shared JS in assets/js/theme.js; the closing CTA reuses
 * the shared .cta-section from style.css. Global variables come from style.css :root.
 */

/* ===== HERO (breadcrumb + navy gradient) ===== */
.hero{
  position:relative;
  background:linear-gradient(155deg,#050d24 0%,#091e52 40%,#0f2868 70%,#07183e 100%);
  color:#fff;padding:160px 0 96px;
  text-align:left;
  display:flex;align-items:center;
  overflow:hidden;
}
.hero-content{max-width:1100px;padding:0 64px;width:100%;box-sizing:border-box;position:relative;z-index:2;}
.hero-breadcrumb{
  font-family:var(--font-body);font-weight:600;
  font-size:12px;letter-spacing:0.04em;
  color:rgba(255,255,255,0.6);margin:0 0 28px 0;
}
.hero-breadcrumb a{color:rgba(255,255,255,0.6);transition:color 0.2s;}
.hero-breadcrumb a:hover{color:#fff;}
.hero-breadcrumb span{margin:0 8px;color:rgba(255,255,255,0.35);}
.hero-h1{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(38px,4.6vw,64px);letter-spacing:0.04em;line-height:1.0;
  color:#fff;text-transform:uppercase;margin:0 0 28px 0;
}
.hero-sub{
  font-size:17px;line-height:1.75;color:rgba(255,255,255,0.85);
  max-width:660px;margin:0;
}
.hero-sub strong{color:#fff;font-weight:700;}

/* Hero full-bleed photo background (Version B). The photo fills the hero;
   a navy gradient overlay keeps the white headline readable. Matches the
   photo-brief treatment used on the Pool Equipment Services hero. */
.hero-photo-bg{
  position:absolute;inset:0;z-index:0;
  background:linear-gradient(155deg,#050d24 0%,#091e52 40%,#0f2868 70%,#07183e 100%);
}
.hero-photo-bg::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(120% 90% at 50% 30%,transparent 40%,rgba(8,14,26,0.55) 100%);
}

/* ===== CONTENT SECTIONS ===== */
.kc-section{padding:104px 48px;}
.kc-inner{max-width:760px;margin:0 auto;}
.kc-light{background:#fff;}
.kc-alt{background:var(--alt);}

.kc-h2{
  font-family:var(--font-display);font-weight:700;
  font-size:var(--text-section-headline);letter-spacing:0.04em;line-height:1;
  color:var(--navy);text-transform:uppercase;margin:0 0 20px 0;
}
.kc-rule{width:48px;height:3px;background:var(--arctic);margin:0 0 40px 0;}
.kc-body p{
  font-size:18px;line-height:1.75;color:var(--charcoal);
  margin:0 0 22px 0;
}
.kc-body p:last-child{margin-bottom:0;}
.kc-body strong{font-weight:700;color:var(--charcoal);}
/* Restore list markers (global reset sets ul{list-style:none}) for editor content. */
.kc-body ul,.kc-body ol{margin:0 0 22px 0;padding-left:24px;font-size:18px;line-height:1.75;color:var(--charcoal);}
.kc-body ul{list-style:disc;}
.kc-body ol{list-style:decimal;}
.kc-body li{margin-bottom:8px;padding-left:4px;}
.kc-body li::marker{color:var(--arctic);}
.kc-body a{color:var(--navy);font-weight:600;text-decoration:underline;text-underline-offset:3px;}
.kc-body a:hover{color:var(--ocean);}
.kc-charcoal .kc-body ul,.kc-charcoal .kc-body ol{color:rgba(255,255,255,0.85);}
.kc-charcoal .kc-body a{color:#fff;}
.kc-inline-link{
  color:var(--navy);font-weight:600;
  text-decoration:underline;text-underline-offset:3px;
  transition:color 0.2s;
}
.kc-inline-link:hover{color:var(--ocean);}

/* Parts list (what fails section) */
.parts-list{
  list-style:none;padding:0;margin:8px 0 0 0;
}
.parts-list li{
  padding:24px 0;
  border-bottom:1px solid var(--line);
}
.parts-list li:first-child{border-top:1px solid var(--line);}
.part-name{
  font-family:var(--font-display);font-weight:700;
  font-size:17px;letter-spacing:0.06em;text-transform:uppercase;
  color:var(--navy);margin:0 0 8px 0;
}
.part-desc{
  font-size:16.5px;line-height:1.7;color:var(--charcoal);margin:0;
}

/* Variable-speed: charcoal authority section */
.kc-charcoal{background:var(--charcoal);color:#fff;padding:104px 48px;}
.kc-charcoal .kc-h2{color:#fff;}
.kc-charcoal .kc-rule{background:var(--arctic);}
.kc-charcoal .kc-body p{color:rgba(255,255,255,0.85);}
.kc-charcoal .kc-body strong{color:#fff;}
.kc-charcoal .kc-inline-link{
  color:#fff;border-bottom:1px solid rgba(255,255,255,0.5);
  text-decoration:none;padding-bottom:1px;
}
.kc-charcoal .kc-inline-link:hover{border-color:#fff;}


/* ===== FAQ (alt card, shared accordion markup) ===== */
.faq-section{padding:80px 48px;background:var(--alt);}
.faq-inner{max-width:760px;margin:0 auto;}
.faq-header{margin-bottom:48px;}
.faq-eyebrow{
  font-family:var(--font-body);font-weight:700;
  font-size:var(--text-eyebrow);letter-spacing:0.28em;text-transform:uppercase;
  color:var(--arctic);margin:0 0 16px 0;
}
.faq-headline{
  font-family:var(--font-display);font-weight:700;
  font-size:var(--text-section-headline);letter-spacing:0.04em;line-height:1;
  color:var(--navy);text-transform:uppercase;margin:0;
}
.faq-card{
  background:var(--white);
  padding:48px 48px;
  border-radius:4px;
  border:1px solid var(--line);
}
.faq-list{border-top:1px solid var(--line);}
.faq-item{border-bottom:1px solid var(--line);}
.faq-trigger{
  width:100%;background:transparent;border:none;
  padding:22px 0;display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;font-family:var(--font-body);
  font-size:clamp(17px, calc(0.2vw + 16px), 19px);font-weight:600;color:var(--charcoal);
  text-align:left;letter-spacing:-0.005em;
  line-height:1.4;
  -webkit-appearance:none;appearance:none;
}
.faq-trigger:hover{color:var(--navy);}
.faq-icon{
  width:18px;height:18px;flex-shrink:0;margin-left:24px;
  position:relative;display:flex;align-items:center;justify-content:center;
}
.faq-icon::before,.faq-icon::after{
  content:"";position:absolute;background:var(--arctic);
  transition:transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.faq-icon::before{width:14px;height:2px;}
.faq-icon::after{width:2px;height:14px;}
.faq-item.open .faq-icon::after{transform:rotate(90deg);}
.faq-body{
  max-height:0;overflow:hidden;
  transition:max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-body-inner{
  padding:0 0 26px;
  font-size:clamp(15.5px, calc(0.18vw + 14.7px), 17px);line-height:1.7;
  color:var(--muted);max-width:760px;
}
.faq-body-inner a{
  color:var(--navy);font-weight:600;
  text-decoration:underline;text-underline-offset:3px;
  transition:color 0.2s;
}
.faq-body-inner a:hover{color:var(--ocean);}
.faq-body-inner p{margin-bottom:14px;}
.faq-body-inner p:last-child{margin-bottom:0;}
.faq-body-inner strong{color:var(--charcoal);font-weight:700;}

/* ===== RESPONSIVE ===== */
@media (max-width:760px){
  .hero{padding:120px 0 64px;}
  .hero-content{padding:0 24px;}
  .hero-sub{font-size:16px;}
  .kc-section,.kc-charcoal,.faq-section{padding:64px 24px;}
  .faq-card{padding:32px 24px;}
  .kc-body p{font-size:17px;}
}

/* ========================================================================
   VALVES & PLUMBING page components (type rows, symptom grid, showcase
   cards, charcoal photo band + section CTA). Used by template-valves-plumbing.php.
   ======================================================================== */
.kc-section-cta {margin-top:28px;}
/* Photo in the charcoal authority section, matched to the text column width */
.kc-photo-band {width:100%;
  margin-top:28px;margin-bottom:32px;
  aspect-ratio:16/9;border-radius:6px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;}
/* A band without a photo is hidden rather than shown as an empty frame. */
.kc-photo-band:not(.has-photo) {display:none;}
.kc-section-btn {display:inline-flex;align-items:center;
  background:#fff;color:var(--navy);
  font-family:var(--font-body);font-size:14px;font-weight:800;
  padding:16px 36px;border-radius:3px;text-decoration:none;
  letter-spacing:0.07em;text-transform:uppercase;
  transition:background 0.2s,transform 0.15s;}
.kc-section-btn:hover {background:var(--off);transform:translateY(-1px);}
/* =====================
   SYMPTOMS GRID
   ===================== */
.symptom-grid {display:grid;grid-template-columns:1fr 1fr;gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:6px;
  overflow:hidden;margin-top:28px;}
.symptom {background:#fff;padding:26px 26px;}
.symptom-name {font-family:var(--font-display);font-weight:700;
  font-size:16px;letter-spacing:0.04em;text-transform:uppercase;
  color:var(--navy);margin:0 0 8px 0;}
.symptom-desc {font-size:15.5px;line-height:1.6;color:var(--charcoal);margin:0;}
/* =====================
   TYPE ROWS + EQUIPMENT SHOWCASE (brand cards)
   ===================== */
.showcase-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:8px;}
.type-row {display:grid;grid-template-columns:1.4fr 1fr;gap:32px;align-items:center;
  padding:32px 0;border-top:1px solid var(--line);}
.type-row:first-child {border-top:none;}
.type-name {font-family:var(--font-body);font-weight:700;font-size:19px;
  color:var(--charcoal);line-height:1.3;margin-bottom:12px;}
.type-desc {font-size:16px;line-height:1.6;color:var(--muted);}
.type-photo {aspect-ratio:4/3;border-radius:6px;border:1px solid var(--line);
  background:#fff;overflow:hidden;
  position:relative;display:flex;align-items:center;justify-content:center;}
.showcase-card {background:#fff;border:1px solid var(--line);border-radius:6px;
  overflow:hidden;display:flex;flex-direction:column;}
.showcase-photo {aspect-ratio:4/3;
  background:#fff;overflow:hidden;
  position:relative;display:flex;align-items:center;justify-content:center;}
.showcase-body {padding:16px 16px 18px;display:flex;flex-direction:column;gap:6px;flex:1;}
.showcase-brand {font-family:var(--font-body);font-weight:700;font-size:10px;
  letter-spacing:0.14em;text-transform:uppercase;color:var(--arctic);}
.showcase-model {font-family:var(--font-body);font-weight:700;font-size:15px;
  color:var(--charcoal);line-height:1.3;}
.showcase-wide {width:100%;margin-top:44px;}
.showcase-wide .showcase-grid {margin-top:0;}
.showcase-card.is-popular {border-color:var(--arctic);}
.showcase-flag {position:absolute;top:10px;left:10px;z-index:1;
  font-family:var(--font-body);font-weight:700;font-size:9px;
  letter-spacing:0.12em;text-transform:uppercase;color:#fff;
  background:var(--arctic);padding:5px 9px;border-radius:3px;}
/* Photos in the frames. Product shots sit on white, so they scale to fit the
   frame as-is; .is-cover (and the charcoal band) fill the frame for on-site photos. */
.showcase-photo img,.type-photo img {display:block;max-width:100%;max-height:100%;width:auto;height:auto;}
.has-photo.is-cover img,.kc-photo-band img {width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;}
@media (max-width:760px) {
.symptom-grid {grid-template-columns:1fr;}
.showcase-grid {grid-template-columns:1fr 1fr;}
.type-row {grid-template-columns:1fr;gap:20px;}
.type-row .type-photo {order:-1;}
}
