/* ============================================================
   AaoPanditji — RESPONSIVE LAYER (loaded LAST on every page)
   Breakpoints:  Mobile ≤600 · Small tablet ≤900 · Tablet ≤1100 · Laptop/PC ≥1101
   One place to tune hero + tablet/mobile layout. Avoid vh-based heights.
============================================================ */

/* ---------- 0. Global safety ---------- */
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }
.container { width: 100%; }

/* ---------- 1. HERO SLIDER ---------- */
/* Height follows content + width (not vh) so portrait tablets don't get a giant hero */
.slide {
  height: auto !important;
  min-height: clamp(460px, 48vw, 680px) !important;
  padding: 64px 0 72px;
  box-sizing: border-box;
}
.slide-content { padding: 0 60px; }
.slide-h1 { font-size: clamp(34px, 5.2vw, 62px); }
.slide-desc { max-width: 520px; }

/* Laptop / PC: align hero content with header edges */
@media (min-width: 1280px) {
  .slide-content { padding: 0; }
}
@media (min-width: 1600px) {
  .container { max-width: 1320px; }
}

/* Tablet landscape / small laptop: keep 2 columns, tighter padding */
@media (max-width: 1100px) {
  .slide-content { padding: 0 56px; gap: 32px; }
  .slide-h1 { font-size: clamp(30px, 4.6vw, 48px); }
}

/* Tablet portrait + small tablets: stack text over buttons */
@media (max-width: 900px) {
  .slide { min-height: clamp(440px, 56vw, 560px) !important; padding: 56px 0 84px; }
  .slide-content { grid-template-columns: 1fr; padding: 0 24px; gap: 24px; }
  .slide-text { max-width: 640px; }
  .slide-h1 { font-size: clamp(30px, 5.4vw, 44px); }
  .slide-desc { font-size: 16px; max-width: 560px; }
  .slide-btns { flex-direction: row; flex-wrap: wrap; width: auto; gap: 12px; }
  .slide-btns .btn { flex: 0 1 auto; width: auto; }
  /* Arrows move to the bottom corners so they never cover text */
  .slider-arrow {
    top: auto; bottom: 16px; transform: none;
    width: 44px; height: 44px; font-size: 20px;
  }
  .arrow-prev { left: 20px; }
  .arrow-next { right: 20px; }
  .slider-dots { bottom: 30px; }
}

/* Mobile */
@media (max-width: 600px) {
  .slide { min-height: 480px !important; padding: 44px 0 84px; }
  .slide-content { padding: 0 6px; gap: 20px; }
  .slide-h1 { font-size: clamp(26px, 7.6vw, 34px); line-height: 1.15; }
  .slide-desc { font-size: 14px; line-height: 1.7; }
  .slide-badge { font-size: 11px; padding: 5px 14px; margin-bottom: 14px; }
  .slide-btns { width: 100%; }
  .arrow-prev { left: 14px; }
  .arrow-next { right: 14px; }
}

/* Slider dots — bigger invisible touch area */
.sdot { position: relative; }
.sdot::before { content: ""; position: absolute; inset: -14px -5px; }

/* ---------- 2. HEADER ---------- */
/* Dropdowns near the right edge open leftwards so they never get clipped */
@media (max-width: 1100px) and (min-width: 769px) {
  .main-nav-ul > li:nth-last-child(-n+2) > .nav-dropdown:not(.nav-dropdown--mega) { left: auto; right: 0; }
  .nav-dropdown { max-width: calc(100vw - 24px); }
}
@media (max-width: 768px) {
  .topbar-wa { min-height: 36px; display: inline-flex; align-items: center; }
}

