/* sub-hero.css — extracted from components/sub_hero.php */
#hero-viewport {
    height: clamp(180px, 28vh, 280px);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
}

.hero-node {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity 1.5s ease-in-out;
}

/* Gradient heavier at bottom so text always reads */
.hero-overlay-node {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-text-node {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.sub-hero-h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    line-height: 1.15;
}

/* Accent underline on the title */
.sub-hero-h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.sub-hero-p {
    font-size: clamp(0.82rem, 1.8vw, 0.95rem);
    font-weight: 500;
    opacity: 0.88;
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
    .sub-hero-h1 { letter-spacing: 1.5px; }
}

/* ── Inner page mobile header ───────────────────────────────────────────────── */
.inner-page-header {
    display: none; /* desktop: hidden, full header shows */
}
@media (max-width: 1024px) {
    .inner-page-header {
        display: grid;
        grid-template-columns: 44px 1fr;
        align-items: center;
        gap: 8px;
        height: 52px;
        padding: 0 10px;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        position: sticky;
        top: 0;
        z-index: 9999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .iph-menu {
        display: flex; align-items: center; justify-content: center;
        width: 36px; height: 36px;
        background: #f1f5f9; border: none; border-radius: 8px;
        color: var(--primary); font-size: 1rem; cursor: pointer;
    }
    .iph-logo {
        display: flex; align-items: center; justify-content: flex-end;
        text-decoration: none; overflow: hidden;
        max-height: 52px; min-width: 0; padding-right: 10px;
    }
    .iph-logo img {
        max-height: 34px; max-width: 120px; width: auto; height: auto; object-fit: contain; display: block;
    }
    .iph-logo span {
        font-size: 0.75rem; font-weight: 700;
        color: var(--primary); text-align: center; line-height: 1.2;
    }
    /* iph-home removed — logo is the home link */
}

/* Push mobile menu below inner-page sticky header */
@media (max-width: 1024px) {
    body.has-inner-header #mobile-menu-overlay {
        top: 52px !important;
        height: calc(100dvh - 52px) !important;
    }
}
