/* ==========================================================================
   HPtekLatex Group — Shared Stylesheet (styles.css)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

::selection {
    background: rgba(224, 79, 22, 0.18);
    color: #0F172A;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0B0F17;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

/* Industrial Grid Backgrounds */
.tech-grid-dark {
    background-color: #0B0F17;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.tech-grid-light {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* Glassmorphism Navigation & Cards */
.glass-nav {
    background: rgba(11, 15, 23, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-dark {
    background: rgba(22, 31, 48, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.industrial-card {
    background: rgba(18, 26, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.industrial-card:hover {
    border-color: rgba(224, 79, 22, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.img-frame-dark {
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06) 0%, rgba(11, 15, 23, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Marquee Ticker */
.mq-track {
    display: flex;
    animation: mq 42s linear infinite;
    width: max-content;
}
.mq-track:hover {
    animation-play-state: paused;
}
@keyframes mq {
    to { transform: translateX(-50%); }
}

/* Status Pulse Indicator */
.pulse-dot {
    animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Error Code & FAQ Accordions */
.err-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}
.err-item.open .err-a {
    max-height: 1200px;
    opacity: 1;
}
.err-item.open .err-chev {
    transform: rotate(180deg);
    background: #E04F16;
    color: #fff;
    border-color: #E04F16;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}
.faq-item.open .faq-a {
    max-height: 800px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .mq-track,
    .pulse-dot {
        animation: none !important;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: #E04F16;
    color: #fff;
    border-color: #E04F16;
}

/* Slide-Over RFQ Drawer */
.drawer-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
    opacity: 1;
    pointer-events: all;
}
.drawer-panel {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel.open {
    transform: translateX(0);
}

/* Industrial WhatsApp Triage Widget */
.wa-widget-wrap {
    position: fixed;
    bottom: 20px;
    right: 24px;
    z-index: 90;
}

.wa-panel {
    position: fixed;
    bottom: 78px;
    right: 24px;
    width: 480px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    background: #0F1623;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 95;
}

.wa-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.wa-panel-body {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.wa-fab {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0B0F17;
    color: #FFFFFF;
    border: 1px solid rgba(16, 185, 129, 0.45);
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transition: all 0.25s ease;
}

.wa-fab:hover {
    border-color: #10B981;
    background: #131B2E;
    transform: translateY(-2px);
}

/* Mobile-First Thumb Dock & Native Bottom Sheet (< 768px) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mob-bottom-dock {
    display: none;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 74px; /* Space for thumb dock */
    }
    .wa-fab {
        display: none; /* Replaced by dedicated button in mobile thumb dock */
    }
    .wa-widget-wrap {
        bottom: 70px;
        right: 0;
        left: 0;
        z-index: 70;
    }
    .wa-panel {
        position: fixed;
        bottom: 64px;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        border-radius: 22px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .mob-bottom-dock {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(11, 15, 23, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        z-index: 65;
        padding: 4px 6px;
    }
}


