/* OMEGAIMPORTS V2 - RESPONSIVE STYLES (MOBILE, TABLET, DESKTOP) */

/* Mobile Drawer Component */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 9, 20, 0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background-color: var(--color-navy-950);
  border-right: 1px solid rgba(25, 195, 214, 0.25);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  border-radius: var(--radius-full);
}

.drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.drawer-search {
  margin-bottom: 1.5rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  color: #E2E8F0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.drawer-nav a:hover {
  background-color: var(--color-navy-900);
  color: var(--color-yellow-400);
}

.drawer-footer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

/* 1200px (Laptops / Small Desktops) */
@media (max-width: 1200px) {
  .hero-section {
    background-position: center top, center center, 80% center;
  }

  .support-section {
    background-position: center top, center center, 90% 20%;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1.2fr;
  }

  .hero-features-right {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: rgba(6, 20, 38, 0.6);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(25, 195, 214, 0.2);
    margin-top: 1rem;
  }

  .hero-handwriting-bottom {
    margin-top: 0;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-newsletter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-box {
    grid-column: span 2;
  }

  .brands-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .support-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .support-visual-right {
    grid-column: span 2;
    margin-top: 2rem;
  }

  .footer-main-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand-col {
    grid-column: span 3;
  }
}

/* 992px (Tablets Landscape) */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .header-search {
    max-width: 280px;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1.25rem;
  }

  .trust-item:nth-child(3) {
    border-right: none;
  }

  .categories-banners {
    grid-template-columns: 1fr;
  }

  .products-carousel {
    grid-template-columns: repeat(6, 260px);
  }

  .products-support-blocks {
    grid-template-columns: 1fr;
  }

  .brands-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-checklist {
    margin: 1.5rem 0;
  }

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 768px (Tablets Portrait & Mobile Large) */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: auto;
    padding: 32px 0 36px;
    background-image:
      linear-gradient(180deg, rgba(1, 23, 48, 0.75) 0%, rgba(3, 9, 20, 0.92) 100%),
      url('../assets/hero/hero-tech-bg.png');
    background-position: center top, center right;
  }

  .support-section {
    padding: 40px 0;
    background-image:
      linear-gradient(180deg, rgba(3, 9, 20, 0.85) 0%, rgba(3, 9, 20, 0.95) 100%),
      url('../assets/support/support-tech-bg.png');
    background-position: center top, center right;
  }

  .site-header {
    height: 64px;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .header-search {
    display: none;
  }

  .header-marketplace-btn {
    display: none;
  }

  .header-mobile-search-btn {
    display: flex;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5.2vw, 2.1rem);
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .hero-visual-center {
    min-height: auto;
    padding-top: 0;
    margin-top: 0.5rem;
    align-items: center;
    text-align: center;
  }

  .hero-handwriting-top {
    display: none !important;
  }

  .hero-features-right {
    grid-column: span 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background-color: rgba(6, 20, 38, 0.6);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(25, 195, 214, 0.2);
    margin-top: 0.5rem;
  }

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

  .trust-strip {
    overflow-x: auto;
    scrollbar-width: none;
    height: auto;
    padding: 12px 0;
  }

  .trust-strip::-webkit-scrollbar {
    display: none;
  }

  .trust-strip-inner {
    display: flex;
    width: max-content;
    padding: 0 1rem;
    gap: 1rem;
  }

  .trust-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1rem;
    min-width: 175px;
    gap: 0.6rem;
  }

  .trust-icon {
    width: 26px !important;
    height: 26px !important;
  }

  .trust-text {
    font-size: 0.74rem;
  }

  .trust-text strong {
    font-size: 0.78rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .category-card {
    padding: 0.85rem 1rem;
  }

  .banner-card {
    min-height: auto;
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-kits .kit-visual {
    position: relative;
    width: 100%;
    height: 120px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    margin-bottom: 0.5rem;
  }

  .banner-kits .banner-content {
    margin-left: 0;
    padding: 0;
    width: 100%;
  }

  .banner-kits .banner-handwriting {
    align-self: flex-end;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .banner-robot .banner-right-group {
    width: 100%;
    align-items: center;
    margin-top: 1rem;
  }

  .banner-robot .banner-handwriting {
    align-self: flex-end;
  }

  .banner-robot .banner-hardware-img {
    margin: 0 auto;
    width: 180px;
  }

  .products-carousel {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 8px 4px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-cyan-500) transparent;
  }

  .products-carousel .product-card {
    min-width: 250px;
    flex: 0 0 250px;
    scroll-snap-align: start;
    height: auto;
    min-height: 380px;
  }

  .products-support-blocks {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .help-block {
    height: auto !important;
    min-height: 104px;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 18px 20px !important;
  }

  .help-block-info {
    width: 100%;
    gap: 14px;
  }

  .help-block .btn {
    width: 100% !important;
    text-align: center;
    justify-content: center;
  }

  .home-v2 #blog .article-card:nth-of-type(n+2) {
    display: none !important;
  }

  .blog-newsletter-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    grid-column: span 1;
  }

  .brands-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }

  .brands-row::-webkit-scrollbar {
    display: none;
  }

  .brand-card {
    min-width: 140px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .site-footer {
    padding-top: 32px;
    padding-bottom: 20px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 24px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
  }

  .footer-brand-col p {
    margin: 8px 0 12px;
    font-size: 0.8rem;
  }

  .footer-col-title {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .footer-links-list {
    gap: 6px;
  }

  .footer-links-list a {
    font-size: 0.78rem;
  }

  .footer-trust-badges-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 16px;
  }

  .footer-copyright-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* 480px (Mobile Small - 360px, 390px, 430px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .btn {
    min-height: 48px;
  }

  .help-block {
    height: auto !important;
    min-height: 104px;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.25rem;
    gap: 14px !important;
  }

  .help-block .btn {
    width: 100% !important;
  }

  .support-actions {
    flex-direction: column;
  }

  .support-actions .btn {
    width: 100%;
  }
}

/* Home-only refinements stay isolated from internal V2 pages. */
@media (max-width: 1200px) {
  .home-v2 .hero-features-right {
    width: auto;
    transform: none;
  }

  .home-v2 .support-grid {
    align-items: center;
  }

  .home-v2 .support-checklist {
    padding-top: 0;
  }

  .home-v2 .support-visual-right {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 520px);
    min-height: 260px;
    transform: none;
  }
}

