/* =========================================================
   DUROMECH — main.css
   Shared styles used across ALL pages
========================================================= */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    background: #FFFBF5;
    color: #1C1917;
    overflow-x: hidden;
}
p  { font-size: 1rem; line-height: 1.75; }
li { font-size: .97rem; line-height: 1.7; }

/* ── Scroll Progress Bar ── */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #EA580C, #F97316, #FB923C);
    z-index: 9999;
    transition: width .1s linear;
}

/* ── Navbar ── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
/* Hero gradient scrim */
#navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 130%;
    background: linear-gradient(to bottom, rgba(0,0,0,.52) 0%, transparent 100%);
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: -1;
}
#navbar.scrolled::before { opacity: 0; }
#navbar.scrolled {
    padding: .75rem 0;
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 40px rgba(0,0,0,.10);
}
/* Logo colours */
#navbar .logo-word-duro { color: #fff;    transition: color .3s; }
#navbar .logo-word-mech { color: #FB923C; transition: color .3s; }
#navbar .logo-sup       { color: #FB923C; transition: color .3s; }
#navbar.scrolled .logo-word-duro { color: #1C1917; }
#navbar.scrolled .logo-word-mech { color: #EA580C; }
#navbar.scrolled .logo-sup       { color: #EA580C; }
/* — for pages where navbar is always on light bg (no hero video) — */
#navbar.light-nav .ham-line       { background: #44403C; }
#navbar.light-nav .nav-link       { color: #44403C; }
#navbar.light-nav .phone-link     { color: #44403C; }
#navbar.light-nav .phone-icon-wrap { background: #FFF7ED; }

/* Phone link */
#navbar .phone-link { color: rgba(255,255,255,.85); transition: color .3s; }
#navbar.scrolled .phone-link { color: #44403C; }
#navbar .phone-icon-wrap { background: rgba(255,255,255,.15); transition: background .3s; }
#navbar.scrolled .phone-icon-wrap { background: #FFF7ED; }
#navbar .phone-icon { color: #FB923C; }

