/**
 * Homepage structure polish — fluid scroll, no stuck/stiff blocks.
 * Softens stacked “brick” sections; keeps all content.
 */

body.hp-home-page.hp-national.hp-structure-polish {
    --hp-structure-soft: #f8fafc;
    --hp-structure-line: rgba(0, 36, 67, 0.06);
    /* Softer gaps — avoid tall empty “stuck” bands between sections */
    --hp-structure-gap: clamp(2.25rem, 4.5vw, 3.75rem);
    overflow-x: clip;
    overscroll-behavior-y: auto;
}

html.hp-page-root:has(body.hp-structure-polish) {
    scroll-behavior: auto;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
}

body.hp-home-page.hp-structure-polish,
body.hp-home-page.hp-structure-polish.hp-saas-premium {
    height: auto !important;
    min-height: 100%;
    max-height: none !important;
    overflow-x: hidden;
    overflow-y: visible !important;
    position: relative;
}

/* Kill fixed ambient drag on scroll (felt “stuck” / heavy) */
body.hp-home-page.hp-structure-polish .hp-ambient-bg {
    display: none !important;
}

body.hp-home-page.hp-structure-polish.hp-saas-premium {
    background: #f4f6fa !important;
}

/* ---- Fluid section rhythm (override premium’s huge padding) ---- */
body.hp-home-page.hp-structure-polish main > .hp-section,
body.hp-home-page.hp-structure-polish main > section.hp-section,
body.hp-home-page.hp-structure-polish.hp-saas-premium main > .hp-section,
body.hp-home-page.hp-structure-polish.hp-saas-premium main > section:not(#home):not(#story-video):not(.hp-story-video):not(.hp-hero) {
    padding-top: var(--hp-structure-gap) !important;
    padding-bottom: var(--hp-structure-gap) !important;
}

body.hp-home-page.hp-structure-polish main > #home,
body.hp-home-page.hp-structure-polish main > #story-video,
body.hp-home-page.hp-structure-polish main > .hp-story-video {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hero: less “full-screen lock”, easier to scroll past */
body.hp-home-page.hp-structure-polish #home.hp-hero,
body.hp-home-page.hp-structure-polish #home.hp-hero-powerschool,
body.hp-home-page.hp-structure-polish #home.hp-hero-cinematic {
    min-height: min(72vh, 640px) !important;
}

@media (max-width: 768px) {
    body.hp-home-page.hp-structure-polish #home.hp-hero,
    body.hp-home-page.hp-structure-polish #home.hp-hero-powerschool,
    body.hp-home-page.hp-structure-polish #home.hp-hero-cinematic {
        min-height: min(62vh, 520px) !important;
    }
}

/* Soft continuous flow — no hard alternating “bricks” */
body.hp-home-page.hp-structure-polish #problems,
body.hp-home-page.hp-structure-polish #credentials,
body.hp-home-page.hp-structure-polish #modules,
body.hp-home-page.hp-structure-polish .hp-modules--fedena,
body.hp-home-page.hp-structure-polish .hp-schools-band,
body.hp-home-page.hp-structure-polish .hp-why-band,
body.hp-home-page.hp-structure-polish .hp-faq-band,
body.hp-home-page.hp-structure-polish .hp-gallery-band,
body.hp-home-page.hp-structure-polish .hp-reviews--trendy,
body.hp-home-page.hp-structure-polish .hp-reviews--corporate,
body.hp-home-page.hp-structure-polish .hp-partner-band,
body.hp-home-page.hp-structure-polish .hp-demo-band,
body.hp-home-page.hp-structure-polish .hp-school-register-band,
body.hp-home-page.hp-structure-polish .hp-states-overview--atlas,
body.hp-home-page.hp-structure-polish .hp-seo-hub--editorial {
    background: transparent;
}

body.hp-home-page.hp-structure-polish .hp-section-divider {
    width: min(280px, 40%);
    margin: 0 auto;
    opacity: 0.35;
    height: 1px;
}

body.hp-home-page.hp-structure-polish .hp-hero-navy-strip {
    height: 0.25rem;
    opacity: 0.85;
}

