/* ============================================================
   Suraj Pandey Astrology — Mobile-First Responsive CSS
   Breakpoints: xl=1200 | lg=992 | md=768 | sm=576 | xs=480
   Strategy: Desktop styles in style.css; overrides here
   ============================================================ */

/* ── Utility: prevent horizontal scroll ──────────────────── */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* ── Touch-friendly tap targets ──────────────────────────── */
@media (max-width: 991px) {
  a, button { -webkit-tap-highlight-color: rgba(200,134,10,0.15); }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR — Mobile
   ════════════════════════════════════════════════════════════ */

/* Bootstrap collapse menu: style the dropdown on mobile */
@media (max-width: 991px) {
  #mainNav .navbar-collapse {
    background: #fff;
    border: 1px solid rgba(200,134,10,0.18);
    border-radius: 14px;
    margin-top: 10px;
    padding: 12px 10px;
    box-shadow: 0 8px 40px rgba(28,10,62,0.14);
  }
  #mainNav .navbar-nav .nav-link {
    padding: 10px 14px !important;
    font-size: 0.9rem;
    border-radius: 8px;
    color: #1C0A3E !important;
    font-weight: 500;
    margin-bottom: 2px;
  }
  #mainNav .navbar-nav .nav-link:hover,
  #mainNav .navbar-nav .nav-link.active {
    background: rgba(200,134,10,0.07);
    color: #C8860A !important;
  }
  #mainNav .btn-gold-nav {
    display: block;
    text-align: center;
    margin: 8px 0 4px;
    border-radius: 10px;
  }
  /* Compact brand on mobile */
  .brand-tagline { display: none; }
  .brand-name { font-size: 0.95rem; }
  .brand-icon svg { width: 42px !important; height: 42px !important; }
  /* Topbar: slightly smaller padding */
  #mainNav { padding: 10px 0 !important; }
}

@media (max-width: 575px) {
  .brand-name { font-size: 0.88rem; }
  .brand-icon svg { width: 36px !important; height: 36px !important; }
}

/* ── Mobile Bottom CTA Bar ──────────────────────────────── */
/* Already defined in style.css — ensure text is visible */
.mobile-cta-btn span { font-size: 0.62rem; color: var(--text-muted); display: block; }
.mobile-cta-btn i    { font-size: 1.15rem; color: var(--gold); display: block; line-height: 1; }
.mobile-cta-btn.primary span,
.mobile-cta-btn.primary i  { color: #fff; }
/* Safe-area support for iPhones with notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-cta-bar { padding-bottom: env(safe-area-inset-bottom); }
}

/* ════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .hero-section { min-height: auto; padding: 110px 0 70px; }
  /* Hide decorative floats and mandala on tablet */
  .hero-float-1, .hero-float-2, .hero-float-3 { display: none !important; }
  .hero-mandala-ring { display: none; }
  .hero-stats-strip { max-width: 100%; }
  /* Remove excessive gap between hero columns on tablet */
  .hero-section .row.g-5 { --bs-gutter-y: 2rem; }
}

@media (max-width: 767px) {
  .hero-section { padding: 88px 0 50px; }
  .hero-badge {
    font-size: 0.68rem;
    padding: 6px 14px;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    line-height: 1.15;
    margin-bottom: 0.875rem;
  }
  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
    line-height: 1.75;
  }
  /* CTA buttons: full-width stacked */
  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .hero-cta-group .btn-gold,
  .hero-cta-group .btn-outline-gold {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  /* Stats strip: 3 even columns */
  .hero-stats-strip {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    margin-top: 1.5rem;
    max-width: 100%;
  }
  .hero-stat-number { font-size: 1.3rem; }
  .hero-stat-label  { font-size: 0.6rem; }
  /* Hero visual card: center and shrink */
  .hero-visual-wrap { padding-top: 2.5rem; justify-content: center; }
  .hero-card {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }
  .hero-avatar-ring, .hero-avatar { width: 110px; height: 110px; }
  /* Hide mandala background on mobile */
  .hero-mandala-bg { display: none; }
  /* Quick stats row */
  .hero-quick-stats { justify-content: center; gap: 0; }
}

