/* =========================================================
TREK NETWORK - Responsive / Core Web Vitals refinements
========================================================= */

.container { width: min(100% - 32px, 1320px); }

@media (min-width: 1200px) {
    .hero-title { font-size: clamp(46px, 4vw, 64px); }
}

@media (max-width: 991.98px) {
    .custom-navbar { padding: 10px 0; }
    .custom-navbar .container { width: min(100% - 24px, 1320px); }
    .logo { width: 62px; height: 62px; object-fit: contain; }
    .company-tagline { margin-top: 0; margin-left: 8px; font-size: 10px; }
    .navbar-collapse { max-height: calc(100vh - 90px); overflow-y: auto; }
    .navbar-nav { padding: 10px 0; }
    .navbar-nav .nav-link { margin: 8px 0; padding: 8px 0; }
    .premium-contact { margin-top: 12px; }
    .hero-section {
        min-height: 720px;
        height: auto;
        padding: 150px 0 90px;
        background: #0B1F3A url("../images/hero-poster.webp") center/cover no-repeat;
    }
    .hero-video { display: none; }
    .hero-content { max-width: 760px; margin: 0 auto; padding-top: 0; }
    .hero-title { font-size: clamp(36px, 7vw, 52px); }
    .hero-description { font-size: 16px; }
    section { padding: 80px 0; }
    .about-content { padding: 0 15px; }
    .about-content .section-title { font-size: clamp(36px, 6vw, 48px); }
    .service-card { padding: 32px 24px; }
    .contact-info-card, .contact-form { padding: 32px 24px; }
}

@media (max-width: 767.98px) {
    .container { width: min(100% - 24px, 1320px); }
    .custom-navbar .container { width: min(100% - 20px, 1320px); }
    .logo { width: 54px; height: 54px; }
    .company-tagline { display: none; }
    .hero-section { min-height: 680px; padding: 135px 0 70px; }
    .hero-badge { font-size: 12px; padding: 8px 14px; }
    .hero-title { font-size: clamp(32px, 9vw, 42px); line-height: 1.12; }
    .hero-description { font-size: 15px; line-height: 1.7; }
    .hero-buttons { gap: 12px; }
    .btn-main, .btn-border, .enquiry-btn { width: 100%; margin-left: 0 !important; text-align: center; }
    .section-title, .about-content .section-title { font-size: clamp(30px, 8vw, 38px); }
    .section-text { font-size: 16px; line-height: 1.75; }
    .service-card h3 { font-size: 21px; }
    .feature-box { gap: 14px; }
    .feature-icon { width: 56px; height: 56px; font-size: 22px; }
    .feature-content h4 { font-size: 20px; }
    .contact-box { gap: 14px; }
    .contact-box i { width: 52px; height: 52px; font-size: 20px; }
    .contact-info-card h3 { font-size: 28px; }
    .map-section iframe { height: 360px; border-radius: 14px; }
    .footer { margin-top: 40px; padding-top: 40px; }
}

@media (max-width: 480px) {
    .hero-section { min-height: 650px; }
    .hero-content { text-align: center; }
    .hero-buttons { align-items: stretch; }
    .contact-form, .enquiry-form, .contact-info-card { padding: 22px 16px; border-radius: 18px; }
    .form-control { font-size: 16px; } /* prevents iOS zoom */
    .page-main-title, .about-page-title { font-size: 30px; }
    .section-label { font-size: 14px; }
}


/* =========================================================
TREK NETWORK - Premium mobile navigation & UX hardening
========================================================= */
html { scroll-behavior: smooth; }
body.menu-open { overflow: hidden; }

.custom-navbar { position: sticky; top: 0; z-index: 1050; }
.navbar-toggler {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 12px;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.06);
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}
.navbar-toggler:hover, .navbar-toggler:focus { color: #fff; background: rgba(255,255,255,.12); }
.navbar-toggler i { font-size: 20px; pointer-events: none; }

.nav-link { position: relative; }
.nav-link:focus-visible, .contact-icons a:focus-visible, .footer a:focus-visible,
.btn:focus-visible, .quote-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,.7);
    outline-offset: 3px;
}
.form-control, select.form-control, textarea.form-control {
    min-height: 50px;
}
textarea.form-control { min-height: 140px; }

