/* ========================================
   RESPONSIVE STYLES
   Mobile First Breakpoints:
   - sm: 640px
   - md: 768px
   - lg: 1024px
   - xl: 1280px
======================================== */

/* ========================================
   TABLET & BELOW (max-width: 1024px)
======================================== */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .about__grid {
    gap: var(--spacing-xl);
  }
}

/* ========================================
   MOBILE NAVIGATION (max-width: 768px)
======================================== */
@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  /* Header Mobile */
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-xl);
    gap: var(--spacing-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__nav-link {
    font-size: var(--text-lg);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .header__contact {
    position: absolute;
    right: 60px;
  }

  .header__phone {
    padding: var(--spacing-sm);
    background: none;
  }

  .header__phone span {
    display: none;
  }

  .header__phone svg {
    width: 24px;
    height: 24px;
  }

  /* Toggle Animation */
  .header__toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .header__toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Hero Mobile */
  .hero {
    min-height: 70vh;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  /* About Mobile */
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__image {
    order: -1;
  }

  /* Footer Mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__contact-item {
    justify-content: center;
  }

  /* WhatsApp Button */
  .whatsapp-float {
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 55px;
    height: 55px;
  }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
======================================== */
@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
    --spacing-3xl: 3rem;
  }

  .btn {
    width: 100%;
    padding: var(--spacing-md);
  }

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

  .service-card {
    padding: var(--spacing-lg);
  }
}

/* ========================================
   LANDSCAPE PHONES
======================================== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height-mobile) + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
  }
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  .header,
  .footer,
  .whatsapp-float,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero {
    background: none;
    color: #000;
    min-height: auto;
    padding: 20pt 0;
  }

  .section {
    padding: 20pt 0;
  }
}
