:root {
    --navy: #061b3a;
    --navy-deep: #031225;
    --blue: #0057d9;
    --blue-soft: #0d6efd;
    --sky: #1ba7ff;
    --ice: #f3f8ff;
    --graphite: #1f2937;
    --steel: #64748b;
    --gold: #d9a441;
    --white: #ffffff;
    --header-shadow: 0 24px 70px rgba(6, 27, 58, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--graphite);
    font-family: "Inter", Arial, sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 52%, #f4f8ff 100%);
}

a {
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.topbar {
    position: relative;
    z-index: 20;
    color: rgba(255, 255, 255, 0.94);
    background:
        radial-gradient(circle at 7% 0%, rgba(27, 167, 255, 0.28), transparent 28%),
        linear-gradient(90deg, var(--navy-deep), var(--navy));
    font-size: 15px;
    font-weight: 500;
}

.topbar-inner {
    display: grid;
    grid-template-columns: 1.2fr auto 0.7fr;
    align-items: center;
    gap: 22px;
    min-height: 58px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    white-space: nowrap;
}

.topbar-item i {
    width: 21px;
    color: var(--white);
    font-size: 18px;
    text-align: center;
}

.topbar-location strong {
    color: var(--sky);
    font-weight: 700;
}

.topbar-trust,
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 34px;
}

.topbar-trust {
    justify-content: center;
}

.topbar-contact {
    justify-content: flex-end;
}

.main-header {
    position: relative;
    z-index: 30;
    padding-top: 10px;
}

.header-card {
    min-height: 112px;
    padding: 18px 26px 18px 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(18px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    min-width: 260px;
    padding: 0;
    color: var(--navy);
}

.brand-logo {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.main-menu {
    align-items: center;
    gap: 15px;
}

.main-menu .nav-link {
    position: relative;
    padding: 15px 2px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.main-menu .nav-link:hover,
.main-menu .nav-link:focus,
.main-menu .nav-link.active {
    color: var(--blue-soft);
}

.main-menu .nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 3px;
    border-radius: 20px;
    background: var(--blue-soft);
    content: "";
}

.dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: 1px;
}

.dropdown-menu {
    --bs-dropdown-border-color: rgba(0, 87, 217, 0.09);
    --bs-dropdown-link-active-bg: var(--blue);
    min-width: 220px;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(6, 27, 58, 0.14);
}

.dropdown-item {
    border-radius: 9px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 22px;
    padding-left: 26px;
    border-left: 1px solid #dbe3ef;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    min-width: 164px;
    min-height: 50px;
    padding: 13px 22px;
    border: 0;
    border-radius: 11px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-soft), var(--blue));
    box-shadow: 0 14px 26px rgba(0, 87, 217, 0.28);
    font-weight: 800;
}

.quote-btn:hover,
.quote-btn:focus {
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 17px 32px rgba(0, 87, 217, 0.34);
}

.menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #dce8f6;
    border-radius: 12px;
    box-shadow: none;
}

.menu-toggle:focus {
    box-shadow: 0 0 0 4px rgba(0, 87, 217, 0.14);
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    border-radius: 20px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-preview {
    position: relative;
    min-height: calc(100vh - 180px);
    margin-top: -70px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.92) 36%, rgba(255, 255, 255, 0.98) 100%),
        url("../images/hero-security-africa.png") center top / cover no-repeat;
}

.hero-preview::after {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(27, 167, 255, 0.11), transparent 28%),
        radial-gradient(circle at 88% 22%, rgba(0, 87, 217, 0.08), transparent 30%);
    content: "";
    pointer-events: none;
}

@media (max-width: 1599.98px) {
    .topbar-inner {
        grid-template-columns: 1fr auto;
    }

    .topbar-location {
        grid-column: 1 / 2;
    }

    .topbar-trust {
        display: none;
    }

    .topbar-contact {
        grid-column: 2 / 3;
    }

    .main-menu {
        gap: 12px;
    }

    .main-menu .nav-link {
        font-size: 13px;
    }
}

@media (max-width: 1399.98px) {
    .header-card {
        padding-right: 18px;
        padding-left: 22px;
    }

    .brand-lockup {
        min-width: 230px;
    }

    .brand-logo {
        width: 230px;
    }
}

@media (max-width: 1399.98px) {
    .topbar {
        font-size: 14px;
    }

    .topbar-inner {
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: center;
        min-height: auto;
        padding: 11px 0;
    }

    .topbar-contact {
        justify-content: center;
        gap: 20px;
    }

    .header-card {
        min-height: auto;
        border-radius: 20px;
    }

    .navbar-collapse {
        padding-top: 18px;
    }

    .main-menu {
        align-items: stretch;
        gap: 0;
        padding: 8px 0 14px;
    }

    .main-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid #edf2f8;
        font-size: 15px;
    }

    .main-menu .nav-link.active::after {
        display: none;
    }

    .dropdown-menu {
        margin: 0 0 10px;
        box-shadow: none;
    }

    .header-actions {
        justify-content: space-between;
        margin: 0;
        padding: 18px 0 0;
        border-top: 1px solid #edf2f8;
        border-left: 0;
    }

    .hero-preview {
        min-height: 680px;
        margin-top: -48px;
    }
}

@media (max-width: 767.98px) {
    .topbar-inner {
        align-items: flex-start;
        justify-items: stretch;
    }

    .topbar-location,
    .topbar-contact {
        justify-content: flex-start;
    }

    .topbar-location span {
        white-space: normal;
    }

    .topbar-contact {
        display: grid;
        gap: 7px;
    }

    .main-header {
        padding-top: 8px;
    }

    .header-card {
        padding: 14px;
        border-radius: 18px;
    }

    .brand-lockup {
        min-width: 0;
    }

    .brand-logo {
        width: 210px;
    }

    .header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .quote-btn {
        width: 100%;
    }

    .hero-preview {
        min-height: 560px;
        margin-top: -36px;
        background-position: 62% top;
    }
}

@media (max-width: 419.98px) {
    .brand-logo {
        width: 184px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }
}
