/* ============================================================
   UDAYAKEERTHI MATRIMONIAL — responsive rules
   ============================================================ */

@media (max-width: 1199.98px) {
  .badge-marriages {
    left: -10px;
  }

  .badge-verified {
    right: -6px;
  }

  .about-float-img {
    width: 160px;
    right: -20px;
  }
}

@media (max-width: 991.98px) {

  /* mobile nav drawer */
  .nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--ivory);
    z-index: 1050;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 22px;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.18);
    transition: left 0.32s ease;
    overflow-y: auto;
  }

  .nav-drawer.open {
    left: 0;
  }

  .nav-drawer-head {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-item {
    display: block;
    padding: 12px 15px;
  }

  .nav-cta-wrap {
    margin-top: 22px;
    flex-direction: column;
    align-items: stretch !important;
  }

  .nav-cta-wrap .btn-pill,
  .nav-cta-wrap .btn-ghost {
    justify-content: center;
    text-align: center;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 42, 32, 0.45);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* hero */
  .hero-section {
    padding: 44px 0 120px;
  }

  .hero-arch-wrap {
    max-width: 400px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .steps-track::before {
    display: none;
  }

  .app-panel {
    padding: 44px 36px 0;
  }

  .grid-app-layout {
    flex-direction: column;
  }

  .app-mockup {
    margin-top: 0;
  }

  .about-media {
    margin-bottom: 60px;
  }

  .experience-tag {
    left: 0;
  }

  .about-float-img {
    display: none;
  }

  .stories-head {
    text-align: center;
    padding-right: 0;
  }

  .stories-head .slider-arrows {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: clamp(36px, 9vw, 46px);
  }

  .hero-arch-wrap {
    max-width: 320px;
  }

  .badge-marriages {
    left: -6px;
    bottom: 30px;
    padding: 10px 14px;
  }

  .badge-num {
    font-size: 24px;
  }

  .badge-verified {
    top: 40px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .deco-hero-3,
  .deco-profiles,
  .deco-community {
    display: none;
  }

  .search-band {
    margin-top: -60px;
  }

  .search-card {
    padding: 22px 20px 26px;
    border-radius: 22px;
  }

  .steps-section {
    padding: 70px 0 50px;
  }

  .profiles-section {
    padding: 40px 0 70px;
  }

  .why-us-section {
    padding: 70px 0 60px;
  }

  .app-section {
    padding: 60px 0px !important;
  }

  .about-section {
    padding: 70px 0;
  }

  .community-section {
    padding: 30px 0 70px;
  }

  .app-panel {
    padding: 36px 24px 0;
    border-radius: 26px;
  }

  .deco-app {
    width: 80px;
    right: -14px;
    top: -22px;
  }

  .exp-num {
    font-size: 32px;
  }

  .community-card {
    flex-direction: column;
    gap: 14px;
  }

  .footer-top {
    padding: 34px 0 24px;
  }

  .footer-grid {
    padding: 30px 0 36px;
  }

  .progress-wrap {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 575.98px) {
  .brand-wordmark {
    font-size: 17px;
  }

  .brand-logo {
    width: 100px;
    height: auto;
  }

  .hero-actions .btn-pill {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-arch {
    border-radius: 180px 180px 20px 20px;
    border-width: 7px;
  }

  .why-arch,
  .about-arch {
    border-radius: 170px 170px 20px 20px;
  }

  .app-tagline {
    font-size: 15.5px;
  }

  .store-badge {
    height: 46px;
  }
}

/* ============================================================
   UDAYAKEERTHI REDESIGN — RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 991.98px) {
  .hero-section {
    height: auto;
    min-height: 780px;
    padding-top: 130px;
    padding-bottom: 40px;
  }

  .hero-slide {
    background-position: 65% center !important;
  }

  .search-card-new {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .field-looking,
  .field-religion {
    width: calc(50% - 8px) !important;
  }

  .field-age {
    width: 100% !important;
  }

  .search-card-button {
    width: 100% !important;
    margin-top: 4px;
  }
}

@media (max-width: 575.98px) {
  .site-nav {
    padding: 14px 0;
  }

  .brand-logo {
    width: 85px !important;
  }

  .nav-actions-right {
    gap: 8px;
  }

  .btn-nav-register,
  .btn-nav-login {
    padding: 0 12px;
    font-size: 14px;
    height: 40px;
  }

  .nav-search-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .field-looking,
  .field-religion,
  .field-age,
  .search-card-button {
    width: 100% !important;
  }

  .chat-float-widget {
    right: 16px;
    bottom: 16px;
  }

  .chat-pill {
    display: none;
    /* Hide chat text bubble on small mobile screens to save space */
  }

  .progress-wrap {
    bottom: 80px !important;
    right: 16px;
  }
}

/* ============================================================
   UDAYAKEERTHI REDESIGN — FEATURED GRIDS RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 1199.98px) {

  .brides-grid,
  .grooms-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991.98px) {

  .brides-grid,
  .grooms-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-section {
    padding: 60px 0;
  }

  .featured-title {
    font-size: 28px;
  }
}

@media (max-width: 767.98px) {

  .brides-grid,
  .grooms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 575.98px) {

  .brides-grid,
  .grooms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
  }

  /* Show only 3 profiles and 4th card as View More */
  .brides-grid>div:nth-child(4),
  .brides-grid>div:nth-child(5) {
    display: none !important;
  }

  .brides-grid>div.view-more-card-wrap {
    display: block !important;
  }

  .grooms-grid>div:nth-child(n+4):nth-child(-n+9) {
    display: none !important;
  }

  /* Mobile card text and size overrides */
  .featured-card {
    padding: 8px;
    border-radius: 12px;
  }

  .featured-card-img {
    border-radius: 8px;
  }

  .featured-card-info {
    padding-top: 8px;
    padding-bottom: 2px;
  }

  .featured-card-id {
    font-size: 13px;
  }

  .featured-card-meta {
    font-size: 11px;
  }

  .view-more-card {
    min-height: auto;
    height: 100%;
    padding: 16px;
    border-radius: 12px;
  }

  .view-more-icon-wrap {
    width: 38px;
    height: 38px;
    font-size: 16px;
    margin-bottom: 8px;
    border-width: 1px;
  }

  .view-more-text {
    font-size: 12px;
  }

  .featured-section {
    padding: 50px 0;
  }

  .award-card {
    padding: 8px;
    border-radius: 8px;
  }

  .award-info h4 {
    font-size: 12px;
  }

  .award-info p {
    font-size: 10px;
  }

  /* Reach Card Mobile Overrides */
  .reach-card-new {
    padding: 20px 12px;
    border-radius: 12px;
  }

  .reach-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .reach-card-new h4 {
    font-size: 13px;
  }

  /* Redesigned Stories Mobile Overrides */
  .story-name-overlay {
    font-size: 28px;
    bottom: 16px;
  }

  .stories-heading-new {
    font-size: 26px;
  }

  .stories-subheading-new {
    font-size: 13.5px;
  }

  .stories-footer-title {
    font-size: 20px;
  }

  .btn-stories-register {
    padding: 6px 6px 6px 18px;
    font-size: 14px;
    border-radius: 12px;
  }

  .btn-stories-register .arrow-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 19px;
  }

  /* App and Personalized Section Overrides */
  .app-title-new {
    font-size: 26px;
    text-align: center;
  }

  .app-subtitle-new {
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
  }

  .app-store-badges-new {
    justify-content: center;
    margin-bottom: 24px;
  }

  .app-stats-new {
    justify-content: center;
    margin-bottom: 32px;
  }

  .app-mockups-new img {
    max-width: 280px;
    margin: 0 auto;
  }

  .personalized-title-new {
    font-size: 24px;
  }

  .personalized-subtitle-new {
    font-size: 13.5px;
  }

  .personalized-item-new {
    justify-content: flex-start;
    padding: 6px 0;
  }

  .personalized-item-new span {
    font-size: 11px;
  }

  .personalized-item-new .checkmark-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
    margin-right: 8px;
  }

  .combined-card-panel {
    border-radius: 16px;
  }

  .app-part-wrap {
    padding: 32px 20px 24px;
  }

  .personalized-part-wrap {
    padding: 28px 20px 32px;
  }

  /* Recent Reviews Mobile Overrides */
  .reviews-heading {
    font-size: 26px;
  }

  .reviews-subheading {
    font-size: 13.5px;
  }

  .review-card-new {
    padding: 16px 0;
  }

  .review-text-new {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .review-author-new {
    font-size: 14px;
  }

  .review-card-new .quote-icon-wrap {
    font-size: 32px;
    margin-bottom: 12px;
  }

  /* Matrimonial Profiles By Mobile Overrides */
  .profiles-by-card {
    padding: 32px 16px;
    border-radius: 16px;
  }

  .profiles-by-icon {
    font-size: 36px;
  }

  .profiles-by-title {
    font-size: 18px;
  }

  .tab-btn-new {
    padding: 6px 16px;
    font-size: 13px;
  }

  .link-pipe {
    display: none;
  }

  .links-inline-wrap {
    gap: 8px 12px;
  }

  .links-inline-wrap a {
    font-size: 13.5px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #eef1f4;
  }

  /* Brand Description Mobile Overrides */
  .brand-desc-card {
    padding: 32px 16px;
    border-radius: 16px;
  }

  .brand-desc-logo img {
    height: 36px;
  }

  .brand-desc-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* Redesigned Footer Mobile Overrides */
  .footer-bottom-row-new {
    text-align: center;
    justify-content: center !important;
    flex-direction: column;
    gap: 12px !important;
  }

  .footer-bottom-links-new {
    justify-content: center;
    width: 100%;
    gap: 16px !important;
  }
}