/* ════════════════════════════════════════════════════════════
   SECTION SPACING
   ════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .section-pad    { padding: 70px 0; }
  .section-pad-sm { padding: 50px 0; }
}

@media (max-width: 767px) {
  .section-pad    { padding: 52px 0; }
  .section-pad-sm { padding: 36px 0; }

  .section-title {
    font-size: clamp(1.55rem, 5.5vw, 2.2rem) !important;
    line-height: 1.25;
  }
  .section-subtitle {
    font-size: 0.975rem !important;
  }
  .section-label { font-size: 0.67rem; letter-spacing: 2.5px; }
}

/* ════════════════════════════════════════════════════════════
   PAGE BANNER (inner page headers)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .page-banner { padding: 100px 0 44px !important; }
  .page-banner-title {
    font-size: clamp(1.45rem, 6vw, 2rem) !important;
    line-height: 1.25;
  }
  .page-banner-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
  }
  .breadcrumb-custom { font-size: 0.78rem; }
}

/* ════════════════════════════════════════════════════════════
   TRUST STRIP
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .trust-item { font-size: 0.72rem; padding: 0 1.25rem; }
}

/* ════════════════════════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .about-photo { min-height: 360px; }
}

@media (max-width: 767px) {
  .about-photo { min-height: 280px; max-width: 100%; }
  .about-photo-border { display: none; }
  .about-exp-badge { bottom: -10px; right: -10px; padding: 12px 14px; font-size: 0.8rem; }
  .about-exp-badge strong { font-size: 1rem; }
  /* Stack about features to 1 col on mobile */
  .about-features { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   STATS SECTION
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-card { padding: 1.5rem 0.5rem; }
  .stat-card::after { display: none; } /* hide vertical dividers */
  .stat-number { font-size: clamp(2rem, 8vw, 2.75rem); }
  .stat-label { font-size: 0.72rem; letter-spacing: 1px; }
}

/* ════════════════════════════════════════════════════════════
   SERVICES SECTION
   ════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 575px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .service-card { padding: 1.5rem 1.25rem; }
  .service-icon { width: 52px !important; height: 52px !important; font-size: 1.3rem !important; }
}

/* ════════════════════════════════════════════════════════════
   PLANS
   ════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .plan-card.featured { transform: none; } /* no scale on tablet */
}

@media (max-width: 575px) {
  .plans-grid { grid-template-columns: 1fr !important; }
  .plan-price { font-size: 2rem !important; }
}

/* ════════════════════════════════════════════════════════════
   WHY US / FEATURE CARDS
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .why-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .why-card { padding: 1.25rem; }
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .testi-card { padding: 1.5rem; }
  .testi-text { font-size: 0.95rem; }
  .testi-prev, .testi-next { display: none; }
}

/* ════════════════════════════════════════════════════════════
   FAQ SECTION
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .faq-question {
    font-size: 0.9rem;
    padding: 1rem 1.1rem;
    gap: 10px;
  }
  .faq-item.open .faq-answer {
    padding: 0.875rem 1.1rem;
    font-size: 0.875rem;
  }
  .faq-icon { font-size: 1rem !important; width: 26px !important; height: 26px !important; }
}

/* ════════════════════════════════════════════════════════════
   BLOG GRID
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr !important; gap: 18px; margin-top: 2rem; }
  .blog-card-img { height: 200px !important; }
  .blog-card-body { padding: 1.1rem 1.1rem 1.25rem; }
}

/* Blog detail page */
@media (max-width: 991px) {
  .bd-layout { flex-direction: column; gap: 32px; }
  .bd-sidebar { width: 100% !important; position: static !important; top: auto !important; }
}

/* ════════════════════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .contact-form-card { padding: 24px 18px; }
  .contact-form-card h3 { font-size: 1.1rem; }
  /* Quick contact buttons: stack on mobile */
  .contact-quick-btns { flex-direction: column; }
  .cqb-btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 0.875rem; }
}

