/* ==========================================================================
   Wedding Bharat — Responsive Styles
   Breakpoints: 1080px · 768px · 560px
   ========================================================================== */

/* ---------- Large tablet / small desktop (≤1080px) ---------- */
@media (max-width: 1080px) {
  .wrap { padding: 0 28px; }

  .nav-links,
  .nav-cta .btn-outline,
  .nav-signin-link { display: none; }

  .nav-toggle { display: flex; }

  .mobile-menu-overlay { display: block; }
  .mobile-menu { display: flex; }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 16px 0;
    border-radius: 0;
  }

  .mega-menu__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    height: 440px;
    margin-top: 16px;
  }

  .hero { min-height: auto; padding-bottom: 20px; }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .stat-strip .stat:nth-child(3) { border-left: none; }

  .search-card {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .search-field { border-right: none; border-bottom: 1px solid var(--line); }
  .search-field:nth-child(2n) { border-right: none; }

  .search-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding: 8px;
  }

  .search-btn {
    flex: 1;
    justify-content: center;
    padding: 14px 24px;
  }

  .timeline::before { display: none; }

  .timeline,
  .wedding-timeline { grid-template-columns: 1fr; gap: 24px; }

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

  .atlas-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }

  .vendor-grid,
  .stories-grid,
  .blog-grid,
  .celeb-grid { grid-template-columns: repeat(2, 1fr); }

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

  .cat-grid--17 { grid-template-columns: repeat(2, 1fr); }

  .ai-grid,
  .ai-preview,
  .budget-calc,
  .dashboard-preview-grid,
  .checklist-preview-grid,
  .app-download,
  .newsletter-block { grid-template-columns: 1fr; gap: 32px; }

  .ai-section { padding: 56px 32px; }

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

  .testi-card { flex: 0 0 100%; }

  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-8px); }

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

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

  .awards-grid,
  .success-nums { grid-template-columns: repeat(2, 1fr); }

  .dashboard-preview__stats { grid-template-columns: repeat(2, 1fr); }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .float-card[style*="right:-"] { right: 8px !important; }
  .float-card[style*="left:-"] { left: 8px !important; }

  .widget-back-top { right: 88px; }
}

