/* =========================================================
   AAPEX GROUP
   Global Site Styles
========================================================= */


/* ---------------------------------------------------------
   ROOT
--------------------------------------------------------- */

:root {
    --black: #05070a;
    --carbon: #0b0f14;
    --navy: #07182d;
    --navy-light: #0b2748;

    --red: #c8102e;
    --red-bright: #e21d3a;

    --steel: #9ca8b4;
    --silver: #d7dee5;

    --white: #ffffff;

    --border: rgba(215, 222, 229, 0.14);
    --border-strong: rgba(215, 222, 229, 0.25);
}


/* ---------------------------------------------------------
   BASE
--------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(11, 39, 72, 0.24),
            transparent 38%
        ),
        var(--black);

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--red);
    color: white;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ---------------------------------------------------------
   SKIP LINK
--------------------------------------------------------- */

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;

    z-index: 9999;

    background: var(--red);
    color: white;

    padding: 12px 20px;

    font-weight: 700;
}

.skip-link:focus {
    top: 20px;
}




/* ---------------------------------------------------------
   PAGE IDENTITY / BREADCRUMB BAR
--------------------------------------------------------- */

/*
 * The site header is fixed, so the entire identity bar is offset
 * by the exact header height. This keeps both the page title and
 * breadcrumb fully below the navigation instead of placing only
 * the inner content lower inside an element that still begins at
 * the top of the viewport.
 */
.site-page-top {
    position: relative;
    z-index: 30;
    margin: 94px 0 0;
    padding: 0;
    background: #05090e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-page-top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(214,24,50,.72), rgba(214,24,50,0) 34%);
    pointer-events: none;
}

.site-page-top-shell {
    width: min(1400px, calc(100% - 48px));
    min-height: 58px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-page-top-title {
    position: relative;
    padding-left: 18px;
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-page-top-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 22px;
    background: var(--red);
    transform: translateY(-50%);
}

.site-page-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    color: rgba(255,255,255,.42);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.site-page-trail a {
    color: rgba(255,255,255,.58);
    text-decoration: none;
    transition: color .2s ease;
}

.site-page-trail a:hover,
.site-page-trail a:focus-visible {
    color: #fff;
}

.site-page-trail strong {
    color: rgba(255,255,255,.92);
    font-weight: 800;
}

.site-page-trail-separator {
    color: var(--red-bright);
    opacity: .72;
}

@media (max-width: 1220px) {
    .site-page-top {
        margin-top: 82px;
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .site-page-top {
        margin-top: 74px;
        padding-top: 0;
    }

    .site-page-top-shell {
        width: calc(100% - 36px);
        min-height: 76px;
        padding: 12px 0;
        display: grid;
        align-content: center;
        justify-content: stretch;
        gap: 8px;
    }

    .site-page-top-title {
        font-size: 19px;
        white-space: normal;
    }

    .site-page-trail {
        justify-content: flex-start;
        gap: 6px;
        font-size: 9px;
        letter-spacing: .06em;
    }
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.site-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.scrolled {
    background:
        linear-gradient(
            180deg,
            rgba(5, 7, 10, 0.98),
            rgba(7, 24, 45, 0.96)
        );

    border-bottom:
        1px solid rgba(215, 222, 229, 0.14);

    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1500px, calc(100% - 48px));

    height: 94px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


/* Logo */

.brand-logo {
    flex: 0 0 auto;
}

.brand-logo img {
    display: block;

    width: 225px;
    height: auto;

    filter:
        drop-shadow(
            0 5px 14px rgba(0, 0, 0, 0.45)
        );
}


/* Desktop nav */

.desktop-nav {
    display: flex;
    align-items: center;

    gap: 27px;
}

.nav-link {
    position: relative;

    color: rgba(255, 255, 255, 0.82);

    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        color 0.2s ease;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -11px;

    width: 0;
    height: 2px;

    margin: auto;

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--red-bright)
        );

    transition:
        width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* Dropdown */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;

    gap: 5px;

    background: transparent;
    border: 0;

    cursor: pointer;
}

.nav-dropdown-trigger svg {
    width: 14px;
    height: 14px;

    transition:
        transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 20px);
    left: -24px;

    width: 320px;

    padding: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(11, 15, 20, 0.98),
            rgba(7, 24, 45, 0.98)
        );

    border:
        1px solid rgba(215, 222, 229, 0.15);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.52);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;

    padding: 13px 15px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 12px;
    font-weight: 600;

    border-left:
        2px solid transparent;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.nav-dropdown-menu a:hover {
    color: white;

    background:
        rgba(200, 16, 46, 0.1);

    border-left-color:
        var(--red);
}


