/* RESPONSIVE STYLES */

/* Global responsive adjustments */
@media screen and (max-width: 1400px) {
  .container {
    max-width: 100%;
    padding: 0 3rem;
  }
  
  /* Adjust base font sizes for the entire site */
  :root {
    --fs-h1: 2.85rem;
    --fs-h2: 2.35rem;
    --fs-h3: 1.65rem;
    --fs-h4: 1.2rem;
  }
}

/* Tablets and smaller desktops */
@media screen and (max-width: 992px) {
  /* Global adjustments */
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 2.2rem;
    --fs-h3: 1.55rem;
    --fs-h4: 1.15rem;
    --fs-p: 0.95rem;
    --fs-small: 0.85rem;
    --fs-span: 0.95rem;
    --fs-a: 0.95rem;
    --fs-button: 0.95rem;
    --fs-label: 0.95rem;
    --fs-input: 0.95rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  /* Header adjustments for tablet and mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links a {
    font-size: var(--fs-h2);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .burger {
    display: block;
    z-index: 1000;
  }
  
  /* Hero section */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap:30px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .floating-badge {
    right: 10%;
  }
  
  /* Collection section */
  .collection-item {
    grid-template-columns: 1fr;
    gap:30px;
  }
  
  .collection-item.reverse {
    display: flex;
    flex-direction: column-reverse;
    gap:30px;
  }
  
  .collection-details {
    text-align: center;
  }
  
  .feature-list {
    display: inline-block;
    text-align: left;
  }
  
  /* Features section */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Ergonomics section */
  .ergonomics-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .ergonomics-section .section-header {
    text-align: center;
    margin: 0 auto 2rem;
  }
  
  /* Showroom section */
  .showroom-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .showroom-section .section-header {
    text-align: center;
    margin: 0 auto 2rem;
  }
  
  /* Contact section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
  /* Global adjustments */
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 2rem;
    --fs-h3: 1.45rem;
    --fs-h4: 1.1rem;
    --fs-p: 0.9rem;
    --fs-small: 0.8rem;
    --fs-span: 0.9rem;
    --fs-a: 0.9rem;
    --fs-button: 0.9rem;
    --fs-label: 0.9rem;
    --fs-input: 0.9rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  /* Header */
  .header-inner {
    height: 70px;
  }

  
  /* Hero section */

  .hero-section{
    padding: 140px 0px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Features section */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Ergonomics section */
  .tab-headers {
    flex-direction: column;
    border-bottom: none;
  }
  
  .tab-button {
    border-bottom: 1px solid var(--grey-light);
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }
  
  .tab-button::after {
    display: none;
  }
  
  .tab-panel.active, .testimonial-card, .testimonial-author{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-author img{
    align-self: center;
  }
  
  .tab-button.active {
    background-color: rgba(58, 54, 224, 0.05);
  }
  
  /* Testimonials section */
  .testimonial-card {
    padding: 20px;
  }
  
  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-links h4::after,
  .footer-legal h4::after,
  .footer-contact h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links ul,
  .footer-legal ul,
  .footer-contact ul {
    align-items: center;
  }
}

@media screen and (max-width: 576px) {
  .callout{
    display: none;
  }
}
/* Very small mobile devices */
@media screen and (max-width: 480px) {
  /* Global adjustments */
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.35rem;
    --fs-h4: 1.05rem;
    --fs-p: 0.85rem;
    --fs-small: 0.75rem;
    --fs-span: 0.85rem;
    --fs-a: 0.85rem;
    --fs-button: 0.85rem;
    --fs-label: 0.85rem;
    --fs-input: 0.85rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Hero section */
  .floating-badge {
    width: 80px;
    height: 80px;
  }
  
  .feature-card{
    padding: 20px;
  }
  /* Contact form */
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .contact-form .btn {
    width: 100%;
  }
  
  /* Showroom section */
  .gallery-grid {
    gap: 0.5rem;
  }
}

/* Add blur overlay when mobile menu is active */
body.nav-active {
  overflow: hidden;
}

body.nav-active::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* backdrop-filter: blur(5px); */
  z-index: 998;
}
