/* =============================================
 YOGARTHA — RESPONSIVE STYLES
 Mobile-first fixes. Desktop unchanged.
 Breakpoints: 1024px | 768px | 480px | 360px
 ============================================= */

/* ===== GLOBAL OVERFLOW FIX (prevents horizontal slide on all devices) ===== */
html, body {
 overflow-x: hidden;
 max-width: 100%;
 width: 100%;
 position: relative;
}
/* Prevent any child from causing overflow */
.hero,.marquee-strip,.sadhguru-section,.about,.offerings,
.guru-section,.experience-section,.schedule-section,.testimonials,
.quote-banner,.contact,.footer {
 overflow-x: hidden;
 max-width: 100%;
}
/* Ensure the hero background image never overflows */
.hero-bg,.hero-img { max-width: 100%; }
/* Ensure hero content never creates horizontal scroll */
.hero-content { max-width: 100%; box-sizing: border-box; }

/* ===== TABLET (≤1024px) ===== */
@media (max-width: 1024px) {

 /* Offerings: 2 columns */
 .offerings-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

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

 /* Sadhguru section: stack */
 .sadhguru-inner { grid-template-columns: 280px 1fr; gap: 48px; }

 /* Schedule table smaller font */
 .schedule-table { font-size: 0.82rem; }
 .schedule-table th,.schedule-table td { padding: 12px 10px; }
}

/* ===== MOBILE (≤768px) ===== */
@media (max-width: 768px) {

 /* ---------- GLOBAL ---------- */
 .section-pad { padding: 72px 0; }
 .container { padding: 0 18px; }
 .grid-2 { grid-template-columns: 1fr; gap: 36px; }
 .section-title { font-size: 1.9rem; }

 /* ---------- NAV (mobile/tablet) ---------- */
 nav#navbar {
  height: 72.8px !important;
  padding: 0 !important; /* Reset padding to strictly rely on fixed height */
  display: flex !important;
  align-items: center !important;
 }
 nav#navbar.scrolled {
  height: 72.8px !important; /* Keep it the exact same height when scrolled */
  padding: 0 !important;
  backdrop-filter: none !important; /* CRITICAL: Prevents trapping the fixed full-screen menu */
  -webkit-backdrop-filter: none !important;
 }
 .nav-container {
  height: 72.8px !important;
  width: 100% !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
 }
 .nav-logo {
  display: flex !important;
  align-items: center !important;
  height: 48px !important;
 }
 .nav-custom-logo { 
  height: 48px !important; 
  width: auto !important; 
  display: block !important;
 }
 .hamburger {
  width: 28px !important;
  height: 26px !important;
  padding: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  box-sizing: border-box !important;
 }
 .hamburger span {
  width: 20px !important;
  height: 2px !important;
  display: block !important;
 }
 /* ---------- HERO ---------- */
 .hero {
 min-height: 100svh;
 height: 100svh;
 /* Use column layout to distribute space naturally */
 display: flex;
 align-items: center;
 justify-content: center;
 }
 .hero-content {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: 80px 24px 280px; /* added EVEN MORE bottom padding to push content further up */
 gap: 0;
 width: 100%;
 max-width: 100%;
 }
 /* Small eyebrow text */
 .hero-subtitle {
 font-size: 0.62rem;
 letter-spacing: 0.2em;
 margin-bottom: 20px;
 }
 /* Hero brand text — scale down on small screens */
 .hero-brand-text {
 font-size: clamp(3rem, 16vw, 5.5rem);
 letter-spacing: 0.10em;
 }
 /* Description — compact, 2 lines max feel */
 .hero-desc {
 font-size: 0.85rem;
 line-height: 1.65;
 margin-bottom: 28px;
 max-width: 320px;
 color: rgba(255,255,255,0.75);
 }
 /* Buttons - side by side, smaller */
 .hero-btns {
 position: absolute;
 bottom: 5px;
 left: 0;
 right: 0;
 flex-direction: row;
 flex-wrap: wrap;
 justify-content: center;
 gap: 10px;
 width: 100%;
 margin-top: 0;
 }
 .hero-btns .btn {
 padding: 9px 18px;
 font-size: 0.75rem;
 min-height: unset;
 flex: 1 1 auto;
 max-width: 140px;
 }
 .hero-scroll-hint { display: none; }

 /* ---------- MARQUEE ---------- */
 .marquee-track { gap: 24px; }
 .marquee-track span { font-size: 0.72rem; }

 /* ---------- ABOUT ---------- */
 .about-img { aspect-ratio: 16/10; object-fit: cover; object-position: center center; }
 .about-badge {
 bottom: -14px; right: 12px;
 padding: 14px 20px;
 }
 .badge-num { font-size: 2.1rem; }
 .about-stats {
 flex-direction: row;
 flex-wrap: wrap;
 gap: 0;
 padding: 20px 16px;
 }
 .stat {
 flex: 1 1 30%;
 padding: 8px;
 min-width: 90px;
 }
 .stat-num { font-size: 2.1rem; }
 .isha-tag { flex-wrap: wrap; text-align: center; justify-content: center; }

 /* ---------- SADHGURU SECTION ---------- */
 .sadhguru-inner {
 grid-template-columns: 1fr;
 gap: 36px;
 text-align: center;
 }
 .sadhguru-photo-wrap { justify-content: center; }
 .sadhguru-photo { width: 200px; height: 200px; }
 .sadhguru-ring { inset: -12px; }
 .quote-mark {
 font-size: 5rem;
 text-align: left;
 }
 .sadhguru-quote { font-size: 1.15rem; }
 .sadhguru-divider { justify-content: center; }

 /* ---------- OFFERINGS ---------- */
 .offerings-grid { grid-template-columns: 1fr; gap: 16px; }
 .offering-card { padding: 28px 24px; }
 .section-symbol img { width: 48px; height: 48px; }

 /* ---------- GURU (REETA) ---------- */
 .guru-img-wrap { order: 1; }
 .guru-text { order: 2; }
 .guru-grid { gap: 32px; }
 .guru-img { aspect-ratio: 4/3; object-fit: cover; object-position: center 25%; }
 .guru-credentials { grid-template-columns: 1fr 1fr; gap: 10px; }
 .cred { font-size: 0.8rem; padding: 10px 12px; }
 .guru-doodle { display: none; }
 .guru-img-badge { display: block; text-align: center; }

 /* ---------- EXPERIENCE ---------- */
 .experience-img { height: 320px; }
 .experience-features {
 flex-direction: column;
 gap: 12px;
 padding: 24px 20px;
 }
 .feat { font-size: 0.85rem; }

 /* ---------- SCHEDULE ---------- */
 .schedule-table-wrap {
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 border-radius: var(--radius);
 }
 .schedule-table { min-width: 560px; font-size: 0.78rem; }
 .schedule-table th,
 .schedule-table td { padding: 10px 8px; }
 .cls { font-size: 0.72rem; padding: 6px 8px !important; }
 .schedule-note { font-size: 0.78rem; padding: 0 16px; }

 /* ---------- TESTIMONIALS ---------- */
 .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
 .testi-card { padding: 28px 22px; }
 .testi-card p { font-size: 0.98rem; }

 /* ---------- QUOTE BANNER ---------- */
 .qb-text { font-size: 1.1rem; }

 /* ---------- CONTACT ---------- */
 .contact-grid { gap: 36px; }
 .contact-form-wrap { padding: 28px 22px; }
 .contact-form h3 { font-size: 1.5rem; }
 .social-links { gap: 8px; }
 .social-btn { padding: 9px 18px; font-size: 0.8rem; }

 /* ---------- FOOTER ---------- */
 .footer-grid {
 grid-template-columns: 1fr 1fr;
 gap: 28px;
 }
 .footer-brand { grid-column: 1 / -1; }
 .footer-bottom {
 flex-direction: column;
 gap: 8px;
 text-align: center;
 padding: 24px 18px;
 }
 .footer-bottom p { font-size: 0.75rem; }
 .footer-mandala { display: none; }
}

