/* Seraph Global web brand and responsive overrides.
   Loaded last so the older Bootstrap/theme files remain compatible while the
   public site uses the approved navy, orange, and white VI direction. */
:root {
    --navy: #061a3a;
    --navy-deep: #031127;
    --navy-soft: #102d55;
    --primary-color: #f28c18;
    --primary-dark: #c96d06;
    --primary-light: #ffbd56;
    --secondary-color: #173d68;
    --accent-color: #ffb52e;
    --success-color: #2e8b57;
    --light-color: #ffffff;
    --light-gray: #f3f6fa;
    --medium-gray: #dce4ee;
    --dark-gray: #58687a;
    --dark-color: #061a3a;
    --gradient-primary: linear-gradient(135deg, #031127 0%, #102d55 68%, #264b75 100%);
    --gradient-secondary: linear-gradient(135deg, #061a3a 0%, #173d68 100%);
    --gradient-accent: linear-gradient(135deg, #ffca61 0%, #f28c18 100%);
    --shadow-sm: 0 2px 10px rgba(6, 26, 58, .08);
    --shadow-md: 0 5px 20px rgba(6, 26, 58, .13);
    --shadow-lg: 0 10px 40px rgba(6, 26, 58, .2);
    --bs-primary: #f28c18;
    --bs-primary-rgb: 242, 140, 24;
    --bs-link-color: #c96d06;
    --bs-link-hover-color: #9d5100;
}

html, body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    color: var(--dark-color);
    background: var(--light-gray);
    font-family: "Segoe UI", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
    color: var(--dark-color);
    letter-spacing: -.015em;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--navy) !important;
}

.btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--navy) !important;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
}

/* Keep the public action hierarchy readable on both light and dark surfaces.
   The former orange/white combination was too low-contrast, and the orange
   outline was difficult to read against white cards. */
.btn-flat-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--navy);
    font-weight: 700;
}

.btn-flat-primary:hover,
.btn-flat-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-flat-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
}

.btn-flat-secondary:hover,
.btn-flat-secondary:focus {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-flat-outline {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-flat-outline:hover,
.btn-flat-outline:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-flat:focus-visible,
.btn-primary:focus-visible {
    outline: 3px solid rgba(242, 140, 24, .42);
    outline-offset: 2px;
}

/* Bootstrap outline actions use the brand orange token by default. Use the
   darker accessible token for text and borders on white form surfaces. */
.btn-outline-primary {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-flat-light {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.btn-flat-light:hover,
.btn-flat-light:focus {
    background: var(--primary-light);
    color: var(--navy);
}

.navbar-flat {
    padding: .8rem 0;
    background: #fff !important;
    border-bottom-color: var(--medium-gray);
}

.navbar-flat-brand img {
    width: 68px;
    height: 60px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
}

.navbar-flat-brand .brand-text {
    background: none;
    color: var(--navy);
    -webkit-text-fill-color: currentColor;
}

.navbar-toggler {
    border: 1px solid var(--primary-color) !important;
    color: var(--navy) !important;
    padding: .45rem .65rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(242, 140, 24, .22) !important;
}

.navbar-toggler-icon {
    width: 1.35rem;
    height: 1rem;
    display: inline-block;
    position: relative;
    background-image: none !important;
    border-top: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
}

.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: .32rem;
    border-top: 2px solid var(--navy);
}

.navbar-flat .nav-link-flat:hover,
.navbar-flat .nav-link-flat.active {
    color: var(--primary-dark) !important;
    background: rgba(242, 140, 24, .1);
}

.site-footer-flat {
    background: var(--navy) !important;
    border-top-color: var(--primary-color);
}

/* The footer already uses the darkest navy surface. A blue gradient on the
   brand wordmark loses contrast against that surface, so use the brand gold
   as a solid, high-contrast treatment instead. */
.site-footer-flat .footer-brand-flat .brand-text {
    background: none;
    color: var(--accent-color);
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 1px 10px rgba(255, 181, 46, .16);
}

.home-hero h1,
.catalog-hero h1,
.standard-hero h1,
.program-hero h1,
.insight-hero h1,
.case-hero h1,
.audience-hero h1,
.company-hero h1,
.category-header h1,
.faq-hero h1,
.dark-band h2,
.about-boundary h2 {
    color: #fff;
}

/* Keep the language selector self-contained. The original flag stylesheet
   points to an external flag package that is not bundled in this project;
   these compact CSS flags avoid broken-image requests in the local and
   production builds while preserving the existing language UI. */
.fi-us {
    background-image:
        linear-gradient(90deg, #21468b 0 42%, transparent 42%),
        repeating-linear-gradient(0deg, #b22234 0 14.285%, #fff 14.285% 28.57%) !important;
}

.fi-fr {
    background-image: linear-gradient(90deg, #0055a4 0 33.333%, #fff 33.333% 66.666%, #ef4135 66.666%) !important;
}

.fi-ru {
    background-image: linear-gradient(180deg, #fff 0 33.333%, #0039a6 33.333% 66.666%, #d52b1e 66.666%) !important;
}

.fi-es {
    background-image: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%) !important;
}

.fi-ar {
    background-image: linear-gradient(180deg, #007a3d 0 33.333%, #fff 33.333% 66.666%, #000 66.666%) !important;
}

.fi-cn {
    background: #de2910 !important;
}

/* Bootstrap's row gutter is intentionally negative. On a narrow screen the
   custom container must own the gutter or a 390px viewport becomes 402px. */
@media (max-width: 991.98px) {
    .navbar-flat .navbar-collapse {
        margin-top: .75rem;
        padding-top: .6rem;
        border-top: 1px solid var(--medium-gray);
    }

    .nav-link-flat {
        margin: .15rem 0;
        padding: .65rem .8rem !important;
    }
}

@media (max-width: 576px) {
    :root { --site-navbar-offset: 86.25px; }

    .navbar-flat-brand img {
        width: 58px;
        height: 50px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .container > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .home-hero .container > .row,
    .dark-band .container > .row {
        --bs-gutter-x: 0;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .container > .row.g-4 { --bs-gutter-x: 1rem; }
    .container > .row.g-5 { --bs-gutter-x: 1.25rem; }

    .main-content { padding-top: var(--site-navbar-offset); }

    .display-3 { font-size: 2.35rem; line-height: 1.08; }
    .display-4 { font-size: 2.1rem; line-height: 1.1; }
    .display-5 { font-size: 1.9rem; line-height: 1.15; }

    .home-hero,
    .catalog-hero,
    .standard-hero,
    .program-hero,
    .insight-hero,
    .case-hero,
    .about-hero {
        padding-top: 3.5rem !important;
        padding-bottom: 3rem !important;
    }

    .home-hero .hero-copy,
    .home-hero .hero-visual {
        width: 100%;
        max-width: 100%;
    }

    .home-hero .hero-visual img {
        max-height: 310px;
    }

    .home-hero .d-flex .btn {
        width: 100%;
    }

    .catalog-card,
    .standard-card,
    .program-card,
    .case-card,
    .about-card {
        min-width: 0;
    }

    .status-pill {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

}
