/* Mobile styles (default, no media query needed - mobile first) */

/* Navigation mobile */
.nav--active {
  transform: translateX(0) !important;
}

.nav__overlay--visible {
  display: block !important;
}

body.nav-open {
  overflow: hidden;
}

/* Header/mobile adjustments */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    padding: 100px var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-lg);
  }

  .nav__list {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
  }

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

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

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

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

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

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

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

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .product-detail__inner,
  .case-detail__inner,
  .contact-section__grid {
    grid-template-columns: 1fr;
  }

  .product-detail__inner--reverse .product-detail__image {
    order: 0;
  }

  .contact-section__grid {
    gap: var(--space-2xl);
  }

  .timeline__list {
    padding-left: 30px;
  }

  .competency-detail {
    flex-direction: column;
    gap: var(--space-md);
  }

  .card--feature {
    padding: var(--space-xl);
  }

  .card--product .card__image,
  .card--case .card__image {
    height: 160px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .cta-section__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .product-nav__list {
    flex-direction: column;
    align-items: center;
  }

  .product-nav__link {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .product-detail__inner,
  .case-detail__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .product-detail__inner--reverse .product-detail__image {
    order: 0;
  }

  .contact-section__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* Small desktop */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    padding: 0 32px;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .container {
    padding: 0 40px;
  }

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

/* Print styles */
@media print {
  .header, .hamburger, .nav__overlay, .hero__scroll,
  .cta-section, .footer, .btn {
    display: none !important;
  }

  .section {
    padding: 1cm 0;
    break-inside: avoid;
  }

  .hero {
    min-height: auto;
    padding: 2cm 0;
  }

  .hero__bg { display: none; }
  .hero__title, .hero__subtitle { color: #000; }
}
