/* ============================================================
   NAMMA RAYARA DARSHANAM — Responsive Corrections
   File: /assets/css/responsive.css
   ------------------------------------------------------------
   Mobile-first refinements for 320 → 1920px.
   Loaded after style.css.
============================================================ */

/* ------------------------------------------------------------
   ≤ 1199px (small desktop / large tablet)
------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .navbar-nav .nav-link { padding: .55rem .6rem !important; font-size: .88rem; }
  .brand-name { font-size: .98rem; }
}

/* ------------------------------------------------------------
   ≤ 991px (tablet)
------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .hero { min-height: auto; padding: 64px 0 88px; }
  .hero-price-card { margin: 8px auto 0; }

  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .package-sidebar { position: static; }

  .about-values { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------
   ≤ 767px (mobile landscape / large phone)
------------------------------------------------------------ */
@media (max-width: 767.98px) {
  .section { padding: 52px 0; }

  .hero { padding: 48px 0 84px; }
  .hero-title { letter-spacing: 0; }
  .hero-description { font-size: .95rem; }
  .hero-actions .btn { width: 100%; }
  .hero-price-card { max-width: 100%; padding: 42px 24px 26px; }

  /* Trust strip → horizontally scrollable row */
  .trust-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .trust-item {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }

  .about-values { grid-template-columns: repeat(2, 1fr); }
  .about-image-grid { grid-template-columns: 1fr 1fr; }

  .package-card { padding: 32px 20px 24px; }
  .package-price { font-size: 2.2rem; }

  /* Comparison stays as a horizontally scrollable table with a hint shadow */
  .comparison-wrap {
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(90deg, var(--white) 30%, transparent),
      linear-gradient(270deg, var(--white) 30%, transparent) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(36,24,8,.14), transparent),
      radial-gradient(farthest-side at 100% 50%, rgba(36,24,8,.14), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 60px 100%, 60px 100%, 18px 100%, 18px 100%;
    background-attachment: local, local, scroll, scroll;
  }

  /* Timeline: compress the left gutter */
  .journey-timeline::before { left: 76px; }
  .timeline-time { flex: 0 0 58px; font-size: .76rem; }
  .timeline-dot { flex: 0 0 34px; width: 34px; height: 34px; font-size: .75rem; }

  .why-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .counter, .counter-static { font-size: 1.9rem; }

  .booking-form-card { padding: 30px 20px; }
  .contact-form-card { padding: 28px 20px; }
  .booking-form-card .btn-lg { font-size: 1rem; }

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

  .booking-cta { padding: 60px 0; }

  .page-hero { padding: 44px 0 44px; }

  .footer-ornament { margin-bottom: 40px; }
  .footer-main { padding-bottom: 26px; }

  /* Floating desktop WhatsApp hidden by .d-none .d-md-flex already;
     ensure spacing above the sticky bar for last sections */
  .site-footer { padding-bottom: 18px; }
}

/* ------------------------------------------------------------
   ≤ 575px (portrait phones: 320 / 360 / 375 / 390 / 414 / 480)
------------------------------------------------------------ */
@media (max-width: 575.98px) {
  body { font-size: .95rem; }

  .section { padding: 44px 0; }

  .brand-name { font-size: .9rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.1rem; }

  .hero-badge { font-size: .76rem; padding: 5px 14px; }
  .hero-trust { gap: 6px 16px; }
  .hero-trust li { font-size: .85rem; }
  .hero-price-value { font-size: 2rem; }

  .section-eyebrow { padding: 0 36px; font-size: .7rem; }
  .section-eyebrow::before,
  .section-eyebrow::after { width: 24px; }

  .package-features li { gap: 11px; }
  .pf-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: .85rem; }

  .gallery-filters { gap: 8px; }
  .gallery-filter-btn { font-size: .8rem; padding: 6px 14px; }

  .testimonial-card { padding: 24px 20px; }

  .contact-list li { gap: 12px; }
  .contact-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: .95rem; }

  .footer-legal .list-inline-item { display: block; margin: 0 0 6px; }
  .footer-legal .list-inline-item:not(:last-child)::after { content: ""; margin: 0; }

  .error-section { padding: 80px 0; }
}

/* ------------------------------------------------------------
   ≤ 359px (very small phones: 320px)
------------------------------------------------------------ */
@media (max-width: 359.98px) {
  .hero-title { font-size: 1.55rem; }
  .package-price { font-size: 1.9rem; }
  .mab-item { font-size: .62rem; }
  .brand-tagline { display: none !important; }
}