@media (max-width: 768px) {
  .home-v2 .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-v2 .hero-copy,
  .home-v2 .hero-visual-center,
  .home-v2 .hero-features-right {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .home-v2 .hero-search-box {
    width: 100%;
    max-width: 100%;
  }

  .home-v2 .hero-search-box input {
    min-width: 0;
    padding-inline: 1rem;
  }

  .home-v2 .hero-search-box button {
    width: 56px;
    flex: 0 0 56px;
  }

  .home-v2 .banner-kits {
    grid-template-columns: 1fr;
    gap: 8px;
    height: auto;
    min-height: 360px;
    padding: 20px;
  }

  .home-v2 .banner-kits .kit-visual {
    width: 100%;
    height: 160px;
    margin: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .home-v2 .banner-kits .banner-title,
  .home-v2 .banner-kits .banner-sub {
    max-width: none;
  }

  .home-v2 .support-visual-right {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-height: 210px;
    margin-top: 1rem;
  }

  .home-v2 .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-v2 .support-copy,
  .home-v2 .support-checklist {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }

  .home-v2 .support-handwriting-bubble,
  .home-v2 .support-badge-vertical {
    max-width: 250px;
  }

  .home-whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }

  .home-whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 480px) {
  .home-v2 .category-card-img {
    width: 70px;
    height: 70px;
  }

  .home-v2 .help-block-icon {
    width: 46px;
    height: 46px;
  }

  .home-v2 .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}
