/*
 * IOR responsive brand, density, and desktop-header overrides.
 * Loaded after ior.css.
 */

.navbar {
    min-height: 80px;
}

.header-brand-lockup {
    gap: 0;
    min-width: 158px;
    padding-block: 2px;
}

.header-brand-logo {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    width: 148px;
}

/*
 * Desktop and common laptop widths.
 * ior.css intentionally styles .navbar-collapse as a dropdown below 1400px.
 * These rules fully reset that mobile/dropdown behaviour from 1200px upward.
 */
@media (min-width: 1200px) {
    html {
        font-size: 16px;
        scroll-padding-top: 82px;
    }

    .container-xxl {
        max-width: 1200px;
    }

    .site-header {
        height: 80px;
    }

    .site-header .navbar {
        height: 80px;
        min-height: 80px;
        padding: 0;
    }

    .site-header .container-xxl {
        align-items: center;
        display: grid !important;
        grid-template-columns: 138px minmax(0, 1fr);
        column-gap: 18px;
        height: 80px;
        max-width: 1320px;
        min-height: 80px;
        width: 100%;
    }

    .site-header .navbar-brand {
        align-self: center;
        grid-column: 1;
        margin: 0;
        min-width: 0;
        padding: 0;
        width: 138px;
    }

    .header-brand-lockup {
        min-width: 138px;
        width: 138px;
    }

    .header-brand-logo {
        width: 134px;
    }

    .navbar-expand-xxl .navbar-toggler {
        display: none !important;
    }

    .navbar-expand-xxl .navbar-collapse,
    .site-header .navbar-collapse {
        align-items: center !important;
        align-self: center;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-basis: auto !important;
        grid-column: 2;
        height: auto !important;
        justify-content: flex-end;
        left: auto !important;
        margin: 0 !important;
        min-width: 0;
        padding: 0 !important;
        position: static !important;
        right: auto !important;
        top: auto !important;
        width: auto !important;
    }

    .navbar-expand-xxl .navbar-nav,
    .site-header .navbar-nav {
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        margin: 0 0 0 auto !important;
        min-width: 0;
    }

    /* Hide secondary links only in the compact desktop header. */
    .navbar-nav .nav-item:nth-child(6),
    .navbar-nav .nav-item:nth-child(8) {
        display: none;
    }

    .site-header .nav-link {
        border-bottom: 0 !important;
        font-size: 0.78rem;
        padding: 0.72rem 0.34rem !important;
        white-space: nowrap;
    }

    .site-header .nav-link::after {
        display: block;
        left: 0.34rem;
    }

    .site-header .nav-link:hover::after,
    .site-header .nav-link:focus::after {
        right: 0.34rem;
    }

    .site-header .nav-actions {
        align-items: center !important;
        flex: 0 0 auto;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 7px;
        margin: 0 0 0 8px !important;
        white-space: nowrap;
    }

    .site-header .language-switch {
        font-size: 0.78rem;
        justify-content: center !important;
        padding: 0.55rem 0.2rem;
    }

    .site-header .nav-actions .btn {
        align-self: center !important;
        font-size: 0.82rem;
        min-height: 40px;
        padding: 0.58rem 0.78rem;
    }

    .hero-section {
        min-height: 690px;
        padding: 120px 0 56px;
    }

    .hero-layout {
        gap: 40px;
        grid-template-columns: minmax(0, 1.08fr) minmax(315px, 0.82fr);
    }

    .hero-content {
        max-width: 710px;
    }

    .hero-brand-signal {
        margin-bottom: 20px;
        padding: 6px 13px 6px 6px;
    }

    .hero-brand-signal img {
        height: 48px;
        width: 48px;
    }

    .hero-brand-signal span {
        font-size: 0.72rem;
        max-width: 160px;
    }

    .hero-section h1 {
        font-size: clamp(3rem, 4.25vw, 4.55rem);
        max-width: 710px;
    }

    .hero-copy {
        font-size: 1.05rem;
        margin-top: 20px;
        max-width: 610px;
    }

    .hero-actions {
        margin-top: 25px;
    }

    .btn-lg {
        min-height: 46px;
        padding: 0.72rem 1.05rem;
    }

    .status-ribbon {
        margin-top: 28px;
        max-width: 590px;
        padding: 12px 15px;
    }

    .hero-origin-visual {
        min-height: 430px;
    }

    .hero-logo-watermark {
        max-width: 285px;
    }

    .origin-card {
        max-width: 355px;
        padding: 24px;
    }

    .origin-card h2 {
        font-size: 1.9rem;
    }

    .origin-value-strip {
        padding-block: 24px;
    }

    .section-band {
        padding: 72px 0;
    }

    .section-heading {
        margin-bottom: 28px;
        max-width: 760px;
    }

    .section-heading h2,
    .about-copy h2,
    .origin-copy h2,
    .cta-content h2 {
        font-size: clamp(2.2rem, 3.25vw, 3.45rem);
    }

    .section-grid,
    .origin-layout,
    .insight-layout,
    .cta-content,
    .footer-grid {
        gap: 34px;
    }

    .commitment-list {
        gap: 9px;
    }

    .commitment-item {
        min-height: 48px;
        padding: 11px 14px;
    }

    .commodity-grid,
    .service-grid {
        gap: 13px;
    }

    .commodity-card {
        min-height: 170px;
        padding: 18px;
    }

    .origin-map-card {
        min-height: 390px;
        padding: 24px;
    }

    .service-item {
        min-height: 70px;
        padding: 14px;
    }

    .workflow-list {
        gap: 9px;
    }

    .workflow-list li {
        min-height: 94px;
        padding: 14px;
    }

    .insight-layout article {
        padding: 24px;
    }

    .cta-section {
        padding: 62px 0;
    }

    .site-footer {
        padding: 42px 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .navbar {
        min-height: 76px;
    }

    .header-brand-logo {
        width: 138px;
    }

    .hero-section {
        min-height: 650px;
        padding: 108px 0 50px;
    }

    .hero-section h1 {
        font-size: clamp(2.8rem, 5vw, 4rem);
    }

    .section-band {
        padding: 64px 0;
    }
}

@media (max-width: 991px) {
    .navbar {
        min-height: 74px;
    }

    .header-brand-lockup {
        min-width: 0;
    }

    .header-brand-logo {
        width: 132px;
    }
}

@media (max-width: 767px) {
    .navbar {
        min-height: 68px;
    }

    .header-brand-logo {
        width: 120px;
    }
}

@media (max-width: 420px) {
    .header-brand-logo {
        width: 110px;
    }
}
