/* ============================================================
   Golden Years — Shared inner-page shell (all pages except home)
   Header overlay + hero + breadcrumb + optional subnav
   ============================================================ */

.page-inner {
    background: #FAFAF8;
    position: relative;
    --inner-header-offset: calc(108px + var(--topbar-height));
    --topbar-height: 44px;
    --container-width: 1480px;
}
.page-inner .container {
    max-width: var(--container-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 2.5vw, 36px);
    padding-right: clamp(20px, 2.5vw, 36px);
}
.page-inner main { margin: 0; padding: 0; }
.page-inner [id^="sec-"] { scroll-margin-top: calc(120px + var(--topbar-height)); }
.page-home-detail [id^="sec-"] { scroll-margin-top: calc(172px + var(--topbar-height)); }
.page-inner .section-wrapper:first-of-type { margin-top: 0; }
.page-inner .section-wrapper > .hero-our-homes {
    padding-top: var(--inner-header-offset);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin: 0;
}
.page-inner .section-wrapper > .ip-page-subnav { margin: 0; padding: 0; }

/* --- Header overlay (mirrors homepage.css, scoped to inner pages) --- */
.page-inner .site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.page-inner.has-admin-bar .site-topbar { top: 36px; }

.page-inner .site-header.site-header--overlay {
    position: absolute;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
}
.page-inner.has-admin-bar .site-header--overlay { top: calc(36px + var(--topbar-height)); }

.page-inner .site-header--overlay .site-logo,
.page-inner .site-header--overlay .site-logo-text { color: #fff; }
.page-inner .main-nav-list > .nav-item > .nav-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}
.page-inner .site-header--overlay .main-nav-list > .nav-item > .nav-link { color: rgba(255,255,255,0.92); }
.page-inner .site-header--overlay .main-nav-list > .nav-item > .nav-link:hover,
.page-inner .site-header--overlay .main-nav-list > .nav-item > .nav-link.active { color: #fff; }
.page-inner .site-header--overlay .header-phone {
    color: #8FC4DC;
    font-size: 14px;
    font-weight: 600;
}
.page-inner .site-header--overlay .header-phone svg { stroke: #8FC4DC; color: #8FC4DC; }
.page-inner .site-header--overlay .mobile-toggle { color: #fff; }
.page-inner .site-header--overlay.scrolled {
    position: fixed;
    top: var(--topbar-height);
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.page-inner.has-admin-bar .site-header--overlay.scrolled {
    top: calc(36px + var(--topbar-height));
}
.page-inner .site-header--overlay.scrolled .site-logo,
.page-inner .site-header--overlay.scrolled .site-logo-text,
.page-inner .site-header--overlay.scrolled .main-nav-list > .nav-item > .nav-link { color: var(--color-primary); }
.page-inner .site-header--overlay.scrolled .main-nav-list > .nav-item > .nav-link:hover,
.page-inner .site-header--overlay.scrolled .main-nav-list > .nav-item > .nav-link.active { color: var(--color-secondary); }
.page-inner .site-header--overlay.scrolled .header-phone { color: var(--color-primary); }
.page-inner .site-header--overlay.scrolled .header-phone svg { stroke: var(--color-secondary); }
.page-inner .site-header--overlay.scrolled .mobile-toggle { color: var(--color-primary); }

/* --- Shared labels --- */
.oh-eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 12px;
}
.oh-hero-eyebrow { margin-bottom: 10px; }

/* --- Hero --- */
.page-inner .hero-our-homes::before {
    display: none !important;
    content: none !important;
}

.hero-our-homes {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #002B49;
    min-height: 420px;
    min-height: 48svh;
}
.hero-our-homes > .container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-our-homes .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
}
.hero-our-homes .hero-page-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,43,73,0.72) 0%, rgba(0,43,73,0.88) 100%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 12px,
            rgba(255,255,255,0.015) 12px,
            rgba(255,255,255,0.015) 24px
        );
    z-index: 1;
}
.hero-our-homes > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-our-homes .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 0 32px;
}
.hero-our-homes h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}
.oh-hero-badge {
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 16px;
    background: rgba(74,155,199,0.22);
    border: 1px solid rgba(143,196,220,0.55);
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8FC4DC;
}

