/* =====================================================================
 * qMatrimony - Luxury Matrimonial Frontend Stylesheet
 * Fonts: Playfair Display (Headings) + Inter (Body Text)
 * Color Palette:
 *   Deep Burgundy: #651B32
 *   Royal Maroon:  #7D243D
 *   Champagne Gold: #D4AF70
 *   Ivory:         #FFF9F2
 *   Warm White:    #FFFFFF
 *   Charcoal:      #242126
 * ===================================================================== */

:root {
  --qm-burgundy: #651B32;
  --qm-burgundy-dark: #4B1224;
  --qm-maroon: #7D243D;
  --qm-gold: #D4AF70;
  --qm-gold-dark: #B89255;
  --qm-gold-light: #F3E5C8;
  --qm-ivory: #FFF9F2;
  --qm-warm-white: #FFFFFF;
  --qm-charcoal: #242126;
  --qm-gray-light: #F7F5F2;
  --qm-gray-border: #E8E2D9;
  --qm-shadow: 0 10px 30px rgba(101, 27, 50, 0.08);
  --qm-shadow-hover: 0 16px 40px rgba(101, 27, 50, 0.16);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--qm-charcoal);
  background-color: var(--qm-ivory);
  line-height: 1.6;
}

h1, h2, h3, h4, .font-serif, .hero-title, .section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--qm-burgundy);
  letter-spacing: -0.01em;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--qm-burgundy-dark);
  color: var(--qm-gold-light);
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(212, 175, 112, 0.3);
}

.announcement-bar a {
  color: var(--qm-gold);
  text-decoration: underline;
}

/* Header & Navigation */
.navbar-qm {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--qm-gray-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  padding: 10px 0;
}

.navbar-qm .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  margin-right: 18px;
  flex-shrink: 0;
}

.navbar-brand .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--qm-gold) 0%, var(--qm-gold-dark) 100%);
  color: var(--qm-burgundy);
  border-radius: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  margin-right: 10px;
  box-shadow: 0 3px 8px rgba(212, 175, 112, 0.4);
}

.navbar-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--qm-burgundy);
  line-height: 1;
}

.navbar-brand .logo-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--qm-gold-dark);
  margin-top: 1px;
}

.navbar-qm .navbar-collapse {
  align-items: center;
}

.navbar-qm .navbar-nav {
  align-items: center;
  gap: 2px;
}

.navbar-qm .nav-link {
  color: var(--qm-charcoal);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 7px 11px !important;
  white-space: nowrap !important;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.navbar-qm .nav-link:hover {
  color: var(--qm-burgundy);
  background-color: rgba(101, 27, 50, 0.05);
}

.navbar-qm .nav-link.active {
  color: var(--qm-burgundy);
  font-weight: 600;
}

/* Medium Desktop Viewports (992px to 1250px) */
@media (min-width: 992px) and (max-width: 1250px) {
  .navbar-qm .nav-link {
    font-size: 0.84rem;
    padding: 6px 7px !important;
  }
  .navbar-brand {
    margin-right: 10px;
  }
  .navbar-brand .logo-text {
    font-size: 1.35rem;
  }
  .navbar-brand .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
    margin-right: 8px;
  }
}

/* Mobile & Tablet Drawer (< 992px) */
@media (max-width: 991.98px) {
  .navbar-qm .navbar-nav {
    align-items: flex-start;
    padding: 12px 0 8px;
    gap: 4px;
  }
  .navbar-qm .nav-link {
    width: 100%;
    padding: 8px 12px !important;
  }
}

