/* =========================================================
   MyShaddi.in — Public Website Styles
   Luxury Indian Matrimony & Shaadi Heritage
   ========================================================= */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(201, 160, 80, 0.22);
  transition: all var(--ms-dur) var(--ms-ease);
}

.site-header.scrolled {
  background: rgba(253, 251, 247, 0.98);
  border-bottom-color: var(--ms-border-strong);
  box-shadow: 0 4px 20px rgba(60, 15, 25, 0.06);
}

.site-header .navbar {
  min-height: 80px;
  padding: 0.75rem 0;
}

.site-header .navbar-brand img {
  height: 42px;
  filter: drop-shadow(0 1px 2px rgba(91, 19, 39, 0.1));
}

.site-header .nav-link {
  color: var(--ms-charcoal);
  font-weight: 600;
  font-size: var(--ms-fs-sm);
  padding: 8px 16px !important;
  border-radius: var(--ms-r-pill);
  transition: all var(--ms-dur) var(--ms-ease);
  letter-spacing: -0.01em;
}

.site-header .nav-link:hover, .site-header .nav-link.active {
  color: var(--ms-maroon);
  background: var(--ms-blush-soft);
}

.site-header .dropdown-menu {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-r-lg);
  box-shadow: var(--ms-shadow-xl);
  padding: 10px;
  background: #FFFFFF;
  margin-top: 8px;
}

.site-header .dropdown-item {
  border-radius: var(--ms-r-md);
  padding: 9px 14px;
  font-size: var(--ms-fs-sm);
  font-weight: 500;
  transition: all var(--ms-dur) var(--ms-ease);
}

.site-header .dropdown-item:hover {
  background: var(--ms-blush-soft);
  color: var(--ms-maroon);
  transform: translateX(3px);
}

.navbar-toggler {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-r-md);
  padding: 6px 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* =========================================================
   Hero Section: Grand Matrimonial Entrance
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 80% 25%, rgba(201, 160, 80, 0.18), transparent 65%),
              radial-gradient(800px 500px at 15% 75%, rgba(133, 30, 56, 0.08), transparent 60%),
              linear-gradient(180deg, var(--ms-ivory) 0%, #FAF2E6 100%);
  padding: 88px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  width: 280px;
  height: 280px;
  background: url(../img/floral-corner.svg) no-repeat;
  opacity: 0.75;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 280px;
  height: 280px;
  background: url(../img/floral-corner.svg) no-repeat;
  transform: rotate(180deg);
  opacity: 0.75;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 800;
}

.hero h1 em {
  font-style: italic;
  color: var(--ms-maroon);
  position: relative;
  font-weight: 700;
}

.hero .lead {
  color: var(--ms-text-muted);
  font-size: 1.18rem;
  max-width: 560px;
  line-height: 1.6;
  margin-top: 14px;
}

/* Hero Search Box */
.hero-search {
  background: #FFFFFF;
  border-radius: var(--ms-r-2xl);
  box-shadow: var(--ms-shadow-xl), 0 0 0 1px rgba(201, 160, 80, 0.18);
  padding: 24px 28px;
  margin-top: 36px;
  border: 1px solid var(--ms-border);
  position: relative;
  z-index: 5;
}

.hero-search .form-label {
  font-size: var(--ms-fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ms-charcoal);
  margin-bottom: 6px;
}

.hero-search .form-select, .hero-search .form-control {
  border-color: var(--ms-border);
  background-color: #FFFDF9;
  font-weight: 500;
}

.hero-search .form-select:focus {
  border-color: var(--ms-maroon);
  box-shadow: 0 0 0 4px rgba(133, 30, 56, 0.12);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  color: var(--ms-text-muted);
  font-size: var(--ms-fs-sm);
  font-weight: 500;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row i {
  color: var(--ms-success);
  font-size: 17px;
}

/* Hero Visual: Royal Arch Frame */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4.8;
  max-width: 500px;
  margin-left: auto;
}

.hero-visual .hv-main {
  position: absolute;
  inset: 0 0 0 40px;
  border-radius: 260px 260px 28px 28px;
  overflow: hidden;
  background: linear-gradient(165deg, #7A1A32 0%, #5B1327 50%, #380816 100%);
  box-shadow: var(--ms-shadow-xl), 0 12px 36px rgba(91, 19, 39, 0.28);
}

.hero-visual .hv-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/pattern-mandala.svg);
  background-size: 180px;
  opacity: 0.85;
}