/* ------------------------------------------------------------
   ≥ 1400px (large desktop: 1440 / 1920)
------------------------------------------------------------ */
@media (min-width: 1400px) {
  .section { padding: 104px 0; }
  .hero { min-height: 78vh; }
  .hero-description { font-size: 1.08rem; max-width: 600px; }
}

/* ------------------------------------------------------------
   Print — booking pages should print cleanly
------------------------------------------------------------ */
@media print {
  .top-bar, .site-header, .site-footer,
  .floating-whatsapp, .mobile-action-bar,
  .booking-cta, .contact-strip { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   v2 UPDATE — wave divider scaling, icon badges & extra
   mobile hardening (loaded after the v2 section of style.css)
============================================================ */

/* ------------------------------------------------------------
   ≤ 991px (tablet)
------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .hero { padding-bottom: 104px; }
  .hero-temple-silhouette { height: 74px; }

  /* Center the floating price card and calm the float range */
  .hero .hero-price-card { max-width: 380px; margin-left: auto; margin-right: auto; }
}

/* ------------------------------------------------------------
   ≤ 767px (mobile)
------------------------------------------------------------ */
@media (max-width: 767.98px) {
  .hero { padding-bottom: 92px; }
  .hero-temple-silhouette { height: 58px; }
  .page-hero::after { height: 32px; }

  .trust-item i { width: 50px; height: 50px; font-size: 1.12rem; }
  .facility-icon { width: 58px; height: 58px; font-size: 1.15rem; }

  /* Keep both hero CTAs comfortably tappable */
  .hero-actions { display: flex; flex-direction: column; gap: 12px; }
  .hero-actions .btn { min-height: 50px; }

  /* Sticky mobile action bar clearance for floating WhatsApp */
  .floating-whatsapp { bottom: 84px; right: 16px; width: 52px; height: 52px; }

  /* Gallery: two columns feels premium on phones */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Package comparison: slightly smaller type, roomy cells */
  .comparison-table th, .comparison-table td { font-size: .84rem; padding: .65rem .6rem; }

  /* Forms: prevent iOS zoom on focus by keeping ≥16px inputs */
  .booking-form-card .form-control,
  .booking-form-card .form-select,
  .contact-form-card .form-control { font-size: 16px; }
}

/* ------------------------------------------------------------
   ≤ 575px (portrait phones)
------------------------------------------------------------ */
@media (max-width: 575.98px) {
  .hero { padding-top: 40px; padding-bottom: 84px; }
  .hero-temple-silhouette { height: 48px; }
  .hero-title { line-height: 1.18; }
  .hero-price-card { padding: 40px 20px 24px; }
  .hero-price-ornament { width: 48px; height: 48px; font-size: 1.1rem; }

  .about-value i { width: 40px; height: 40px; font-size: .92rem; }

  /* Timeline dots & itinerary on small screens */
  .journey-timeline::before { left: 66px; }
  .timeline-time { flex-basis: 50px; }

  /* Testimonial + place cards edge padding */
  .place-card-body, .testimonial-card { padding-left: 18px; padding-right: 18px; }

  /* Footer columns stack with breathing room */
  .footer-main .col-6 { margin-bottom: 8px; }
}

/* ------------------------------------------------------------
   Touch devices: hover states shouldn't stick
------------------------------------------------------------ */
@media (hover: none) {
  .trust-item:hover i,
  .about-value:hover i,
  .facility-card:hover .facility-icon { transform: none; }
  .hero .hero-price-card { animation-name: heroRise; } /* entrance only, no idle float */
}

/* ------------------------------------------------------------
   Landscape phones (short viewport): compact hero
------------------------------------------------------------ */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 36px 0 72px; }
  .hero-temple-silhouette { height: 40px; }
}

/* ============================================================
   v3 UPDATE — full-height hero, floating stack & footer CTA
============================================================ */
@media (max-width: 991.98px) {
  .hero { min-height: auto; padding-top: 72px; padding-bottom: 128px; }
  .hero-temple-silhouette { height: 84px; }
  .footer-cta { margin-top: -46px; padding: 22px 22px; }
}

@media (max-width: 767.98px) {
  .hero { padding-bottom: 112px; }
  .hero-temple-silhouette { height: 66px; }

  .hero-pkg-price { font-size: 1.15rem; }
  .hero-pkg-name { font-size: .88rem; }

  .footer-cta { flex-direction: column; align-items: flex-start; margin-top: -40px; }
  .footer-cta-actions { width: 100%; }
  .footer-cta-actions .btn { flex: 1; }

  /* Mobile has the sticky action bar; keep back-to-top above it */
  .fab-top { right: 14px; bottom: 78px; width: 44px; height: 44px; }
}