/* Utility Tokens & Luxury Colors */
.bg-gold {
  background: linear-gradient(135deg, #F3E5C8 0%, #D4AF70 50%, #B89255 100%) !important;
  color: #380C19 !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(212, 175, 112, 0.25);
}

.text-gold {
  color: #C89F5E !important;
}

.border-gold {
  border-color: #D4AF70 !important;
}

.bg-ivory {
  background-color: var(--qm-ivory) !important;
}

.bg-maroon {
  background: linear-gradient(135deg, #4B1224 0%, #651B32 50%, #7D243D 100%) !important;
}

.text-maroon {
  color: var(--qm-maroon) !important;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

.hover-shadow-sm {
  transition: all 0.3s ease;
}

.hover-shadow-sm:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(101, 27, 50, 0.1) !important;
}

/* Luxury Buttons */
.btn-gold, .btn-qm-gold {
  background: linear-gradient(135deg, #F3E5C8 0%, #D4AF70 50%, #B89255 100%);
  color: #380C19 !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 112, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold:hover, .btn-qm-gold:hover {
  background: linear-gradient(135deg, #FFF0D0 0%, #DEB97A 50%, #C49E61 100%);
  color: #20050E !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 112, 0.5);
}

.btn-gold:active, .btn-qm-gold:active {
  transform: translateY(0);
}

.btn-qm-primary {
  background: linear-gradient(135deg, var(--qm-burgundy) 0%, var(--qm-maroon) 100%);
  color: #FFFFFF !important;
  border: 1px solid var(--qm-burgundy);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(101, 27, 50, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-qm-primary:hover {
  background: linear-gradient(135deg, var(--qm-burgundy-dark) 0%, var(--qm-burgundy) 100%);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(101, 27, 50, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--qm-burgundy) 0%, var(--qm-maroon) 100%) !important;
  border-color: var(--qm-burgundy) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(101, 27, 50, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--qm-burgundy-dark) 0%, var(--qm-burgundy) 100%) !important;
  border-color: var(--qm-burgundy-dark) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(101, 27, 50, 0.3);
}

.btn-outline-primary, .btn-qm-outline {
  background: transparent;
  color: var(--qm-burgundy) !important;
  border: 1.5px solid var(--qm-maroon) !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 20px;
  transition: all 0.25s ease;
}

.btn-outline-primary:hover, .btn-qm-outline:hover {
  background: var(--qm-burgundy) !important;
  border-color: var(--qm-burgundy) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 25% 45%, rgba(125, 36, 61, 0.92) 0%, rgba(65, 15, 30, 0.96) 100%), 
              url('https://images.unsplash.com/photo-1583939003579-730e3918a45a?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #FFFFFF;
  padding: 75px 0 95px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 25%, rgba(212, 175, 112, 0.16), transparent 45%);
  pointer-events: none;
}

.hero-section h1 {
  font-size: 3.3rem;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-section p.lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 580px;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Quick Search Card on Hero */
.search-card {
  background: #FFFFFF !important;
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(212, 175, 112, 0.5);
  position: relative;
  color: var(--qm-charcoal);
  z-index: 2;
}

.search-card h3 {
  color: var(--qm-burgundy);
  font-size: 1.65rem;
  margin-bottom: 4px;
}

.search-card p.text-muted {
  color: #6c757d !important;
  font-size: 0.88rem;
}

.search-card .form-label {
  color: #4a4542 !important;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

/* Gender Toggle in Search Card */
.search-card .btn-check + .btn,
.search-card .btn-gender {
  background-color: #FAF7F2 !important;
  border: 1.5px solid #E2D9CC !important;
  color: var(--qm-burgundy) !important;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.search-card .btn-check + .btn:hover,
.search-card .btn-gender:hover {
  background-color: #F8EED9 !important;
  border-color: var(--qm-gold) !important;
  color: var(--qm-burgundy) !important;
}

.search-card .btn-check:checked + .btn,
.search-card .btn-gender.active {
  background: linear-gradient(135deg, var(--qm-burgundy) 0%, var(--qm-maroon) 100%) !important;
  border-color: var(--qm-burgundy) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(101, 27, 50, 0.3) !important;
}

.search-card .form-select {
  border-radius: 10px;
  border: 1.5px solid #E4DCD2;
  padding: 9px 14px;
  font-size: 0.92rem;
  color: #332d29;
  background-color: #FAF7F2;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-card .form-select:focus {
  border-color: var(--qm-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 112, 0.25);
}

/* Title Dividers */
.title-divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--qm-gold), transparent);
  border-radius: 2px;
  position: relative;
  margin: 14px auto 18px;
}

.title-divider::after {
  content: '♦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: var(--qm-gold-dark);
  background: #FFFFFF;
  padding: 0 5px;
  line-height: 1;
}

.bg-maroon .title-divider::after {
  background: var(--qm-maroon);
}

.bg-ivory .title-divider::after {
  background: var(--qm-ivory);
}

/* Profile Card */
.profile-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(101, 27, 50, 0.08);
  border: 1px solid var(--qm-gray-border);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(101, 27, 50, 0.16);
  border-color: var(--qm-gold);
}

.profile-card-image {
  position: relative;
  height: 270px;
  background: #EFEBE5;
  overflow: hidden;
}

.profile-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-card:hover .profile-card-image img {
  transform: scale(1.06);
}

.profile-card-badge, .profile-card-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
}

.btn-shortlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #888888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
}