@media (max-width: 991.98px) {
    .custom-navbar { position: sticky; top: 0; }
    .navbar-collapse {
        margin-top: 10px;
        padding: 8px 14px 18px;
        border-radius: 16px;
        background: rgba(11,31,58,.98);
        box-shadow: 0 18px 45px rgba(0,0,0,.25);
        max-height: calc(100dvh - 82px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-nav { align-items: stretch !important; }
    .navbar-nav .nav-link {
        display: block;
        padding: 12px 8px !important;
        margin: 2px 0 !important;
        min-height: 46px;
    }
    .premium-contact {
        padding: 10px 0 2px;
        margin-top: 4px !important;
    }
    .contact-icons a {
        width: 46px;
        height: 46px;
    }
}
@media (max-width: 575.98px) {
    .custom-navbar .container { width: min(100% - 18px, 1320px); }
    .logo { width: 52px; height: 52px; }
    .navbar-collapse { border-radius: 14px; }
    .hero-section { padding-top: 120px; }
    .quote-btn, .btn-main, .btn-border, .enquiry-btn { min-height: 50px; }
}


/* =========================================================
TREK NETWORK - FINAL RESPONSIVE / SOCIAL POLISH
========================================================= */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.footer-social a,
.footer-social .social-disabled {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
}
.footer-social a {
    background: #163B68;
    color: #fff;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
    background: #16A34A;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(22,163,74,.25);
}
.footer-social .social-disabled {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #cbd5e1;
    opacity: .95;
    cursor: default;
}
.footer-social .social-disabled:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.footer-social .fa-whatsapp { color: #25D366; }
.footer-social .fa-linkedin-in { color: #6aa9ff; }
.footer-social .fa-instagram { color: #ff8ab3; }
.footer-social .fa-facebook-f { color: #79a9ff; }
.footer-social .fa-youtube { color: #ff6b6b; }

@media (max-width: 991.98px) {
    .custom-navbar .container {
        min-height: 72px;
    }
    .navbar-brand {
        min-width: 0;
        margin-right: 10px;
    }
    .navbar-toggler {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        padding: 0;
    }
    .navbar-toggler i {
        font-size: 20px;
    }
    .navbar-collapse.show {
        display: block !important;
    }
    .navbar-nav .nav-link {
        font-size: 16px;
        line-height: 1.35;
    }
    .premium-contact {
        width: 100%;
        justify-content: flex-start;
    }
}
@media (max-width: 575.98px) {
    .footer-social a,
    .footer-social .social-disabled {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .footer-social {
        gap: 9px;
    }
    .footer-main {
        row-gap: 30px;
    }
}
/* =========================================================
   TREK NETWORK - FINAL MOBILE NAVBAR FIX
   DO NOT REMOVE
========================================================= */

@media (max-width: 991.98px) {

    /* Mobile hamburger always visible */
    .custom-navbar .navbar-toggler {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;

        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;

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

        border: 1px solid #0B1F3A !important;
        border-radius: 10px;

        background: #ffffff !important;
        color: #0B1F3A !important;

        padding: 0 !important;
        margin-left: auto;

        z-index: 1060;
    }

    .custom-navbar .navbar-toggler i {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        font-size: 20px;
        line-height: 1;
        color: #0B1F3A !important;
    }

    /* Mobile menu */
    .custom-navbar #mainMenu {
        width: 100%;
        margin-top: 10px;

        background: #ffffff !important;
        border-radius: 14px;

        max-height: calc(100dvh - 90px);

        overflow-x: hidden !important;
        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch;

        box-shadow: 0 15px 40px rgba(0,0,0,.12);

        z-index: 1055;
    }

    /* Bootstrap + custom JS compatibility */
    .custom-navbar #mainMenu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Menu links */
    .custom-navbar #mainMenu .nav-link {
        display: block !important;

        color: #0B1F3A !important;

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

        padding: 12px 8px !important;
        margin: 2px 0 !important;

        min-height: 46px;

        visibility: visible !important;
        opacity: 1 !important;
    }

    .custom-navbar #mainMenu .nav-link:hover,
    .custom-navbar #mainMenu .nav-link.active {
        color: #16A34A !important;
    }

    /* Contact section inside mobile menu */
    .custom-navbar #mainMenu .premium-contact {
        width: 100%;
        margin-top: 8px !important;
        padding: 10px 8px 4px;
    }
}


/* Small mobile devices */
@media (max-width: 575.98px) {

    .custom-navbar .navbar-toggler {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .custom-navbar .navbar-toggler i {
        font-size: 19px;
    }

    .custom-navbar #mainMenu {
        max-height: calc(100dvh - 82px);
        border-radius: 12px;
    }
}


/* Prevent desktop rules from affecting mobile menu */
@media (min-width: 992px) {

    .custom-navbar .navbar-toggler {
        display: none !important;
    }

    .custom-navbar #mainMenu {
        display: flex !important;
        max-height: none !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}
