/* ==========================================================================
   SHARWESHA YOGA - Responsive Layout Adjustments
   Includes: App-Style Light Green Mobile Drawer Menu & Tight Spacing
   ========================================================================== */

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1280px;
  }
}

/* Medium Desktop / Laptops (992px to 1199px) */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3rem;
  }
  .consultant-grid {
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
  }
  .consultant-avatar {
    width: 270px;
    height: 270px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile & Tablet Drawer Menu (Max 991px) */
@media (max-width: 991px) {
  .section {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: 2.15rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--secondary-light);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
    border: 1px solid var(--border-color);
  }

  /* App-Style Light Green Mobile Drawer Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: linear-gradient(180deg, #e8f5e9 0%, #f4f8f5 100%);
    box-shadow: -10px 0 35px rgba(27, 67, 50, 0.2);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 1.25rem 2rem 1.25rem;
    gap: 0.5rem; /* Reduced reasonable link gap */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10002;
    overflow-y: auto;
    border-left: 2px solid var(--border-gold);
  }

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

  /* App-Style Mobile Drawer Header Bar */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
  }

  .mobile-menu-brand img {
    height: 36px;
  }

  .mobile-close-btn {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }

  /* App-Style Mobile Navigation Items */
  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(27, 67, 50, 0.04);
    transition: var(--transition);
    margin-bottom: 0.35rem; /* Reduced reasonable gap */
  }

  .nav-menu .nav-link i {
    display: inline-block;
    width: 24px;
    text-align: center;
    color: var(--secondary);
    font-size: 1.1rem;
  }

  .nav-menu .nav-link::after {
    display: none; /* Hide desktop underline on mobile app items */
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateX(4px);
  }

  .nav-menu .nav-link:hover i,
  .nav-menu .nav-link.active i {
    color: var(--accent-gold);
  }

  /* Overlay backdrop when drawer open (sitting below site-header) */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 40, 24, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero Section Mobile */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
  }

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

  .hero-info-pills {
    justify-content: center;
  }

  .hero-image-wrapper img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* Consultant Card Mobile */
  .consultant-card {
    padding: 2.25rem 1.5rem;
  }

  .consultant-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }

  .consultant-avatar {
    width: 100%;
    max-width: 320px;
    height: 320px;
  }

  .qualities-pills {
    justify-content: center;
  }

  /* Contact Grid Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Timeline Mobile */
  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 3.25rem;
    padding-right: 0;
    margin-bottom: 1.75rem;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-icon {
    left: 0 !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile Phones (Max 575px) */
@media (max-width: 575px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero-section,
  .hero-pattern-bg,
  .page-hero-banner,
  main > section:first-of-type {
    padding-top: 6.5rem !important;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-floating-card {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .form-card,
  .contact-info-box {
    padding: 1.85rem 1.25rem;
  }

  .back-to-top {
    right: 1.25rem;
    bottom: 5.25rem;
  }

  .floating-whatsapp {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 50px;
    height: 50px;
    font-size: 1.65rem;
  }

  .topic-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .topic-detail-image {
    order: -1;
    width: 100%;
  }

  .topic-detail-content {
    order: 1;
  }

  .topic-detail-image img {
    height: 320px;
  }

  .topic-detail-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .topic-detail-actions .btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    margin: 0 !important;
  }
}