@media (max-width: 575.98px) {
  .hero-temple-silhouette { height: 54px; }
  .hero-pkg-row { padding: 9px 0; }
  .footer-cta-icon { display: none; }
  .facilities-note { flex-direction: column; gap: 10px; }
}

/* ============================================================
   v4 UPDATE — screen-fit hero, scene layers & stack on mobile
============================================================ */
@media (max-width: 1199.98px) {
  .hero-rays { width: 720px; height: 720px; }
  .hero-gopuram-right { width: 300px; height: 56%; }
}

@media (max-width: 991.98px) {
  /* Tablet: natural height (content decides), scene lighter */
  .hero { min-height: auto; }
  .hero-gopuram-right { width: 240px; height: 46%; opacity: .38; }
  .hero-gopuram-left { display: none; }
  .hero-embers-b { display: none; }
}

@media (max-width: 767.98px) {
  .hero-rays { display: none; }
  .hero-gopuram-right { width: 180px; height: 34%; opacity: .3; right: -20px; }
  .hero-badge-icon { flex-basis: 24px; width: 24px; height: 24px; font-size: .64rem; }

  /* Stack sits above the mobile sticky action bar */
  .floating-stack { right: 14px; bottom: 84px; gap: 12px; }
  .fab, .fab-top { width: 46px; height: 46px; font-size: 1.05rem; }

  .footer-cta { margin-bottom: 42px; }
  .footer-main > [class*="col-"] { display: block; }
  .footer-heading { margin-top: 6px; }
}

@media (max-width: 575.98px) {
  .hero-gopuram-right { display: none; }
  .hero-embers-a { opacity: .55; }
}

/* ============================================================
   v5 UPDATE — hero photo focal point on small screens
============================================================ */
@media (max-width: 991.98px) {
  .hero-bg[style] { background-position: center 24%; }
}
@media (max-width: 575.98px) {
  .hero-bg[style] { background-position: 52% 20%; }
  .hero-bg[style] + .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 16, 30, .72) 0%, rgba(8, 16, 30, .55) 55%, rgba(18, 6, 10, .68) 100%);
  }
}

/* ============================================================
   v6 UPDATE — timeline vars, comparison & menu on small screens
============================================================ */
@media (max-width: 767.98px) {
  /* Timeline: same-token centring at mobile sizes */
  .journey-timeline { --tl-time: 58px; --tl-gap: 14px; --tl-dot: 34px; }
  .journey-timeline::before { left: calc(var(--tl-time) + var(--tl-gap) + (var(--tl-dot) / 2)); }
  .timeline-time { font-size: .76rem; }
  .timeline-dot { font-size: .75rem; }

  .comparison-table { min-width: 560px; }
  .comparison-table thead th { font-size: .88rem; padding: 14px 12px; }
}

@media (max-width: 575.98px) {
  .journey-timeline { --tl-time: 50px; --tl-gap: 12px; --tl-dot: 32px; }
  .mobile-menu { max-width: 300px; }
}

/* ============================================================
   v9 UPDATE — inner page hero on small screens
============================================================ */
@media (max-width: 767.98px) {
  .page-hero { padding: 46px 0 48px; }
  .page-hero::before {
    /* lighter ember density + smaller glow on phones */
    background-size: 90px 200px, 140px 280px, auto;
  }
  .page-hero-title { padding-bottom: 12px; }
}

/* v13 — pre-footer CTA spacing on small screens */
@media (max-width: 767.98px) {
  .prefooter-cta-section { padding: 6px 0 32px; }
  .site-footer .footer-main { padding-top: 36px; }
}

/* v14 — footer border & visitor counter on small screens */
@media (max-width: 767.98px) {
  .footer-ornament { gap: 10px; padding-top: 20px; }
  .fo-lamp { width: 36px; height: 36px; font-size: .9rem; }
  .footer-arch { height: 20px; margin: 10px 0 32px; }
  .vc-num { font-size: 1.1rem; }
  .vc-label { font-size: .63rem; }
}
@media (max-width: 400px) {
  .vc-grid { flex-wrap: wrap; row-gap: 12px; }
  .vc-item { flex: 0 0 46%; }
}

