/* =========================================================
   SCORPION SOLAR SYSTEM
   RESPONSIVE CSS
   File: assets/css/responsive.css
   ========================================================= */

/* ---------------------------------------------------------
   GLOBAL RESPONSIVE SAFETY
--------------------------------------------------------- */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}


/* ---------------------------------------------------------
   LARGE LAPTOP / DESKTOP
   1200px - 1399px
--------------------------------------------------------- */

@media (max-width: 1399px) {

    .container {
        width: 100%;
        max-width: 1140px;
    }

    .navbar-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-menu {
        gap: 24px;
    }

    .nav-link {
        font-size: 14px;
    }

}


/* ---------------------------------------------------------
   LAPTOP
   <= 1199px
--------------------------------------------------------- */

@media (max-width: 1199px) {

    .container {
        max-width: 960px;
        width: 100%;
    }

    .navbar-container {
        min-height: 68px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-link {
        font-size: 13px;
    }

    /* Logo remains fixed-size */
    .scorpion-logo,
    .scorpion-logo-image {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }

    .scorpion-logo-image {
        object-fit: contain !important;
        display: block !important;
    }

}


/* ---------------------------------------------------------
   TABLET / SMALL LAPTOP
   <= 1024px
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .container {
        max-width: 90%;
        width: 90%;
    }

    .navbar-container {
        min-height: 68px;
        padding-left: 18px;
        padding-right: 18px;
    }

    /*
       Desktop navigation hidden on tablet.
       Mobile menu button becomes visible.
    */

    .nav-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .header-actions {
        gap: 10px;
    }

    .scorpion-logo,
    .scorpion-logo-image {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    .scorpion-logo-image {
        object-fit: contain !important;
    }

    /* Hero */
    .hero-content {
        max-width: 720px;
    }

    /* Grid layouts */
    .two-column,
    .about-grid,
    .contact-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .three-column {
        grid-template-columns: repeat(2, 1fr);
    }

    .four-column {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ---------------------------------------------------------
   TABLET
   <= 785px
--------------------------------------------------------- */

@media (max-width: 785px) {

    .container {
        max-width: 92%;
        width: 92%;
    }

    .navbar-container {
        min-height: 62px;
        height: 62px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .scorpion-logo,
    .scorpion-logo-image {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }

    .scorpion-logo-image {
        object-fit: contain !important;
        display: block !important;
    }

    /* Mobile menu logo */
    .mobile-menu-logo-image {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        object-fit: contain !important;
    }

    .three-column,
    .four-column {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-logo img {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        object-fit: contain !important;
    }

}


/* ---------------------------------------------------------
   MOBILE
   <= 450px
--------------------------------------------------------- */

@media (max-width: 450px) {

    .container {
        width: 92%;
        max-width: 92%;
    }

    .navbar-container {
        min-height: 58px;
        height: 58px;
        padding-left: 12px;
        padding-right: 12px;
    }

    /*
       FINAL MOBILE LOGO SIZE
    */

    .scorpion-logo,
    .scorpion-logo-image {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        max-width: 46px !important;
        max-height: 46px !important;
    }

    .scorpion-logo-image {
        display: block !important;
        object-fit: contain !important;
    }

    .mobile-menu-logo-image {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        object-fit: contain !important;
    }

    /* Header actions */
    .header-actions {
        gap: 6px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    /* Typography */
    h1 {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.1;
    }

    h2 {
        font-size: clamp(27px, 7vw, 36px);
        line-height: 1.15;
    }

    h3 {
        font-size: 22px;
    }

    p {
        font-size: 15px;
        line-height: 1.65;
    }

    /* Sections */
    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo img {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        object-fit: contain !important;
    }

    /* Buttons */
    .btn {
        width: 100%;
        max-width: 100%;
    }

    /* Cards */
    .card,
    .service-card,
    .product-card,
    .project-card {
        width: 100%;
    }

}


/* ---------------------------------------------------------
   SMALL MOBILE
   <= 359px
--------------------------------------------------------- */

@media (max-width: 359px) {

    .container {
        width: 94%;
        max-width: 94%;
    }

    .navbar-container {
        min-height: 56px;
        height: 56px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .scorpion-logo,
    .scorpion-logo-image {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }

    .scorpion-logo-image {
        object-fit: contain !important;
    }

    .mobile-menu-logo-image {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .footer-logo img {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

}


/* ---------------------------------------------------------
   TOUCH DEVICES
--------------------------------------------------------- */

@media (hover: none) and (pointer: coarse) {

    .nav-link,
    .btn,
    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }

}


/* ---------------------------------------------------------
   PREVENT HORIZONTAL OVERFLOW
--------------------------------------------------------- */

.row,
.row > *,
section,
header,
footer,
main,
nav {
    max-width: 100%;
}

table {
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

pre,
code {
    max-width: 100%;
    overflow-x: auto;
}


/* ---------------------------------------------------------
   ACCESSIBILITY / MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}