/* ============================================================
   UNMOZI Website - Responsive: Media Queries (Mobile-First)
   ============================================================ */

/* ============================================================
   SM: >= 576px — Large phones landscape
   ============================================================ */
@media (min-width: 576px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  .hero__actions {
    gap: var(--space-5);
  }

  .tpms__stats {
    gap: var(--space-5);
  }

  .stat {
    padding: var(--space-6) var(--space-5);
  }

  .about__highlights {
    gap: var(--space-8);
  }

}

/* ============================================================
   MD: >= 768px — Tablets
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .container {
    padding-left: var(--space-10);
    padding-right: var(--space-10);
  }

  /* Hero */
  .hero__content {
    padding-top: var(--space-16);
  }

  .hero__title {
    font-size: var(--text-6xl);
  }

  .hero__subtitle {
    font-size: var(--text-xl);
  }

  /* Section */
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  .section__title {
    font-size: var(--text-5xl);
  }

  /* Section grid — 2 columns */
  .section__grid {
    flex-direction: row;
    gap: var(--space-12);
  }

  .section__grid--product {
    flex-direction: column;
    gap: var(--space-10);
  }

  .section__visual,
  .section__info {
    flex: 1;
  }

  .section--reverse .section__grid {
    flex-direction: row-reverse;
  }

  /* Stats */
  .tpms__stats {
    gap: var(--space-6);
  }

  .stat {
    padding: var(--space-6) var(--space-5);
  }

  .stat__value {
    font-size: var(--text-3xl);
  }

  /* Specs grid — 4 columns on tablet+ */
  .specs-grid {
    grid-template-columns: auto 1fr auto 1fr;
    gap: var(--space-3) var(--space-10);
  }

  .specs-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-8);
  }

  .section__grid--product .specs-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-body {
    gap: var(--space-10);
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .about__highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }

  .about__highlight-number {
    font-size: var(--text-5xl);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* ============================================================
   LG: >= 992px — Small desktops / tablets landscape
   ============================================================ */
@media (min-width: 992px) {
  .footer__grid {
    grid-template-columns: minmax(220px, 2fr) repeat(4, 1fr);
    gap: var(--space-10);
  }

  .footer__brand {
    grid-column: auto;
    max-width: 360px;
  }

  .container {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }

  /* Hero */
  .hero__title {
    font-size: 4rem;
  }

  /* Section grid wider gap */
  .section__grid {
    gap: var(--space-20);
  }

  /* Stats */
  .stat__value {
    font-size: var(--text-4xl);
  }

  /* About */
  .about__grid {
    gap: var(--space-20);
  }

  .about__text {
    font-size: var(--text-lg);
  }
}

/* ============================================================
   XL: >= 1200px — Desktops
   ============================================================ */
@media (min-width: 1200px) {
  .hero__title {
    font-size: var(--text-6xl);
  }

  .section__grid {
    gap: var(--space-24);
  }

  .section__grid--product .specs-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-showcase {
    max-width: 840px;
  }

}

/* ============================================================
   2XL: >= 1400px — Large desktops
   ============================================================ */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero__content {
    max-width: 840px;
  }
}

/* ============================================================
   MOBILE: < 768px — Overrides for small screens
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  /* Mobile Navigation */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: right var(--transition-base);
    z-index: var(--z-overlay);
  }

  .nav__menu--open {
    right: 0;
  }

  .nav__link {
    font-size: var(--text-lg);
    padding: var(--space-3) var(--space-6);
  }

  .nav__app-dropdown {
    right: 0;
    min-width: 200px;
  }

  .nav__lang-btn {
    font-size: var(--text-xs);
    padding: var(--space-2) 0;
  }

  /* Hero */
  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__title-line--accent {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Section */
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .section__header {
    margin-bottom: var(--space-12);
  }

  .section__title {
    font-size: var(--text-3xl);
  }

  .section__subtitle {
    font-size: var(--text-base);
  }

  /* Section grid — stack */
  .section__grid {
    flex-direction: column;
    gap: var(--space-10);
  }

  .section__grid--product {
    gap: var(--space-8);
  }

  .product-showcase {
    max-width: none;
  }

  .product-body {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .section__grid--product .specs-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .section--reverse .section__grid {
    flex-direction: column;
  }

  /* Stats — 3 columns */
  .tpms__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .stat {
    padding: var(--space-4) var(--space-2);
  }

  .stat__value {
    font-size: var(--text-xl);
  }

  /* Specs */
  .tpms__tech-specs {
    padding: var(--space-5);
  }

  .specs-grid {
    grid-template-columns: auto 1fr;
    gap: var(--space-2) var(--space-6);
    font-size: var(--text-xs);
  }

  .specs-stack {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about__highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .about__highlight {
    padding: var(--space-5) var(--space-3);
  }

  .about__highlight-number {
    font-size: var(--text-3xl);
  }

  .about__highlight-label {
    font-size: var(--text-xs);
  }

  .about__visual {
    order: -1;
  }

  .about__image-placeholder {
    max-width: 240px;
    margin: 0 auto;
  }

  /* Tabs */
  .tabs {
    gap: var(--space-1);
    padding: var(--space-1);
    max-width: 100%;
  }

  .tabs__btn {
    padding: var(--space-3) var(--space-2);
    gap: 0;
  }

  .tabs__btn-title {
    font-size: var(--text-xs);
  }

  .tabs__btn-sub {
    display: none;
  }

  .tabs__btn-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 0;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* ============================================================
   Mobile SMALL: < 400px
   ============================================================ */
@media (max-width: 399px) {
  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__title-line--accent {
    font-size: var(--text-2xl);
  }

  .tpms__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .stat {
    padding: var(--space-3) var(--space-1);
  }

  .stat__value {
    font-size: var(--text-lg);
  }

  .about__highlights {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}