/* v15 — footer border, counter icons & spacing on small screens */
@media (max-width: 991.98px) {
  .vc-grid { flex-wrap: wrap; row-gap: 10px; }
  .vc-item { flex: 0 0 47%; }
}
@media (max-width: 767.98px) {
  .footer-ornament { gap: 8px; padding-top: 22px; }
  .fo-lamp { width: 38px; height: 38px; font-size: .92rem; }
  .fo-diya { width: 20px; height: 20px; font-size: .58rem; }
  .footer-arch { height: 22px; margin-top: 12px; }
  .footer-main { padding-top: 30px; padding-bottom: 24px; }
  .footer-main .footer-heading.mt-4 { margin-top: 18px !important; }
  .visitor-counter { margin-top: 16px; }
  .vc-item { flex: 0 0 100%; }
}

/* v16 — credit + counter spacing on small screens */
@media (max-width: 991.98px) {
  .vc-grid { gap: 12px; row-gap: 14px; }
  .vc-item + .vc-item { padding-left: 12px; }
}
@media (max-width: 767.98px) {
  .footer-dev-credit { justify-content: flex-start; margin-top: 8px; }
  .vc-item { flex: 0 0 100%; }
  .vc-item + .vc-item {
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid rgba(213, 160, 33, .18);
  }
}

/* v17 — footer clean-up on small screens */
@media (max-width: 991.98px) {
  .visitor-counter { gap: 16px; padding: 14px 16px; }
  .vc-title { padding-right: 0; border-right: 0; flex: 0 0 100%; margin-bottom: 4px; }
  .vc-item { padding: 0 14px; }
  .vc-item + .vc-item { padding-left: 14px; }
}
@media (max-width: 767.98px) {
  .footer-ornament { padding-top: 18px; }
  .footer-arch { height: 20px; margin-top: 10px; }
  .site-footer .footer-main,
  .footer-main { padding-top: 24px; padding-bottom: 18px; }
  .vc-grid { flex-wrap: wrap; row-gap: 12px; }
  .vc-item { flex: 0 0 100%; padding: 0; }
  .vc-item + .vc-item {
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid rgba(213, 160, 33, .18);
  }
  .vc-icon { flex-basis: 30px; width: 30px; height: 30px; }
}

/* ============================================================
   v18 — visitor strip, trust strip & action bar on mobile
============================================================ */
@media (max-width: 991.98px) {
  .visitor-counter { max-width: 100%; }
}

@media (max-width: 767.98px) {
  /* Visitor strip: stacked, centred, comfortable */
  .visitor-counter {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 16px;
    margin-top: 8px;
  }
  .vc-title {
    padding: 0 0 10px;
    margin: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(213, 160, 33, .22);
    justify-content: center;
  }
  .vc-grid { flex-direction: column; width: 100%; row-gap: 0; }
  .vc-item {
    flex: 1 1 auto;
    width: 100%;
    padding: 10px 0;
    justify-content: flex-start;
  }
  .vc-item + .vc-item {
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid rgba(213, 160, 33, .14);
  }

  /* Trust strip: proper 2-column grid instead of a cut-off scroll row */
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
  .trust-item {
    flex: none;
    padding: 18px 12px;
    scroll-snap-align: none;
  }
  .trust-item span { font-size: .8rem; line-height: 1.35; }

  /* Content must clear the taller action bar */
  body { padding-bottom: 78px; }
}

@media (max-width: 400px) {
  .trust-grid { gap: 9px; }
  .trust-item { padding: 15px 8px; }
  .trust-item i { width: 44px; height: 44px; font-size: 1rem; }
  .mab-item { font-size: .63rem; padding: 8px 2px 7px; }
  .mab-item i { font-size: .95rem; }
}

/* v19 — floating pill bar clearance */
@media (max-width: 767.98px) {
  body { padding-bottom: 92px; }
  .fab-top { bottom: 100px; }
}
@media (max-width: 400px) {
  .mobile-action-bar { left: 8px; right: 8px; padding: 8px 5px; }
  .mab-item { font-size: .63rem; gap: 4px; }
  .mab-item i { width: 36px; height: 36px; font-size: .96rem; }
}

/* v19 — floating dock clearance */
@media (max-width: 767.98px) {
  body { padding-bottom: 96px; }
  .floating-stack ~ .fab-top,
  .fab-top { bottom: 104px; }
}
@media (max-width: 400px) {
  .mab-item { font-size: .62rem; }
  .mab-item i { width: 38px; height: 38px; font-size: .96rem; }
}

/* v20 — slimmer bar: less content clearance needed */
@media (max-width: 767.98px) {
  body { padding-bottom: 66px; }
  .floating-stack ~ .fab-top,
  .fab-top { bottom: 76px; }
}
@media (max-width: 400px) {
  .mab-item { font-size: .58rem; }
  .mab-item i { width: 29px; height: 29px; font-size: .8rem; }
  body { padding-bottom: 62px; }
}