.btn-shortlist:hover, .btn-shortlist.active {
  background: #FFFFFF;
  color: #dc3545;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.3);
}

.profile-card-body {
  padding: 20px 18px 14px;
  flex-grow: 1;
}

.profile-card-name, .profile-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.profile-card-name a {
  color: var(--qm-burgundy);
  transition: color 0.2s;
}

.profile-card-name a:hover {
  color: var(--qm-maroon);
}

.profile-card-meta, .profile-meta {
  color: #7a736e;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-card-details, .profile-specs {
  font-size: 0.85rem;
  color: #4f4844;
  margin-top: 10px;
}

.profile-card-details > div, .profile-specs li {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-footer {
  padding: 12px 18px;
  background: #FAF7F2;
  border-top: 1px solid var(--qm-gray-border);
  display: flex;
  gap: 10px;
}

/* Feature Cards ("Why Choose Us") */
.feature-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 6px 20px rgba(101, 27, 50, 0.06);
  border: 1px solid var(--qm-gray-border);
  transition: all 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(101, 27, 50, 0.12);
  border-color: var(--qm-gold);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF9F2 0%, #F5E8D3 100%);
  color: var(--qm-burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 175, 112, 0.35);
  box-shadow: 0 4px 12px rgba(212, 175, 112, 0.2);
}

/* How It Works Step Cards */
.step-card {
  padding: 28px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 112, 0.25);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  height: 100%;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--qm-gold);
  transform: translateY(-5px);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F3E5C8 0%, var(--qm-gold) 50%, #B89255 100%);
  color: var(--qm-burgundy-dark);
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 15px rgba(212, 175, 112, 0.4);
}

/* Membership Plan Cards */
.plan-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid var(--qm-gray-border);
  transition: all 0.35s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(101, 27, 50, 0.12);
}

.plan-card.border-warning {
  border-color: var(--qm-gold) !important;
  background: linear-gradient(180deg, #FFFCF7 0%, #FFFFFF 100%);
  box-shadow: 0 12px 35px rgba(212, 175, 112, 0.25) !important;
}

/* Membership Pricing Cards */
.pricing-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 35px 25px;
  box-shadow: var(--qm-shadow);
  border: 1px solid var(--qm-gray-border);
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--qm-shadow-hover);
}

.pricing-card.popular {
  border: 2px solid var(--qm-gold);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--qm-gold);
  color: var(--qm-burgundy);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--qm-burgundy);
}

/* Footer */
.footer-qm {
  background-color: var(--qm-burgundy-dark);
  color: #D3C4BC;
  padding: 70px 0 25px;
  border-top: 3px solid var(--qm-gold);
}

.footer-qm h5 {
  font-family: 'Playfair Display', serif;
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 22px;
  font-weight: 700;
}

.footer-qm a {
  color: #E2D7D0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-qm a:hover {
  color: var(--qm-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.85rem;
}

/* Toast container override for frontend */
.qm-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
}