/* Header actions */

.desktop-header-actions {
    display: flex;
    align-items: center;

    gap: 19px;
}

.header-phone {
    color: rgba(255, 255, 255, 0.73);

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.2s ease;
}

.header-phone:hover {
    color: white;
}

.header-quote-btn {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    background:
        linear-gradient(
            135deg,
            var(--red),
            #9d0c22
        );

    color: white;

    padding: 13px 18px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    box-shadow:
        0 10px 30px rgba(200, 16, 46, 0.2);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.header-quote-btn:hover {
    background:
        linear-gradient(
            135deg,
            var(--red-bright),
            var(--red)
        );

    transform: translateY(-1px);

    box-shadow:
        0 14px 36px rgba(200, 16, 46, 0.28);
}


/* ---------------------------------------------------------
   MOBILE NAVIGATION
--------------------------------------------------------- */

.mobile-menu-button,
.mobile-navigation {
    display: none;
}

.mobile-menu-button {
    width: 46px;
    height: 46px;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;

    background: white;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* ---------------------------------------------------------
   TYPOGRAPHY UTILITIES
--------------------------------------------------------- */

.aapex-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    color: var(--red-bright);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aapex-eyebrow::before {
    content: "";

    width: 40px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--silver)
        );
}

.section-title {
    font-family:
        "Barlow Condensed",
        sans-serif;

    font-weight: 700;

    letter-spacing: -0.025em;

    text-transform: uppercase;

    line-height: 0.95;
}

.text-gradient-steel {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #cbd3dc 53%,
            #8d99a5 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    min-height: 54px;

    padding: 0 27px;

    background:
        linear-gradient(
            135deg,
            var(--red-bright),
            var(--red)
        );

    color: white;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.09em;
    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 40px rgba(200, 16, 46, 0.28);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    min-height: 54px;

    padding: 0 27px;

    background:
        rgba(255, 255, 255, 0.025);

    color: white;

    border:
        1px solid rgba(215, 222, 229, 0.3);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.09em;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn-secondary:hover {
    background:
        rgba(255, 255, 255, 0.06);

    border-color:
        rgba(215, 222, 229, 0.55);

    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.site-footer {
    position: relative;

    background:
        linear-gradient(
            180deg,
            #07121f,
            #040608
        );

    border-top:
        1px solid rgba(215, 222, 229, 0.12);
}

.site-footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 36%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--red),
            transparent
        );
}

.footer-main {
    width:
        min(
            1400px,
            calc(100% - 48px)
        );

    margin: auto;

    padding:
        80px 0 60px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.7fr
        0.8fr
        1.25fr
        1fr;

    gap: 70px;
}

.footer-logo img {
    width: 270px;
}

.footer-tagline {
    margin-top: 28px;

    color: white;

    font-family:
        "Barlow Condensed",
        sans-serif;

    font-size: 22px;
    font-weight: 700;

    letter-spacing: 0.03em;

    text-transform: uppercase;
}

.footer-copy {
    max-width: 390px;

    margin-top: 14px;

    color:
        rgba(255, 255, 255, 0.57);

    font-size: 13px;

    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 13px;
}