/* Footer: breadcrumb + optional subnav */
.oh-hero-footer {
    position: relative;
    z-index: 3;
    margin-top: auto;
    width: 100%;
}
.hero-our-homes .oh-hero-breadcrumb {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.oh-hero-breadcrumb {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.oh-hero-breadcrumb .container {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    padding-bottom: 12px;
}
.oh-breadcrumb-pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
}
.oh-breadcrumb-pill a { color: var(--color-text-light); text-decoration: none; }
.oh-breadcrumb-pill a:hover { color: var(--color-primary); }
.oh-breadcrumb-pill span[aria-current="page"] { color: var(--color-primary); }
.oh-breadcrumb-sep { margin: 0 8px; color: #C0C8D0; }

/* Page subnav (home detail etc.) */
.ip-page-subnav {
    background: #fff;
    border-top: 1px solid #EEF0F2;
}
.ip-page-subnav-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ip-page-subnav-bar::-webkit-scrollbar { display: none; }
.ip-page-subnav-bar ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    min-width: max-content;
}
.ip-page-subnav-bar li a {
    display: block;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.ip-page-subnav-bar li a:hover,
.ip-page-subnav-bar li a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}

.ip-page-subnav.is-sticky {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.page-inner.has-admin-bar .ip-page-subnav.is-sticky { top: 36px; }
.ip-page-subnav-placeholder { display: none; }
.ip-page-subnav-placeholder.is-active { display: block; }

/* --- Responsive --- */
@media (min-width: 769px) and (max-width: 1100px) {
    .page-inner .main-nav-list > .nav-item > .nav-link { font-size: 11px; letter-spacing: 0.1em; }
    .page-inner .header-phone-num { display: none; }
    .page-inner .btn-header-cta { padding: 10px 16px; font-size: 12px; }
}

@media (max-width: 768px) {
    .page-inner {
        overflow-x: clip;
    }
    .page-inner .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-inner .section-wrapper > .hero-our-homes {
        padding-top: var(--inner-header-offset);
        padding-bottom: 0;
    }
    .hero-our-homes {
        min-height: auto;
    }
    .hero-our-homes > .container {
        padding-top: 0;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .hero-our-homes .hero-content {
        padding: 12px 0 20px;
    }
    .hero-our-homes h1 {
        font-size: clamp(1.5rem, 6.5vw, 2.125rem);
        line-height: 1.2;
        text-wrap: balance;
        max-width: 14em;
        margin-left: auto;
        margin-right: auto;
    }
    .oh-hero-eyebrow { font-size: 10px; margin-bottom: 8px; }
    .oh-hero-badge {
        display: inline-block;
        font-size: 8px;
        padding: 6px 10px;
        line-height: 1.35;
        max-width: min(100%, 320px);
        white-space: normal;
        margin-bottom: 10px;
    }
    .oh-hero-breadcrumb .container {
        justify-content: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .hero-our-homes .oh-hero-breadcrumb {
        position: relative;
        bottom: auto;
    }
    .oh-hero-footer {
        min-height: 0;
    }
    .oh-breadcrumb-pill {
        font-size: 9px;
        letter-spacing: 0.08em;
        text-align: center;
        line-height: 1.5;
    }

    .ip-page-subnav-bar ul {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .ip-page-subnav-bar li a {
        padding: 12px 14px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .page-home-detail [id^="sec-"] { scroll-margin-top: 140px; }
}

@media (max-width: 480px) {
    .page-inner .site-logo-text {
        font-size: 0.8125rem;
    }
    .hero-our-homes h1 {
        font-size: clamp(1.375rem, 6vw, 1.875rem);
        max-width: 12em;
    }
    .oh-breadcrumb-pill { font-size: 8px; }
    .ip-page-subnav-bar li a { padding: 11px 12px; }
}

@media (max-width: 380px) {
    .page-inner .site-logo-text { display: none; }
    .page-inner .header-inner--home .site-logo { flex: 0; max-width: none; }
    .oh-hero-badge { font-size: 7px; padding: 5px 8px; }
}