/* ===== SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {

 .section-pad { padding: 56px 0; }

 /* Hero */
 .hero-logo-img { width: clamp(180px, 60vw, 260px); }
 .hero-subtitle { font-size: 0.58rem; }
 .hero-desc { font-size: 0.82rem; margin-bottom: 15px; }
 .hero-btns { margin-top: 0; gap: 8px; bottom: 0; }
 .hero-btns .btn { max-width: 130px; font-size: 0.72rem; padding: 8px 14px; }

 /* About */
 .about-stats { flex-direction: column; gap: 0; }
 .stat { border-bottom: 1px solid rgba(0,0,0,0.06); padding: 14px 8px; }
 .stat:last-child { border-bottom: none; }
 .about-badge { right: 0; bottom: -12px; }

 /* Sadhguru */
 .sadhguru-photo { width: 170px; height: 170px; }
 .sadhguru-quote { font-size: 1.05rem; }

 /* Guru */
 .guru-credentials { grid-template-columns: 1fr; }

 /* Footer */
 .footer-grid { grid-template-columns: 1fr; gap: 24px; }
 .footer-brand { grid-column: auto; }

 /* Nav links spacing */
 .nav-links { gap: 22px; }
 .nav-links a { font-size: 1.1rem; }

 /* Form */
 .contact-form-wrap { padding: 22px 16px; }
 .form-group input,
 .form-group select,
 .form-group textarea { padding: 12px 14px; font-size: 0.88rem; }

 /* Schedule */
 .schedule-table { min-width: 480px; }

 /* Experience */
 .experience-img { height: 260px; }
}

/* ===== VERY SMALL (≤360px) ===== */
@media (max-width: 360px) {
 .hero-title { font-size: 2.6rem; }
 .btn { padding: 12px 24px; font-size: 0.85rem; }
 .hero-btns .btn { width: 130px; }
 .offering-card { padding: 22px 18px; }
 .testi-card { padding: 22px 16px; }
 .contact-form-wrap { padding: 18px 14px; }
}

/* ===== LANDSCAPE PHONE ===== */
@media (max-width: 768px) and (orientation: landscape) {
 .hero { min-height: 100vw; }
 .hero-title { font-size: 3rem; }
 .hero-desc { display: none; }
 .hero-btns { flex-direction: row; margin-top: 0; bottom: 0; }
 .hero-btns .btn { width: auto; font-size: 0.75rem; padding: 8px 16px; }
 .sadhguru-inner { grid-template-columns: 200px 1fr; gap: 24px; }
 .sadhguru-photo { width: 160px; height: 160px; }
}

/* ===== TOUCH DEVICE IMPROVEMENTS ===== */
@media (hover: none) {
 /* Remove hover transforms on touch */
 .offering-card:hover { transform: none; }
 .testi-card:hover { transform: none; }
 .btn-primary:hover { transform: none; }

 /* Bigger tap targets */
 .nav-links a { padding: 6px 0; }
 .card-link { padding: 8px 0; display: inline-block; }
 .social-btn { min-height: 44px; display: flex; align-items: center; }
 .btn { min-height: 48px; }
 #scrollTop { width: 52px; height: 52px; bottom: 24px; right: 20px; }
}
