/* ============ MOBILE NAV (slide-in from right) ============ */
@media (max-width: 991.98px) {
    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 320px;
        max-width: 85vw;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        transform: translateX(100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1);
        box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
        overflow-y: auto;
        z-index: 1050;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, .08);
    }

    .nav-menu-logo {
        max-width: 150px;
    }

    .nav-close {
        background: transparent;
        border: 0;
        font-size: 22px;
        line-height: 1;
        color: var(--brand-red);
        cursor: pointer;
        padding: 4px 6px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, .06);
    }

    .main-nav .nav-link {
        justify-content: space-between;
        padding: 14px 22px;
        font-size: 15.5px;
    }

    .caret {
        font-size: 13px;
    }

    .has-dropdown.open>.nav-link .caret {
        transform: rotate(90deg);
    }

    /* Accordion submenu */
    .dropdown {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f6eaec;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .has-dropdown.open>.dropdown {
        max-height: 600px;
    }

    .dropdown li+li {
        border-top: 1px solid rgba(0, 0, 0, .06);
    }

    .dropdown a {
        color: #2b2b2b;
        padding: 12px 34px;
    }

    .dropdown a:hover {
        background: var(--brand-red);
        color: #fff;
    }

    .top-nav {
        font-size: 13px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px 30px;
    }
}

@media (max-width: 767.98px) {

    /* Top bar: icons only — contact left, socials right */
    .top-nav .d-flex {
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        text-align: left;
    }

    .top-contact {
        gap: 0 16px !important;
        flex-wrap: nowrap !important;
    }

    /* Hide the link text, keep only the icon */
    .top-contact a {
        font-size: 0;
        gap: 0;
    }

    .top-contact a i {
        font-size: 16px;
    }

    .top-right {
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom .container {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero {
        align-items: flex-end;
        padding-bottom: 40px;
    }

    .info-box {
        max-width: 100%;
        padding: 24px 22px;
    }

    .info-box .company-name {
        font-size: 18px;
        line-height: 1.35;
    }

    .top-nav {
        font-size: 12.5px;
    }

    .info-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    h2,
    .about h2 {
        line-height: 2.25rem;
    }
}