/* ════════════════════════════════════════════════════════════
   BOOKING PAGE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* Compact step indicator: hide labels, smaller circles */
  .booking-steps-indicator { gap: 0; margin-bottom: 1.75rem; }
  .step-label { display: none; }
  .step-indicator { gap: 3px; }
  .step-num {
    width: 30px; height: 30px;
    font-size: 0.78rem;
  }
  .step-line { min-width: 16px; margin-bottom: 14px; }

  /* Step content */
  .booking-step { padding: 1.25rem 1rem; }
  .booking-step-title { font-size: 1rem; margin-bottom: 1.1rem; }
  .booking-step-note { font-size: 0.78rem; padding: 8px 10px; }

  /* Plan select cards: 1 column */
  .plans-select-grid { grid-template-columns: 1fr; gap: 12px; }
  .plan-select-card { padding: 14px 12px; }
  .psc-name { font-size: 0.9rem; }
  .psc-price { font-size: 1.25rem; }

  /* Nav buttons: side by side, full width each */
  .booking-nav-btns {
    flex-direction: row;
    gap: 10px;
    margin-top: 1.25rem;
  }
  .booking-nav-btns > button {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.875rem;
  }

  /* Review & Pay */
  .bsc-row { padding: 0.6rem 1rem; }
  .bsc-label { font-size: 0.78rem; }
  .bsc-val { font-size: 0.82rem; }
  .bsc-amount { font-size: 1.15rem; }
  .booking-pay-btn { font-size: 0.95rem; padding: 14px 18px; }
  .booking-pay-trust { gap: 6px; }
  .booking-pay-trust span { font-size: 0.7rem; padding: 4px 9px; }
  .booking-pay-note { font-size: 0.75rem; }

  /* Booking security note */
  .booking-security-note { font-size: 0.78rem; padding: 10px 12px; }
}

/* ════════════════════════════════════════════════════════════
   FORMS (global inputs)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .form-input-custom {
    font-size: 16px !important; /* prevent iOS zoom on focus */
    padding: 11px 13px;
  }
  .form-label-custom { font-size: 0.82rem; }
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

/* Footer grid: already responsive in style.css, but refine */
@media (max-width: 575px) {
  .footer-brand-col { text-align: center; }
  .footer-brand-link { justify-content: center; }
  .footer-socials { justify-content: center; }
  .footer-trust-badges { justify-content: center; }
  .footer-desc { font-size: 0.82rem; }
  .footer-col { text-align: left; }
  .footer-blog-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 0;
  }
  .footer-blog-link { font-size: 0.8rem; }
  .footer-bottom { flex-direction: column !important; text-align: center; gap: 6px; }
  /* Slightly bigger touch targets for footer links */
  .footer-links li a { display: block; padding: 3px 0; }
}

/* ════════════════════════════════════════════════════════════
   LEAD CAPTURE MODAL
   ════════════════════════════════════════════════════════════ */

@media (max-width: 575px) {
  .lead-modal { margin: 8px; border-radius: 18px; }
  .lead-modal-head { padding: 20px 18px 18px; }
  .lead-modal-title { font-size: 1.1rem; }
  .lead-modal-sub { font-size: 0.78rem; }
  .lead-modal-body { padding: 20px 18px 24px; }
  .lead-modal-icon { width: 48px; height: 48px; font-size: 1.25rem; }
  .lead-modal-form input,
  .lead-modal-form select,
  .lead-modal-form textarea {
    font-size: 16px; /* prevent iOS zoom */
  }
}

/* ════════════════════════════════════════════════════════════
   LEAD STRIP / INLINE CAPTURE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .lead-strip-inner {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .lead-strip-text { min-width: 100%; }
  .lead-strip-form { min-width: 100%; flex-direction: column; gap: 8px; }
  .lead-strip-input { min-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .cta-section .d-flex.gap-3,
  .cta-section .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-section .btn-gold,
  .cta-section .btn-outline-gold {
    width: 100%;
    justify-content: center;
  }
}

/* ════════════════════════════════════════════════════════════
   BUTTONS — Global mobile sizing
   ════════════════════════════════════════════════════════════ */

