/* rem and em do NOT depend on html font-size in media queries!!
instead, 1rem = 1em = 16px*/

/* ****************** */
/*  BELOW 1344px (Smaller desktops) */
/* ****************** */
@media (max-width: 84em) {
  /* 84 em = 1344 px */
  .hero {
    max-width: 120rem;
  }
  .heading-primary {
    font-size: 4.4rem;
  }
}
/* ****************** */
/*  BELOW 1200px (Landscape Tablets) */
/* ****************** */

@media (max-width: 75em) {
  /* 75em = 1200px */
  html {
    font-size: 56.25%;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .header {
    padding: 0 3.2rem;
  }

  .main-nav-list {
    gap: 3.2rem;
  }

  .hero {
    gap: 4.8rem;
  }
}
/* ****************** */
/* BELOW 944px (Tablets)*/
/* ****************** */

@media (max-width: 61em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    gap: 6.4rem;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }
  .hero-img {
    width: 60%;
  }

  .about {
    padding: 9.6rem 0;
  }

  .brand-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.1rem;
  }

  .brand-logos {
    gap: 3.2rem 4.8rem;
  }

  .brand-logo {
    max-height: 5.5rem;
    max-width: 20rem;
  }

  /* PRODUCT SECTION */
  .product-grid {
    grid-template-columns: 1fr; /* Stack columns on smaller tablets */
    justify-items: center;
  }

  .product-main-image {
    grid-column: 1 / -1; /* Full width */
    width: 50%;
    min-height: initial;
  }

  .product-thumbnails {
    grid-column: 1 / -1; /* Full width */
    margin-top: 1.6rem;
  }

  .product-details {
    grid-column: 1 / -1; /* Full width */
    padding: 3.2rem;
  }

  .product-specs {
    padding: 2.4rem; /* Adjusted padding */
  }

  .carousel-slide {
    display: flex;
    justify-content: center;
    align-items: start;
  }

  .spec-item {
    flex-direction: row; /* Keep as row for better readability */
    align-items: center;
    gap: 1.6rem;
  }

  .spec-label {
    margin-right: 1.6rem;
  }

  .spec-value {
    text-align: right; /* Keep text aligned right */
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 100;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-in;

    /* Hide navigation */
    /* Allows no transitions at ALL */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;
    /* 2) Make it unaccessible to mouse and keyboard */
    pointer-events: none;
    /* 3) Hide it from screen readers */
    visibility: hidden;
  }
  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}

/* ****************** */
/* BELOW 704px (Smaller tablets)*/
/* ****************** */

@media (max-width: 44rem) {
  .heading-secondary {
    margin-bottom: 4.8rem;
  }

  .logo-col {
    grid-column: span 3;
  }

  /* PRODUCT SECTION */
  .product-header {
    margin-bottom: 2.4rem;
  }

  .product-main-image {
    width: 80%; /* Make image smaller on phones */
    margin: 0 auto;
  }

  .product-thumbnails {
    flex-wrap: wrap; /* Allow thumbnails to wrap */
    margin-top: 1.6rem;
  }

  .thumbnail-item {
    width: 6rem; /* Smaller thumbnails on phones */
    height: 6rem;
  }

  .product-title {
    font-size: 2.8rem;
    margin-bottom: 2.4rem;
  }

  .product-short-description {
    font-size: 1.6rem;
    margin-bottom: 2.4rem;
  }

  .specs-heading {
    font-size: 2rem;
    margin-bottom: 1.6rem;
  }

  .support-content {
    grid-template-columns: 1fr;
    gap: 3.2rem;
    margin-bottom: 4.8rem;
  }
  .specs-list {
    gap: 1.2rem;
    margin-bottom: 1.6rem;
  }

  .spec-item {
    padding: 1rem 0;
  }

  .spec-label,
  .spec-value {
    font-size: 1.4rem;
  }

  .product-cta {
    margin-top: 2.4rem;
  }
}

/* ****************** */
/* BELOW 544px (Phones)*/
/* ****************** */

@media (max-width: 34em) {
  .grid {
    row-gap: 4.8rem;
  }

  .btn,
  .btn:link,
  .btn:visited {
    padding: 2.4rem 1.6rem;
  }

  .section-hero {
    padding: 2.4rem 0 6.4rem 0;
  }

  .hero { 
    padding: 0 3.2rem;
  }

  .hero-img {
    width: 80%;
  }

  .brand-showcase {
    padding: 6.4rem 0 4.8rem;
  }

  .brand-subtitle {
    font-size: 1.6rem;
    letter-spacing: 0.05rem;
  }

  .brand-logos {
    gap: 2.4rem 3.2rem;
  }

  .brand-logo {
    max-height: 4.5rem;
    max-width: 16rem;
  }

  /* PRODUCT SECTION */
  .section-product {
    padding: 4.8rem 0;
  }

  .product-header {
    margin-bottom: 4.8rem;
  }

  .product-title {
    font-size: 2.4rem;
    margin-bottom: 3.2rem;
  }

  .product-specs {
    padding: 2.4rem;
  }

  .specs-heading {
    font-size: 2rem;
    margin-bottom: 2.4rem;
  }

  .spec-item {
    padding: 1.2rem 1.6rem;
  }

  .spec-label,
  .spec-value {
    font-size: 1.4rem;
  }

  /* NEW SECTIONS - MOBILE */
  .about .container h2 {
    font-size: 3.2rem;
    margin-bottom: 4.8rem;
  }

  .about .container p {
    font-size: 1.8rem;
    margin-bottom: 2.4rem;
  }

  .services .container h2 {
    font-size: 3.2rem;
    margin-bottom: 4.8rem;
  }

  .service-card {
    padding: 2.4rem 3.2rem;
    font-size: 1.8rem;
  }

  .mv-wrapper {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .mv-card {
    padding: 3.2rem;
  }

  .mv-card h3 {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
  }

  .mv-card p {
    font-size: 1.6rem;
  }

  .presence .highlight {
    font-size: 2.8rem;
  }

  .support-card {
    padding: 3.2rem 2.4rem;
  }

  .support-title {
    font-size: 2rem;
  }

  .support-info {
    font-size: 1.6rem;
  }

  .support-guarantee {
    font-size: 1.6rem;
    margin-bottom: 2.4rem;
  }

  /* NEW SECTIONS - MOBILE */
  .about .container h2 {
    font-size: 3.2rem;
    margin-bottom: 4.8rem;
  }

  .about .container p {
    font-size: 1.8rem;
    margin-bottom: 2.4rem;
  }

  .services .container h2 {
    font-size: 3.2rem;
    margin-bottom: 4.8rem;
  }

  .service-card {
    padding: 2.4rem 3.2rem;
    font-size: 1.8rem;
  }

  .mv-wrapper {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .mv-card {
    padding: 3.2rem;
  }

  .mv-card h3 {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
  }

  .mv-card p {
    font-size: 1.6rem;
  }

  .presence .highlight {
    font-size: 2.8rem;
  }

  .support-content {
    grid-template-columns: 1fr;
    gap: 3.2rem;
    margin-bottom: 4.8rem;
  }

  .support-card {
    padding: 3.2rem 2.4rem;
  }

  .support-title {
    font-size: 2rem;
  }

  .support-info {
    font-size: 1.6rem;
  }

  .support-guarantee {
    font-size: 1.6rem;
    margin-bottom: 2.4rem;
  }
}

