/*!
 * Letícia Barros | Advocacia para Autistas
 * Responsive Styles for Mobile and Tablet
 */

/* ===================================
   MOBILE MENU SPECIFIC STYLES
=================================== */
@media (max-width: 768px) {
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Mobile menu overlay */
  .main-navigation {
    box-shadow: var(--shadow-xl);
  }
  
  .main-navigation.active {
    animation: slideInRight 0.3s ease-out;
  }
  
  @keyframes slideInRight {
    from {
      left: -100%;
    }
    to {
      left: 0;
    }
  }
  
  /* Mobile menu items */
  .main-navigation ul li {
    animation: fadeInUp 0.4s ease-out backwards;
  }
  
  .main-navigation ul li:nth-child(1) { animation-delay: 0.1s; }
  .main-navigation ul li:nth-child(2) { animation-delay: 0.15s; }
  .main-navigation ul li:nth-child(3) { animation-delay: 0.2s; }
  .main-navigation ul li:nth-child(4) { animation-delay: 0.25s; }
  .main-navigation ul li:nth-child(5) { animation-delay: 0.3s; }
  .main-navigation ul li:nth-child(6) { animation-delay: 0.35s; }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Mobile CTA button in menu */
  .main-navigation .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   TABLET OPTIMIZATIONS
=================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    gap: var(--spacing-md);
  }
}

/* ===================================
   SMALL MOBILE DEVICES
=================================== */
@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
  
  .service-icon,
  .value-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .team-member {
    grid-template-columns: 1fr;
  }
  
  .member-photo {
    max-width: 250px;
    margin: 0 auto;
  }
}

/* ===================================
   PRINT STYLES
=================================== */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .hero-cta,
  .contact-cta,
  .site-footer,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  p, ul, ol {
    page-break-inside: avoid;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }
}

/* ===================================
   HIGH CONTRAST MODE
=================================== */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000066;
    --color-secondary: #0000cc;
    --color-accent: #ffcc00;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-accent {
    border: 2px solid currentColor;
  }
}

/* ===================================
   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;
  }
  
  .glass-reflect::before {
    display: none;
  }
}

/* ===================================
   DARK MODE (Optional)
=================================== */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode support
  :root {
    --color-white: #1a1a1a;
    --color-dark: #ffffff;
    --color-gray-100: #2d2d2d;
    --color-gray-200: #3a3a3a;
    --color-gray-700: #d1d1d1;
    --color-gray-800: #e5e5e5;
  }
  
  body {
    background: var(--color-white);
    color: var(--color-dark);
  }
  
  .site-header {
    background: rgba(26, 26, 26, 0.95);
  }
  
  .hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, var(--color-primary) 100%);
  }
  */
}

/* ===================================
   NEW ELEMENTS RESPONSIVE
=================================== */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-logo-image {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .logo-main {
    font-size: 1.25rem;
  }
  
  .logo-sub {
    font-size: 0.75rem;
  }
  
  .hero-logo-image {
    max-width: 300px;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
  }
  
  .method-icon {
    margin: 0 auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-about .footer-logo {
    justify-content: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-contact-list li {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero-logo-image {
    max-width: 250px;
  }
  
  .contact-cta-box .btn {
    width: 100%;
    justify-content: center;
  }
}
