@media (min-width: 1800px) {
    .top-bar, nav {
        padding-left: clamp(1%, 3vw + 1%, 30%);
        padding-right: clamp(1%, 3vw + 1%, 30%);
    }
}
@media (min-width: 1600px) and (max-width: 1800px) {
.top-bar, nav {
    padding-left: clamp(1%, 3vw + 1%, 30%);
    padding-right: clamp(1%, 3vw + 1%, 30%);
}
}
@media (min-width: 1400px) and (max-width: 1600px) {
.top-bar, nav {
    padding-left: clamp(1%, 2vw + 3%, 30%);
    padding-right: clamp(1%, 2vw + 3%, 30%);
}
}
@media (min-width: 992px) and (max-width: 1200px) {
.header, nav {
    padding-left: clamp(1%, 3vw + 1%, 30%);
    padding-right: clamp(1%, 3vw + 1%, 30%);
}
#logo {
    max-height: 75px;
    width: 100%;
}
#ingnsLogo {
    max-height: 75px;
    width: 100%;
}
}
@media (min-width: 600px) and (max-width: 992px) {
    body {
        padding: 0;
    }
    .video-section {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        max-height: 100vh;
    }
    .video-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: none;
    }

    .sticky-header {
        width: 100%;
        height: auto;
    }

    .top-bar {
        padding: 10px 20px;
    }

    #ingnsLogo {
        max-height: 60px;
        width: auto;
    }
    #logo {
        max-height: 60px;
        width: auto;
    }

    nav ul {
        padding: 0 20px;
    }

    nav ul li {
        padding: 5px 20px;
    }

    .main-content {
        padding: 20px 5%;
    }

    .product-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .customer-slider {
        padding: 0 20px;
    }
    .sensortool-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 20px;
    }
    .icons-container {
        justify-content: flex-end;
        gap: 20px;
    }

    .phone-numbers,
    .address-block {
        right: 20px;
        width: 250px;
    }
    .INGNS{
        display: none;
    }
    .top-bar-section{
        display: none;
    }

    .ingns-small-logo {
        order: 1;
        align-items: left;
        width: 100%;
    }

    .ingns-small-logo img {
        width: 70%; 
        height: auto;
    }

    .location-block {
        order: 2;
        padding-right: 2%;
    }

    .phoneNumber-block {
        order: 3;
        padding-right: 5%;
    }
    .phone-numbers {
        position: fixed;
        top: 120px;
        right: -50px;
        background-color: white;
        padding: 10px;
        border: 1px solid #855a2a;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        width: auto;
        min-width: 200px;
    }
    .address-block {
        position: fixed;
        top: 120px; 
        background-color: white;
        padding: 10px;
        border: 1px solid #855a2a;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        word-wrap: break-word;
        width: auto;
        max-width: 80vw;
    }
    .address-block span {
        display: block;
        color: #000000;
        margin: 5px 0;
        white-space: normal;

    }
    .phone-numbers a {
        display: block;
        color: #000000;
        margin: 5px 0;
        text-decoration: none;
    }
    .aboutUs_img {
        align-items: center;
        justify-content: center;
    }
    .seo-intro-text p {
        font-size: 1rem;
        line-height: 1.75;
    }
}
@media (min-width: 600px) {
    .menu-button {
        display: none;
    }

}
/* ─── Mobile (360px – 600px) ─────────────────────────────────────────────── */
@media (min-width: 360px) and (max-width: 600px) {
    body {
        padding: 0;
    }
    .main-content {
        padding: 3%;
    }
    .video-section {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        margin-top: 95px;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    .video-background {
        display: block;
        position: absolute;
        top: -2px;
        left: -2px;
        width: calc(100% + 4px);
        height: calc(100% + 4px);
        object-fit: cover;
        object-position: bottom;
        transform: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .top-bar-section {
        display: none;
    }
    .sticky-header {
        background-color: #ffffff00 !important;
        height: auto;
    }
    .sticky-header:hover .top-bar,
    .sticky-header.scrolled .top-bar {
        background-color: #fffffff6 !important;
    }
    .sticky-header .top-bar {
        transition: none !important;
        background-color: #ffffffe5 !important;
    }
    .sticky-header nav ul li a {
        color: #000000 !important;
    }
    .sticky-header nav {
        background-color: #fdcf8a00 !important;
    }
    .sticky-header nav ul {
        background-color: #ffffff00 !important;
    }
    .icons-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding: 5%;
        padding-left: 0;
        padding-bottom: 3%;
    }
    .ingns-small-logo {
        order: 1;
        align-items: flex-start;
        width: 80%;
    }
    .ingns-small-logo img.small-logo {
        width: 100%;
        height: auto !important;
        content: url('../images/ingns-logo-900.png');
        margin-left: 0;
    }
    .location-block {
        order: 2;
        padding-right: 2%;
    }
    .phoneNumber-block {
        order: 3;
        padding-right: 5%;
    }
    .menu-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 36px;
        padding: 0;
        background-color: #FF8C00;
        border: none;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(255, 140, 0, 0.5);
        cursor: pointer;
        position: fixed;
        z-index: 1005;
        top: 54px;
        left: 2px;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }
    .menu-button .menu-icon {
        filter: brightness(0) invert(1);
    }
    .menu-button:hover,
    .menu-button.active {
        background-color: #E67300;
        box-shadow: 0 4px 16px rgba(255, 140, 0, 0.6);
    }
    .menu-toggle {
        display: block !important;
        position: relative;
        background-color: transparent;
    }

    /* ── Nav drawer ── */
    nav.nav-menu {
        visibility: hidden;
        pointer-events: none;
        position: fixed;
        top: 58px;
        left: 0;
        width: 78vw;
        max-width: 290px;
        height: auto;
        max-height: calc(100vh - 98px);
        background-color: #ffffff !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22);
        z-index: 2003;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.3s;
        border-top: 3px solid #a18665;
    }
    nav.nav-menu.active {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s;
    }
    nav.nav-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 78vw;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.40);
        z-index: 1002;
    }
    nav.nav-menu ul {
        flex-direction: column;
        background-color: #ffffff;
        padding: 0;
        margin: 0;
    }
    nav.nav-menu ul li {
        padding: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #f0f0f0;
    }
    nav.nav-menu.active ul li {
        opacity: 0;
        animation: slideInMenu 0.25s ease forwards;
        animation-delay: calc(0.07s * var(--item-index, 0));
    }
    nav.nav-menu ul li a,
    nav.nav-menu.active ul li a {
        display: block;
        color: #222222 !important;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 13px 20px 13px 24px;
        letter-spacing: 0.02em;
        border-left: 3px solid transparent;
        transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
        text-decoration: none;
        background-color: #ffffff;
    }
    nav.nav-menu ul li a:hover,
    nav.nav-menu ul li a:focus {
        color: #FF8C00 !important;
        border-left-color: #FF8C00;
        background-color: #fff8f0;
    }
    .main-content {
        position: relative;
        z-index: 800;
    }
    @keyframes slideInMenu {
        from { transform: translateX(-18px); opacity: 0; }
        to   { transform: translateX(0);     opacity: 1; }
    }
    .phone-numbers {
        position: fixed;
        top: 80px;
        right: 10px;
        background-color: white;
        padding: 10px;
        border: 1px solid #855a2a;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        width: auto;
        min-width: 200px;
        padding-bottom: 0;
    }
    .address-block {
        position: fixed;
        top: 80px;
        right: 10px;
        background-color: white;
        padding: 10px;
        border: 1px solid #855a2a;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        word-wrap: break-word;
        width: auto;
        max-width: 80vw;
    }
    .address-block span {
        display: block;
        color: #000000;
        margin: 5px 0;
        white-space: normal;
    }
    .phone-numbers a {
        display: block;
        color: #000000;
        margin: 5px 0;
        text-decoration: none;
    }
    #ingnsLogo { display: none; }
    #logo { display: none; }
    .sticky-header .header-icon {
        content: url('../Ikone/callGray.png');
    }
    .sticky-header .location-icon {
        content: url('../Ikone/locationGray.png');
        transform: scale(1.1);
    }
    .sticky-header .location-icon:hover {
        transform: scale(1.3);
    }
}

