/* CSAFE universal responsive layer.
   Keep this stylesheet loaded last.
*/

/* =========================================================
   GLOBAL RESPONSIVE RESET
========================================================= */

html {
    width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.container,
.nav-wrap,
.hero-grid,
.section-head,
.section-title-row,
.product-grid,
.category-grid,
.industry-grid,
.about,
.contact-grid,
.footer-grid,
.modal-product,
.process-grid {
    min-width: 0;
}


/* =========================================================
   ACTIVE NAVIGATION
========================================================= */

.nav a::after {
    background: #ff5a1f !important;
}

.nav a.active {
    color: #e94b12 !important;
}

.nav a.active::after {
    right: 17px !important;
    background: #ff5a1f !important;
    box-shadow: 0 2px 7px rgba(255, 75, 18, 0.28);
}


/* =========================================================
   FLOATING WHATSAPP AND CALL BUTTONS
========================================================= */

.float-action.whatsapp,
.float-action.call {
    position: fixed !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 120 !important;
}

.float-action.whatsapp {
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
}

.float-action.call {
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
}


/* =========================================================
   TABLET AND SMALL LAPTOP
========================================================= */

@media (max-width: 1080px) {

    .nav {
        position: absolute;
        top: 74px;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100dvh - 74px);
        overflow-y: auto;
        flex-direction: column;
        gap: 0 !important;
        padding: 12px 24px 20px;
        background: #ffffff;
        border-top: 1px solid var(--line);
        box-shadow: 0 16px 28px rgba(12, 40, 31, 0.14);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 13px 12px !important;
        border-bottom: 1px solid #edf2f0;
    }

    .nav a::after {
        display: none;
    }

    .nav a.active {
        color: #e94b12 !important;
        border-bottom: 3px solid #ff5a1f;
    }

    .menu-btn {
        display: grid !important;
        place-items: center;
        margin-left: auto;
    }

    .search-toggle,
    .nav-quote {
        display: none !important;
    }

    .product-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr !important;
    }
}


/* =========================================================
   MOBILE AND TABLET
========================================================= */

@media (max-width: 768px) {

    .container {
        width: calc(100% - 28px);
    }

    .nav-wrap {
        height: 68px !important;
    }

    .nav {
        top: 68px !important;
        max-height: calc(100dvh - 68px);
        padding-inline: 14px;
    }

    /* Hero */

    .hero-grid {
        display: flex !important;
        min-height: 0;
        flex-direction: column;
    }

    .hero-copy {
        width: 100%;
        padding: 38px 14px 28px 0 !important;
        box-sizing: border-box;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 9vw, 48px);
        line-height: 1.06;
        letter-spacing: -1.7px;
    }

    .hero-copy > p {
        width: 100%;
        max-width: 100%;
    }

    /* Explore Products and Request Quote spacing */

    .hero-actions {
        display: flex;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .hero-actions .btn {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-height: 54px;
        align-items: center;
        justify-content: center;
        margin: 0;
        box-sizing: border-box;
    }

    .hero-visual {
        position: relative !important;
        right: auto !important;
        width: calc(100% + 28px) !important;
        min-width: 0 !important;
        height: clamp(310px, 65vw, 430px) !important;
        margin-left: -14px !important;
    }

    .hero-visual > img {
        position: absolute;
        inset: 0;
    }

    .hero-benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;
    }

    /* Section headings */

    .section-head,
    .section-title-row,
    .gallery-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-actions,
    .video-actions {
        display: flex !important;
        align-self: flex-end;
    }

    /* Products */

    .product-search {
        width: 100%;
    }

    .product-grid,
    .category-grid,
    .compliance-grid,
    .contact-grid,
    .faq-contact,
    .modal-product,
    .process-grid,
    .map-panel {
        grid-template-columns: 1fr !important;
    }

    .catalog-card > img,
    .product-card > img {
        height: clamp(280px, 82vw, 380px);
    }

    .catalog-actions {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    /* About */

    .about {
        display: block;
    }

    .about-copy {
        padding: 34px 20px;
    }

    .stats {
        flex-wrap: wrap;
        gap: 18px 0;
    }

    .stats div {
        flex: 1 1 33.333%;
        min-width: 92px;
        padding: 0 12px;
    }

    /* Industry */

    .industry-showcase .industry-grid {
        width: calc(100% - 28px);
    }

    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .footer-brand,
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .copyright {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Modal */

    .modal {
        padding: 10px;
    }

    .modal-card {
        width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 22px 16px;
    }

    .modal-actions,
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Floating buttons */

    .float-action.whatsapp,
    .float-action.call {
        right: max(14px, env(safe-area-inset-right)) !important;
        width: 50px !important;
        height: 50px !important;
        animation: none !important;
        transform: none !important;
    }

    .float-action.whatsapp {
        bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    }

    .float-action.call {
        bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }

    .float-action span {
        display: none !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .container {
        width: calc(100% - 24px);
    }

    .logo,
    .nav-wrap > .logo {
        width: 154px !important;
        min-width: 0 !important;
    }

    .logo img {
        width: 148px !important;
        height: 52px !important;
    }

    .hero-copy {
        padding: 38px 12px 28px 0 !important;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 10.2vw, 42px);
    }

    h2,
    .process-heading h2 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-actions .btn {
        min-height: 52px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero-visual {
        width: calc(100% + 24px) !important;
        height: 310px !important;
        margin-left: -12px !important;
    }

    .filters {
        flex-wrap: nowrap;
        margin-inline: -12px;
        padding-inline: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filters button {
        flex: 0 0 auto;
    }

    .catalog-actions {
        grid-template-columns: 1fr;
    }

    .industry-showcase .industry-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid > div,
    .footer-grid > div:last-child,
    .footer-brand {
        grid-column: auto;
    }

    .stats div {
        flex-basis: 50%;
    }

    .custom-vest-card,
    .video-card {
        flex-basis: 90%;
    }
}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .hero-copy {
        padding-right: 10px !important;
    }

    .hero-copy h1 {
        font-size: 33px;
    }

    .btn {
        padding-inline: 16px;
    }

    .float-action.whatsapp,
    .float-action.call {
        width: 46px !important;
        height: 46px !important;
    }

    .float-action.whatsapp {
        bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }

    .float-action.call {
        bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    }
}


/* =========================================================
   MOBILE LANDSCAPE
========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

    .nav {
        max-height: calc(100dvh - 68px);
    }

    .float-action.whatsapp,
    .float-action.call {
        width: 44px !important;
        height: 44px !important;
    }

    .float-action.whatsapp {
        bottom: calc(62px + env(safe-area-inset-bottom)) !important;
    }

    .float-action.call {
        bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .btn:hover,
    .product-card:hover,
    .category-grid > a:hover,
    .video-card:hover {
        transform: none;
    }
}
/* Mobile hero buttons – reduced width with equal spacing */
@media (max-width: 768px) {
    .hero-copy {
        padding-right: 14px !important;
    }

    .hero-actions {
        width: calc(100% - 20px);
        margin-right: 10px;
        margin-left: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 50px;
        padding: 12px 18px;
    }
}

@media (max-width: 430px) {
    .hero-actions {
        width: calc(100% - 16px);
        margin-right: 8px;
        margin-left: 8px;
    }

    .hero-actions .btn {
        min-height: 48px;
        padding: 11px 16px;
        font-size: 15px;
    }
}