.hero-visual .hv-main::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1.5px solid rgba(201, 160, 80, 0.55);
  border-radius: 244px 244px 18px 18px;
  pointer-events: none;
}

.hero-visual .hv-couple {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ms-gold-light);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.hero-visual .hv-couple svg {
  width: 62%;
}

.hero-visual .hv-card {
  position: absolute;
  background: #FFFFFF;
  border-radius: var(--ms-r-xl);
  box-shadow: var(--ms-shadow-xl);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: var(--ms-fs-sm);
  border: 1px solid var(--ms-border);
  animation: ms-float 4s ease-in-out infinite alternate;
}

.hero-visual .hv-card.c1 {
  left: -12px;
  top: 22%;
}

.hero-visual .hv-card.c2 {
  right: -16px;
  bottom: 14%;
  animation-delay: 2s;
}

@keyframes ms-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* =========================================================
   Sections & Typography Layout
   ========================================================= */
.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 700;
  margin-top: 10px;
}

.section-head p {
  color: var(--ms-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Features Grid */
.feature {
  padding: 34px 28px;
  height: 100%;
  border-radius: var(--ms-r-xl);
  background: #FFFFFF;
  border: 1px solid var(--ms-border);
  box-shadow: var(--ms-shadow-sm);
  transition: transform var(--ms-dur) var(--ms-ease), box-shadow var(--ms-dur) var(--ms-ease), border-color var(--ms-dur) var(--ms-ease);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--ms-shadow-lg);
  border-color: rgba(201, 160, 80, 0.45);
}

.feature .f-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ms-blush-soft) 0%, #F5E5E5 100%);
  color: var(--ms-maroon);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(133, 30, 56, 0.1);
  border: 1px solid rgba(133, 30, 56, 0.08);
}

.feature h3 {
  font-size: var(--ms-fs-xl);
  margin-bottom: 10px;
}

.feature p {
  color: var(--ms-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Numbered Steps */
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ms-gold);
  color: var(--ms-gold-text);
  display: grid;
  place-items: center;
  font-family: var(--ms-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(201, 160, 80, 0.25);
  margin: 0 auto;
}

.steps-line {
  position: relative;
}

@media (min-width: 992px) {
  .steps-line::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 14%;
    right: 14%;
    border-top: 2px dashed var(--ms-gold-light);
    z-index: 0;
  }
}

/* Band Wine (AI Matchmaking showcase) */
.band-wine {
  background: var(--ms-wine-gradient);
  color: #F8ECEE;
  position: relative;
  overflow: hidden;
}

.band-wine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/pattern-mandala.svg);
  background-size: 220px;
  opacity: 0.7;
}

.band-wine > .container {
  position: relative;
  z-index: 1;
}

.band-wine h2, .band-wine h3 {
  color: #FFFFFF;
}

.band-wine .ms-eyebrow {
  color: var(--ms-gold-light);
}

.band-wine .text-muted {
  color: rgba(248, 236, 238, 0.8) !important;
}

.band-wine .ms-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 160, 80, 0.35);
  color: #F8ECEE;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Story Card */
.story-card {
  border-radius: var(--ms-r-xl);
  overflow: hidden;
}

.story-card .ms-photo {
  aspect-ratio: 16 / 10;
}

.quote {
  font-family: var(--ms-font-display);
  font-size: 1.22rem;
  color: var(--ms-charcoal);
  font-style: italic;
  line-height: 1.55;
}

/* Inner Page Hero */
.page-hero {
  background: radial-gradient(900px 400px at 80% 20%, rgba(201, 160, 80, 0.14), transparent 60%),
              linear-gradient(180deg, var(--ms-sand) 0%, var(--ms-ivory) 100%);
  padding: 72px 0 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ms-border);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: url(../img/floral-corner.svg) no-repeat;
  transform: rotate(90deg);
  opacity: 0.55;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
}

.page-hero p {
  color: var(--ms-text-muted);
  max-width: 680px;
  margin: 12px auto 0;
  font-size: 1.15rem;
  line-height: 1.6;
}

.breadcrumb {
  justify-content: center;
  font-size: var(--ms-fs-sm);
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--ms-text-muted);
}

