/* =========================================================
   SITE POLISH — ORGANIZATION MAP

   1. Shared visual polish
   2. Cross-page typography and component refinements
   3. Responsive polish overrides

   IMPORTANT: Source order is intentionally preserved because
   later responsive/final rules are part of the active cascade.
========================================================= */

:root {
    --aei-site-font: "Sora", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

body,
.about-page,
.service-page,
.products-page,
.contact-page,
.pd-page,
.aei-header,
.aei-footer,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
small,
strong,
b,
label,
li,
td,
th {
    font-family: var(--aei-site-font) !important;
}

/* Bootstrap Icons must retain their own icon font. */
.bi,
[class^="bi-"],
[class*=" bi-"] {
    font-family: bootstrap-icons !important;
}

/* Premium header polish without changing navigation content. */
.aei-header {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 7px 24px rgba(15, 23, 42, .1);
    backdrop-filter: blur(14px);
}

.aei-topbar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #c90813 0%, #ed111f 48%, #c90813 100%);
}

.aei-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.12) 50%, transparent 72%);
    transform: translateX(-100%);
    animation: aeiTopbarSheen 8s ease-in-out infinite;
}

@keyframes aeiTopbarSheen {
    0%, 68%, 100% { transform: translateX(-100%); }
    82% { transform: translateX(100%); }
}

.topbar-item {
    position: relative;
    z-index: 1;
    letter-spacing: .015em;
}

.topbar-item i {
    opacity: .92;
}

.aei-navbar {
    position: relative;
    min-height: 82px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(15,23,42,.07);
}

.aei-navbar::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 8%, rgba(227,6,19,.9) 50%, transparent 92%);
}

.navbar-content {
    min-height: 82px;
}

.aei-logo-link {
    position: relative;
    width: 135px;
    min-height: 62px;
    padding: 4px 0;
}

.aei-logo-link::after {
    content: "";
    position: absolute;
    top: 18%;
    right: 0;
    display: block;
    width: 1px;
    height: 64%;
    background: linear-gradient(transparent, rgba(15,23,42,.16), transparent);
}

.aei-logo {
    width: 116px;
    transition: transform .3s ease, filter .3s ease;
}

.aei-logo-link:hover .aei-logo {
    transform: translateY(-2px);
    filter: drop-shadow(0 7px 8px rgba(15,23,42,.12));
}

.aei-navigation {
    margin-left: auto;
    margin-right: 0;
}

.aei-navigation ul {
    gap: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.aei-navigation a {
    min-height: 82px;
    padding: 0 2px;
    border-radius: 0;
    color: #252b36;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .065em;
    transition: color .25s ease;
}

.aei-navigation a::after {
    right: auto;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 99px;
    background: var(--aei-red);
    transform: none;
    transition: width .25s ease;
}

.aei-navigation a:hover {
    color: var(--aei-red);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.aei-navigation a.active {
    color: var(--aei-red);
    background: transparent;
    box-shadow: none;
}

.aei-navigation a.active::after {
    width: 100%;
    background: var(--aei-red);
}

.aei-navigation a:hover::after {
    width: 0;
}

.aei-menu-button {
    width: 44px;
    height: 42px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, #f21a27, #ce0712);
    box-shadow: 0 8px 18px rgba(227,6,19,.22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.aei-menu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(227,6,19,.28);
}

.aei-menu-button:focus-visible,
.aei-navigation a:focus-visible {
    outline: 3px solid rgba(227,6,19,.23);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .aei-navbar,
    .navbar-content {
        min-height: 82px;
    }

    .aei-logo-link {
        width: auto;
        min-height: 60px;
        padding-right: 0;
    }

    .aei-logo-link::after {
        display: none;
    }

    .aei-logo {
        width: 105px;
    }

    .aei-navigation {
        top: calc(100% + 1px);
        padding: 12px 16px 17px;
        border-top: 1px solid #eef0f3;
        background: rgba(255,255,255,.99);
        box-shadow: 0 20px 35px rgba(15,23,42,.14);
    }

    .aei-navigation ul {
        gap: 6px;
        padding: 7px;
        border: 1px solid #eceff3;
        border-radius: 7px;
        background: #f8f9fb;
    }

    .aei-navigation a {
        min-height: 46px;
        justify-content: flex-start;
        text-align: left;
        padding: 0 17px;
        border-radius: 4px;
    }

    .aei-navigation a::after {
        display: none;
    }

    .aei-navigation a:hover,
    .aei-navigation a.active {
        color: var(--aei-red);
        background: #fff;
        box-shadow: 0 5px 14px rgba(15,23,42,.07);
        transform: none;
    }
}

@media (max-width: 575px) {
    .aei-navbar,
    .navbar-content {
        min-height: 72px;
    }

    .aei-logo {
        width: 94px;
    }

    .aei-menu-button {
        width: 41px;
        height: 39px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aei-topbar::after {
        animation: none;
    }
}