/* Nav links */
.nav-link {
    position: relative;
    color: rgba(255,255,255,.88);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .01em;
    transition: color .3s;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #EA580C, #F97316);
    border-radius: 2px;
    transition: width .3s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover { color: #FB923C; }
.nav-link:hover::after { width: 100%; }
#navbar.scrolled .nav-link { color: #44403C; }
#navbar.scrolled .nav-link:hover { color: #EA580C; }
.nav-link.nav-active { color: #EA580C !important; }
.nav-link.nav-active::after { width: 100%; }

/* ── Dropdown ── */
.nav-dropdown {
    position: relative;
}
.nav-dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.dropdown-chevron {
    font-size: .55rem;
    transition: transform .3s;
}
.nav-dropdown:hover .dropdown-chevron { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    padding: .5rem;
    box-shadow: 0 20px 48px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.03);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 100;
}
/* Invisible bridge to prevent hover gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -10px;
    right: -10px;
    height: 24px;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    border-radius: .7rem;
    color: #44403C;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.dropdown-link:hover {
    background: #FFF7ED;
    color: #EA580C;
}
.dropdown-link .dd-icon {
    width: 36px; height: 36px;
    border-radius: .6rem;
    background: #F5F5F4;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    color: #78716C;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.dropdown-link:hover .dd-icon {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #fff;
}

/* ── Wide products dropdown (2-column) ── */
.dropdown-menu--wide {
    min-width: 520px !important;
    max-height: none !important;
    overflow: visible !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Mobile dropdown accordion */
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1rem;
    border-radius: 1rem;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1C1917;
    background: none;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.mobile-dropdown-toggle:hover { background: #FFF7ED; color: #EA580C; }
.mobile-dropdown-toggle .mob-chev {
    font-size: .65rem;
    color: #A8A29E;
    transition: transform .3s, color .3s;
}
.mobile-dropdown-toggle.open .mob-chev { transform: rotate(180deg); color: #EA580C; }
.mobile-dropdown-sub {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease;
}
/* height is set via JS scrollHeight — no open class needed */
.mobile-dropdown-sub a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1rem .65rem 2.5rem;
    font-size: .95rem;
    font-weight: 600;
    color: #57534E;
    text-decoration: none;
    border-radius: .65rem;
    transition: background .2s, color .2s;
}
.mobile-dropdown-sub a:hover { background: #FFF7ED; color: #EA580C; }
.mobile-dropdown-sub a i { width: 16px; text-align: center; font-size: .75rem; color: #A8A29E; }
.mobile-dropdown-sub a:hover i { color: #EA580C; }

/* Hamburger lines — always visible */
#navbar .ham-line {
    background: rgba(255,255,255,.95);
    transition: background .3s, transform .35s, opacity .3s;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
}
#navbar.scrolled .ham-line { background: #292524; }

/* Mobile menu — hidden off-screen by default, slides in */
/* (consolidated override at end of file controls all properties via !important) */

/* ── CTA Button ── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border-radius: 9999px;
    background: linear-gradient(135deg, #F97316, #EA580C);
    box-shadow: 0 4px 20px rgba(234,88,12,.35);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}
.cta-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.25), transparent);
    opacity: 0; transition: opacity .25s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(234,88,12,.45); }
.cta-btn:hover::before { opacity: 1; }
.cta-btn .arrow { transition: transform .25s; }
.cta-btn:hover .arrow { transform: translateX(4px); }

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, #EA580C, #F97316, #FB923C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section label ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #EA580C;
}
.section-label::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: linear-gradient(90deg,#EA580C,#F97316);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Reveal animations ── */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
    position: fixed;
    bottom: 1.75rem; right: 1.75rem;
    z-index: 500;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,.45);
    color: white;
    font-size: 1.6rem;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}
.whatsapp-fab::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-ring 2.5s ease-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.6); }

/* ── Back to Top ── */
#back-to-top {
    position: fixed;
    bottom: 6rem; right: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(234,88,12,.4);
    opacity: 0; pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    z-index: 990;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(234,88,12,.55); }

/* ── Footer ── */
#footer {
    background: linear-gradient(135deg, #1C1917 70%, #2a1610);
    color: rgba(255,255,255,.65);
    font-size: 1rem;
}
.footer-link { color: rgba(255,255,255,.55); font-size: .95rem; transition: color .2s; text-decoration: none; }
.footer-link:visited { color: rgba(255,255,255,.55); }
.footer-link:hover { color: #F97316; }
.footer-link:visited:hover { color: #F97316; }
.social-btn {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.55); font-size: .9rem;
    transition: background .25s, border-color .25s, color .25s;
    text-decoration: none;
}
.social-btn:hover { background: #EA580C; border-color: #EA580C; color: #fff; }

/* ── Badge pill ── */
.badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .9rem; border-radius: 9999px;
    background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.35);
    color: #EA580C; font-size: .75rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
}

/* ── Country badge ── */
.country-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .85rem; border-radius: 9999px;
    background: #F5F5F4; border: 1px solid #E7E5E4;
    font-size: .85rem; font-weight: 600; color: #44403C;
    transition: background .2s, border-color .2s, color .2s;
}
.country-badge:hover { background: #FFF7ED; border-color: #FB923C; color: #EA580C; }

/* ── Form inputs ── */
.form-input {
    width: 100%;
    padding: 1rem 1.35rem;
    border: 2px solid #E7E5E4;
    border-radius: .875rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem; color: #1C1917; background: #fff;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.form-input:focus { border-color: #F97316; box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
.form-input::placeholder { color: #A8A29E; }
textarea.form-input { resize: vertical; min-height: 150px; }
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8A29E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Keyframes ── */
@keyframes pulse-ring {
    0%   { transform: scale(.85); opacity: .8; }
    100% { transform: scale(1.5); opacity: 0;  }
}
@keyframes pulse-ring-custom {
    0%   { transform: scale(.85); opacity: .8; }
    100% { transform: scale(1.5); opacity: 0;  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE OVERRIDES
══════════════════════════════════════════════ */

/* ── Extra small (≤ 375px) ── */
@media (max-width: 375px) {
    html { font-size: 16px; }
    .cta-btn { padding: .75rem 1.25rem; font-size: .9rem; gap: .5rem; }
    #navbar { padding: 1rem 0; }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
    /* Progress bar */
    #progress-bar { height: 2px; }

    /* Navbar height */
    #navbar { padding: 1rem 0; }

    /* Mobile menu scrollable */
    #mobile-menu { overflow-y: auto; }
    #mobile-menu .flex.flex-col { padding-bottom: 2rem; }

    /* Dropdown sub scrollable on very small screens */
    .mobile-dropdown-sub { max-height: none !important; overflow-y: auto; }

    /* CTA button full-width friendly */
    .cta-btn { padding: .8rem 1.5rem; font-size: .95rem; }

    /* Stats numbers */
    .stat-number { font-size: 2.5rem !important; }

    /* Section label smaller */
    .section-label { font-size: .75rem; }

    /* Form inputs comfortable touch size */
    .form-input { padding: .9rem 1rem; font-size: 1rem; }

    /* Country badges smaller */
    .country-badge { font-size: .78rem; padding: .3rem .7rem; }

    /* Footer columns stack */
    #footer .grid { gap: 2rem; }

    /* WhatsApp FAB smaller */
    .whatsapp-fab { width: 50px; height: 50px; font-size: 1.4rem; right: 1rem; bottom: 1rem; }
    #back-to-top  { right: 1rem; bottom: 5rem; }
}

/* ── Tablet (641px – 1023px) ── */
@media (min-width: 641px) and (max-width: 1023px) {
    /* Services tab layout stacks cleanly */
    .service-tab { padding: .9rem 1rem; }

    /* Products grid 2-col on tablet */
    /* (already grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 via Tailwind) */

    /* Stats bar 2×2 on tablet */
    /* (already grid-cols-2 lg:grid-cols-4 via Tailwind) */

    /* About section stacks */
    /* (already grid lg:grid-cols-2 via Tailwind) */

    /* Wider dropdown on tablet — prevent overflow */
    .dropdown-menu--wide { min-width: 400px !important; }

    /* Contact cards 2-col on tablet */
    /* handled by sm:grid-cols-2 Tailwind */
}

/* ── Prevent horizontal overflow globally ── */
body { overflow-x: hidden; }
* { max-width: 100%; box-sizing: border-box; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

/* ── Touch-friendly tap targets (min 44px) ── */
@media (max-width: 1023px) {
    .nav-link, .dropdown-link, .footer-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .mobile-dropdown-toggle { min-height: 52px; }
    .mobile-dropdown-sub a  { min-height: 44px; }
    .cta-btn { min-height: 44px; }

    /* Wider dropdown keep inside viewport */
    .dropdown-menu--wide {
        min-width: min(520px, calc(100vw - 2rem)) !important;
    }

    /* Services tab panel min-height reduced on mobile */
    .lg\:col-span-3.bg-brand-50 { min-height: auto !important; }
}

/* ── Hero responsive ── */
@media (max-width: 768px) {
    #hero { min-height: 100svh; }
    .hero-accent-bar { display: none; }
    .scroll-indicator { display: none; }
    /* Ensure hero content has safe bottom padding above fold edge */
    #hero .relative.z-10 { padding-bottom: 5rem; }
}

/* ── Services tab responsive ── */
@media (max-width: 1023px) {
    .service-panel p  { font-size: .95rem !important; }
    .service-panel li { font-size: .9rem !important; }
}

/* ── Blog cards responsive ── */
@media (max-width: 640px) {
    .blog-img-ph { height: 140px; }
    .blog-card h3 { font-size: 1rem !important; }
}

/* ── About stat cards 1-col on mobile ── */
@media (max-width: 480px) {
    .grid.grid-cols-2.gap-4 .about-stat-card { min-height: 0; }
}

/* ── Process steps mobile ── */
@media (max-width: 640px) {
    .process-step:not(:last-child)::after {
        left: 1.5rem;
    }
    .process-num { width: 3rem; height: 3rem; font-size: .9rem; }
}

/* ── Testimonials dark section ── */
@media (max-width: 640px) {
    .testi-card { padding: 1.5rem; }
}

/* ── Contact section ── */
@media (max-width: 1023px) {
    .form-card { position: static; }
}
@media (max-width: 640px) {
    .form-card { padding: 1.5rem; border-radius: 1.25rem; }
    #contact .grid.sm\:grid-cols-2 { grid-template-columns: 1fr; }
}

/* ── Footer responsive ── */
@media (max-width: 640px) {
    #footer { padding-top: 3rem; }
    #footer .grid { grid-template-columns: 1fr; }
    .social-btn { width: 42px; height: 42px; }
}


/* ═══════════════════════════════════════════════════════════════
   UIVERSE.IO INSPIRED UPGRADES
   All animations, effects, and micro-interactions
═══════════════════════════════════════════════════════════════ */

/* ── 1. Shimmer CTA Button ──────────────────────────────────── */
.cta-btn {
    position: relative;
    overflow: hidden;
}
.cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-20deg);
    transition: left .65s ease;
    pointer-events: none;
}
.cta-btn:hover::before { left: 160%; }
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(234,88,12,.55);
}

/* ── 2. Section Navigation Dots (right side) ────────────────── */
.section-dots {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .65rem;
    z-index: 400;
}
.s-dot {
    width: 8px; height: 8px;
    border-radius: 9999px;
    background: rgba(120,113,108,.35);
    border: none; cursor: pointer; padding: 0;
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}
.s-dot::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + .7rem);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: rgba(28,25,23,.88);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: .4rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.s-dot:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.s-dot.active {
    height: 28px;
    background: #F97316;
    box-shadow: 0 0 14px rgba(249,115,22,.55);
}
.s-dot:not(.active):hover { background: rgba(249,115,22,.5); transform: scale(1.3); }
@media (max-width: 1023px) { .section-dots { display: none; } }

/* ── 3. Typing Cursor ───────────────────────────────────────── */
.typing-text { border-right: 3px solid #F97316; padding-right: 4px; animation: blink .7s step-end infinite; white-space: nowrap; overflow: hidden; }
@keyframes blink { 0%,100% { border-color: #F97316; } 50% { border-color: transparent; } }

/* ── 4. Magnetic Button Wrapper ─────────────────────────────── */
.magnetic-wrap { display: inline-block; }

/* ── 5. Staggered reveal delays ─────────────────────────────── */
.stagger-1 { transition-delay: .05s !important; }
.stagger-2 { transition-delay: .10s !important; }
.stagger-3 { transition-delay: .15s !important; }
.stagger-4 { transition-delay: .20s !important; }
.stagger-5 { transition-delay: .25s !important; }
.stagger-6 { transition-delay: .30s !important; }

/* ── 6. Certification Marquee ───────────────────────────────── */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    padding: 0 2.5rem;
    color: #78716C;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}
.marquee-item i { color: #EA580C; font-size: 1.1rem; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── 7. Noise texture on hero ───────────────────────────────── */
.hero-noise {
    position: absolute; inset: 0;
    opacity: .04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── Video Modal Fade ─────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Enhanced link hover underline ───────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #F97316, #EA580C);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nav-link:hover::after,
.nav-link.nav-active::after { transform: scaleX(1); }

/* ── Service / Feature cards glow ────────────────────────── */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: transform .35s, box-shadow .35s, border-color .35s !important;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249,115,22,.05), transparent);
    opacity: 0; transition: opacity .35s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 48px rgba(234,88,12,.1) !important;
    border-color: rgba(249,115,22,.35) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FONT UPDATE: Poppins (headings) + Inter (body)
   + COMPREHENSIVE MOBILE LAYOUT FIX
═══════════════════════════════════════════════════════════════ */

/* Override Tailwind font-syne and font-jakarta to new fonts */
.font-syne,
[class*="font-syne"] {
    font-family: 'Poppins', system-ui, sans-serif !important;
}
.font-jakarta,
[class*="font-jakarta"] {
    font-family: 'Inter', system-ui, sans-serif !important;
}

/* ── Base typography scale (mobile-first, fluid) ───────────── */
h1 { font-family: 'Poppins', system-ui, sans-serif; font-size: clamp(2rem, 8vw, 4.5rem); line-height: 1.1; }
h2 { font-family: 'Poppins', system-ui, sans-serif; font-size: clamp(1.6rem, 5vw, 2.75rem); line-height: 1.2; }
h3 { font-family: 'Poppins', system-ui, sans-serif; font-size: clamp(1.1rem, 3vw, 1.5rem); line-height: 1.3; }
h4 { font-family: 'Poppins', system-ui, sans-serif; font-size: clamp(1rem, 2.5vw, 1.2rem); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE LAYOUT FIX — Prevent stretch / overflow
═══════════════════════════════════════════════════════════════ */

/* Global containment */
html, body { max-width: 100vw; overflow-x: hidden; }
img, video, iframe, svg, picture { max-width: 100%; }
section, header, footer, main, nav { max-width: 100vw; }

/* ── Fix stretched sections on mobile ──────────────────────── */
@media (max-width: 640px) {

    /* Font size scale for mobile */
    html { font-size: 15px; }

    /* Headings scale down */
    .text-5xl  { font-size: clamp(1.8rem, 8vw, 2.5rem) !important; }
    .text-6xl  { font-size: clamp(2rem,  9vw, 3rem)    !important; }
    .text-7xl  { font-size: clamp(2.2rem,10vw,3.5rem)  !important; }
    .text-4xl  { font-size: clamp(1.5rem, 7vw, 2rem)   !important; }
    .text-3xl  { font-size: clamp(1.3rem, 6vw, 1.75rem)!important; }

    /* Section padding reduced */
    .py-24 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .py-20 { padding-top: 3rem   !important; padding-bottom: 3rem  !important; }
    .py-32 { padding-top: 4rem   !important; padding-bottom: 4rem  !important; }
    .lg\:py-28 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .lg\:py-32 { padding-top: 4rem   !important; padding-bottom: 4rem   !important; }

    /* Container padding */
    .px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    .lg\:px-8 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

    /* Max-width containers shouldn't overflow */
    .max-w-7xl, .max-w-4xl, .max-w-3xl, .max-w-2xl, .max-w-xl {
        max-width: 100% !important;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Hero fixes */
    #hero { min-height: 100svh; }
    #video-bg-wrapper iframe {
        width: 300vw !important;
        min-width: 300vw !important;
        min-height: 56vw  !important;
    }
    .hero-accent-bar { display: none; }
    .scroll-indicator { display: none; }

    /* Marquee section */
    #certifications { overflow: hidden; }
    .marquee-track  { animation-duration: 18s; }

    /* Stats bar — prevent text overflow */
    .stat-number { font-size: 2.5rem !important; }
    #stats-bar .text-5xl { font-size: 2.5rem !important; }

    /* About stat cards — 2 per row but constrained */
    .grid.grid-cols-2 .about-stat-card { padding: 1rem !important; }
    .about-stat-card h3 { font-size: .9rem !important; }
    .about-stat-card p  { font-size: .8rem !important; }

    /* Product cards — 1 column on mobile with full width */
    #products .grid { grid-template-columns: 1fr !important; }
    .product-card { width: 100% !important; border-radius: 1rem !important; }
    /* Disable 3D tilt on mobile (causes layout issues) */
    .product-card:hover {
        transform: translateY(-4px) !important;
        perspective: none !important;
    }

    /* Service tabs — scroll horizontally */
    .service-tab { font-size: .82rem !important; padding: .65rem .85rem !important; }

    /* Testimonial cards */
    .testi-card { padding: 1.5rem !important; border-radius: 1rem !important; }
    .testi-card::after { font-size: 5rem !important; top: -.5rem !important; }

    /* Contact form */
    .form-card { padding: 1.5rem !important; border-radius: 1.25rem !important; position: static !important; }
    .form-input { font-size: .95rem !important; }

    /* Feature / service cards */
    .feature-card { padding: 1.25rem !important; border-radius: 1rem !important; }

    /* CTA section buttons — stack vertically */
    section .flex.flex-wrap.justify-center.gap-4 {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    section .flex.flex-wrap.justify-center.gap-4 a {
        text-align: center !important;
        justify-content: center !important;
    }

    /* Disable section dots on very small screens */
    .section-dots { display: none !important; }

    /* Hero CTA row */
    .flex.flex-wrap.items-center.gap-4.mt-10 {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .cta-btn { font-size: .92rem !important; padding: .8rem 1.75rem !important; }

    /* Footer */
    #footer .grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    #footer { padding-top: 3rem !important; }

    /* WhatsApp FAB */
    .whatsapp-fab { right: 1rem !important; bottom: 1.25rem !important; width: 52px !important; height: 52px !important; }
    #back-to-top  { right: 1rem !important; bottom: 5.5rem !important; }

    /* Blog cards */
    .blog-card h3 { font-size: .95rem !important; }

    /* Section labels */
    .section-label { font-size: .72rem !important; }

    /* Country badges */
    .country-badge { font-size: .75rem !important; }

    /* Process steps connector */
    .process-step::after { left: 1.25rem !important; }
}

/* ── Small tablet (641 – 768px) ─────────────────────────────── */
@media (min-width: 641px) and (max-width: 768px) {
    html { font-size: 15.5px; }
    .product-card:hover { transform: translateY(-4px) !important; }
    #products .grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Medium tablet (769 – 1023px) ──────────────────────────── */
@media (min-width: 769px) and (max-width: 1023px) {
    html { font-size: 16px; }
    #products .grid { grid-template-columns: repeat(2, 1fr); }
    .product-card:hover { transform: translateY(-6px) !important; }
}

/* ── Fix the typing text on mobile ─────────────────────────── */
@media (max-width: 640px) {
    #hero-typing {
        display: block;
        font-size: clamp(1.5rem, 7.5vw, 2.5rem) !important;
        border-right-width: 2px !important;
    }
    h1.font-syne, h1[class*="text-5xl"], h1[class*="text-6xl"], h1[class*="text-7xl"] {
        font-size: clamp(1.85rem, 8.5vw, 3rem) !important;
        line-height: 1.15 !important;
    }
}

/* ── Mobile menu full-height fix ───────────────────────────── */
@media (max-width: 1023px) {
    #mobile-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Touch-friendly minimum tap targets */
    .mobile-dropdown-toggle { min-height: 50px; font-size: 1rem !important; }
    .mobile-dropdown-sub a  { min-height: 44px; font-size: .92rem !important; padding: .65rem 1rem !important; }
    .mobile-nav-link        { min-height: 50px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU — (overridden by bulletproof section at end of file)
═══════════════════════════════════════════════════════════════ */

/* ── Mobile nav links inside open menu ── */
#mobile-menu .mobile-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: .9rem 1rem !important;
    border-radius: .85rem !important;
    font-family: 'Poppins', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #1C1917 !important;
    text-decoration: none !important;
    transition: background .2s, color .2s !important;
}
#mobile-menu .mobile-nav-link:hover {
    background: #FFF7ED !important;
    color: #EA580C !important;
}

/* ── Dropdown toggle & sub styles — (overridden by bulletproof section at end of file) ── */

/* ═══════════════════════════════════════════════════════════════
   PAGE LOADER
═══════════════════════════════════════════════════════════════ */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0c0703;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .55s cubic-bezier(.4,0,.2,1), visibility .55s;
    /* subtle noise */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}
#page-loader.pl-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Inner content block */
.pl-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    animation: pl-rise .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes pl-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Spinning ring around logo */
.pl-logo-ring {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.pl-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #F97316;
    border-right-color: rgba(249,115,22,.3);
    animation: pl-spin 1s linear infinite;
}
.pl-ring::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(249,115,22,.12);
}
@keyframes pl-spin {
    to { transform: rotate(360deg); }
}

/* Logo inside ring — we use a text fallback if img fails */
.pl-logo-ring-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    padding: 10px;
}

/* Progress bar */
.pl-bar-wrap {
    width: 160px;
    height: 2px;
    background: rgba(255,255,255,.08);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.pl-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #EA580C, #F97316, #FB923C);
    border-radius: 9999px;
    animation: pl-fill 1.4s cubic-bezier(.4,0,.2,1) .15s forwards;
    box-shadow: 0 0 12px rgba(249,115,22,.5);
}
@keyframes pl-fill {
    from { width: 0%; }
    to   { width: 100%; }
}

/* Quote */
.pl-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    animation: pl-quote-in .6s ease .55s both;
}
@keyframes pl-quote-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pl-quote-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.pl-quote-text {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: .88rem;
    font-style: italic;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    letter-spacing: .01em;
    text-align: center;
    max-width: 240px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE DROPDOWN FIX — display:none/block (no height leak)
   Override ALL previous max-height/opacity attempts
═══════════════════════════════════════════════════════════════ */
.mobile-dropdown-sub {
    display: none !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    transition: none !important;
}
.mobile-dropdown-sub.open {
    display: block !important;
    animation: mob-sub-in .25s ease both;
}
@keyframes mob-sub-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Separator line between mobile nav items */
#mobile-menu .mobile-nav-link + .mobile-nav-link,
#mobile-menu nav > div + div,
#mobile-menu nav > a + div,
#mobile-menu nav > div + a {
    border-top: 1px solid #F5F5F4;
}

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATES SECTION
═══════════════════════════════════════════════════════════════ */
#iso-certs {
    background: linear-gradient(135deg, #1C1917 0%, #2a1610 50%, #1C1917 100%);
    position: relative;
    overflow: hidden;
}
#iso-certs::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249,115,22,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,115,22,.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
/* Certificate image card */
.cert-img-card {
    position: relative;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(249,115,22,.18);
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s, border-color .35s;
    group: true;
}
.cert-img-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(249,115,22,.55);
    box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(249,115,22,.25);
}
.cert-img-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter .35s;
}
.cert-img-card:hover img { filter: brightness(1.05); }
/* Badge overlay on card */
.cert-badge-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: .85rem 1rem;
    background: linear-gradient(to top, rgba(15,9,6,.9) 60%, transparent);
    display: flex;
    align-items: center;
    gap: .5rem;
    transform: translateY(4px);
    transition: transform .3s;
}
.cert-img-card:hover .cert-badge-overlay { transform: translateY(0); }
.cert-badge-overlay .cert-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #EA580C);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: .7rem;
    color: #fff;
}
.cert-badge-overlay span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    color: #fff;
    line-height: 1.25;
}
/* View button on hover */
.cert-view-btn {
    position: absolute;
    top: .75rem; right: .75rem;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .55rem;
    padding: .3rem .65rem;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.cert-img-card:hover .cert-view-btn { opacity: 1; }
/* In about-us (light bg) - override cert-card */
.cert-card {
    display: flex; align-items: flex-start; gap: 1rem;
    background: #fff; border: 1px solid #E7E5E4;
    border-radius: 1.25rem; padding: 1.5rem;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow:0 16px 40px rgba(234,88,12,.1); border-color:#FB923C; }

/* ── Hamburger: only visible on mobile/tablet, hidden on desktop ── */
@media (min-width: 1024px) {
    #hamburger { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO GALLERY
═══════════════════════════════════════════════════════════════ */
.vg-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E7E5E4;
    cursor: pointer;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.vg-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(234,88,12,.12); }
.vg-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.vg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.6));
}
.vg-play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(1);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #EA580C);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
    box-shadow: 0 8px 24px rgba(234,88,12,.4);
    padding-left: 3px;
}
.vg-card:hover .vg-play-btn { transform: translate(-50%,-50%) scale(1.15); }
.vg-tag {
    position: absolute; top: .75rem; left: .75rem;
    background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
    color: #fff; font-size: .72rem; font-weight: 700;
    padding: .25rem .65rem; border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(255,255,255,.15);
}
.vg-icon-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.vg-info { padding: 1rem 1.1rem 1.1rem; }
.vg-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .9rem; color: #1C1917; margin-bottom: .3rem; }
.vg-sub { font-size: .78rem; color: #78716C; font-family: Inter, sans-serif; }

/* ═══════════════════════════════════════════════════════════════
   INDIA PLANT MAP
═══════════════════════════════════════════════════════════════ */
.map-svg-wrap svg { filter: drop-shadow(0 0 30px rgba(249,115,22,.1)); }
/* Pulsing animation for city dots */
.map-pulse-outer {
    animation: map-pulse 2.5s ease-out infinite;
    transform-origin: center;
}
@keyframes map-pulse {
    0%   { opacity: .7; r: 8; }
    70%  { opacity: 0; r: 18; }
    100% { opacity: 0; r: 18; }
}
.map-city { cursor: pointer; }
.map-city:hover .map-dot { fill: #FB923C; r: 7; }
.map-dot { transition: r .2s, fill .2s; }

/* Info panel */
.map-info-panel {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 1.25rem;
    padding: 1.5rem;
    min-height: 160px;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
}
.map-info-default { text-align: center; }
.map-info-content { width: 100%; }
.map-info-city { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; color: #F97316; margin-bottom: .5rem; }
.map-info-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; font-size: .85rem; color: rgba(255,255,255,.7); font-family: Inter, sans-serif; }
.map-info-row i { color: #F97316; width: 14px; }

/* Stat cards under map */
.map-stat-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(249,115,22,.15);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}
.map-stat-num { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.6rem; color: #F97316; }
.map-stat-label { display: block; font-size: .75rem; color: rgba(255,255,255,.45); font-family: Inter, sans-serif; margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════════════
   WORLD EXPORT
═══════════════════════════════════════════════════════════════ */
.world-flag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .75rem;
    margin-bottom: 3rem;
}
.flag-tile {
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    padding: 1rem .75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #E7E5E4;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s;
    text-align: center;
}
.flag-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(234,88,12,.1);
    border-color: #FB923C;
}
.flag-emoji { font-size: 2rem; line-height: 1; }
.flag-name { font-size: .72rem; font-weight: 700; color: #57534E; font-family: Inter, sans-serif; }
.flag-tile--more { background: #FFF7ED; border-color: rgba(234,88,12,.3); }
.world-stats-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem;
    padding: 2rem;
    background: #FFF7ED;
    border-radius: 1.5rem;
}
.world-stat { display: flex; align-items: center; gap: 1rem; }
.world-stat div { display: flex; flex-direction: column; }
.world-stat strong { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.25rem; color: #1C1917; }
.world-stat span { font-size: .78rem; color: #78716C; font-family: Inter, sans-serif; }

/* ═══════════════════════════════════════════════════════════════
   WASTE-TO-VALUE CALCULATOR
═══════════════════════════════════════════════════════════════ */
.calc-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    align-items: start;
}
@media (max-width: 767px) { .calc-card { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; } }
.calc-label { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .82rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .5rem; }
.calc-tpd-display { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 3rem; color: #F97316; line-height: 1; margin-bottom: 1.5rem; }
.calc-tpd-display span { font-size: 1.1rem; color: rgba(255,255,255,.45); font-weight: 500; margin-left: .25rem; }
.calc-slider {
    -webkit-appearance: none;
    width: 100%; height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,.12);
    outline: none;
    cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #EA580C);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234,88,12,.5);
    transition: transform .2s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-slider-labels { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .72rem; color: rgba(255,255,255,.3); font-family: Inter, sans-serif; }
.calc-note { margin-top: 1.25rem; font-size: .8rem; color: rgba(255,255,255,.4); font-family: Inter, sans-serif; line-height: 1.5; }
.calc-note strong { color: #FB923C; }
/* Output bars */
.calc-bar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.calc-bar-label { font-size: .82rem; color: rgba(255,255,255,.65); font-family: Inter, sans-serif; display: flex; align-items: center; gap: .4rem; min-width: 120px; }
.calc-bar-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.calc-pct { font-size: .72rem; color: rgba(255,255,255,.4); margin-left: .2rem; }
.calc-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,.08); border-radius: 9999px; overflow: hidden; }
.calc-bar-fill { height: 100%; border-radius: 9999px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.calc-bar-val { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.6); min-width: 42px; text-align: right; font-family: Inter, sans-serif; }
.calc-revenue-box {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.calc-revenue-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.85rem; color: #22C55E; transition: color .3s; }

/* ═══════════════════════════════════════════════════════════════
   EXPERT FAQ
═══════════════════════════════════════════════════════════════ */
.expert-faq-list { display: flex; flex-direction: column; gap: .75rem; }
.efaq-item {
    border: 1px solid #E7E5E4;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.efaq-item.open { border-color: rgba(234,88,12,.35); box-shadow: 0 8px 28px rgba(234,88,12,.08); }
.efaq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1.25rem 1.5rem;
    background: none; border: none; cursor: pointer;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .95rem;
    color: #1C1917; text-align: left;
    transition: background .2s;
}
.efaq-item.open .efaq-question { background: #FFF7ED; color: #EA580C; }
.efaq-icon { margin-right: .5rem; color: #EA580C; font-size: .85rem; }
.efaq-chev { flex-shrink: 0; font-size: .7rem; color: #A8A29E; transition: transform .3s, color .3s; }
.efaq-item.open .efaq-chev { transform: rotate(180deg); color: #EA580C; }
.efaq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height .45s ease, padding .3s;
    padding: 0 1.5rem;
}
.efaq-item.open .efaq-answer { max-height: 600px; padding: 0 1.5rem 1.25rem; }
.efaq-answer p { font-size: .9rem; line-height: 1.75; color: #57534E; font-family: Inter, sans-serif; }
.efaq-answer strong { color: #1C1917; }

/* ═══════════════════════════════════════════════════════════════
   LIVE SEARCH OVERLAY
═══════════════════════════════════════════════════════════════ */
#search-overlay {
    position: fixed; inset: 0; z-index: 99998;
    background: rgba(12,7,3,.85);
    backdrop-filter: blur(16px);
    display: none;
    align-items: flex-start; justify-content: center;
    padding: 7vh 1rem 2rem;
    animation: so-in .25s ease both;
}
#search-overlay.open { display: flex; }
@keyframes so-in { from { opacity:0; } to { opacity:1; } }

#search-box {
    width: 100%; max-width: 680px;
    background: #1C1917;
    border: 1px solid rgba(249,115,22,.25);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.6);
    animation: sb-rise .3s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes sb-rise { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }

#search-input-wrap {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
#search-icon-inner { color: #F97316; font-size: 1rem; flex-shrink: 0; }
#search-input {
    flex: 1; background: none; border: none; outline: none;
    font-family: 'Poppins', sans-serif; font-size: 1.05rem;
    font-weight: 500; color: #fff;
}
#search-input::placeholder { color: rgba(255,255,255,.3); }
#search-close {
    background: rgba(255,255,255,.08); border: none; border-radius: .5rem;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6); cursor: pointer; font-size: .9rem;
    transition: background .2s, color .2s;
}
#search-close:hover { background: rgba(249,115,22,.2); color: #F97316; }

#search-results { max-height: 55vh; overflow-y: auto; padding: .5rem; }
.sr-item {
    display: flex; align-items: center; gap: .85rem;
    padding: .75rem 1rem; border-radius: .75rem;
    text-decoration: none; cursor: pointer;
    transition: background .15s;
    border: 1px solid transparent;
}
.sr-item:hover, .sr-item.sr-active {
    background: rgba(249,115,22,.08);
    border-color: rgba(249,115,22,.2);
}
.sr-cat {
    font-family: 'Poppins', sans-serif; font-size: .65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em;
    min-width: 58px; text-align: center;
    padding: .25rem .5rem; border-radius: 9999px;
    background: rgba(255,255,255,.06);
    flex-shrink: 0;
}
.sr-body { flex: 1; min-width: 0; }
.sr-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .9rem; color: #fff; }
.sr-desc  { font-size: .78rem; color: rgba(255,255,255,.45); font-family: Inter,sans-serif; margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-arrow { color: rgba(255,255,255,.2); font-size: .75rem; }
.sr-item:hover .sr-arrow, .sr-item.sr-active .sr-arrow { color: #F97316; }
.sr-mark { background: rgba(249,115,22,.25); color: #F97316; border-radius: .2rem; padding: 0 .15rem; font-style: normal; }
.sr-empty { text-align: center; padding: 2.5rem 1rem; color: rgba(255,255,255,.4); font-family: Poppins,sans-serif; }
.sr-empty i { font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.sr-empty span { font-size: .8rem; opacity: .6; }
#search-footer {
    padding: .6rem 1.25rem;
    background: rgba(255,255,255,.03);
    border-top: 1px solid rgba(255,255,255,.04);
    font-size: .72rem; color: rgba(255,255,255,.25); font-family: Inter,sans-serif;
    display: flex; justify-content: space-between; align-items: center;
}
#search-footer kbd {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: .25rem; padding: .1rem .35rem; font-size: .65rem;
    font-family: Inter,sans-serif; color: rgba(255,255,255,.4);
}

/* Search trigger button in navbar */
#search-trigger {
    display: flex; align-items: center; gap: .5rem;
    background: rgba(120,113,108,.1);
    border: 1px solid rgba(120,113,108,.2);
    border-radius: .6rem;
    padding: .4rem .85rem;
    cursor: pointer; color: #78716C;
    font-family: Inter,sans-serif; font-size: .78rem;
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
#search-trigger:hover { background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.3); color: #F97316; }
#search-trigger kbd {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(120,113,108,.15); border: 1px solid rgba(120,113,108,.2);
    border-radius: .25rem; padding: .1rem .4rem; font-size: .65rem;
    font-family: Inter,sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   3D MACHINE MODEL SECTION
═══════════════════════════════════════════════════════════════ */
#machine-3d-section {
    background: linear-gradient(135deg, #0a0500 0%, #1a0d05 50%, #0a0500 100%);
    position: relative; overflow: hidden;
}
#machine-3d-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(249,115,22,.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
/* Scene */
.m3d-scene {
    perspective: 900px;
    perspective-origin: 50% 38%;
    display: flex; justify-content: center;
    padding: 2rem 0 1rem;
}
.m3d-wrapper {
    transform-style: preserve-3d;
    animation: m3d-auto-rotate 18s linear infinite;
    position: relative;
    width: 320px; height: 220px;
}
@keyframes m3d-auto-rotate {
    from { transform: rotateY(-25deg) rotateX(10deg); }
    to   { transform: rotateY(335deg) rotateX(10deg); }
}
/* Trommel drum — cylinder approximation using ring slices */
.m3d-drum {
    position: absolute;
    top: 30px; left: 30px;
    width: 260px; height: 130px;
    transform-style: preserve-3d;
}
/* Front face (circle) */
.m3d-face {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(249,115,22,.8);
    background: rgba(249,115,22,.05);
    top: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}
.m3d-face-front { transform: translateZ(130px); left: 0; }
.m3d-face-back  { transform: translateZ(0px);   left: 0; }
/* Ring slices to simulate cylinder surface */
.m3d-ring {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 1.5px solid rgba(249,115,22,.2);
    top: 5px; left: 0;
}
.m3d-ring:nth-child(1) { transform: translateZ(26px); }
.m3d-ring:nth-child(2) { transform: translateZ(52px); }
.m3d-ring:nth-child(3) { transform: translateZ(78px); }
.m3d-ring:nth-child(4) { transform: translateZ(104px); }
/* Cylinder top/bottom panels */
.m3d-panel {
    position: absolute;
    width: 260px; height: 20px;
    background: linear-gradient(135deg, rgba(249,115,22,.2), rgba(234,88,12,.1));
    border: 1px solid rgba(249,115,22,.3);
    border-radius: 4px;
}
.m3d-panel-top    { top: 0;   transform: rotateX(90deg) translateZ(-10px); }
.m3d-panel-bottom { top: 110px; transform: rotateX(90deg) translateZ(10px); }
/* Support legs */
.m3d-leg {
    position: absolute;
    width: 12px; height: 70px;
    background: linear-gradient(to bottom, rgba(249,115,22,.4), rgba(249,115,22,.1));
    border: 1px solid rgba(249,115,22,.3);
    border-radius: 3px;
    bottom: -60px;
}
.m3d-leg-1 { left: 15px; transform: rotateY(0deg); }
.m3d-leg-2 { left: 120px; transform: rotateY(0deg); }
.m3d-leg-3 { left: 230px; transform: rotateY(0deg); }
/* Feed chute */
.m3d-chute {
    position: absolute; top: -45px; right: 20px;
    width: 60px; height: 50px;
    border: 2px solid rgba(249,115,22,.5);
    background: rgba(249,115,22,.08);
    border-radius: 4px;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}
/* Labels */
.m3d-labels { position: relative; margin-top: 1.5rem; }
.m3d-label-row {
    display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem;
}
.m3d-label {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(249,115,22,.08);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 9999px;
    padding: .3rem .8rem;
    font-size: .72rem; font-weight: 700;
    color: rgba(255,255,255,.7);
    font-family: 'Poppins', sans-serif;
    cursor: default;
    transition: background .2s, border-color .2s;
}
.m3d-label:hover { background: rgba(249,115,22,.18); border-color: rgba(249,115,22,.5); color: #F97316; }
.m3d-label-dot { width: 7px; height: 7px; border-radius: 50%; }
/* Drag hint */
.m3d-drag-hint {
    text-align: center; margin-top: 1rem;
    font-size: .75rem; color: rgba(255,255,255,.3);
    font-family: Inter,sans-serif;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
}

/* ═══ LEGAL PAGE STYLES ═══ */
.legal-content {
    max-width: 820px; margin: 0 auto; padding: 5rem 1.5rem 6rem;
    color: #44403C; font-family: Inter, sans-serif; line-height: 1.75;
}
.legal-content h1 { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.25rem; color: #1C1917; margin-bottom: .5rem; }
.legal-content .legal-date { font-size: .85rem; color: #A8A29E; margin-bottom: 2.5rem; }
.legal-content h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.12rem; color: #1C1917; margin-top: 2.5rem; margin-bottom: .5rem; }
.legal-content p, .legal-content li { font-size: .95rem; color: #57534E; margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content a { color: #EA580C; text-decoration: underline; }

/* ── FINAL: Force hamburger hidden on desktop (overrides all previous !important rules) ── */
@media (min-width: 1024px) {
    #hamburger,
    button#hamburger {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* ── Navbar one-line alignment fix ── */
#navbar { white-space: nowrap; }
#navbar .nav-link { white-space: nowrap; }
#navbar .nav-dropdown > a { white-space: nowrap; }
#navbar .phone-link span { white-space: nowrap; }
#navbar > div > div { align-items: center; min-height: 64px; }

/* ── Sub-page hero: unified padding (navbar ~4rem + breathing room) ── */
#service-hero,
#product-hero,
#process-hero,
#about-hero,
#contact-hero,
#products-hero {
    padding-top: 7rem !important;
    padding-bottom: 3.5rem !important;
    min-height: auto !important;
    display: block !important;
}

/* Inner container breathing room */
#service-hero .max-w-7xl,
#product-hero .max-w-7xl,
#process-hero .max-w-7xl,
#about-hero .max-w-7xl,
#contact-hero .max-w-7xl,
#products-hero .max-w-7xl {
    padding-top: 0;
}

/* Mobile: navbar is ~56px, so 5rem gives comfortable gap */
@media (max-width: 1023px) {
    #service-hero,
    #product-hero,
    #process-hero,
    #about-hero,
    #contact-hero,
    #products-hero {
        padding-top: 5.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Small mobile */
@media (max-width: 640px) {
    #service-hero,
    #product-hero,
    #process-hero,
    #about-hero,
    #contact-hero,
    #products-hero {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BULLETPROOF MOBILE FIX (Tailwind-independent)
   Fixes desktop nav leaking on mobile, mobile menu overlay,
   hamburger position, and layout issues across all pages.
═══════════════════════════════════════════════════════════════ */

/* ── 1. FORCE HIDE desktop nav + CTA on mobile/tablet ── */
@media (max-width: 1023px) {
    #desktop-nav,
    #navbar [role="menubar"],
    #desktop-cta {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

/* ── 2. FORCE SHOW desktop nav + CTA on desktop ── */
@media (min-width: 1024px) {
    #desktop-nav,
    #navbar [role="menubar"] {
        display: flex !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
    #desktop-cta {
        display: flex !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
}

/* ── 3. Hamburger button on mobile — visible & properly positioned ── */
@media (max-width: 1023px) {
    #hamburger {
        display: flex !important;
        visibility: visible !important;
        width: 42px !important;
        height: 42px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 0 !important;
        border-radius: .65rem !important;
        background: rgba(255,255,255,.1) !important;
        border: none !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 1001 !important;
        flex-shrink: 0 !important;
        order: 99 !important; /* push to end of flex row */
    }
    #navbar.scrolled #hamburger {
        background: rgba(0,0,0,.06) !important;
    }
}

/* ── 4. Navbar flex container on mobile — just logo + hamburger ── */
@media (max-width: 1023px) {
    #navbar > div > div,
    #navbar .max-w-7xl > div {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        min-height: 56px !important;
    }
    #navbar {
        padding: .75rem 0 !important;
    }
}

/* ── 5. Mobile menu — full screen opaque overlay ── */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9990 !important;
    background: #fff !important;
    transform: translateX(100%) !important;
    transition: transform .42s cubic-bezier(.76, 0, .24, 1) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}
#mobile-menu.open {
    transform: translateX(0) !important;
}

/* Mobile menu inner content — push below header */
#mobile-menu > div {
    padding-top: 4.5rem !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Mobile menu header bar (logo + close) — absolute inside menu */
#mobile-menu > div > div:first-child {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    background: #fff !important;
    padding: .8rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #F5F5F4 !important;
}

/* Menu backdrop */
#menu-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9989 !important;
    background: rgba(28, 25, 23, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* ── 6. Mobile nav links — clean layout ── */
#mobile-menu .mobile-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: .9rem 1rem !important;
    border-radius: .85rem !important;
    font-family: 'Poppins', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #1C1917 !important;
    text-decoration: none !important;
    transition: background .2s, color .2s !important;
}
#mobile-menu .mobile-nav-link:hover {
    background: #FFF7ED !important;
    color: #EA580C !important;
}

/* ── 7. Mobile dropdown toggles ── */
.mobile-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: .9rem 1rem !important;
    border-radius: .85rem !important;
    font-family: 'Poppins', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #1C1917 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}

/* ── 8. Mobile dropdown sub-menus ── */
.mobile-dropdown-sub {
    display: none !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
}
.mobile-dropdown-sub.open {
    display: block !important;
    animation: mob-sub-in .25s ease both !important;
}
.mobile-dropdown-sub a {
    display: flex !important;
    align-items: center !important;
    gap: .6rem !important;
    padding: .65rem 1rem .65rem 2.5rem !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    color: #57534E !important;
    text-decoration: none !important;
    border-radius: .65rem !important;
}
.mobile-dropdown-sub a:hover {
    background: #FFF7ED !important;
    color: #EA580C !important;
}

/* ── 9. Additional layout fixes for small screens ── */
@media (max-width: 640px) {
    /* Spec table horizontal scroll on tiny screens */
    .spec-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Timeline items condense */
    .tl-item {
        padding-left: 4rem !important;
    }
    .tl-dot {
        width: 2.75rem !important;
        height: 2.75rem !important;
        font-size: .65rem !important;
    }
    .timeline::before {
        left: 1.375rem !important;
    }

    /* Map wrapper height */
    .map-wrapper {
        height: 280px !important;
    }

    /* Stat pills — stack on very small screens */
    .grid.grid-cols-2 .stat-pill {
        padding: 1rem 1.25rem !important;
    }
    .stat-pill p:first-child {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    }

    /* Calculator card */
    .calc-card {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1.25rem !important;
    }
    .calc-tpd-display {
        font-size: 2.2rem !important;
    }

    /* Flag tiles */
    .world-flag-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
        gap: .5rem !important;
    }
    .flag-tile {
        padding: .75rem .5rem !important;
    }
    .flag-emoji {
        font-size: 1.5rem !important;
    }
    .flag-name {
        font-size: .62rem !important;
    }

    /* World stats strip */
    .world-stats-strip {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }

    /* Video gallery cards */
    .vg-card {
        border-radius: 1rem !important;
    }
    .vg-play-btn {
        width: 44px !important;
        height: 44px !important;
    }

    /* 3D machine section */
    .m3d-scene {
        transform: scale(.75);
        transform-origin: center center;
    }

    /* Expert FAQ */
    .efaq-question {
        padding: 1rem !important;
        font-size: .88rem !important;
    }
    .efaq-answer p {
        font-size: .85rem !important;
    }

    /* Service nav on service pages — horizontal scroll */
    .service-nav {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        padding-bottom: .5rem !important;
        scrollbar-width: none !important;
    }
    .service-nav::-webkit-scrollbar {
        display: none !important;
    }
    .service-nav-link {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Quick chips on contact page */
    .quick-strip {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .quick-chip {
        justify-content: center !important;
    }

    /* Contact cards */
    .contact-card {
        padding: 1.25rem !important;
    }
    .contact-card-icon {
        width: 44px !important;
        height: 44px !important;
    }

    /* CTA buttons in bottom sections — stack */
    .flex.flex-wrap.justify-center.gap-4 {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .flex.flex-wrap.justify-center.gap-4 > a {
        text-align: center !important;
        justify-content: center !important;
    }
}

/* ── 10. Tablet layout fixes (641-1023px) ── */
@media (min-width: 641px) and (max-width: 1023px) {
    /* Service tab layout stacks cleanly */
    #services .grid.lg\\:grid-cols-5 {
        grid-template-columns: 1fr !important;
    }

    /* Process section stacks */
    #processes .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* About section stacks */
    #about .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* About-us hero grid */
    #about-hero .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ── 11. Prevent any element from overflowing viewport ── */
@media (max-width: 1023px) {
    .dropdown-menu,
    .dropdown-menu--wide {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE CSS FIXES — July 2026
   Fixes: dropdown 2-col layout, image overflow, navbar scroll
   color, hero spacing, card gaps, footer layout, mobile menu
═══════════════════════════════════════════════════════════════ */

/* ── FIX 1: Products dropdown "View All" button spans full width ── */
.dropdown-menu--wide > div[style*="border-top"] {
    grid-column: 1 / -1;
}

/* ── FIX 2: Product hero image — cover fit, no stretch ── */
#product-hero img,
.product-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── FIX 3: Navbar scrolled state — search trigger fix ── */
#navbar.scrolled #search-trigger {
    background: rgba(120,113,108,.08);
    border-color: rgba(120,113,108,.18);
    color: #57534E;
}

/* ── FIX 4: our-products.html listing — card image height consistent ── */
.product-listing-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── FIX 5: Footer grid — fix column gap on medium screens ── */
@media (min-width: 641px) and (max-width: 1023px) {
    #footer .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem !important;
    }
}

/* ── FIX 6: Spec table — prevent horizontal overflow on mobile ── */
@media (max-width: 768px) {
    .spec-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: .85rem;
    }
    .spec-table th,
    .spec-table td {
        white-space: nowrap;
        min-width: 120px;
    }
}

/* ── FIX 7: Product listing page card height uniform ── */
.our-products-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.our-products-grid .product-card > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.our-products-grid .product-card .learn-link {
    margin-top: auto;
}

/* ── FIX 8: Mobile — hero title text not clipped ── */
@media (max-width: 640px) {
    #hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.5rem) !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }
}

/* ── FIX 9: Service tab panel image — proper height ── */
.service-panel img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 1rem;
}
@media (max-width: 640px) {
    .service-panel img { height: 200px; }
}

/* ── FIX 10: Contact map iframe — proper responsive ── */
#contact iframe,
.contact-map iframe {
    width: 100% !important;
    border-radius: 1rem;
    border: none;
}

/* ── FIX 11: about-us page cert images — proper sizing ── */
.cert-img-card img {
    width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: contain;
    background: #fff;
    padding: 1rem;
}

/* ── FIX 12: Mobile menu z-index over everything ── */
#mobile-menu {
    z-index: 99990 !important;
}
#menu-backdrop {
    z-index: 99989 !important;
}

/* ── FIX 13: WhatsApp FAB — prevent overlap with back-to-top ── */
@media (max-width: 640px) {
    .whatsapp-fab {
        bottom: 1.25rem !important;
        right: 1rem !important;
    }
    #back-to-top {
        bottom: 5rem !important;
        right: 1rem !important;
    }
}

/* ── FIX 14: Section dots — hide on tablet too ── */
@media (max-width: 1280px) {
    .section-dots { display: none !important; }
}

/* ── FIX 15: Testi card quote mark — prevent overflow clipping ── */
.testi-card {
    overflow: visible !important;
}

/* ── FIX 16: Blog card image placeholder — consistent height ── */
.blog-img-ph {
    height: 200px !important;
    overflow: hidden;
}
.blog-img-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── FIX 17: Horizontal scroll removal on all pages ── */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* ── FIX 18: Product detail page — hero image max-height ── */
#product-hero .hero-product-img-wrap {
    max-width: 480px;
    margin: 0 auto;
}
#product-hero .hero-product-img-wrap img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 20px 48px rgba(0,0,0,.4));
}
@media (max-width: 768px) {
    #product-hero .hero-product-img-wrap {
        max-width: 100%;
    }
    #product-hero .hero-product-img-wrap img {
        max-height: 220px;
    }
}

