/* ============================================================
   HOME SAFETY CHECKLIST — PAGE TEMPLATE STYLES
   Prefix: hsctp- = page template wrapper (hero, sections, FAQ)

   NOTE: The checklist widget itself is rendered by the
   "Home Safety Checklist" plugin via the shortcode
   [home_safety_checklist]. That plugin loads its own
   stylesheet (prefixed hsc-) automatically — do not add
   checklist widget styles here.

   Uses theme variables defined in style.css:
     --color-primary, --color-secondary, --color-accent,
     --color-text, --color-muted, --color-white, --color-border,
     --font-body, --font-heading
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────── */
.hsctp-page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a4d38 100%);
    padding: 48px 0 40px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hsctp-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hsctp-header-inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
}

.hsctp-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.hsctp-hero-h1 {
    font-family: var(--font-heading) !important;
    font-size: clamp(24px, 4.5vw, 36px) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    line-height: 1.25 !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
}

.hsctp-hero-sub {
    font-size: 16px !important;
    color: rgba(255,255,255,0.88) !important;
    line-height: 1.7 !important;
    max-width: 620px !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
}

.hsctp-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 6px;
}

.hsctp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.hsctp-trust-item svg { color: #6ee7b7; flex-shrink: 0; }

/* ── Main wrapper ─────────────────────────────────────────── */
.hsctp-wrap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Tool embed section ──────────────────────────────────── */
.hsctp-tool-section {
    padding-top: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

/* ── Shared section wrapper ──────────────────────────────── */
.hsctp-section {
    padding-top: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--color-border);
}

.hsctp-section:last-child { border-bottom: none; }

.hsctp-section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-primary);
    background: #E8F5F0;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.hsctp-section-h2 {
    font-family: var(--font-heading) !important;
    font-size: clamp(21px, 3.5vw, 28px) !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

.hsctp-section-lead {
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 30px;
    margin-top: 0;
}

.hsctp-body-text {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.85;
    max-width: 720px;
    margin-bottom: 16px;
    margin-top: 0;
}

/* ── Callouts ────────────────────────────────────────────── */
.hsctp-callout {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 24px;
    border: 1px solid transparent;
}

