/* =========================================
   VivaahSetu - Responsive Stylesheet
   Mobile-first responsive design
   ========================================= */

/* =========================================
   LARGE DESKTOPS (1400px+)
   ========================================= */
@media (min-width: 1400px) {
  .hero-title { font-size: 5rem; }
  .container { max-width: 1320px; }
  .section-title { font-size: 3.2rem; }
}

/* =========================================
   DESKTOPS (992px - 1199px)
   ========================================= */
@media (max-width: 1199px) {
  .hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
  .gallery-grid { columns: 3 200px; }
  .timeline-content { width: 47%; }
  .pricing-card { padding: 2rem; }
}

/* =========================================
   TABLETS (768px - 991px)
   ========================================= */
@media (max-width: 991px) {
  /* Navbar */
  .navbar-main { padding: 0.75rem 0; }
  .navbar-collapse {
    background: rgba(15, 15, 26, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(212,175,55,0.15);
  }
  .navbar-main.scrolled .navbar-collapse {
    background: rgba(255, 248, 242, 0.97);
  }
  [data-theme="dark"] .navbar-main.scrolled .navbar-collapse {
    background: rgba(15, 15, 26, 0.97);
  }
  .navbar-main.scrolled .nav-link { color: var(--elegant-dark) !important; }
  .navbar-nav { gap: 0.25rem; }
  .nav-link { padding: 0.6rem 0.5rem !important; }
  .navbar-nav .d-flex { margin-top: 1rem; gap: 0.75rem; flex-wrap: wrap; }

  /* Hero */
  .hero-section { min-height: auto; padding: 6rem 0 4rem; }
  .hero-image-card { margin-top: 2rem; }
  .hero-image-card img { height: 350px; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.5rem; }
  .hero-buttons { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }

  /* Sections */
  .section-padding { padding: 70px 0; }
  .section-title { font-size: 2.2rem; }

  /* Search */
  .search-glass-card { padding: 2rem; }

  /* Gallery */
  .gallery-grid { columns: 2 200px; }

  /* Timeline */
  .timeline::before { left: 20px; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .timeline-dot { left: 20px; }

  /* Counters */
  .counter-num { font-size: 2.5rem; }

  /* Pricing */
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-10px); }

  /* Auth */
  .auth-illustration { display: none; }
  .auth-card { padding: 2rem; }

  /* Filter Sidebar */
  .filter-sidebar { position: static; margin-bottom: 2rem; }

  /* Testimonials - remove float animation on tablet */
  .testimonial-card { animation: none; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* =========================================
   MOBILE (576px - 767px)
   ========================================= */
@media (max-width: 767px) {
  /* Typography */
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .section-title { font-size: 1.9rem; }
  .section-subtitle { font-size: 0.95rem; }
  .page-hero-title { font-size: 2rem; }

  /* Section Padding */
  .section-padding { padding: 60px 0; }

  /* Hero */
  .hero-section { padding: 5rem 0 3rem; }
  .hero-stats { justify-content: space-around; gap: 1rem; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.68rem; }
  .hero-scroll { display: none; }
  .hero-image-card { display: none; }

  /* Search */
  .search-glass-card { padding: 1.5rem; }

  /* Gallery */
  .gallery-grid { columns: 2 150px; gap: 0.75rem; }

  /* Counter */
  .counter-num { font-size: 2rem; }
  .counter-icon { font-size: 1.5rem; }

  /* Counters section - grid fix */
  .counters-section .row > div { margin-bottom: 1.5rem; }
  .counters-section .row > div:last-child { margin-bottom: 0; }

  /* Profile cards */
  .profile-img-wrapper { height: 220px; }

  /* Story card */
  .story-img-wrapper { height: 220px; }

  /* AI Section */
  .compat-circle { width: 100px; height: 100px; }
  .compat-pct { font-size: 1.2rem; }

  /* Newsletter */
  .newsletter-input-group { flex-direction: column; gap: 0.75rem; }
  .newsletter-input { border-radius: 50px; border-right: 1px solid rgba(255,255,255,0.2); }
  .btn-newsletter { border-radius: 50px; padding: 0.9rem; text-align: center; }

  /* Testimonials */
  .testimonial-card { animation: none; margin-bottom: 1.5rem; }

  /* Trust badges */
  .trust-badge { padding: 1rem; }

  /* Footer */
  .footer { padding: 50px 0 0; }
  .footer-brand-logo { font-size: 1.6rem; }
  .footer-social { justify-content: flex-start; }
  .footer-app-btn { width: 100%; }

  /* Billing toggle */
  .billing-toggle { width: 100%; }
  .billing-btn { flex: 1; text-align: center; padding: 0.6rem 1rem; font-size: 0.8rem; }

  /* Pricing */
  .pricing-card.popular { transform: none; }
  .plan-price { gap: 0.15rem; }
  .price-amount { font-size: 2.5rem; }

  /* Auth */
  .auth-page { padding: 3rem 0; }
  .auth-card { padding: 1.75rem; }
  .auth-title { font-size: 1.5rem; }
  .social-login { flex-direction: column; }

  /* Contact */
  .map-wrapper { height: 300px; }

  /* Swiper nav buttons */
  .swiper-button-next, .swiper-button-prev { display: none; }

  /* Back to top & WhatsApp positioning */
  .whatsapp-btn { bottom: 4.5rem; right: 1rem; width: 46px; height: 46px; font-size: 1.2rem; }
  .back-to-top { right: 1rem; bottom: 1rem; width: 40px; height: 40px; }
}

/* =========================================
   SMALL MOBILE (< 576px)
   ========================================= */
@media (max-width: 575px) {
  .hero-title { font-size: 1.9rem; }
  .hero-badge { font-size: 0.7rem; }
  .section-title { font-size: 1.75rem; }
  .page-hero-title { font-size: 1.8rem; }

  /* Gallery - single column on very small */
  .gallery-grid { columns: 1; }

  /* Navbar brand */
  .navbar-brand { font-size: 1.5rem; }

  /* Profile meta */
  .profile-meta { flex-direction: column; gap: 0.25rem; }

  /* Counters - 2 per row */
  .counters-section .col-6 { margin-bottom: 1rem; }

  /* Timeline - simplified */
  .timeline-content { padding: 1rem !important; }
  .timeline-year { font-size: 1rem; }

  /* Story detail */
  .story-detail-img { height: 250px; }
  .story-detail-body { padding: 1.5rem; }
  .story-detail-title { font-size: 1.4rem; }
  .story-journey { gap: 1rem; }

  /* Pricing compact */
  .pricing-card { padding: 1.5rem; }
  .plan-features li { font-size: 0.8rem; }

  /* Compare table - scroll */
  .compare-table { overflow-x: auto; }
  .compare-table table { min-width: 500px; }

  /* Contact form */
  .contact-form-wrapper { padding: 1.5rem; }

  /* FAQ */
  .faq-question { padding: 1rem; }
  .faq-answer p { padding: 0 1rem 1rem; }

  /* Page hero */
  .page-hero-content { padding: 6rem 0 3rem; }

  /* Trust strip */
  .trust-strip-inner { gap: 2rem; }
}

/* =========================================
   LANDSCAPE PHONE
   ========================================= */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section { min-height: auto; padding: 4rem 0 2rem; }
  .hero-image-card { display: none; }
  .auth-page { min-height: auto; }
}

/* =========================================
   HIGH DPI / RETINA SCREENS
   ========================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg { background-image: url('https://images.unsplash.com/photo-1583939003579-730e3918a45a?w=2560&q=90'); }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  .navbar-main, .whatsapp-btn, .back-to-top, #page-loader, #scroll-progress,
  .floating-hearts, .hero-scroll, .newsletter-section, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  .section-padding { padding: 2rem 0; }
}

/* =========================================
   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;
  }
  .hero-bg { animation: none; }
  [data-aos] { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* =========================================
   DARK MODE RESPONSIVE ADJUSTMENTS
   ========================================= */
[data-theme="dark"] .navbar-main.scrolled .navbar-collapse {
  background: rgba(15,15,26,0.97);
  border-color: rgba(212,175,55,0.1);
}
[data-theme="dark"] .navbar-main.scrolled .nav-link { color: #e8e8e8 !important; }
[data-theme="dark"] .navbar-main.scrolled .navbar-brand { color: var(--royal-gold) !important; }
[data-theme="dark"] .navbar-main.scrolled .btn-nav-login { color: #e8e8e8 !important; border-color: rgba(212,175,55,0.4); }
[data-theme="dark"] .navbar-main.scrolled .dark-mode-toggle { color: var(--royal-gold); border-color: rgba(212,175,55,0.4); }
[data-theme="dark"] .section-title { color: #e8e8e8; }
[data-theme="dark"] .timeline-title { color: #e8e8e8; }
[data-theme="dark"] .value-card h5 { color: #e8e8e8; }
[data-theme="dark"] .team-name { color: #e8e8e8; }
[data-theme="dark"] .plan-name { color: #e8e8e8; }
[data-theme="dark"] .plan-features li { color: #e8e8e8; border-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .filter-title { color: #e8e8e8; border-color: rgba(212,175,55,0.1); }
[data-theme="dark"] .filter-group label { color: #e8e8e8; }
[data-theme="dark"] .profile-name { color: #e8e8e8; }
[data-theme="dark"] .contact-card h5 { color: #e8e8e8; }
[data-theme="dark"] .faq-item { border-color: rgba(212,175,55,0.1); }
[data-theme="dark"] .compare-table th { background: var(--royal-maroon-dark); }
[data-theme="dark"] .compare-table td { color: #e8e8e8; border-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .compare-table th:first-child, 
[data-theme="dark"] .compare-table td:first-child { color: #e8e8e8; }
[data-theme="dark"] .profile-count-badge { background: rgba(212,175,55,0.15); color: var(--royal-gold); }
[data-theme="dark"] .view-btn { background: rgba(26,26,46,0.9); border-color: rgba(212,175,55,0.2); color: rgba(255,255,255,0.5); }
[data-theme="dark"] .sort-select option { background: #1a1a2e; }
[data-theme="dark"] .auth-input-group select option { background: #1a1a2e; }
[data-theme="dark"] .testimonial-name { color: #e8e8e8; }
[data-theme="dark"] .story-detail-title { color: #e8e8e8; }
[data-theme="dark"] .contact-form-wrapper { border-color: rgba(212,175,55,0.12); }