/* ---------- Tablet (≤768px) ---------- */
@media (max-width: 768px) {
  :root {
    --nav-h: 72px;
    --sticky-cta-h: 72px;
  }

  .wrap { padding: 0 24px; }

  .sec-pad { padding: 96px 0; }
  .sec-pad.med { padding: 72px 0; }
  .sec-pad.compact { padding: 56px 0; }

  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(26px, 5vw, 34px); }

  header.nav .wrap { height: var(--nav-h); }

  .logo-img--nav { height: 52px; width: auto; max-width: 190px; }
  .page-loader .logo-img--loader { height: 96px; max-width: 320px; }
  .brand .word { font-size: 18px; }

  .hero { padding-top: 28px; }

  .hero h1 { font-size: clamp(32px, 7vw, 44px); }

  .hero p.sub { font-size: 17px; margin: 20px 0 28px; }

  .hero-visual { height: 360px; }

  .hero-glass-panel { border-radius: var(--radius-lg); }

  .float-card {
    padding: 12px 14px;
    font-size: 12px;
  }

  .float-card .num { font-size: 16px; }

  .stat-strip {
    margin-top: 48px;
    padding: 28px 0;
  }

  .stat-strip .num { font-size: 28px; }

  .search-wrap { margin-top: -32px; }

  .search-card {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: var(--radius);
  }

  .search-field {
    border-bottom: 1px solid var(--line);
    border-right: none;
    padding: 14px 16px;
  }

  .search-field:last-of-type { border-bottom: none; }

  .search-chips { padding: 10px 16px 14px; }

  .category-panel {
    left: 0;
    right: 0;
    width: auto;
  }

  .category-options { grid-template-columns: 1fr; max-height: 240px; }

  .search-voice-btn,
  .search-location-btn { width: 44px; height: 44px; }

  .vendor-tabs { gap: 8px; margin-bottom: 28px; }

  .vendor-tabs__chip { padding: 8px 16px; font-size: 12.5px; }

  .vendor-grid,
  .live-grid,
  .atlas-grid,
  .cat-grid,
  .benefit-grid,
  .dest-grid,
  .blog-grid,
  .stories-grid,
  .celeb-grid,
  .skeleton-grid { grid-template-columns: 1fr; }

  .atlas-grid { grid-auto-rows: 200px; }
  .atlas-card.wide { grid-column: span 1; }
  .atlas-card.tall { grid-row: span 1; }

  .cat-grid--17 { grid-template-columns: 1fr; }

  .checklist-grid { grid-template-columns: 1fr; }

  .budget-calc { padding: 32px 24px; }

  .budget-calc__result .total { font-size: 36px; }

  .dashboard-mock { padding: 22px; }

  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }

  .newsletter-block { padding: 40px 28px; }

  .newsletter-form { flex-direction: column; }

  .newsletter-form .btn { width: 100%; }

  .app-download__phone {
    width: 220px;
    height: 440px;
  }

  .final-cta { padding: 56px 28px; }

  .foot-grid { grid-template-columns: 1fr; gap: 28px; }

  .foot-brand { text-align: center; }
  .foot-brand p { max-width: none; margin-left: auto; margin-right: auto; }
  .foot-brand .brand { justify-content: center; }

  .foot-social { justify-content: center; }

  .foot-bottom {
    flex-direction: column;
    text-align: center;
  }

  .foot-bottom .links { justify-content: center; flex-wrap: wrap; }

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

  .awards-grid,
  .success-nums { grid-template-columns: 1fr 1fr; }

  .partners-strip { gap: 24px 32px; }

  .insta-item { width: 180px; height: 180px; }

  .insta-track-wrap { margin: 0 -24px; }

  .dashboard-preview__stats { grid-template-columns: 1fr 1fr; }

  .vendor-actions {
    opacity: 1;
    transform: translateX(0);
    flex-direction: row;
    top: auto;
    bottom: 14px;
    right: 14px;
  }

  .vendor-action-btn {
    width: 32px;
    height: 32px;
  }

  .sticky-bottom-cta {
    display: flex;
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .sticky-bottom-cta.is-visible { display: flex; }

  .widget-whatsapp {
    bottom: calc(var(--sticky-cta-h) + 16px);
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .widget-back-top {
    bottom: calc(var(--sticky-cta-h) + 16px);
    right: 76px;
  }

  .floating-flower { display: none; }

  .hero-mouse-glow { display: none; }

  .mega-menu__grid { grid-template-columns: 1fr; }

  .ai-section { padding: 40px 24px; border-radius: var(--radius-lg); }

  .vendor-compare-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------- Mobile (≤560px) ---------- */
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }

  .sec-pad { padding: 72px 0; }
  .sec-pad.med { padding: 56px 0; }
  .sec-pad.tight-top { padding-top: 64px; }

  .kicker {
    font-size: 11px;
    padding: 7px 14px;
    margin-bottom: 16px;
  }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-visual { height: 300px; }

  .collage-grid { gap: 4px; padding: 4px; }

  .float-card { display: none; }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
  }

  .stat-strip .stat {
    border-left: none;
    padding: 8px 0;
  }

  .stat-strip .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .search-btn { min-height: 48px; font-size: 14px; }

  .search-chip { font-size: 11.5px; padding: 6px 12px; }

  .live-card { padding: 20px; }

  .vendor-card .vendor-photo { height: 170px; }

  .vendor-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .vendor-foot .btn { width: 100%; justify-content: center; }

  .atlas-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 172px;
    gap: 10px;
  }

  .atlas-card { padding: 14px; }

  .atlas-card.wide { grid-column: span 2; }

  .ai-row .bar,
  .match-chart__bar { max-width: 80px; margin: 0 10px; }

  .ai-row .l,
  .match-chart__label { min-width: 90px; font-size: 12.5px; }

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

  .testi-card p.quote { font-size: 16px; }

  .plan { padding: 32px 24px; }
  .plan .price { font-size: 34px; }

  .faq-q {
    padding: 18px 20px;
    font-size: 14.5px;
  }

  .faq-a p { padding: 0 20px 20px; font-size: 14px; }

  .faq-search-wrap input { padding: 14px 16px 14px 44px; font-size: 14px; }

  .budget-calc { padding: 24px 18px; border-radius: var(--radius-lg); }

  .budget-calc__result { padding: 24px 18px; }
  .budget-calc__result .total { font-size: 32px; }

  .newsletter-block { padding: 32px 20px; border-radius: var(--radius-lg); }

  .final-cta { padding: 44px 20px; border-radius: var(--radius-lg); }

  .final-cta .hero-ctas .btn { width: 100%; }

  .dest-card { height: 220px; }

  .celeb-card {
    flex-direction: column;
    text-align: center;
  }

  .celeb-card__img {
    width: 100%;
    height: 160px;
    margin: 0 auto;
  }

  .media-grid { grid-template-columns: 1fr 1fr; }

  .awards-grid,
  .success-nums { grid-template-columns: 1fr; }

  .success-num .num { font-size: 36px; }

  .app-download__phone {
    width: 200px;
    height: 400px;
    border-width: 6px;
    border-radius: 28px;
  }

  .app-download__badges {
    flex-direction: column;
    align-items: stretch;
  }

  .app-badge { justify-content: center; }

  .insta-item { width: 150px; height: 150px; }

  .sticky-bottom-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .sticky-bottom-cta .btn {
    width: 100%;
    padding: 14px 20px;
    min-height: 48px;
  }

  .widget-whatsapp {
    width: 48px;
    height: 48px;
    bottom: calc(var(--sticky-cta-h) + 12px);
    right: 12px;
  }

  .widget-back-top {
    width: 40px;
    height: 40px;
    right: 68px;
    bottom: calc(var(--sticky-cta-h) + 12px);
  }

  .mobile-menu { width: 100vw; padding: 20px 18px; }

  .dashboard-preview__header { padding: 16px 18px; flex-wrap: wrap; gap: 12px; }

  .dashboard-preview__chart { padding: 18px; height: 160px; }

  .logo-img--footer { height: 52px; max-width: 190px; }
  .page-loader .logo-img--loader { height: 88px; max-width: 300px; }

  .nav-cta .btn-primary { display: none; }

  .partners-strip { gap: 20px; }

  .partner-logo { font-size: 13px; }

  .ticker-item { font-size: 12px; padding: 0 28px; }
}