/* ---------- 3. STATS BAR ---------- */
@media (max-width: 768px) {
  .stats-inner { display: flex !important; flex-wrap: nowrap; gap: 0 !important; overflow: hidden; }
  .stat-item { flex: 1 1 0; min-width: 0; padding: 12px 6px; border-bottom: none; }
  .stat-num { font-size: 18px !important; }
  .stat-label { font-size: 11px !important; line-height: 1.25; }
  .stat-icon { font-size: 18px !important; }
}
/* Phones: 3 + 2 layout so labels like "CONFIRMATION" never get cut */
@media (max-width: 560px) {
  .stats-inner { display: grid !important; grid-template-columns: repeat(6, 1fr); }
  .stat-item { grid-column: span 2; border-bottom: 1px solid var(--cream-d); padding: 14px 6px; }
  .stat-item:nth-child(n+4) { grid-column: span 3; border-bottom: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(5) { border-right: none; }
  .stat-item:nth-child(4) { border-right: 1px solid var(--cream-d); }
}

/* ---------- 4. TABLET (601–1100) HOMEPAGE SECTIONS ---------- */
@media (max-width: 1100px) and (min-width: 769px) {
  /* Content that was hidden on tablets comes back */
  .why-img-wrap { display: block; width: 100%; aspect-ratio: 16/9; max-height: 340px; order: -1; }
  .booking-info { display: block; padding: 28px 24px; }
  .booking-wrap { gap: 28px; }
}
@media (max-width: 1100px) {
  /* Orphan 3rd card (2-col grids) → centered full row */
  .hp-blog-grid > *:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 10px); justify-self: center; }
}
@media (max-width: 768px) {
  .hp-blog-grid > *:last-child:nth-child(odd) { max-width: none; }
}

/* Left-aligned section heads keep the ॐ divider left-aligned too */
.section-head:not(.text-center) .om-divider { margin-left: 0; justify-content: flex-start; }

/* ---------- 5. READABLE TEXT + TAP TARGETS (touch screens) ---------- */
@media (max-width: 768px) {
  .hp-svc-tag, .hp-svc-price-label, .hp-blog-cat, .hp-testi-service,
  .new-step-desc, .section-label, .hp-svc-sub, .nav-dropdown-head, .mob-social-title {
    font-size: 12px !important;
  }
}
@media (pointer: coarse) {
  .aao-category-btn { min-height: 40px; padding: 10px 16px; }
  .slider-arrow { min-width: 40px; min-height: 40px; }
  .btn, button, .hdr-btn { min-height: 40px; }
}
/* Filter pill rows scroll sideways instead of overflowing the page */
.aao-category-carousel { max-width: 100%; }

/* ---------- 6. INNER PAGES — tablet (≤1024) grids ---------- */
/* Templates only had 768/600 breakpoints, so tablets got desktop grids. */
@media (max-width: 1024px) {
  .pd-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .puja-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cat-steps-grid, .process-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .exp-radio-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .days-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .radius-cards { grid-template-columns: repeat(3, 1fr) !important; }
  .cat-hero-inner { grid-template-columns: 1fr !important; gap: 28px !important; }
  .cat-hero-inner .hero-quick-book { border-radius: 20px !important; max-width: 640px; }
}
@media (max-width: 600px) {
  .pd-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .puja-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cat-steps-grid, .process-grid { grid-template-columns: 1fr !important; }
  .exp-radio-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .days-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .radius-cards { grid-template-columns: 1fr !important; }
}

/* Wide tables / dashboards scroll inside their own box */
.ct-head, .ct-row { min-width: 0; }
.bk-tbl-wrap, .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 7. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .slides-track { transition: none; }
}

/* ---------- 8. FOOTER — readable text on the dark background ---------- */
/* Solid light colours (≥7:1 contrast) instead of 35–60% transparent white */
#site-footer { color: #EDE3D6 !important; }
#site-footer .footer-brand p,
#site-footer p { color: #EDE3D6 !important; }
#site-footer .footer-col h4 { color: #FCD34D !important; }
#site-footer .footer-contact .founder-label { color: #FCD34D !important; }
#site-footer .footer-contact a,
#site-footer .footer-contact span { color: #F3EADF !important; }
#site-footer .footer-contact i { color: #FCD34D !important; }
#site-footer .footer-col ul li a { color: #E6DACB !important; font-size: 14px; }
#site-footer .footer-col ul li a:hover,
#site-footer .footer-contact a:hover { color: #FCD34D !important; }
#site-footer .footer-bottom { border-top: 1px solid rgba(252, 211, 77, .18); }
#site-footer .footer-bottom p { color: #CFC1AE !important; }
#site-footer .footer-bottom-links a { color: #D9CCBA !important; font-size: 13px; }
#site-footer .footer-bottom-links a:hover { color: #FCD34D !important; }
#site-footer .social-link {
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(252, 211, 77, .45) !important;
  color: #fff !important;
}
#site-footer .social-link:hover { background: #F97316 !important; border-color: #F97316 !important; }
#site-footer .social-link i { color: inherit !important; }
@media (max-width: 768px) {
  #site-footer .footer-col ul li a { padding: 4px 0; }  /* easier to tap */
}