/* Prose for Content / Legal / Stories */
.prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.7;
}

.prose h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  font-weight: 700;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 1.8rem;
  font-family: var(--ms-font-body);
  font-weight: 700;
}

.prose p, .prose li {
  color: #40383C;
}

.legal-toc {
  position: sticky;
  top: 104px;
  font-size: var(--ms-fs-sm);
}

.legal-toc a {
  display: block;
  padding: 8px 14px;
  color: var(--ms-text-muted);
  border-left: 2px solid var(--ms-border);
  font-weight: 500;
  transition: all var(--ms-dur) var(--ms-ease);
}

.legal-toc a:hover {
  color: var(--ms-maroon);
  border-left-color: var(--ms-maroon);
  background: var(--ms-blush-soft);
  border-radius: 0 var(--ms-r-sm) var(--ms-r-sm) 0;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-r-lg) !important;
  margin-bottom: 12px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--ms-shadow-xs);
}

.accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ms-charcoal);
  background: #FFFFFF;
  padding: 18px 22px;
}

.accordion-button:not(.collapsed) {
  color: var(--ms-maroon);
  background: var(--ms-blush-soft);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(133, 30, 56, 0.15);
}

/* =========================================================
   Auth Pages (Login & Registration)
   ========================================================= */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .auth-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-side {
  display: none;
  position: relative;
  background: var(--ms-wine-gradient);
  color: #F8ECEE;
  padding: 56px;
  overflow: hidden;
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/pattern-mandala.svg);
  background-size: 220px;
  opacity: 0.65;
}

.auth-side > * {
  position: relative;
  z-index: 1;
}

.auth-side h2 {
  color: #FFFFFF;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--ms-ivory);
}

.auth-box {
  width: 100%;
  max-width: 460px;
}

/* =========================================================
   Footer: Luxury Midnight Charcoal
   ========================================================= */
.site-footer {
  background: #1C1619;
  color: #D2C8C6;
  padding: 72px 0 28px;
  font-size: var(--ms-fs-sm);
  border-top: 2px solid rgba(201, 160, 80, 0.25);
}

.site-footer h6 {
  color: #FFFFFF;
  font-family: var(--ms-font-royal);
  font-size: var(--ms-fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}

.site-footer a {
  color: #C2B8B6;
  display: inline-block;
  padding: 5px 0;
  transition: color var(--ms-dur) var(--ms-ease);
}

.site-footer a:hover {
  color: var(--ms-gold-light);
}

.site-footer .social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  color: #FFFFFF;
  transition: all var(--ms-dur) var(--ms-ease);
}

.site-footer .social a:hover {
  background: var(--ms-gold-gradient);
  border-color: var(--ms-gold);
  color: var(--ms-wine-900);
  transform: translateY(-2px);
}

.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  color: #9E9391;
  font-size: var(--ms-fs-xs);
}

/* Login-required overlay */
.gate {
  position: relative;
}

.gate-blur {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

/* ---------------------------------------------------------
   Layout rules restored: these were dropped by the redesign (7361d90)
   but the screens still use them. Colours use the design tokens.
   --------------------------------------------------------- */
.ms-card .check-list li i { color: var(--ms-success); }
.blog-card .ms-photo { aspect-ratio: 16/9; font-size: 40px; }
.blog-card h3 { font-size: var(--ms-fs-xl); margin: 10px 0 6px; }
.gate-cta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gate-cta .ms-card { max-width: 420px; text-align: center; }
@media (max-width: 991.98px) {
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-visual { max-width: 360px; margin: 40px auto 0; }
  .site-header .navbar-collapse { background: #fff; border-radius: var(--ms-r-lg); padding: 12px; margin-top: 8px; box-shadow: var(--ms-shadow-lg); }
}
@media (max-width: 575.98px) {
  .hero-visual .hv-card.c2 { right: 0; }
  .hero-search { padding: 14px; }
}

/* Wide Bootstrap gutters push pages past the screen edge on phones */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* Language button (हिन्दी / English) in the header */
.ms-lang-btn { font-family: "Noto Sans Devanagari", "Outfit", sans-serif; min-width: 64px; }
html[lang="hi"] body { font-family: "Outfit", "Noto Sans Devanagari", sans-serif; }

.auth-main { position: relative; }
.auth-lang { position: absolute; top: 16px; right: 16px; z-index: 2; }