/* ── FIX 19: Fix our-products.html grid gap ── */
@media (max-width: 640px) {
    .our-products-grid,
    #products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* ── FIX 20: Ensure all page containers are centered ── */
.max-w-7xl {
    margin-left: auto;
    margin-right: auto;
}


/* ═══════════════════════════════════════════════════════════════
   HERO HEADER FINAL FIXES
═══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb links — white on dark hero, no browser-blue ── */
#product-hero nav a,
#service-hero nav a,
#process-hero nav a,
#about-hero nav a,
#contact-hero nav a,
#products-hero nav a {
    color: rgba(255,255,255,0.5) !important;
    text-decoration: none !important;
}
#product-hero nav a:hover,
#service-hero nav a:hover,
#process-hero nav a:hover,
#about-hero nav a:hover,
#contact-hero nav a:hover,
#products-hero nav a:hover {
    color: #FB923C !important;
}

/* ── Hero h1 — always white, never clipped ── */
#product-hero h1,
#service-hero h1,
#process-hero h1,
#about-hero h1,
#contact-hero h1,
#products-hero h1 {
    color: #fff;
    overflow: visible !important;
    word-break: break-word;
}

/* ── Hero section — glow divs need clip, but not text ── */
#product-hero,
#service-hero,
#process-hero,
#about-hero,
#contact-hero,
#products-hero {
    overflow: hidden;
}
#product-hero .relative.z-10,
#service-hero .relative.z-10,
#process-hero .relative.z-10,
#about-hero .relative.z-10,
#contact-hero .relative.z-10,
#products-hero .relative.z-10 {
    overflow: visible !important;
}