@media (max-width: 575px) {
  .btn-gold, .btn-outline-gold, .btn-purple {
    font-size: 0.875rem;
    padding: 12px 22px;
  }
}

/* ════════════════════════════════════════════════════════════
   ADMIN PANEL — Mobile sidebar with backdrop overlay
   ════════════════════════════════════════════════════════════ */

/* Backdrop overlay behind mobile sidebar */
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,10,62,0.45);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.admin-sidebar-backdrop.visible { display: block; }

@media (max-width: 991px) {
  /* Topbar: reduce padding */
  .admin-topbar { padding: 11px 14px !important; }
  .topbar-title { font-size: 0.88rem; }
  .topbar-admin-info .d-none { display: none !important; }

  /* Content area: reduce padding */
  .admin-content { padding: 14px !important; }
  .admin-card-body { padding: 1rem; }

  /* Stat widgets: stack on very small */
}

@media (max-width: 767px) {
  /* Tables: horizontal scroll */
  .admin-card { overflow: hidden; }
  .admin-card > div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; }
  .admin-table th,
  .admin-table td { padding: 9px 10px; font-size: 0.78rem; }

  /* Settings tabs: wrap */
  .settings-tab-nav { gap: 2px; }
  .settings-tab-btn { padding: 7px 12px; font-size: 0.78rem; gap: 4px; }

  /* Stat widgets: 2-col grid on tablet */
  .row.g-3 .col-md-3,
  .row.g-4 .col-md-3 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 480px) {
  .admin-content { padding: 10px !important; }
  .admin-table th,
  .admin-table td { padding: 7px 8px; font-size: 0.73rem; white-space: nowrap; }
}

/* ════════════════════════════════════════════════════════════
   THANK YOU PAGE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .contact-form-card .why-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .contact-form-card h2 { font-size: 1.25rem; }
}

/* ════════════════════════════════════════════════════════════
   BOOKING SUMMARY CARD (Step 4)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 575px) {
  .booking-summary-card .bsc-header { padding: 0.875rem 1rem; }
  .booking-summary-card .bsc-body { padding: 0; }
}

/* ════════════════════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
   ════════════════════════════════════════════════════════════ */

/* Move WA button up so it doesn't overlap mobile CTA bar */
@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 80px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.4rem !important;
  }
}

/* ════════════════════════════════════════════════════════════
   BODY PADDING — account for fixed bottom bar
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  body { padding-bottom: 64px; }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 767px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  }
}

/* ════════════════════════════════════════════════════════════
   SERVICES DETAIL PAGE (service/*.php)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .service-detail-hero { padding: 100px 0 44px; }
  .service-detail-content { font-size: 0.95rem; line-height: 1.8; }
}

/* ════════════════════════════════════════════════════════════
   BLOG LISTING PAGE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .blog-filters { gap: 6px !important; flex-wrap: wrap; justify-content: center; }
  .blog-filter-btn { font-size: 0.75rem; padding: 6px 14px; }
  .blog-search { width: 100% !important; }
}

/* ════════════════════════════════════════════════════════════
   PLANS DETAIL — booking buttons
   ════════════════════════════════════════════════════════════ */

@media (max-width: 575px) {
  .plan-book-btn,
  .plan-cta-btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   ABOUT PAGE — timeline / credentials
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .about-features { grid-template-columns: 1fr !important; }
  .about-gold-bar { width: 44px; height: 3px; }
}

/* ════════════════════════════════════════════════════════════
   SCROLL RESTORE — animations
   ════════════════════════════════════════════════════════════ */

/* On very small screens, disable complex animations for performance */
@media (max-width: 480px) {
  .hero-mandala-bg,
  .hero-mandala-ring,
  .zodiac-orbit,
  .trust-strip .trust-scroll {
    animation-duration: 0s !important;
  }
}
