/* ================================================================
   T.E.S.T. MOBILE.CSS
   COMPLETE MOBILE REDESIGN — All rules inside @media (max-width: 768px)
   ZERO CHANGES to desktop view
   ================================================================ */

/* ================================================================
   GLOBAL MOBILE RESETS (only active on mobile)
   ================================================================ */
@media (max-width: 768px) {

  /* ---- Prevent any overflow ---- */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* ================================================================
     HAMBURGER BUTTON (hidden on desktop via separate rule)
     ================================================================ */
  .mob-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    z-index: 2100;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

  .mob-hamburger:hover {
    background: rgba(255,255,255,0.2);
  }

  .mob-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
  }

  .mob-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mob-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mob-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ================================================================
     MOBILE NAV DRAWER (full-screen overlay)
     ================================================================ */
  .mob-nav-drawer {
    position: fixed;
    inset: 0;
    background: linear-gradient(145deg, #3D070B 0%, #7A141D 60%, #4A080E 100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    overflow: hidden;
  }

  /* Background decoration circles */
  .mob-nav-drawer::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(229,169,59,0.06);
    top: -100px;
    right: -100px;
    pointer-events: none;
  }
  .mob-nav-drawer::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(229,169,59,0.04);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
  }

  .mob-nav-drawer.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Close X button inside drawer */
  .mob-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1;
  }
  .mob-nav-close:hover {
    background: var(--accent-gold);
    color: #3D070B;
  }

  /* Logo inside drawer */
  .mob-nav-logo {
    height: 50px;
    margin-bottom: 48px;
    filter: brightness(1.2);
    position: relative;
    z-index: 1;
  }

  /* Nav links inside drawer */
  .mob-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 40px;
    position: relative;
    z-index: 1;
  }

  .mob-nav-links li {
    width: 100%;
    max-width: 320px;
  }

  .mob-nav-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
  }

  .mob-nav-links li a:hover,
  .mob-nav-links li.active a {
    background: rgba(229,169,59,0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    padding-left: 32px;
  }

  .mob-nav-links li a i {
    font-size: 14px;
    opacity: 0.5;
    transition: all 0.3s ease;
  }
  .mob-nav-links li a:hover i,
  .mob-nav-links li.active a i {
    opacity: 1;
    color: var(--accent-gold);
    transform: translateX(4px);
  }

  /* Contact strip at bottom of drawer */
  .mob-nav-contact {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
  }
  .mob-nav-contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  .mob-nav-contact a:hover { color: var(--accent-gold); }

  /* ================================================================
     HEADER MOBILE OVERRIDES
     ================================================================ */
  .header-container {
    padding: 12px 4% !important;
  }

  /* Remove pill on mobile — solid bar */
  .navbar {
    border-radius: 14px !important;
    padding: 10px 16px !important;
    gap: 0;
    justify-content: space-between;
  }

  /* Hide desktop nav links */
  .nav-menu {
    display: none !important;
  }

  .logo-img {
    height: 36px !important;
  }

  /* When shrunk on mobile */
  .header-container.is-shrunk .navbar {
    border-radius: 0 !important;
    padding: 8px 16px !important;
  }

  /* ================================================================
     HERO SECTION — MOBILE (index.html)
     Complete Redesign
     ================================================================ */
  .hero-section {
    height: 100svh !important;
    min-height: 620px !important;
    max-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    background: radial-gradient(circle at center, #5c0f15 0%, #150204 100%) !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  /* Center Container - contains tagline, battery stage, and category name */
  .hero-center {
    order: 1 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 84px !important; /* leaves room for mobile nav bar */
    padding-bottom: 5px !important;
    min-height: 0 !important;
  }

  .hero-tagline {
    font-size: 10px !important;
    letter-spacing: 2px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
  }

  .hero-battery-stage {
    flex: 1 !important;
    width: 80% !important;
    max-width: 320px !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 10px 0 !important;
  }

  .hero-battery-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 25px rgba(229, 169, 59, 0.18)) drop-shadow(0 15px 35px rgba(0,0,0,0.6)) !important;
  }

  .hero-category-name {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--accent-gold) !important;
    text-align: center !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    min-height: 28px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
  }

  /* Category Node Deck - beautiful glassy row of active icons above metrics */
  .hero-categories-bar {
    order: 2 !important;
    padding: 12px 10px !important;
    margin: 6px 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 0 !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    width: auto !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  }

  /* Hide connection line */
  .hero-categories-bar::before {
    display: none !important;
  }

  .cat-node {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: unset !important;
    max-width: unset !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .cat-icon-ring {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }

  .cat-icon-ring img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    filter: brightness(0.9) !important;
  }

  /* Hide raw labels & active dots inside category bar to prevent clutter */
  .cat-label,
  .cat-dot {
    display: none !important;
  }

  /* Inactive states - elegant grayscale/opacity */
  .cat-node:not(.active) {
    filter: grayscale(1) !important;
    opacity: 0.5 !important;
  }

  .cat-node.active {
    filter: grayscale(0) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
  }

  .cat-node.active .cat-icon-ring {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 15px rgba(229, 169, 59, 0.45) !important;
    background: rgba(229, 169, 59, 0.15) !important;
  }

  /* Bottom Metrics Bar */
  .hero-bottom-bar {
    order: 3 !important;
    background: rgba(250, 245, 236, 0.97) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(61, 7, 11, 0.15) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 16px 12px 14px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15) !important;
  }

  .hero-bottom-title {
    display: none !important;
  }

  .hero-pillars {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .hero-pillar {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(61, 7, 11, 0.12) !important;
    border-radius: 12px !important;
    padding: 8px 4px !important;
    transition: all 0.3s ease !important;
  }

  .hero-pillar:not(:last-child) {
    border-right: none !important;
  }

  /* Hide pillars icons to preserve screen space */
  .hero-pillar-icon {
    display: none !important;
  }

  .hero-pillar-num {
    display: none !important;
  }

  .hero-pillar-label {
    font-size: 8px !important;
    color: #3d070b !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  /* Progress indicator dots */
  .hero-progress-dots {
    display: none !important;
  }

  /* ================================================================
     WHAT WE PROVIDE — MOBILE
     ================================================================ */
  .provide-section {
    padding: 50px 6% !important;
  }

  .banner-curved {
    padding: 36px 24px !important;
    margin-bottom: 48px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #4A080E 0%, #7A141D 100%) !important;
    box-shadow: 0 15px 35px rgba(122, 20, 29, 0.15) !important;
  }

  .banner-title {
    font-size: 22px !important;
    margin-bottom: 12px !important;
    letter-spacing: 1px !important;
  }

  .banner-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    opacity: 0.85 !important;
  }

  .provide-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--primary-burgundy) !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }

  .provide-subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--text-dark) !important;
    opacity: 0.75 !important;
    margin-bottom: 40px !important;
    text-align: center !important;
  }

  /* Clean full-width horizontal micro-cards instead of generic grid */
  .provide-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    max-width: 100% !important;
  }

  .provide-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 20px 18px !important;
    background: #FFFFFF !important;
    border-radius: 16px !important;
    border: 1px solid rgba(122, 20, 29, 0.05) !important;
    border-left: 4px solid var(--primary-burgundy) !important;
    box-shadow: 0 8px 24px rgba(61, 7, 11, 0.03) !important;
    text-align: left !important;
    transition: all 0.3s ease !important;
  }

  .card-icon-circle {
    width: 48px !important;
    height: 48px !important;
    background: var(--bg-cream) !important;
    color: var(--primary-burgundy) !important;
    border: 1px solid rgba(122, 20, 29, 0.06) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  .provide-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--primary-burgundy) !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.3px !important;
  }

  .provide-card-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: var(--text-dark) !important;
    opacity: 0.75 !important;
    margin: 0 !important;
  }

  /* ================================================================
     ACCORDION / ABOUT SECTION — MOBILE
     ================================================================ */
  .accordion-section {
    padding: 0 !important;
  }

  .accordion-container {
    gap: 0 !important;
    border-radius: 0 !important;
  }

  .accordion-item {
    border-radius: 0 !important;
  }

  .accordion-header {
    padding: 20px 20px !important;
    font-size: 17px !important;
  }

  .accordion-header span {
    font-size: 17px !important;
  }

  .accordion-content-inner {
    padding: 0 16px 24px !important;
  }

  /* Who we are grid — mobile */
  .who-we-are-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .who-card {
    padding: 16px !important;
  }

  .who-card-title {
    font-size: 14px !important;
  }

  /* Vision grid */
  .vision-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .vision-number {
    font-size: 28px !important;
  }

  /* ================================================================
     GALLERY — MOBILE
     ================================================================ */
  .gallery-section {
    padding: 50px 0 60px !important;
  }

  .gallery-title {
    font-size: 26px !important;
    margin-bottom: 4px !important;
  }

  .gallery-subtitle {
    margin-bottom: 32px !important;
  }

  .mySwiper {
    height: 320px !important;
  }

  .mySwiper .swiper-slide {
    width: 240px !important;
    height: 300px !important;
  }

  .gallery-nav-buttons {
    margin-top: 20px !important;
  }

  /* ================================================================
     FOOTER — MOBILE
     ================================================================ */
  footer {
    padding: 50px 5% 30px !important;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 40px !important;
  }

  .footer-brand-logo {
    height: 44px !important;
  }

  .footer-desc {
    font-size: 13px !important;
  }

  .footer-title {
    font-size: 17px !important;
    margin-bottom: 16px !important;
  }

  .footer-links a {
    font-size: 14px !important;
  }

  .footer-bottom {
    font-size: 12px !important;
    padding-top: 20px !important;
  }

  .footer-socials {
    gap: 12px !important;
  }

  .social-circle {
    width: 40px !important;
    height: 40px !important;
  }

  /* ================================================================
     TECHNOLOGY PAGE — MOBILE
     ================================================================ */
  .tech-hero {
    padding: 120px 5% 50px !important;
  }

  .tech-hero-title {
    font-size: 30px !important;
    margin-bottom: 12px !important;
  }

  .tech-hero-subtitle {
    font-size: 14px !important;
  }

  .tech-container {
    margin: 40px auto !important;
    padding: 0 5% !important;
    gap: 56px !important;
  }

  .tech-row,
  .tech-row:nth-child(even) {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .tech-media {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  .tech-title {
    font-size: 22px !important;
    margin-bottom: 14px !important;
  }

  .tech-desc {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .tech-bullet-item {
    font-size: 13px !important;
  }

  /* ================================================================
     OUR PRODUCTS PAGE — MOBILE
     Card flip becomes tap-to-reveal accordion instead
     ================================================================ */
  .products-hero {
    padding: 110px 5% 40px !important;
  }

  .products-hero-title {
    font-size: 30px !important;
    margin-bottom: 8px !important;
  }

  .products-hero-subtitle {
    font-size: 16px !important;
  }

  .products-section {
    padding: 40px 5% !important;
  }

  /* Single column swipeable cards on mobile */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 50px !important;
  }

  /* Fixed height card on mobile — slightly shorter */
  .product-card-container {
    height: 440px !important;
    perspective: 1200px !important;
  }

  .card-face {
    padding: 24px 20px !important;
    border-radius: 20px !important;
  }

  .card-image-box {
    height: 180px !important;
    margin-bottom: 16px !important;
    border-radius: 12px !important;
  }

  .product-title {
    font-size: 17px !important;
    margin-bottom: 12px !important;
  }

  .product-specs {
    font-size: 12.5px !important;
    gap: 6px !important;
  }

  .flip-hint {
    font-size: 10px !important;
    padding-top: 10px !important;
  }

  .card-back-img-box {
    height: 150px !important;
    margin-bottom: 14px !important;
  }

  .card-back-title {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  .card-back-desc {
    font-size: 13px !important;
    margin-bottom: 16px !important;
    padding: 0 4px !important;
  }

  /* Form */
  .form-faq-container {
    padding: 32px 20px !important;
    border-radius: 20px !important;
    margin-bottom: 40px !important;
  }

  .connect-title {
    font-size: 24px !important;
    margin-bottom: 24px !important;
  }

  .premium-form {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }

  .form-full-width,
  .form-submit-container {
    grid-column: span 1 !important;
  }

  .form-input {
    padding: 13px 16px !important;
    font-size: 16px !important; /* prevents iOS zoom */
  }

  .faq-title {
    font-size: 22px !important;
    margin-bottom: 18px !important;
    padding-top: 28px !important;
  }

  .faq-header {
    padding: 16px 20px !important;
    font-size: 15px !important;
  }

  .faq-content-inner {
    padding: 18px 20px !important;
    font-size: 13px !important;
  }

  /* ================================================================
     CONTACT PAGE — MOBILE
     ================================================================ */
  .contact-hero {
    padding: 110px 5% 40px !important;
  }

  .contact-hero-title {
    font-size: 28px !important;
  }

  .contact-hero-subtitle {
    font-size: 14px !important;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin: 40px auto !important;
    padding: 0 5% !important;
  }

  .contact-card-box,
  .contact-form-panel {
    padding: 28px 20px !important;
    border-radius: 20px !important;
  }

  .info-title {
    font-size: 24px !important;
  }

  .map-container {
    height: 220px !important;
    border-radius: 14px !important;
    margin: 0 5% 40px !important;
  }

  /* ================================================================
     HIDE DESKTOP-ONLY ELEMENTS
     ================================================================ */
  .mob-hidden {
    display: none !important;
  }

} /* end @media (max-width: 768px) */

/* ================================================================
   HAMBURGER BUTTON — hidden on DESKTOP
   (must be outside the media query to affect desktop)
   ================================================================ */
.mob-hamburger {
  display: none;
}

/* ================================================================
   NAV DRAWER — hidden on DESKTOP
   ================================================================ */
.mob-nav-drawer {
  display: none;
}

@media (max-width: 768px) {
  .mob-nav-drawer {
    display: flex;
  }
}