/* ── Hero inner wrapper — no extra bottom padding ── */
#product-hero .max-w-7xl,
#service-hero .max-w-7xl,
#process-hero .max-w-7xl,
#about-hero .max-w-7xl,
#contact-hero .max-w-7xl,
#products-hero .max-w-7xl {
    padding-bottom: 0 !important;
}

/* ── Hero gradient text — always visible ── */
#product-hero .gradient-text,
#service-hero .gradient-text,
#process-hero .gradient-text,
#products-hero .gradient-text {
    display: inline;
    white-space: normal;
}

/* ── Hero description text ── */
#product-hero p,
#service-hero p,
#process-hero p,
#products-hero p {
    color: rgba(255,255,255,0.65);
}

/* ── Mobile hero h1 — responsive font ── */
@media (max-width: 640px) {
    #product-hero h1,
    #service-hero h1,
    #process-hero h1,
    #about-hero h1,
    #contact-hero h1,
    #products-hero h1 {
        font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
        line-height: 1.2 !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   CALL US BUTTON — Hero CTA Fix
   Makes the outline "Call Us" button match the premium style
═══════════════════════════════════════════════════════════════ */

/* Style all "Call Us" type outline buttons in hero sections */
#product-hero .flex-wrap a[href^="tel:"],
#service-hero .flex-wrap a[href^="tel:"],
#process-hero .flex-wrap a[href^="tel:"],
#about-hero .flex-wrap a[href^="tel:"],
#contact-hero .flex-wrap a[href^="tel:"],
#products-hero .flex-wrap a[href^="tel:"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: .5rem !important;
    padding: .85rem 2rem !important;
    border-radius: 9999px !important;
    border: 2px solid rgba(255,255,255,.35) !important;
    background: rgba(255,255,255,.06) !important;
    backdrop-filter: blur(8px) !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: .875rem !important;
    text-decoration: none !important;
    transition: all .3s cubic-bezier(.4,0,.2,1) !important;
    cursor: pointer !important;
}
#product-hero .flex-wrap a[href^="tel:"]:hover,
#service-hero .flex-wrap a[href^="tel:"]:hover,
#process-hero .flex-wrap a[href^="tel:"]:hover,
#about-hero .flex-wrap a[href^="tel:"]:hover,
#contact-hero .flex-wrap a[href^="tel:"]:hover,
#products-hero .flex-wrap a[href^="tel:"]:hover {
    border-color: #FB923C !important;
    background: rgba(249,115,22,.12) !important;
    color: #FB923C !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(249,115,22,.2) !important;
}

