/* ==========================================================================
   Modern Astrology & Kundli Template - Responsive Design Styles
   ========================================================================== */

/* Tablet & Mobile Layout Adaptations */
@media screen and (max-width: 1024px) {
  /* Navigation */
  .nav-menu {
    gap: 1.5rem;
  }
  
  /* About Page/Section */
  .about-grid {
    gap: 3rem;
  }

  /* Booking Layout */
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Contact Page Layout */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  /* Footer Grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media screen and (max-width: 768px) {
  /* Global Adjustments */
  h2 {
    margin-bottom: 2.5rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }

  /* Sticky Navigation for Mobile */
  .nav-toggle {
    display: block; /* Show hamburger button */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-gold);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-cta {
    display: none; /* Hide telephone/button in header on mobile to save space */
  }

  /* Add visible CTA links in mobile menu if desired via JS, or place in home */
  
  /* Hero Section Mobile */
  .hero {
    text-align: center;
    padding-top: 140px;
    min-height: auto;
    padding-bottom: 6rem;
  }

  .hero-subtitle {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Quick Consultation Form Section */
  .quick-booking-section {
    margin-top: 0;
    padding: 2.5rem 0;
  }

  .quick-form-wrapper {
    padding: 1.5rem;
  }

  .quick-form {
    grid-template-columns: 1fr; /* Stack form vertically on mobile */
    gap: 1.25rem;
  }
  
  .quick-form .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* About Section Mobile */
  .about-grid {
    grid-template-columns: 1fr; /* Stack picture and details */
    gap: 2.5rem;
  }

  .about-image img {
    height: 380px;
  }

  .about-features {
    grid-template-columns: 1fr; /* Single column features list */
  }

  /* Process Timeline Mobile (Convert to single column) */
  .timeline::before {
    left: 20px; /* Shift central line to the left edge */
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left; /* Reset to left text */
  }

  .timeline-item:nth-child(even) {
    left: 0; /* Reset to start from the left line */
  }

  .timeline-number {
    left: 0 !important; /* Force position numbers over the left line */
    right: auto !important;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 2rem 1rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* Booking Page Form */
  .booking-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .booking-grid-fields {
    grid-template-columns: 1fr; /* Single column inputs */
  }

  .booking-grid-fields .form-group-full {
    grid-column: span 1;
  }

  /* Contact Section Map */
  .contact-map-wrapper {
    height: 320px;
  }
  
  /* Footer */
  footer {
    padding: 4rem 0 2rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* Complete stacking */
    gap: 2.5rem;
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%); /* Center underline indicator */
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media screen and (max-width: 480px) {
  /* Small screen adjustments */
  .about-image img {
    height: 280px;
  }

  .experience-badge {
    padding: 1rem 1.25rem;
    bottom: 1rem;
    right: 1rem;
  }

  .experience-years {
    font-size: 1.8rem;
  }

  .experience-text {
    font-size: 0.7rem;
  }

  .btn {
    width: 100%; /* Force buttons full-width for easier touch tap target */
  }
}
