/* ============================================
   Responsive Design
   ============================================ */

/* Tablets (768px and up) */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .nav-menu {
    gap: var(--spacing-lg);
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .packages-grid,
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }

  /* About page - tablet keep 2 columns with better gap */
  .about-story-grid,
  .about-mission-grid {
    gap: 2.5rem !important;
  }
}

/* Mobile (576px and down) */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  /* Header */
  .nav-menu {
    display: none;
  }

  .btn-menu-toggle {
    display: flex;
  }

  .nav-actions {
    gap: var(--spacing-sm);
  }

  .btn-review {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Hero Section */
  .hero {
    margin-top: 60px;
    height: 80vh;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
  }

  .hero-cta {
    gap: var(--spacing-md);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
  }

  .stat-card {
    padding: var(--spacing-md);
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Sections */
  .section-title {
    font-size: 1.5rem;
  }

  .section-padding {
    padding: 2.5rem 0 !important;
  }

  /* Buttons */
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  /* Packages Grid */
  .packages-grid,
  .reasons-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* About Page - Responsive grids */
  .about-story-grid,
  .about-mission-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-lg) !important;
    margin-bottom: 2rem !important;
  }

  .about-image {
    width: 100% !important;
    height: auto !important;
    min-height: 280px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Package Card */
  .package-card {
    flex-direction: column;
  }

  .package-image {
    height: 200px;
  }

  .package-price {
    font-size: 1.5rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--spacing-lg);
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .cta-banner p {
    font-size: 1rem;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    min-width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  /* Chatbot */
  .chatbot-widget {
    bottom: 20px;
    right: 20px;
  }

  .chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .chatbot-container {
    width: 90vw;
    height: 60vh;
    max-width: 350px;
  }

  .whatsapp-float {
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1rem;
  }

  .hero {
    height: 70vh;
    margin-top: 60px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.65rem var(--spacing-md);
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-padding {
    padding: var(--spacing-lg) 0;
  }

  .stat-card {
    padding: var(--spacing-sm);
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .reason-card {
    padding: var(--spacing-lg);
  }

  .reason-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .package-price {
    font-size: 1.25rem;
  }

  .footer-content {
    gap: var(--spacing-lg);
  }

  /* About page - small mobile */
  .about-story-grid,
  .about-mission-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
    margin-bottom: 1.5rem !important;
  }

  .about-image {
    min-height: 240px !important;
    width: 100% !important;
  }

  .container {
    padding: 0 1rem !important;
  }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: auto;
    padding: var(--spacing-xl) 0;
    margin-top: 80px;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
  }

  .scroll-indicator {
    display: none;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .chatbot-widget,
  .whatsapp-float,
  .mobile-menu {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: blue;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
  }

  .nav-link {
    padding: var(--spacing-md) 0;
  }

  .reason-card,
  .package-card {
    transform: none;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .loader-circle {
    border-width: 3px;
  }

  .scroll-arrow span {
    height: 6px;
  }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
  body.dark-mode {
    background-color: #1a1a1a;
    color: #f5f7fa;
  }

  body.dark-mode .package-card,
  body.dark-mode .reason-card,
  body.dark-mode .testimonial-card {
    background: #2a2a2a;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
  .btn {
    border: 2px solid currentColor;
  }

  a {
    text-decoration: underline;
  }
}
