/* ============================================
   SUB-PAGES — Responsive & Video Integration
   ============================================ */

/* Sub-page hero — compact, centered, elegant */
.hero--short {
    min-height: auto !important;
    padding: 90px 2rem 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: linear-gradient(160deg, #1A1F2E 0%, #121827 50%, #1a2438 100%) !important;
    position: relative;
}
.hero--short::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(197,164,103,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.hero--short .hero-content,
.hero--short > div {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.hero--short .label,
.hero--short span[class="label"] {
    text-align: center !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}
.hero--short h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem) !important;
    letter-spacing: -0.02em;
    text-align: center !important;
    color: #fff !important;
    margin: 0 auto 0.75rem !important;
    width: auto !important;
}
.hero--short p {
    font-size: 0.95rem !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    text-align: center !important;
    color: rgba(255,255,255,0.7) !important;
    line-height: 1.65 !important;
}

/* Force all inline grid layouts to stack on tablet */
@media (max-width: 900px) {
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1.2fr"],
    [style*="grid-template-columns:1fr 1.2fr"],
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns:repeat(2"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr !important;
    }
    /* 2-col grids can go 2-col on tablet */
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }
    /* Gap reduction */
    [style*="gap:4rem"], [style*="gap: 4rem"] {
        gap: 2rem !important;
    }
    [style*="gap:3rem"], [style*="gap: 3rem"] {
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    /* Fix hero padding on sub-pages */
    .hero--short, [style*="min-height:40vh"] {
        min-height: auto !important;
        padding: 100px 1.25rem 2.5rem !important;
    }
    /* Sub-page hero text */
    .hero--short h1, [style*="min-height:40vh"] h1 {
        font-size: 1.8rem !important;
    }
    /* Reduce section padding on mobile */
    [style*="padding:6rem 0"], [style*="padding: 6rem 0"] {
        padding: 3rem 0 !important;
    }
    [style*="padding:5rem 0"], [style*="padding: 5rem 0"] {
        padding: 2.5rem 0 !important;
    }
    /* Fix container padding */
    [style*="padding:0 2rem"], [style*="padding: 0 2rem"] {
        padding: 0 1.25rem !important;
    }
    /* Image placeholders smaller on mobile */
    [style*="min-height:350px"] {
        min-height: 200px !important;
    }
    /* Fix alternating image+text layouts */
    [style*="grid-template-columns: 1.1fr 1fr"],
    [style*="grid-template-columns:1.1fr 1fr"],
    [style*="grid-template-columns: 1fr 1.1fr"],
    [style*="grid-template-columns:1fr 1.1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* All 3/4 col grids go single column */
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr !important;
    }
    /* Form step labels */
    [style*="font-size:1.75rem"] {
        font-size: 1.35rem !important;
    }
    /* Stat numbers */
    [style*="font-size:3rem"], [style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero--short h1, [style*="min-height:40vh"] h1 {
        font-size: 1.5rem !important;
    }
    /* Even smaller padding */
    [style*="padding:0 2rem"], [style*="padding: 0 2rem"] {
        padding: 0 1rem !important;
    }
}

/* Video sections for sub-pages */
.page-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
}
.page-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-video--square {
    aspect-ratio: 1/1;
}
.page-video--portrait {
    aspect-ratio: 3/4;
    max-width: 400px;
}
.page-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,31,46,0.1) 0%, rgba(26,31,46,0.3) 100%);
    pointer-events: none;
}
