/* ==========================================================================
   Holy Matrimony - Custom Responsive & Mobile Drawer Styles
   ========================================================================== */

/* Mobile Drawer Overlay Background */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(41, 7, 12, 0.6);
  /* Translucent dark burgundy */
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Left-Side Mobile Drawer Menu */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  /* Hidden initially offscreen left */
  width: 300px;
  height: 100vh;
  background-color: var(--light-cream);
  z-index: 1050;
  box-shadow: 5px 0 25px rgba(107, 31, 42, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border-right: 2px solid rgba(212, 175, 55, 0.3);
}

.mobile-menu-drawer.active {
  left: 0;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(107, 31, 42, 0.15);
  margin-bottom: 25px;
}

.drawer-header img {
  height: 40px;
  object-fit: contain;
}

/* Drawer Circular Close Button */
.btn-close-drawer {
  background: transparent;
  border: 2px solid var(--primary-burgundy);
  color: var(--primary-burgundy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-drawer:hover {
  background-color: var(--primary-burgundy);
  color: var(--white);
  transform: rotate(90deg);
}

/* Drawer Navigation Links */
.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.drawer-nav-list li {
  margin-bottom: 12px;
}

.drawer-nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--charcoal);
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
}

.drawer-nav-link:hover,
.drawer-nav-link.active {
  background-color: rgba(107, 31, 42, 0.05);
  color: var(--primary-burgundy);
  padding-left: 20px;
  border-left-color: var(--gold);
}

/* Drawer CTAs at Bottom */
.drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mobile Toggler Button styling */
.mobile-toggler-btn {
  background: transparent;
  border: 2px solid var(--primary-burgundy);
  color: var(--primary-burgundy);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-toggler-btn:hover {
  background-color: var(--primary-burgundy);
  color: var(--white);
}

/* ==========================================================================
   Responsive Grid & Element Breakpoints
   ========================================================================== */

@media (max-width: 991px) {

  /* Hide standard bootstrap navbar items */
  .navbar-collapse-custom {
    display: none !important;
  }

  /* Show toggler icon */
  .mobile-toggler-btn {
    display: flex !important;
  }

  /* Hero Section Split Layout adjustment */
  .hero-section {
    padding: 120px 0 50px 0;
    text-align: center;
  }

  .hero-left {
    margin-bottom: 0px;
    margin-top: 0px;
    justify-content: center;
    padding: 0px;
  }

  .hero-headline {
    font-size: 42px !important;
    line-height: 1.2;
  }

  .hero-subheading {
    margin-left: auto;
    margin-right: auto;
  }

  /* Split stats ribbon */
  .stats-ribbon {
    padding: 30px 15px;
  }

  .ribbon-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
  }

  .ribbon-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .hero-headline {
    font-size: 34px !important;
  }

  .section-title h2 {
    font-size: 28px !important;
  }

  .hero-image-wrapper {
    width: 100% !important;
    max-width: 340px;
    height: 340px !important;
  }

  .how-it-works-card,
  .community-feature-card,
  .about-grid-card {
    padding: 25px 20px !important;
  }

  .stats-section .stat-number {
    font-size: 36px !important;
  }
}

@media (max-width: 575px) {
  .hero-headline {
    font-size: 28px !important;
  }

  .stats-ribbon .row {
    flex-direction: column;
  }
}

/* ================= Standard Responsive Adjustments ================= */
@media (max-width: 1199px) {
  .hero-headline {
    font-size: 46px;
  }

  .hero-image-wrapper {
    width: 400px;
    height: 400px;
  }

  .slick-prev-custom {
    left: -10px;
  }

  .slick-next-custom {
    right: -10px;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding: 120px 0 60px 0;
  }

  .hero-subheading {
    margin: 0 auto 35px;
  }

  .hero-ctas {
    justify-content: center;
    margin-bottom: 0px;
    padding-bottom: 0px;
  }

  .btn-premium {

    font-size: 11px;

  }

  .search-field label {
    text-align: start;
  }

  .hero-search-container {
    margin-top: 0px;
  }

  .hero-trust-indicators {
    justify-content: center;
  }

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

  .search-submit-btn {
    margin-top: 10px;
    grid-column: span 2;
  }

  .hero-right {
    margin-top: 30px;
  }

  .phone-1 {
    transform: translateX(-35px) translateY(-10px) rotate(-8deg);
  }

  .phone-2 {
    transform: translateX(55px) translateY(15px) rotate(8deg);
  }

  .about-text {
    margin-bottom: 50px;
    text-align: center;
  }

  .about-buttons {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero-headline {
    font-size: 36px;
  }

  .section-title h2 {
    font-size: 32px;
  }

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

  .search-submit-btn {
    grid-column: span 1;
  }

  .hero-image-wrapper {
    width: 300px;
    height: 300px;
  }

  .floating-badge {
    display: none;
  }

  .story-img-wrapper {
    height: 260px;
    margin-bottom: 25px;
  }

  .story-content {
    padding-left: 0;
  }

}