/**
 * Wildfire Smoke Protection page: isolated styles.
 * Loaded only on page-wildfire-smoke-protection.php (see inc/enqueue.php).
 * Builds on the shared .sca-promo-* system in site-b.css; adds the live AQI
 * band, the product buy cards, and the FAQ. Brand colors reference site tokens;
 * AQI tier colors are the public EPA scale and are set inline by wildfire-aqi.js.
 */

/* ── Live AQI band ── */
.sca-wf-aqi {
    background: #5ba7db; /* SCA brand light blue: pops the section off the navy hero */
    color: #0f2442;
    padding: 72px 0;
}
.sca-wf-aqi-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.sca-wf-aqi-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f2442;
    margin-bottom: 12px;
}
.sca-wf-aqi-title {
    font-family: var(--font-display, inherit);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    margin: 0 0 12px;
    color: #0f2442;
}
.sca-wf-aqi-sub {
    color: rgba(15, 36, 66, 0.78);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 46ch;
}
.sca-wf-aqi-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sca-wf-aqi-zip {
    flex: 1 1 120px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(15, 36, 66, 0.2);
    background: #fff;
    color: #0f2442;
    font-size: 15px;
}
.sca-wf-aqi-zip::placeholder { color: rgba(15, 36, 66, 0.45); }
.sca-wf-aqi-zip:focus {
    outline: 2px solid #1a2c45;
    outline-offset: 1px;
}
.sca-wf-aqi-go {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: #1a2c45;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}
.sca-wf-aqi-go:hover { background: #0f2442; }
.sca-wf-aqi-locate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(15, 36, 66, 0.3);
    background: transparent;
    color: #0f2442;
    font-size: 14px;
    cursor: pointer;
}
.sca-wf-aqi-locate:hover { background: rgba(15, 36, 66, 0.07); }
.sca-wf-aqi-locate svg { width: 16px; height: 16px; }

.sca-wf-aqi-readout {
    display: flex;
    gap: 24px;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(15, 36, 66, 0.08);
    box-shadow: 0 12px 32px rgba(15, 36, 66, 0.15);
    border-radius: 16px;
    padding: 24px;
}
.sca-wf-aqi-gauge {
    flex: 0 0 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #334155;
    color: #fff;
    padding: 16px 12px;
    text-align: center;
    transition: background 0.4s ease;
}
.sca-wf-aqi-value {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}
.sca-wf-aqi-band {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 6px;
}
.sca-wf-aqi-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sca-wf-aqi-location {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: #0f2442;
}
.sca-wf-aqi-message {
    color: rgba(15, 36, 66, 0.78);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 12px;
}
.sca-wf-aqi-maplink {
    color: var(--color-teal, #0d9488);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.sca-wf-aqi-maplink:hover { text-decoration: underline; }

/* ── Section lead paragraph ── */
.sca-wf-lead {
    max-width: 60ch;
    margin: 12px auto 0;
    color: var(--color-text-muted, #556);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* ── Buy cards ── */
.sca-wf-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 8px;
}
.sca-wf-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
}
.sca-wf-product-media {
    background: var(--color-section-alt, #f7f8fa);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 200px;
}
.sca-wf-product-media img {
    max-height: 220px;
    width: auto;
    object-fit: contain;
}
.sca-wf-product-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sca-wf-product-body h3 {
    font-family: var(--font-display, inherit);
    font-size: 24px;
    margin: 0 0 4px;
}
.sca-wf-product-tag {
    font-weight: 600;
    font-size: 14px;
    color: var(--accent, #34a8a3);
    margin: 0 0 10px;
}
.sca-wf-product-desc {
    color: var(--color-text-muted, #556);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}
.sca-wf-product-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text, #111);
    margin-bottom: 12px;
}
.sca-wf-product-save {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent, #34a8a3);
    background: color-mix(in srgb, var(--accent, #34a8a3) 12%, transparent);
    padding: 4px 8px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 6px;
}
/* Color swatch row (reuses global .sca-color-selector / .sca-color-option / .sca-color-name) */
.sca-wf-product-colors {
    display: flex;
    align-items: center;
    margin: 0 0 18px;
}
/* Add-to-cart styled like the category-page buttons (.hp-btn family) */
.sca-wf-product .sca-wf-buy-btn {
    align-self: flex-start;
    margin: 0 0 12px;
}
.sca-wf-product-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy, #1a2c45);
    text-decoration: none;
}
.sca-wf-product-link:hover { text-decoration: underline; }
.sca-wf-buy-note {
    text-align: center;
    margin-top: 24px;
    color: var(--color-text-muted, #556);
    font-size: 15px;
}

/* ── FAQ ── */
.sca-wf-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sca-wf-faq-item {
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 4px 20px;
    background: #fff;
}
.sca-wf-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 0;
    list-style: none;
    position: relative;
    padding-right: 28px;
}
.sca-wf-faq-item summary::-webkit-details-marker { display: none; }
.sca-wf-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 14px;
    font-size: 22px;
    font-weight: 400;
    color: var(--accent, #34a8a3);
}
.sca-wf-faq-item[open] summary::after { content: '\2013'; }
.sca-wf-faq-item p {
    margin: 0 0 16px;
    color: var(--color-text-muted, #556);
    font-size: 15px;
    line-height: 1.6;
}

/* ── Hero background video with heavy overlay (scoped to this page) ── */
.sca-wf-page .sca-promo-hero { background: #0f2442; }
.sca-wf-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0f2442; /* solid: no still image behind the video, so it can't ghost/double */
}
.sca-wf-hero-video {
    /* Vimeo's background player letterboxes to the video's aspect inside the
       iframe. So we size the iframe to the video's own 1280:832 ratio (the player
       then fills it edge-to-edge) and oversize it to cover the hero like
       object-fit: cover. overflow:hidden on .sca-wf-hero-media clips the excess. */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 65.05vw;        /* 100vw * (832 / 1280) */
    min-height: 100%;
    min-width: 153.85vh;    /* 100vh * (1280 / 832) — cover when hero is taller */
    border: 0;
    pointer-events: none;
}
.sca-wf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(15, 36, 66, 0.83) 0%, rgba(15, 36, 66, 0.72) 48%, rgba(15, 36, 66, 0.56) 100%);
}
.sca-wf-page .sca-promo-hero > .sca-promo-container { position: relative; z-index: 2; }
/* Breathing room below the JADE so it doesn't sit flush on the section seam */
.sca-wf-page .sca-promo-hero-visual { padding-bottom: 48px; }
@media (prefers-reduced-motion: reduce) {
    .sca-wf-hero-video { display: none; }
    .sca-wf-hero-media { background: #0f2442 url('/images/wildfire-hero-poster.jpg') center center / cover no-repeat; }
}

/* ── Footer seam: this page ends on a dark section, so drop the global
      72px footer margin-top that would otherwise show as a white band. ── */
.page-template-page-wildfire-smoke-protection .site-footer { margin-top: 0; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .sca-wf-aqi-inner { grid-template-columns: 1fr; gap: 28px; }
    .sca-wf-products { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .sca-wf-aqi-readout { flex-direction: column; }
    .sca-wf-aqi-gauge { flex-basis: auto; }
}