/* Headings: left-aligned flow (less “stuck center block”) */
body.hp-home-page.hp-structure-polish .section-head,
body.hp-home-page.hp-structure-polish .hp-modules-intro,
body.hp-home-page.hp-structure-polish .hp-reviews-head {
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

body.hp-home-page.hp-structure-polish .section-head p,
body.hp-home-page.hp-structure-polish .hp-modules-intro > p {
    max-width: 38rem;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.55;
    color: #5b6575;
}

body.hp-home-page.hp-structure-polish .section-head .kicker,
body.hp-home-page.hp-structure-polish .hp-modules-kicker {
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.8;
}

body.hp-home-page.hp-structure-polish .section-head h2,
body.hp-home-page.hp-structure-polish .hp-modules-intro h2 {
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Register / cards — light, not heavy glass bricks */
body.hp-home-page.hp-structure-polish .hp-school-register-band {
    padding-top: clamp(1.75rem, 3.5vw, 2.75rem) !important;
    padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem) !important;
}

body.hp-home-page.hp-structure-polish .hp-school-register-card,
body.hp-home-page.hp-structure-polish .hp-trust-saas-card,
body.hp-home-page.hp-structure-polish .hp-resource-card {
    border-radius: 1.1rem;
    border: 1px solid var(--hp-structure-line);
    box-shadow: 0 6px 24px rgba(0, 36, 67, 0.045);
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.hp-home-page.hp-structure-polish .hp-school-register-card,
body.hp-home-page.hp-structure-polish .hp-resource-card {
    overflow: hidden;
}

body.hp-home-page.hp-structure-polish .hp-school-register-inner {
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

body.hp-home-page.hp-structure-polish .hp-school-register-steps {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

body.hp-home-page.hp-structure-polish .hp-school-register-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.4;
}

body.hp-home-page.hp-structure-polish .hp-problem-grid.hp-resource-grid,
body.hp-home-page.hp-structure-polish .hp-modules-grid {
    gap: clamp(0.75rem, 1.6vw, 1.15rem);
}

body.hp-home-page.hp-structure-polish .hp-resource-card-media {
    aspect-ratio: 16 / 10;
}

body.hp-home-page.hp-structure-polish .hp-resource-card-body {
    padding: 0.9rem 1rem 1rem;
}

body.hp-home-page.hp-structure-polish .hp-problems-bg-decor {
    opacity: 0.25;
}

body.hp-home-page.hp-structure-polish .hp-modules-cta {
    margin-top: clamp(1.25rem, 2.5vw, 2rem);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--hp-structure-line);
    background: #fff;
}

body.hp-home-page.hp-structure-polish .hp-trust-cert-grid {
    gap: 0.75rem;
}

/* Soften glass hover lift (felt sticky / laggy) */
body.hp-home-page.hp-structure-polish .hp-glass-card {
    will-change: auto;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.hp-home-page.hp-structure-polish .hp-glass-card:hover {
    transform: none;
}

/* Reveal: no delayed “stuck then pop” */
body.hp-home-page.hp-structure-polish .hp-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

body.hp-home-page.hp-structure-polish .hp-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

body.hp-home-page.hp-structure-polish .hp-ticker {
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(0, 36, 67, 0.05);
}

@media (max-width: 768px) {
    body.hp-home-page.hp-structure-polish {
        --hp-structure-gap: clamp(1.75rem, 5.5vw, 2.5rem);
    }

    body.hp-home-page.hp-structure-polish .hp-problem-grid.hp-resource-grid {
        gap: 0.75rem;
    }
}

/* ---- Footer bar: tight, no dead white gap ---- */
body.hp-home-page.hp-structure-polish .hp-footer-site-bar {
    background: #fff;
}

body.hp-home-page.hp-structure-polish .hp-footer-site-bar-inner {
    padding: 1rem 0 1.15rem !important;
    gap: 0.85rem 1.25rem;
    align-items: center;
}

body.hp-home-page.hp-structure-polish .hp-footer-site-copy {
    color: #475569;
    line-height: 1.45;
}

body.hp-home-page.hp-structure-polish .hp-footer-site-copy a {
    color: #002443 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.hp-home-page.hp-structure-polish .hp-footer-site-legal a {
    color: #475569 !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.hp-home-page.hp-structure-polish .hp-footer-site-follow h4 {
    margin-bottom: 0.5rem;
}

body.hp-home-page.hp-structure-polish .hp-partners.hp-partners--classic {
    padding-top: clamp(1.5rem, 3vw, 2.25rem) !important;
    padding-bottom: clamp(1.5rem, 3vw, 2.25rem) !important;
}

body.hp-home-page.hp-structure-polish .hp-footer-site-main {
    padding-bottom: clamp(1.5rem, 3vw, 2.25rem) !important;
}

/* WhatsApp / Call — always fixed on screen (never scroll with page) */
body.hp-home-page.hp-structure-polish .hp-floating-actions,
body.hp-home-page.hp-structure-polish .hp-back-top {
    position: fixed !important;
    z-index: 400 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}

body.hp-home-page.hp-structure-polish .hp-floating-actions {
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

body.hp-home-page.hp-structure-polish .hp-back-top {
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    bottom: max(6.5rem, calc(env(safe-area-inset-bottom, 0px) + 5.75rem)) !important;
    left: auto !important;
}

body.hp-home-page.hp-structure-polish .hp-back-top:not(.is-visible) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 640px) {
    body.hp-home-page.hp-structure-polish .hp-floating-actions {
        right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
        bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
    }

    body.hp-home-page.hp-structure-polish .hp-footer-site-bar-inner {
        padding: 0.9rem 0 1rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.hp-home-page.hp-structure-polish .hp-glass-card,
    body.hp-home-page.hp-structure-polish .hp-reveal {
        transition: none !important;
        transform: none !important;
    }
}
