/* ==========================================================================
   Nivon - Responsive Styles
   ========================================================================== */

/* ==========================================================================
   Tablet (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  /* Features Grid */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* How It Works */
  .how-it-works__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works__steps::before {
    display: none;
  }

  /* Why Us */
  .why-us__container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .why-us__content {
    max-width: 100%;
    text-align: center;
  }

  .why-us__list {
    align-items: center;
  }

  .why-us__visual {
    max-width: 500px;
    margin: 0 auto;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ==========================================================================
   Mobile Large (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  /* Header */
  .header__container {
    height: 70px;
  }

  .header__nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    gap: var(--space-sm);
  }

  .header__nav.active {
    display: flex;
  }

  .header__cta {
    margin-left: 0;
    width: 100%;
  }

  .header__cta .btn {
    width: 100%;
  }

  .header__mobile-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: calc(70px + var(--space-xl));
    min-height: auto;
    padding-bottom: var(--space-xl);
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  /* Features */
  .features__grid {
    grid-template-columns: 1fr;
  }

  /* How It Works */
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .step__number {
    width: 64px;
    height: 64px;
    font-size: var(--font-h4);
  }

  /* Why Us */
  .why-us__visual {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Mobile Small (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  /* Hero */
  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  /* Feature Cards */
  .feature-card {
    padding: var(--space-md);
  }

  /* Steps */
  .step__number {
    width: 56px;
    height: 56px;
    font-size: var(--font-h5);
  }

  /* Stats */
  .stat-card {
    padding: var(--space-md);
  }

  .stat-card__number {
    font-size: var(--font-h3);
  }

  /* Contact Cards */
  .contact-card {
    padding: var(--space-md);
  }

  /* Legal Pages */
  .legal-page__content {
    padding: 0 var(--space-sm);
  }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .header,
  .hero__visual,
  .btn,
  .contact {
    display: none;
  }

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

  .container {
    max-width: 100%;
    padding: 0;
  }

  .section {
    padding: 1rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
}
