/**
 * Branch site header + navigation (avoids Bootstrap .nav-link conflicts).
 */

/* ── Header grid: brand | contact details | actions ── */
.branch-site .sx-header {
    padding: 10px 0;
    border-bottom: 1px solid var(--sx-border, #e5e0d8);
}

.branch-site .sx-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px 24px;
}

.branch-site .sx-header__brand {
    min-width: 0;
}

.branch-site .sx-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    text-align: right;
    flex-shrink: 0;
}

.branch-site .sx-header__contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1;
    color: var(--sx-text-muted, #6b6b6b);
    text-align: right;
    white-space: nowrap;
}

.branch-site .sx-header__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.branch-site .sx-header__contact-item i {
    color: var(--sx-gold, #C9A84C);
    font-size: 10px;
    flex-shrink: 0;
}

.branch-site .sx-header__contact-item a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.branch-site .sx-header__contact-item a:hover {
    color: var(--sx-burgundy, #6B1D3A);
    text-decoration: none;
}

.branch-site .sx-header__contact-sep {
    color: var(--sx-border, #e5e0d8);
    flex-shrink: 0;
}

.branch-site .sx-header__actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-shrink: 0;
}

/* Shared height for Admissions + Pay Fees buttons */
.branch-site .sx-header__admissions,
.branch-site a.sx-header__pay-fees {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0 14px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    border-radius: 3px;
    border-width: 2px;
    border-style: solid;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.branch-site .sx-header__admissions {
    gap: 6px;
    color: var(--sx-burgundy, #6B1D3A);
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--sx-gold, #C9A84C);
}

.branch-site .sx-header__admissions:hover {
    background: var(--sx-gold, #C9A84C);
    color: var(--sx-navy, #0D1B3E);
    text-decoration: none;
}

.branch-site a.sx-header__pay-fees {
    min-width: 96px;
    background: var(--sx-gold, #C9A84C);
    color: var(--sx-navy, #0D1B3E);
    border-color: var(--sx-gold, #C9A84C);
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.35);
}

.branch-site a.sx-header__pay-fees:hover {
    background: var(--sx-gold-light, #e8c96a);
    border-color: var(--sx-gold-light, #e8c96a);
    color: var(--sx-navy, #0D1B3E);
    text-decoration: none;
}

.branch-site a.sx-header__pay-fees.active {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.45);
}

.branch-site .sx-header__logo {
    height: 50px;
}

body.xaviers-site.branch-site .sx-site-header .sx-header__name {
    font-family: 'Old English Five', 'Old English Text MT', serif !important;
    font-size: clamp(15px, 2vw, 22px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: 0;
}

.branch-site .sx-header__tagline {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    margin-top: 2px;
}

/* ── Main navigation (custom classes, not Bootstrap) ── */
.branch-site .nav-wrapper {
    position: relative;
    top: auto;
    background: var(--navy-mid, #1a2d5a);
    border-bottom: 2px solid var(--gold, #C9A84C);
}

.branch-site .nav-inner.container-lg {
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    gap: 8px;
}

.branch-site .nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    gap: 0;
    min-width: 0;
}

.branch-site .nav-toggle {
    display: none;
}

.branch-site .sx-nav-item {
    position: relative;
}

.branch-site .sx-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 12px;
    color: #c8d4f0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.branch-site .sx-nav-link:hover {
    color: var(--gold, #C9A84C);
    text-decoration: none;
}

.branch-site .sx-nav-item.active > .sx-nav-link,
.branch-site .sx-nav-link.active {
    color: var(--gold, #C9A84C) !important;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 -3px 0 var(--gold, #C9A84C);
}

.branch-site .sx-nav-link .arrow {
    font-size: 9px;
    transition: transform 0.2s;
}

.branch-site .sx-nav-item:hover .sx-nav-link .arrow {
    transform: rotate(180deg);
}

.branch-site .sx-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--navy, #0D1B3E);
    border-top: 2px solid var(--gold, #C9A84C);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 2000;
}

.branch-site .sx-nav-item:hover .sx-dropdown {
    display: block;
}

.branch-site .sx-dropdown-link {
    display: block;
    padding: 11px 18px;
    color: #b0bdd4;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.branch-site .sx-dropdown-link:hover,
.branch-site .sx-dropdown-link.active {
    background: var(--navy-mid, #1a2d5a);
    color: var(--gold, #C9A84C);
    padding-left: 24px;
    text-decoration: none;
    font-weight: 700;
}

.branch-site .nav-cta {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.branch-site .nav-cta-btn {
    padding: 8px 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 2px;
    border: none;
    transition: all 0.2s;
}

.branch-site .nav-cta-btn.btn-solid {
    background: var(--gold, #C9A84C);
    color: var(--navy, #0D1B3E);
}

.branch-site .nav-cta-btn.btn-solid:hover {
    background: var(--gold-light, #e8c96a);
    text-decoration: none;
}

.branch-site .nav-cta-btn.active.btn-solid {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* ── Homepage hero: visible in first viewport ── */
body.branch-site.page-home {
    --sx-site-header-h: 165px;
}

body.branch-site.page-home .sx-hero-slider {
    display: block;
    padding: 0;
}

body.branch-site.page-home .sx-hero-banner.sx-hero-slider {
    padding: 0;
}

body.branch-site.page-home .sx-hero-slide__title,
body.branch-site.page-home .sx-hero-banner h1 {
    margin-bottom: 10px;
}

body.branch-site.page-home .sx-hero-stats {
    background: linear-gradient(135deg, var(--sx-burgundy-dark) 0%, var(--sx-navy) 60%);
    padding: 16px 0;
    color: var(--sx-white);
}

body.branch-site.page-home .sx-hero-stats .sx-stat-grid {
    margin-top: 0;
    gap: 12px;
}

body.branch-site.page-home .sx-stat-card {
    padding: 14px 10px;
}

body.branch-site.page-home .sx-stat-card__num {
    font-size: 1.5rem;
}

body.branch-site.page-home .sx-stat-card__label {
    font-size: 11px;
}

/* ── Mobile nav toggle ── */
@media (max-width: 992px) {
    .branch-site .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .branch-site .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 100%;
        width: 100%;
        order: 4;
        max-height: min(70vh, 520px);
        overflow-y: auto;
        padding: 8px 0 16px;
        border-top: 1px solid rgba(201, 168, 76, 0.25);
        background: var(--navy-mid, #1a2d5a);
    }

    .branch-site .nav-wrapper.nav-open .nav-menu {
        display: flex;
    }

    .branch-site .sx-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .branch-site .sx-nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 12px;
    }

    .branch-site .sx-nav-item:hover .sx-dropdown {
        display: none;
    }

    .branch-site .sx-nav-item.open .sx-dropdown {
        display: block;
        position: static;
        min-width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
    }

    .branch-site .nav-cta {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
        padding: 12px 0 0;
    }

    .branch-site .nav-cta-btn {
        width: 100%;
    }

    body.branch-site.page-home {
        --sx-site-header-h: 190px;
    }

    .branch-site .sx-header__inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .branch-site .sx-header__right {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .branch-site .sx-header__contact {
        justify-content: flex-start;
        text-align: left;
    }

    .branch-site .sx-header__actions {
        width: 100%;
    }

    .branch-site .sx-header__admissions,
    .branch-site a.sx-header__pay-fees {
        flex: 1 1 0;
    }

    body.branch-site.page-home .sx-hero-banner {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .branch-site .sx-header__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .branch-site .sx-header__brand span {
        max-width: 200px;
    }
}

@media (max-width: 575px) {
    body.branch-site.page-home {
        --sx-site-header-h: 220px;
    }

    .branch-site .sx-header__brand span {
        max-width: 200px;
    }
}