.hsctp-callout-green { background:#E8F5F0; border-color:#6EE7B7; color:#064e3b; }
.hsctp-callout-amber { background:#FFFBEB; border-color:#FCD34D; color:#78350f; }

/* ── How-it-works grid (reused for "what you get") ───────── */
.hsctp-how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.hsctp-how-card {
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    padding: 22px;
    transition: box-shadow 0.2s;
}

.hsctp-how-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

.hsctp-how-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #E8F5F0;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.hsctp-how-card h3 {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    line-height: 1.35 !important;
}

.hsctp-how-card p {
    font-size: 14px !important;
    color: var(--color-muted) !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

/* ── Score band cards ─────────────────────────────────────── */
.hsctp-bands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.hsctp-band-card {
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    border: 1.5px solid;
}

.hsctp-band-green { background:#EFFAF3; border-color:#6EE7B7; }
.hsctp-band-lime  { background:#F4FBF6; border-color:#9AE6B4; }
.hsctp-band-amber { background:#FFF8EC; border-color:#FCD34D; }
.hsctp-band-red   { background:#FEF2F2; border-color:#FECACA; }

.hsctp-band-range {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.hsctp-band-green .hsctp-band-range { color:#15803d; }
.hsctp-band-lime  .hsctp-band-range { color:#4d9d6f; }
.hsctp-band-amber .hsctp-band-range { color:#92400e; }
.hsctp-band-red   .hsctp-band-range { color:#991b1b; }

.hsctp-band-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.hsctp-band-desc {
    font-size: 12px;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ── Areas list ──────────────────────────────────────────── */
.hsctp-areas-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.hsctp-area-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hsctp-area-row:hover {
    border-color: var(--color-primary);
    box-shadow: 0 3px 12px rgba(46,125,94,0.08);
}

.hsctp-area-emoji {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.hsctp-area-info { flex: 1; min-width: 0; }

.hsctp-area-info h3 {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin-bottom: 5px !important;
    margin-top: 0 !important;
    line-height: 1.3 !important;
}

.hsctp-area-info p {
    font-size: 14px !important;
    color: var(--color-muted) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.hsctp-area-count {
    font-size: 12px;
    color: var(--color-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 4px;
    text-align: right;
}

.hsctp-area-count strong {
    display: block;
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 700;
}

/* ── Stats section ───────────────────────────────────────── */
.hsctp-section-stats {
    background: linear-gradient(135deg, #E8F5F0 0%, #f0fdf8 100%);
    border-radius: 16px;
    padding: 48px 40px;
    border: 1.5px solid #6EE7B7;
}

.hsctp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.hsctp-stat-box {
    background: var(--color-white);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hsctp-stat-big {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.hsctp-stat-box p {
    font-size: 13px !important;
    color: var(--color-muted) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.hsctp-faq-list {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hsctp-faq-item { border-bottom: 1px solid var(--color-border); }
.hsctp-faq-item:last-child { border-bottom: none; }

.hsctp-faq-q {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
    line-height: 1.4;
    transition: background 0.18s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.hsctp-faq-q:hover { background: #f9fafb; }

.hsctp-faq-q[aria-expanded="true"] {
    background: #E8F5F0;
    color: var(--color-primary);
}

.hsctp-faq-q:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.hsctp-faq-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.hsctp-faq-a {
    padding: 0 20px 18px;
    background: #f9fafb;
    border-top: 1px solid var(--color-border);
}

.hsctp-faq-a[hidden] { display: none; }

.hsctp-faq-a p {
    font-size: 15px !important;
    color: var(--color-muted) !important;
    line-height: 1.85 !important;
    margin: 14px 0 0 !important;
}

.hsctp-faq-cta {
    font-size: 15px;
    color: var(--color-muted);
    text-align: center;
    padding: 4px 0;
}

.hsctp-faq-cta a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ── Bottom CTA ──────────────────────────────────────────── */
.hsctp-bottom-cta-inner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a4d38 100%);
    border-radius: 14px;
    padding: 44px 36px;
    text-align: center;
    color: var(--color-white);
}

.hsctp-bottom-cta-h2 {
    font-family: var(--font-heading) !important;
    font-size: clamp(20px, 3.5vw, 26px) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.hsctp-bottom-cta-inner p {
    font-size: 15px !important;
    color: rgba(255,255,255,0.85) !important;
    margin-bottom: 22px !important;
    margin-top: 0 !important;
    line-height: 1.7 !important;
}

.hsctp-cta-btn {
    display: inline-block;
    background: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    line-height: 1;
}

.hsctp-cta-btn:hover {
    background: #d4922b;
    border-color: #d4922b;
    color: var(--color-white) !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .hsctp-how-grid    { grid-template-columns: 1fr; }
    .hsctp-bands-grid  { grid-template-columns: 1fr 1fr; }
    .hsctp-stats-grid  { grid-template-columns: 1fr 1fr; }
    .hsctp-section-stats { padding: 28px 20px !important; }
    .hsctp-bottom-cta-inner { padding: 32px 22px; }
    .hsctp-area-count  { display: none; }
}

@media (max-width: 480px) {
    .hsctp-bands-grid  { grid-template-columns: 1fr 1fr; }
    .hsctp-stats-grid  { grid-template-columns: 1fr; }
    .hsctp-area-row    { flex-direction: column; gap: 8px; }
    .hsctp-section     { padding-top: 32px; padding-bottom: 32px; }
    .hsctp-page-header { padding: 28px 0 24px; }
    .hsctp-wrap        { padding-left: 16px; padding-right: 16px; }
}
