/* Responsive Design Enhancements */

/* Extra Large Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .banner-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Large Screens */
@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }

  .banner-section {
    height: 50vh;
    min-height: 350px;
  }

  .banner-title {
    font-size: 3rem;
  }

  .nav-list {
    gap: 1.5rem;
  }
}

/* Medium Screens */
@media (max-width: 1024px) {
  .banner-section {
    height: 45vh;
    min-height: 320px;
  }

  .banner-title {
    font-size: 2.5rem;
  }

  .forces-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .units-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Tablet Screens */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--secondary-color);
    transition: var(--transition-medium);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    height: auto;
    justify-content: flex-start;
  }

  .nav-item {
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
  }

  .banner-section {
    height: 40vh;
    min-height: 300px;
    margin-top: 70px;
  }

  .banner-content {
    background-attachment: scroll !important;
    background-size: cover !important;
  }

  .banner-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .forces-grid,
  .units-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid,
  .instagram-feed {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .card-contacts {
    flex-direction: column;
    gap: 0.75rem;
  }

  .separator {
    display: none;
  }

  .contact-link {
    width: 100%;
    text-align: center;
  }

  /* Gallery specific */
  .main-image-container {
    height: 250px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  /* Contact page specific */
  .contact-info-container {
    padding: 2rem;
    margin: 0 1rem;
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0;
  }

  .contact-info-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Mobile Screens */
@media (max-width: 480px) {
  .banner-section {
    height: 35vh;
    min-height: 280px;
    margin-top: 60px;
  }

  .banner-title {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .banner-subtitle {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .container {
    padding: 0 10px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .force-content,
  .card-content {
    padding: 1rem;
  }

  .feature-item,
  .contact-info-card {
    padding: 1.5rem;
  }

  .contact-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .banner-content {
    background-size: 150% !important;
  }

  /* Gallery specific */
  .thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact page specific */
  .contact-info-container {
    padding: 1.5rem;
  }

  .contact-info-icon {
    width: 60px;
    height: 60px;
  }

  .contact-info-icon svg {
    width: 30px;
    height: 30px;
  }

  .contact-info-title {
    font-size: 1.25rem;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95%;
    margin: 0 10px;
  }

  .whatsapp-tooltip {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Extra Small Screens */
@media (max-width: 360px) {
  .banner-section {
    height: 30vh;
    min-height: 250px;
  }

  .banner-title {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-item,
  .contact-info-card {
    padding: 1rem;
  }

  .contact-info-card h3,
  .feature-item h3 {
    font-size: 1.2rem;
  }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .banner-section {
    height: 80vh;
    min-height: 300px;
  }

  .nav-menu {
    height: calc(100vh - 60px);
  }
}

/* Ensure banner text is always visible */
@media (max-height: 400px) {
  .banner-section {
    min-height: 350px;
  }

  .banner-text {
    padding: 1rem;
  }

  .banner-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .banner-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .btn-primary {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Print styles */
@media print {
  .header,
  .whatsapp-float,
  .whatsapp-modal,
  .nav-toggle {
    display: none !important;
  }

  .banner-section {
    height: auto;
    min-height: auto;
    margin-top: 0;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .section-title,
  .banner-title {
    color: black !important;
    background: none !important;
    -webkit-text-fill-color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --border-color: #ffffff;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #ffffff;
    color: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pulse-animation {
    animation: none;
  }

  .banner-content {
    background-attachment: scroll !important;
  }
}

/* Focus visible support */
@supports selector(:focus-visible) {
  .nav-link:focus {
    outline: none;
  }

  .nav-link:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
  }

  .btn-primary:focus {
    outline: none;
  }

  .btn-primary:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
  }
}