/* ─── Very small screens (≤360px) ────────────────────────────────────────── */
@media (min-width: 0px) and (max-width: 360px) {
    body {
        padding: 0;
    }
    .main-content {
        padding: 3%;
    }
    .video-section {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        margin-top: 71px;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    .video-background {
        display: block;
        position: absolute;
        top: -2px;
        left: -2px;
        width: calc(100% + 4px);
        height: calc(100% + 4px);
        object-fit: cover;
        object-position: center bottom;
        transform: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .top-bar-section {
        display: none;
    }
    .sticky-header {
        background-color: #ffffff00 !important;
        height: auto;
    }
    .sticky-header:hover .top-bar,
    .sticky-header.scrolled .top-bar {
        background-color: #fffffff6 !important;
    }
    .sticky-header .top-bar {
        transition: none !important;
        background-color: #ffffffe5 !important;
    }
    .sticky-header nav ul li a {
        color: #000000 !important;
    }
    .sticky-header nav {
        background-color: #fdcf8a00 !important;
    }
    .sticky-header nav ul {
        background-color: #ffffff00 !important;
    }
    .icons-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding: 5%;
        padding-left: 0;
        padding-bottom: 0;
    }
    .ingns-small-logo {
        order: 1;
        align-items: flex-start;
        width: 80%;
    }
    .ingns-small-logo img.small-logo {
        width: 100%;
        height: auto !important;
        content: url('../images/ingns-logo-900.png');
        margin-left: 0;
    }
    .location-block {
        order: 2;
        padding-right: 0%;
        padding-left: 2%;
    }
    .phoneNumber-block {
        order: 3;
        padding-right: 5%;
    }
    .menu-button {
        display: block !important;
        background-color: #e4e1e1;
        color: rgb(0, 0, 0);
        padding: 1px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        position: fixed;
        z-index: 1005;
        top: 56px;
        left: 0;
    }
    .menu-toggle {
        display: block !important;
        position: relative;
        background-color: rgba(255, 255, 255, 0);
    }

    /* ── Nav drawer ── */
    nav.nav-menu {
        visibility: hidden;
        pointer-events: none;
        position: fixed;
        top: 84px;
        left: 0;
        width: 78vw;
        max-width: 290px;
        height: auto;
        max-height: calc(100vh - 84px);
        background-color: #ffffff !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22);
        z-index: 1003;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.3s;
        border-top: 3px solid #FF8C00;
    }
    nav.nav-menu.active {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s;
    }
    nav.nav-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 78vw;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.40);
        z-index: 1002;
    }
    nav.nav-menu ul {
        flex-direction: column;
        background-color: #ffffff;
        padding: 0;
        margin: 0;
    }
    nav.nav-menu ul li {
        padding: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #f0f0f0;
    }
    nav.nav-menu.active ul li {
        opacity: 0;
        animation: slideInMenu 0.25s ease forwards;
        animation-delay: calc(0.07s * var(--item-index, 0));
    }
    nav.nav-menu ul li a,
    nav.nav-menu.active ul li a {
        display: block;
        color: #222222 !important;
        font-size: 1.05rem;
        font-weight: 600;
        padding: 13px 20px 13px 24px;
        letter-spacing: 0.02em;
        border-left: 3px solid transparent;
        transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
        text-decoration: none;
        background-color: #ffffff;
    }
    nav.nav-menu ul li a:hover,
    nav.nav-menu ul li a:focus {
        color: #FF8C00 !important;
        border-left-color: #FF8C00;
        background-color: #fff8f0;
    }
    .main-content {
        position: relative;
        z-index: 800;
    }
    @keyframes slideInMenu {
        from { transform: translateX(-18px); opacity: 0; }
        to   { transform: translateX(0);     opacity: 1; }
    }
    .phone-numbers {
        position: fixed;
        top: 80px;
        right: 10px;
        background-color: white;
        padding: 10px;
        border: 1px solid #855a2a;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        width: auto;
        min-width: 200px;
        padding-bottom: 0;
    }
    .address-block {
        position: fixed;
        top: 80px;
        right: 10px;
        background-color: white;
        padding: 10px;
        border: 1px solid #855a2a;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        word-wrap: break-word;
        width: auto;
        max-width: 80vw;
    }
    .address-block span {
        display: block;
        color: #000000;
        margin: 5px 0;
        white-space: normal;
    }
    .phone-numbers a {
        display: block;
        color: #000000;
        margin: 5px 0;
        text-decoration: none;
    }
    #ingnsLogo { display: none; }
    #logo { display: none; }
    .sticky-header .header-icon {
        content: url('../Ikone/callGray.png');
    }
    .sticky-header .location-icon {
        content: url('../Ikone/locationGray.png');
        transform: scale(1.1);
    }
    .sticky-header .location-icon:hover {
        transform: scale(1.3);
    }
}



