/* =========================================
   HEADER - RESPONSIVE
========================================= */

/* ---- Fluid desktop zone (scales smoothly down to the 1200px cutoff,
   instead of staying fixed-size and "scattering" right before hamburger) ---- */
.main-menu {
    gap: clamp(14px, 2.2vw, 45px);
    flex-wrap: nowrap;
}

.main-menu > li > a {
    padding: clamp(18px, 2.5vw, 30px) 0;
    font-size: clamp(0.875rem, 1vw, 1rem);
    white-space: nowrap;
}

.site-header .container {
    gap: clamp(10px, 2vw, 24px);
    flex-wrap: nowrap;
}

.header-actions {
    gap: clamp(8px, 1.5vw, 20px) !important;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.dts-nav-btns {
    display: flex;
    gap: clamp(6px, 1vw, 10px);
    flex-shrink: 0;
}

.dts-nav-btns .dts-btn {
    padding: 10px 20px;
    /* font-size: clamp(0.8rem, 0.95vw, 1.125rem); */
    font-size: clamp(16px, 16px, 16px);
    white-space: nowrap;
}

.dts-cont-info {
    flex-shrink: 0;
}

.dts-cont-info .dts-ci-data,
.dts-cont-info .dts-ci-title {
    font-size: clamp(0.75rem, 0.85vw, 1rem);
        font-size: clamp(13.5px, 13.5px, 13.5px);

    white-space: nowrap;
}

.custom-logo-link img {
    width: clamp(70px, 6vw, 100px) !important;
    height: auto;
}

/* ---- Hamburger toggle button (hidden on desktop) ---- */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1300;
}

.mobile-nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #122B6B;
    border-radius: 2px;
    /* transition: transform 0.25s ease, opacity 0.25s ease; */
}

/* .mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-active .mobile-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
} */

/* ---- Mobile nav drawer (hidden on desktop by default) ---- */
.mobile-nav-wrapper {
    display: none;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .mobile-nav-toggle {
    visibility: hidden;
        transition: none;

}

body.mobile-nav-open .enquiry-widget {
    display: none;
}

/* ---- Breakpoint: switch to mobile nav ---- */
@media (max-width: 1200px) {

    .site-header .container {
        flex-wrap: nowrap;
    }

    /* Hide desktop nav + mega menus + header actions */
    .main-navigation,
    .services-mega-menu,
    .about-mega-menu,
    .header-actions {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: flex;
    }

   .mobile-nav-wrapper {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1250;
    visibility: hidden;
    /* delay hiding until the slide-out finishes */
    transition: visibility 0s linear 0.3s;
}

.mobile-nav-wrapper.is-open {
    visibility: visible;
    transition-delay: 0s;
}

.mobile-nav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 58, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-wrapper.is-open .mobile-nav-overlay {
    opacity: 1;
}
    .mobile-nav-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 340px;
        height: 100%;
        background: #fff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        padding: 1.5rem;
        box-sizing: border-box;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
         will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    }

    .mobile-nav-wrapper.is-open .mobile-nav-panel {
        transform: translateX(0);
    }

    .mobile-nav-panel__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }

    .mobile-nav-panel__header .custom-logo-link img {
        width: 80px;
        height: auto;
    }

   /* Close button: fixed size, CSS-drawn X, fades in (no scaling) */
.mobile-nav-close {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;          /* hides the × glyph */
    line-height: 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-nav-wrapper.is-open .mobile-nav-close {
    opacity: 1;
    transition-delay: 0.15s;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: #122B6B;
    border-radius: 2px;
}

.mobile-nav-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-nav-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu-list > li {
        border-bottom: 1px solid rgba(13, 43, 110, 0.1);
    }

    .mobile-menu-list > li > a {
        display: block;
        padding: 14px 0;
        color: #122B6B;
        font-weight: 500;
        text-decoration: none;
        font-size: 1rem;
        font-family: var(--dts-font-inter);
        transition: color 0.2s ease;
    }

    .mobile-menu-list > li > a:hover,
    .mobile-menu-list > li > a:active,
    .mobile-menu-list > li > a.is-active {
        color: var(--dts-hover-color);
    }

    /* Accordion */
    .mobile-accordion-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        background: none;
        border: none;
        font-weight: 500;
        font-size: 1rem;
        font-family: var(--dts-font-inter);
        color: #122B6B;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .mobile-accordion-toggle:hover,
    .mobile-accordion-toggle.is-active {
        color: var(--dts-hover-color);
    }

   .mobile-accordion-toggle__icon {
    position: relative;
    width: 14px;
    height: 14px;
    font-size: 0;      /* hides the "+" text */
    line-height: 0;
    flex-shrink: 0;
}

.mobile-accordion-toggle__icon::before,
.mobile-accordion-toggle__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.mobile-accordion-toggle__icon::before { transform: translate(-50%, -50%); }
.mobile-accordion-toggle__icon::after  { transform: translate(-50%, -50%) rotate(90deg); }

/* expanded = minus */
.mobile-accordion-toggle.is-active .mobile-accordion-toggle__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}
    .mobile-accordion-panel {
        list-style: none;
        margin: 0;
        padding: 0 0 10px 12px;
        display: none;
    }
