/* ==========================================================
   Suracsh — global responsive fixes (loaded last on every page)
   ========================================================== */

/* 1. Header blur lives on a pseudo-element.
      A backdrop-filter on the header itself turns it into the containing block of the
      fixed mobile menu, which shrank the menu to a few pixels after scrolling and
      pushed the page 2x wider (sideways scroll). */
.site-header.scrolled {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
}
.site-header.scrolled::before {
    opacity: 1;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* 2. Never allow sideways page scroll */
html, body { overflow-x: clip; }
img, video, svg { max-width: 100%; }

/* 3. Mobile / tablet menu */
@media (max-width: 1050px) {
    .site-header .nav-links {
        inset: 80px 0 0;
        visibility: hidden;
        overscroll-behavior: contain;
        transition: transform .35s ease, visibility 0s linear .35s;
    }
    .menu-open .site-header .nav-links {
        visibility: visible;
        transition: transform .35s ease, visibility 0s;
    }
    body.menu-open { overflow: hidden; }
    .site-header .menu-btn { min-width: 44px; min-height: 44px; }
}

/* 4. Comfortable tap targets and long words on small screens */
@media (max-width: 700px) {
    h1, h2, h3 { overflow-wrap: break-word; }
}

/* 5. Page-specific mobile fixes found during the full review */

/* Home hero: styles.css turns the hero text into a light translucent card on small phones,
   but the copy is white — make the card dark so it is readable. */
@media (max-width: 540px) {
    .hero .hero-content {
        background: linear-gradient(180deg, rgba(3, 7, 11, .6), rgba(3, 7, 11, .86));
        border: 1px solid rgba(255, 255, 255, .12);
        color: #fff;
		padding: 30px 20px;
    }
    .hero .hero-content p { color: #eef2f5; }
}

/* Odour Control Hub: the "Application Matrix" label was white on a light background */
.odour-hub .matrix-section .section-line span { color: #0b0b0b; }

/* Company & Vision: milestone cards were far taller than their content on phones */
@media (max-width: 700px) {
    .milestone-grid > * { min-height: 0 !important; }
}