/* ---------- Overflow prevention ---------- */
@media (max-width: 1080px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  .hero-particles,
  .hero__bg-layers,
  .insta-track-wrap,
  .testi-track-wrap,
  .ticker-strip { overflow: hidden; }

  .wrap,
  section,
  .hero,
  footer { max-width: 100%; }

  img, video, svg { max-width: 100%; height: auto; }

  .search-card,
  .ai-section,
  .final-cta,
  .newsletter-block,
  .budget-calc,
  .dashboard-preview { max-width: 100%; }

  pre, code { overflow-x: auto; word-wrap: break-word; }
}

/* ---------- Touch-friendly targets ---------- */
@media (max-width: 768px) and (pointer: coarse) {
  .btn,
  .search-btn,
  .vendor-tabs__chip,
  .faq-q,
  .cat-card,
  .nav-toggle,
  .vendor-action-btn,
  .search-voice-btn,
  .search-location-btn,
  .testi-dots span,
  .mobile-menu__links a {
    min-height: 44px;
  }

  .vendor-tabs__chip {
    display: inline-flex;
    align-items: center;
  }

  .faq-q { min-height: 52px; }

  .checklist-item { min-height: 52px; }
}

/* ---------- Landscape phone ---------- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 32px 0; }

  .hero-visual { height: 280px; }

  .page-loader__logo { height: 78px; max-width: 250px; width: auto; }

  .sticky-bottom-cta {
    flex-direction: row;
    text-align: left;
  }

  .sticky-bottom-cta .btn { width: auto; }
}

/* ---------- Print ---------- */
@media print {
  .page-loader,
  .scroll-progress,
  .widget-whatsapp,
  .widget-back-top,
  .sticky-bottom-cta,
  .nav-toggle,
  .mobile-menu,
  .mobile-menu-overlay,
  .ticker-strip,
  .hero-particles,
  .hero__bg-layers {
    display: none !important;
  }

  header.nav { position: static; box-shadow: none; }

  .hero, section, footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body { background: #fff; color: #000; }
}
