/* ============================================================
   Headux Mobile Homepage — UNIMIG-inspired layout
   Loaded only on front page, max-width: 768px
   ============================================================ */

/* Default: mobile-only hidden on desktop */
.mobile-only { display: none; }

@media (max-width: 768px) {

/* ===== CONTAINER ===== */
html { overflow-x: hidden !important; background: #F5F5F5; }
html, body, main { overflow-x: hidden; }
html, body { overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
.section-inner { padding: 0 16px; }
.section { padding: 32px 0; }
.section-heading { margin-bottom: 12px; }
.section-heading h2 { font-size: 22px; }
.section-heading .subtitle { font-size: 13px; }

/* ===== SHOW/HIDE ===== */
.desktop-only { display: none !important; }
.mobile-only { display: block; }

/* ===== HEADER ===== */
.header-inner { padding: 0 16px; }

/* ===== HERO ===== */
.hero { min-height: auto; padding: 0; }
.hero .section-inner {
    flex-direction: column; text-align: center !important; gap: 0 !important;
    padding-top: 0 !important; padding-bottom: 40px !important;
    padding-left: 0 !important; padding-right: 0 !important;
}
.hero-right { width: 100%; max-width: 100%; order: -1; margin: 0 !important; padding: 0 !important; overflow: hidden; }
.hero-right .hero-carousel { margin: 0 !important; padding: 0 !important; }
.hero-slides { border-radius: 0; aspect-ratio: 3/4; height: auto; width: 100%; overflow: hidden; user-select: none; margin-bottom: 0 !important; }
.hero-slides img { pointer-events: none; -webkit-user-drag: none; }
.hero-left { padding: 0 16px 0 !important; margin: 0 !important; max-width: 100%; }
.hero-left h1 { font-size: 26px; margin-bottom: 6px; }
.hero-tag { font-size: 11px; letter-spacing: 1.5px; margin: 0 !important; line-height: 1; }
.hero-desc { font-size: 13px; max-width: 100%; margin-bottom: 16px; }
.hero-cta { justify-content: center; gap: 10px; }
.hero-cta .btn { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 8px; }
.hero-arrow { display: none; }
.hero-dots { margin: 0 !important; position: absolute; bottom: 8px; left: 0; right: 0; }
.hero-dots .dot { width: 44px; height: 44px; }
.hero-dots .dot::after { width: 6px; height: 6px; }

/* ===== TABS BAR ===== */
.home-tabs {
    display: flex; overflow-x: auto;
    scrollbar-width: none;
    width: 100%; padding: 0 16px; margin-bottom: 10px;
}
.home-tabs::-webkit-scrollbar { display: none; }
.home-tab {
    flex: 1 1 0; text-align: center; min-height: 44px;
    background: none; border: none; padding: 6px 4px;
    font-size: 13px; font-weight: 500; color: #666;
    white-space: nowrap; cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.home-tab.active { color: #0D1117; font-weight: 700; border-bottom-color: #0D1117; }

/* Scrollable sections: full-width track */
.mobile-only.section .section-inner { padding: 0; max-width: 100%; overflow-x: hidden; }
.mobile-only.section .section-heading { padding: 0 16px; text-align: center; }

/* ===== SCROLL CONTAINER ===== */
.home-scroll { margin-top: 4px; width: 100%; overflow: hidden; }
.home-scroll-track {
    display: flex; gap: 0; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0;
    width: 100%; max-width: 100%;
}
.home-scroll-track::-webkit-scrollbar { display: none; }
.home-scroll-track::after { content: ''; flex: 0 0 16px; }

/* ===== PRODUCT CARD ===== */
.home-card {
    width: 100%; min-width: 100%; max-width: 100%; flex-shrink: 0;
    scroll-snap-align: start;
    background: #fff; border-radius: 0; overflow: hidden;
    text-decoration: none; display: block;
}
.home-card:active { opacity: .9; }
.home-card-img {
    width: 100%; aspect-ratio: 3/4; background: #F5F5F5;
    overflow: hidden; position: relative;
}
.home-card-img img { width: 100%; height: 100%; object-fit: cover; }
.home-card-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 16px 12px;
    background: rgba(0,0,0,.30);
    text-align: center;
}
.home-card-body h4 { font-size: 25px; font-weight: 700; color: #fff; }
.home-card-body .card-tag { display: none; }
.home-card-body p { display: none; }

/* ===== CATEGORY CARD ===== */
.home-cat-card {
    width: 100%; min-width: 100%; max-width: 100%; flex-shrink: 0;
    scroll-snap-align: start;
    background: #F5F5F5; border-radius: 0; overflow: hidden;
    text-decoration: none; display: block;
}
.home-cat-card:active { opacity: .85; }
.home-cat-card-img {
    width: 100%; aspect-ratio: 3/4; background: #E8E8E8;
    overflow: hidden; position: relative;
}
.home-cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.home-cat-card-img .cat-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; color: #ccc;
}
.home-cat-card-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 16px 12px;
    background: rgba(0,0,0,.55);
    text-align: center;
}
.home-cat-card-body h4 { font-size: 25px; font-weight: 600; color: #fff; }
.home-cat-card-body p { display: none; }

/* ===== MOBILE BANNER IMAGE ASPECT ===== */
.nexa-mob .cat-banner-img,
.robot-mob-section .cat-banner-img {
    aspect-ratio: 4/5; height: auto; min-height: auto;
}

/* ===== FEATURED BIG CARD (Robotic, non-scrolling) ===== */
.home-feat-card {
    display: block; text-decoration: none;
    background: #0D1117; border-radius: 12px; overflow: hidden;
}
.home-feat-card:active { opacity: .95; }
.home-feat-card-img { width: 100%; aspect-ratio: 2/1; background: #1A1F26; overflow: hidden; }
.home-feat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.home-feat-card-body { padding: 20px; }
.home-feat-card-body h4 { font-size: 18px; font-weight: 700; color: #fff; }
.home-feat-card-body p { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ===== TRUST BAR ===== */
.trust-bar { padding: 16px 0; }
.trust-bar .section-inner { flex-direction: column; gap: 8px; }
.trust-label { font-size: 12px; }
.trust-badges { gap: 8px 16px; }
.trust-badge { font-size: 11px; gap: 4px; }
.trust-badge svg { width: 14px; height: 14px; }

/* ===== CTA STRIP ===== */
.cta-strip { padding: 24px 0; }
.cta-strip p { font-size: 16px; }
.cta-strip .btn { height: 44px; padding: 0 22px; font-size: 14px; }

/* ===== VIDEO CAROUSEL ===== */
.video-card { flex: 0 0 80vw; }
.video-thumb { aspect-ratio: 4/3 !important; }
.video-nav { display: none; }

/* ===== ABOUT STRIP ===== */
.about-strip { padding: 32px 0; }
.about-content p { font-size: 14px; }
.about-meta { font-size: 11px; }

/* ===== FOOTER ===== */
.site-footer { padding: 40px 0 24px; }

}

/* ===== RESPECT USER MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