.footer-column h3 {
    margin-bottom: 8px;

    color: var(--silver);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.footer-column a {
    color:
        rgba(255, 255, 255, 0.62);

    font-size: 13px;

    transition:
        color 0.2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-cta {
    display: inline-flex !important;

    align-items: center;

    gap: 11px;

    width: fit-content;

    margin-top: 12px;

    padding-bottom: 7px;

    border-bottom:
        1px solid var(--red);

    color:
        white !important;

    font-weight:
        700;
}

.footer-bottom {
    border-top:
        1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-inner {
    width:
        min(
            1400px,
            calc(100% - 48px)
        );

    min-height: 62px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    color:
        rgba(255, 255, 255, 0.37);

    font-size: 11px;
}

.footer-legal {
    display: flex;

    gap: 20px;
}

.footer-legal a,
.footer-legal span {
    color:
        rgba(255, 255, 255, 0.42);
}

.footer-legal a:hover {
    color:
        rgba(255, 255, 255, 0.8);
}


/* ---------------------------------------------------------
   REVEAL ANIMATIONS
--------------------------------------------------------- */

.reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1220px) {

    .desktop-nav,
    .desktop-header-actions {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .header-inner {
        height: 82px;
    }

    .brand-logo img {
        width: 205px;
    }

    .mobile-navigation {
        display: block;

        position: fixed;

        top: 82px;
        left: 0;
        right: 0;

        height:
            calc(
                100vh - 82px
            );

        background:
            linear-gradient(
                180deg,
                rgba(5, 7, 10, 0.99),
                rgba(7, 24, 45, 0.99)
            );

        border-top:
            1px solid rgba(255, 255, 255, 0.08);

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(-8px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;

        overflow-y: auto;
    }

    .mobile-navigation.open {
        opacity: 1;
        visibility: visible;

        transform:
            translateY(0);
    }

    .mobile-nav-inner {
        width:
            min(
                680px,
                calc(100% - 40px)
            );

        margin: auto;

        padding:
            20px 0 60px;
    }

    .mobile-nav-inner > a,
    .mobile-dropdown-toggle {
        width: 100%;

        display: flex;

        align-items: center;
        justify-content: space-between;

        padding:
            18px 4px;

        background: transparent;

        color: white;

        border: 0;
        border-bottom:
            1px solid rgba(255, 255, 255, 0.09);

        font-family:
            "Barlow Condensed",
            sans-serif;

        font-size: 19px;
        font-weight: 700;

        letter-spacing: 0.04em;

        text-transform: uppercase;

        text-align: left;

        cursor: pointer;
    }

    .mobile-dropdown-menu {
        display: none;

        background:
            rgba(255, 255, 255, 0.025);

        border-left:
            2px solid var(--red);

        padding:
            6px 0 6px 19px;
    }

    .mobile-dropdown-menu.open {
        display: block;
    }

    .mobile-dropdown-menu a {
        display: block;

        padding:
            12px 0;

        color:
            rgba(255, 255, 255, 0.64);

        font-size:
            13px;
    }

    .mobile-nav-actions {
        display: grid;

        gap: 13px;

        padding-top:
            28px;
    }

    .mobile-phone {
        display: flex;

        justify-content: center;

        padding:
            15px;

        border:
            1px solid rgba(255, 255, 255, 0.17);

        color:
            white;

        font-weight:
            700;
    }

    .mobile-quote-btn {
        display: flex;

        align-items: center;
        justify-content: center;

        min-height:
            55px;

        background:
            linear-gradient(
                135deg,
                var(--red-bright),
                var(--red)
            );

        color:
            white;

        font-size:
            12px;

        font-weight:
            800;

        letter-spacing:
            0.08em;

        text-transform:
            uppercase;
    }

}


@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns:
            1fr 1fr;

        gap:
            50px 35px;
    }

}


@media (max-width: 640px) {

    .header-inner {
        width:
            calc(100% - 30px);

        height:
            74px;
    }

    .brand-logo img {
        width:
            170px;
    }

    .mobile-navigation {
        top:
            74px;

        height:
            calc(
                100vh - 74px
            );
    }

    .footer-main,
    .footer-bottom-inner {
        width:
            calc(100% - 36px);
    }

    .footer-main {
        padding:
            58px 0 45px;
    }

    .footer-grid {
        grid-template-columns:
            1fr;

        gap:
            38px;
    }

    .footer-logo img {
        width:
            230px;
    }

    .footer-bottom-inner {
        padding:
            18px 0;

        flex-direction:
            column;

        align-items:
            flex-start;
    }

}