/* ============================================
   La Estancia Miramar - Responsive Styles
   ============================================ */

/* ============================================
   Tablet (768px and below)
   ============================================ */
@media (max-width: 768px) {
  /* Typography adjustments */
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.25rem;
  }
  
  /* Navigation */
  .navbar {
    flex-wrap: wrap;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    padding: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .header-contact {
    order: -1;
    width: 100%;
    justify-content: center;
    padding-bottom: var(--space-sm);
  }
  
  /* Hero */
  .hero {
    min-height: 500px;
  }
  
  .hero-content {
    padding: var(--space-xl) var(--space-sm);
  }
  
  /* Sections */
  .section {
    padding: var(--space-2xl) 0;
  }
  
  /* Grid */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  /* Modal */
  .modal-content {
    padding: var(--space-lg);
    margin: var(--space-sm);
  }
  
  /* Buttons */
  .btn {
    padding: var(--space-sm) var(--space-md);
  }
  
  .btn-lg {
    padding: var(--space-md) var(--space-lg);
  }
}

/* ============================================
   Mobile (576px and below)
   ============================================ */
@media (max-width: 576px) {
  /* Container */
  .container {
    padding: 0 var(--space-sm);
  }
  
  /* Typography */
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.5rem;
    --fs-body: 1rem;
  }
  
  /* Hero */
  .hero {
    min-height: 400px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Sections */
  .section {
    padding: var(--space-xl) 0;
  }
  
  /* Cards */
  .card {
    padding: var(--space-md);
  }
  
  /* Forms */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Footer */
  .footer {
    padding: var(--space-2xl) 0 var(--space-md);
  }
  
  .footer-social a {
    width: 35px;
    height: 35px;
  }
}

/* ============================================
   Large Desktop (1200px and above)
   ============================================ */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .hero {
    min-height: 700px;
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .header,
  .footer,
  .btn,
  .modal,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* ============================================
   Accessibility
   ============================================ */
@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;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-gold);
  color: var(--primary-dark);
  padding: var(--space-sm);
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}