.mobile-accordion-panel a.is-active {
    color: var(--dts-hover-color);
    font-weight: 600;
}
    .mobile-accordion-panel li {
        margin-bottom: 10px;
    }

    .mobile-accordion-panel a {
        color: #333;
        text-decoration: none;
        font-size: 0.938rem;
    }

    .mobile-accordion-panel a:hover {
        color: #0056c1;
    }

    .mobile-nav-panel__actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 1.5rem;
    }

    .mobile-nav-panel__actions .dts-btn {
        width: 100%;
        text-align: center;
    }

    .mobile-nav-panel__contact {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(13, 43, 110, 0.1);
    }

    .mobile-nav-panel__contact img {
        width: 24px;
        height: 24px;
    }

    .mobile-nav-panel__contact p {
        margin: 0;
        font-size: 0.875rem;
        font-weight: 600;
        color: #122B6B;
    }
}

/* ---- Small phone tightening (≤480px) ---- */
@media (max-width: 480px) {
    .mobile-nav-panel {
        width: 90%;
        padding: 1.25rem;
    }
}



/* =========================================
   FOOTER - RESPONSIVE
========================================= */

@media (max-width: 1024px) {
    .footer-top {
        gap: 2rem 1.5rem;
        padding-block-end: 2.5rem;
    }

    .footer-col.footer-about {
        flex: 1 1 100%;
    }

    .footer-about-inner {
        width: 100%;
        max-width: 480px;
    }

    .footer-col {
        flex: 1 1 30%;
    }
}

@media (max-width: 768px) {
    footer.site-footer.section-padding {
        padding: 40px 0 20px;
    }

    .footer-top {
        flex-direction: column;
        padding-block-end: 2rem;
        gap: 2rem;
    }

    .footer-col.footer-about {
        flex: 1 1 100%;
    }

    .footer-about-inner {
        width: 100%;
        max-width: 100%;
    }

    .footer-logo img.custom-logo {
        max-width: 100px;
    }

    .footer-about-text {
        padding-block: 0.75rem;
    }

    /* Company / Services / Support columns as a 2-up grid */
    .footer-col:not(.footer-about) {
        flex: 1 1 45%;
    }

    .footer-col h4 {
        margin-block-end: 0.75rem;
    }

    .footer-col li {
        margin-bottom: 8px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }

    .footer-legal {
        display: flex;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    footer.site-footer.section-padding {
        padding: 30px 0 16px;
    }

    .footer-top {
        gap: 1.75rem;
    }

    /* Stack Company / Services / Support fully on small phones */
    .footer-col:not(.footer-about) {
        flex: 1 1 100%;
    }

    .ft-ct-btn {
        width: 100%;
        max-width: 200px;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
    }
}


/* =========================================
   ENQUIRY WIDGET - RESPONSIVE
   (base 480px rule already exists in dts.css;
   tightening a bit further for very small phones)
========================================= */
@media (max-width: 360px) {
    .enquiry-widget {
        right: 12px;
        bottom: 12px;
        width: 50px;
        height: 50px;
    }

    .enquiry-modal__panel {
        padding: 1.5rem;
        border-radius: 14px;
    }
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dts-white-color);
    color: #fff;
    padding-block: 39px;
    border-bottom: 2px solid var(--dts-secondary);

}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(13, 43, 110, 0.1);
}