/* Phone icon inside the button */
#product-hero .flex-wrap a[href^="tel:"] i,
#service-hero .flex-wrap a[href^="tel:"] i,
#process-hero .flex-wrap a[href^="tel:"] i {
    font-size: .75rem !important;
    opacity: .85;
}


/* ═══════════════════════════════════════════════════════════════
   HERO PLAY BUTTON — "Watch Our Story" Fix
═══════════════════════════════════════════════════════════════ */

/* Button container — transparent bg, no border bleed */
#hero-play-btn {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Text next to play circle */
#hero-play-btn > span {
    color: rgba(255,255,255,.85) !important;
    font-weight: 600 !important;
    font-size: .9rem !important;
    text-align: left !important;
    line-height: 1.4 !important;
    background: transparent !important;
}
#hero-play-btn > span span {
    color: rgba(255,255,255,.5) !important;
    font-weight: 400 !important;
    font-size: .75rem !important;
}

/* Play circle */
.play-btn {
    flex-shrink: 0 !important;
    background: rgba(234,88,12,.15) !important;
    border: 2px solid rgba(249,115,22,.6) !important;
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT DUROMECH CONTACT CARDS — Enhanced visibility
═══════════════════════════════════════════════════════════════ */
.about-contact-card {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    background: #fff !important;
    border: 1.5px solid #E7E5E4 !important;
    border-radius: 1rem !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.05) !important;
    transition: box-shadow .3s, transform .3s, border-color .3s !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: inherit !important;
}
.about-contact-card:hover {
    box-shadow: 0 8px 28px rgba(249,115,22,.12) !important;
    transform: translateY(-3px) !important;
    border-color: #FED7AA !important;
}
.about-contact-icon {
    width: 3rem !important;
    height: 3rem !important;
    border-radius: .75rem !important;
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.about-contact-icon i {
    color: #EA580C !important;
    font-size: 1rem !important;
}
.about-contact-label {
    font-size: .72rem !important;
    color: #A8A29E !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    margin: 0 0 .15rem !important;
}
.about-contact-value {
    color: #1C1917 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
}
.about-contact-value:hover {
    color: #EA580C !important;
}
.about-contact-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
    margin-top: 2.5rem !important;
}
@media (max-width: 640px) {
    .about-contact-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   CTA SECTION — "Call Us Now" outline button fix
═══════════════════════════════════════════════════════════════ */

/* Orange gradient CTA section buttons */
section[class*="bg-gradient-to-br"][class*="from-brand"] a[href^="tel:"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: .5rem !important;
    padding: 1rem 2.5rem !important;
    border-radius: 9999px !important;
    border: 2.5px solid rgba(255,255,255,.5) !important;
    background: rgba(255,255,255,.1) !important;
    backdrop-filter: blur(8px) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    transition: all .3s !important;
    cursor: pointer !important;
}
section[class*="bg-gradient-to-br"][class*="from-brand"] a[href^="tel:"]:hover {
    background: rgba(255,255,255,.25) !important;
    border-color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
}

/* "Get Free Quote/Consultation" white button fix */
section[class*="bg-gradient-to-br"][class*="from-brand"] a[href*="contact"],
section[class*="bg-gradient-to-br"][class*="from-brand"] a[class*="bg-white"] {
    text-decoration: none !important;
    color: #EA580C !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Legal links fix (Privacy, Terms, Cookie)
═══════════════════════════════════════════════════════════════ */

/* Footer link colors — no browser purple */
footer a,
#footer-ph a,
[id*="footer"] a {
    color: rgba(255,255,255,.55) !important;
    text-decoration: none !important;
    transition: color .2s !important;
}
footer a:hover,
#footer-ph a:hover,
[id*="footer"] a:hover {
    color: #FB923C !important;
}
footer a:visited,
#footer-ph a:visited,
[id*="footer"] a:visited {
    color: rgba(255,255,255,.55) !important;
}
footer a:visited:hover,
#footer-ph a:visited:hover,
[id*="footer"] a:visited:hover {
    color: #FB923C !important;
}


/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES — Privacy, Terms, Cookie
═══════════════════════════════════════════════════════════════ */

.legal-hero {
    background: linear-gradient(135deg, #1C1917 0%, #2a1610 60%, #1C1917 100%);
    padding: 7rem 0 3.5rem;
    position: relative;
}
.legal-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin: 0;
    line-height: 1.2;
}
.legal-hero p {
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    margin-top: .75rem;
}
.legal-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: rgba(255,255,255,.4);
    margin-bottom: 1.5rem;
}
.legal-hero .breadcrumb a {
    color: rgba(255,255,255,.5) !important;
    text-decoration: none !important;
}
.legal-hero .breadcrumb a:hover {
    color: #FB923C !important;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}
.legal-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #1C1917;
    margin-bottom: .5rem;
}
.legal-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1C1917;
    margin: 2rem 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #FED7AA;
}
.legal-content p,
.legal-content li {
    color: #57534E;
    line-height: 1.8;
    font-size: .95rem;
}
.legal-content ul {
    padding-left: 1.5rem;
    margin: .75rem 0;
}
.legal-content li {
    margin-bottom: .5rem;
}
.legal-content a {
    color: #EA580C !important;
    text-decoration: underline !important;
}
.legal-content a:hover {
    color: #C2410C !important;
}
.legal-content a:visited {
    color: #EA580C !important;
}
.legal-date {
    color: #A8A29E;
    font-size: .85rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .legal-hero { padding: 5rem 0 2rem; }
}


/* ═══════════════════════════════════════════════════════════════
   GLOBAL MOBILE — Reduce section padding on all pages
═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* py-24 sections → 3rem on mobile */
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    /* py-20 sections → 2.5rem on mobile */
    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    /* Section heading margin */
    .mt-10 {
        margin-top: 2rem !important;
    }
    .mt-12 {
        margin-top: 2rem !important;
    }
    .mb-12 {
        margin-bottom: 2rem !important;
    }
    /* Gap reductions */
    .gap-8 {
        gap: 1.25rem !important;
    }
    .gap-6 {
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .py-24 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

