/* Mobile-first responsive styles */

/* ============================================
   MOBILE STYLES (Base - < 768px)
   ============================================ */

/* Mobile Navigation - Hamburger Menu */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    z-index: 60;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-background);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 10) calc(var(--spacing-unit) * 3);
    gap: calc(var(--spacing-unit) * 3);
    transition: right 0.3s ease;
    z-index: 55;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.125rem;
    padding: calc(var(--spacing-unit) * 1.5) 0;
  }

  /* Mobile Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Mobile Sections */
  .section {
    padding: calc(var(--spacing-unit) * 6) 0;
  }

  .section-title {
    margin-bottom: calc(var(--spacing-unit) * 4);
  }

  /* Mobile Product Section */
  .product-row {
    display: block;
  }

  .product-intro,
  .product-details {
    padding: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 3);
  }

  .download-brochure-btn {
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2.5);
    font-size: 0.9375rem;
    width: 100%;
    align-self: stretch;
  }

  .download-icon {
    font-size: 1.125rem;
  }

  .product-carousel-wrapper {
    margin-bottom: calc(var(--spacing-unit) * 3);
  }

  .carousel-control {
    padding: calc(var(--spacing-unit) * 1);
    width: calc(var(--spacing-unit) * 3.5);
    height: calc(var(--spacing-unit) * 3.5);
    font-size: 1rem;
  }

  .carousel-prev {
    left: calc(var(--spacing-unit) * 1);
  }

  .carousel-next {
    right: calc(var(--spacing-unit) * 1);
  }

  .indicator {
    width: calc(var(--spacing-unit) * 1.25);
    height: calc(var(--spacing-unit) * 1.25);
  }

  .product-section-group {
    margin-bottom: calc(var(--spacing-unit) * 4);
  }

  /* Mobile Contact Section */
  .contact-methods {
    grid-template-columns: 1fr;
  }

  /* Mobile Office Section */
  .office-card {
    padding: calc(var(--spacing-unit) * 2);
  }

  .office-title {
    font-size: 1.25rem;
  }

  .address-line {
    font-size: 0.9375rem;
  }

  .address-icon {
    font-size: 1.25rem;
    width: calc(var(--spacing-unit) * 2.5);
  }
}

/* ============================================
   TABLET STYLES (768px - 1023px)
   ============================================ */

@media (min-width: 768px) {
  /* Tablet Navigation - Show full menu */
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  /* Tablet Logo */
  .logo-image {
    height: var(--logo-height-tablet);
  }

  /* Tablet Company Name - Show on tablets and up */
  .company-name {
    display: inline;
  }

  /* Tablet Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Tablet Container */
  .container {
    padding: 0 calc(var(--spacing-unit) * 3);
  }

  /* Tablet Sections */
  .section {
    padding: calc(var(--spacing-unit) * 8) 0;
  }

  /* Tablet Product Section */
  .product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 5);
  }

  .product-intro,
  .product-details {
    padding: calc(var(--spacing-unit) * 2);
  }

  .carousel-control {
    padding: calc(var(--spacing-unit) * 1.25);
    width: calc(var(--spacing-unit) * 4);
    height: calc(var(--spacing-unit) * 4);
    font-size: 1.125rem;
  }

  .carousel-prev {
    left: calc(var(--spacing-unit) * 1.5);
  }

  .carousel-next {
    right: calc(var(--spacing-unit) * 1.5);
  }

  .download-brochure-btn {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    font-size: 1rem;
    width: fit-content;
    align-self: flex-start;
  }

  .download-icon {
    font-size: 1.25rem;
  }

  .indicator {
    width: calc(var(--spacing-unit) * 1.5);
    height: calc(var(--spacing-unit) * 1.5);
  }

  /* Tablet Contact Section */
  .contact-methods {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 5);
  }

  .contact-method {
    padding: calc(var(--spacing-unit) * 4);
  }

  /* Tablet Office Section */
  .office-card {
    padding: calc(var(--spacing-unit) * 3);
  }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  /* Desktop Typography */
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  /* Desktop Container */
  .container {
    padding: 0 calc(var(--spacing-unit) * 4);
  }

  /* Desktop Navigation */
  .nav-container {
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 4);
  }

  .nav-menu {
    gap: calc(var(--spacing-unit) * 5);
  }

  /* Desktop Logo */
  .logo-image {
    height: var(--logo-height-desktop);
  }

  /* Desktop Sections */
  .section {
    padding: var(--spacing-section) 0;
  }

  .section-title {
    margin-bottom: calc(var(--spacing-unit) * 8);
  }

  /* Desktop Product Section */
  .product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
  }

  .product-intro,
  .product-details {
    padding: calc(var(--spacing-unit) * 3);
  }

  .carousel-control {
    padding: calc(var(--spacing-unit) * 1.5);
    width: calc(var(--spacing-unit) * 4.5);
    height: calc(var(--spacing-unit) * 4.5);
    font-size: 1.25rem;
  }

  .carousel-prev {
    left: calc(var(--spacing-unit) * 2);
  }

  .carousel-next {
    right: calc(var(--spacing-unit) * 2);
  }

  .indicator {
    width: calc(var(--spacing-unit) * 1.5);
    height: calc(var(--spacing-unit) * 1.5);
  }

  .product-description {
    font-size: 1.25rem;
  }

  .download-brochure-btn {
    padding: calc(var(--spacing-unit) * 1.75) calc(var(--spacing-unit) * 3.5);
    font-size: 1.0625rem;
  }

  .download-icon {
    font-size: 1.375rem;
  }

  /* Desktop About Section */
  .about-text {
    font-size: 1.25rem;
  }

  /* Desktop Contact Section */
  .contact-intro {
    font-size: 1.25rem;
  }

  .contact-methods {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
  }

  .contact-method {
    padding: calc(var(--spacing-unit) * 5);
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
  /* Increase touch target sizes for better usability */
  .nav-link {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1);
  }

  .nav-toggle {
    padding: calc(var(--spacing-unit) * 2);
  }

  .social-link {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  }

  /* Remove hover effects on touch devices */
  a:hover {
    color: var(--color-primary);
  }
}

/* ============================================
   LARGE DESKTOP (1440px+)
   ============================================ */

@media (min-width: 1440px) {
  /* Larger container for wide screens */
  .container {
    max-width: 1400px;
  }

  /* Larger typography for better readability */
  h1 {
    font-size: 3.5rem;
  }

  .product-description,
  .about-text,
  .contact-intro {
    font-size: 1.375rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .nav-toggle,
  .skip-link {
    display: none;
  }

  .header {
    position: static;
    box-shadow: none;
  }

  .section {
    page-break-inside: avoid;
  }
}
