/*
Theme Name:  Vivah - Matrimonial
Theme URI:   https://example.com/vivah-matrimonial
Description: Premium matrimonial theme built for Matrimonial WP. Cormorant Garamond display typography, crimson and old-gold palette, full homepage with animated hero, how-it-works, features, profile teasers, testimonials, and membership plans. WooCommerce-compatible.
Version:     2.0.0
Author:      Monster Ads
License:     GPL v2 or later
Text Domain: vivah
Tags:        matrimonial, wedding, dating, woocommerce, one-column, custom-colors, custom-logo
*/

/* ─────────────────────────────────────────────────────────────────────────────
   0. CSS CUSTOM PROPERTIES
───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --c-primary:      #8B1A3A;
  --c-primary-dk:   #5D0E27;
  --c-primary-lt:   #B8244E;
  --c-gold:         #C9A55A;
  --c-gold-dk:      #A8873E;
  --c-gold-lt:      #E2C98A;
  --c-plum:         #1C0D15;
  --c-cream:        #FFF8F0;
  --c-blush:        #F9F0F4;
  --c-border:       #F0DCE4;
  --c-text:         #1E0E18;
  --c-text-lt:      #3D2535;
  --c-muted:        #7A6872;
  --c-white:        #FFFFFF;

  /* Typography */
  --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --sp-xs:  .375rem;   /*  6px */
  --sp-sm:  .75rem;    /* 12px */
  --sp-md:  1.25rem;   /* 20px */
  --sp-lg:  2rem;      /* 32px */
  --sp-xl:  3.5rem;    /* 56px */
  --sp-2xl: 6rem;      /* 96px */

  /* Shadows */
  --shadow-sm: 0 2px 8px  rgba(28,13,21,.06);
  --shadow-md: 0 4px 24px rgba(28,13,21,.10);
  --shadow-lg: 0 8px 48px rgba(28,13,21,.15);

  /* Misc */
  --radius:    12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --transition: all .25s ease;
  --container: 1200px;
  --header-h:  76px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. BASE RESET & TYPOGRAPHY
───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-text);
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--c-gold-dk); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .3rem; }

/* Skip link */
.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 9999;
  background: var(--c-primary); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   2. UTILITY CLASSES
───────────────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1400px; }

.text-center { text-align: center; }
.text-gold   { color: var(--c-gold); }
.text-muted  { color: var(--c-muted); font-size: .9rem; }

.section-label {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold-dk);
  display: block;
  margin-bottom: .6rem;
}
.section-title {
  margin-bottom: .75rem;
}
.section-sub {
  color: var(--c-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.divider-gold {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-lt));
  border-radius: 3px;
  margin: .9rem auto 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1.6rem;
  font-family: var(--ff-body);
  font-size: .9rem; font-weight: 600;
  border-radius: 40px;
  border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-dk);
  border-color: var(--c-primary-dk);
  color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,26,58,.3);
}
.btn-gold {
  background: var(--c-gold);
  color: var(--c-white);
  border-color: var(--c-gold);
}
.btn-gold:hover {
  background: var(--c-gold-dk);
  border-color: var(--c-gold-dk);
  color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,165,90,.4);
}
.btn-outline-white {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--c-white);
  color: var(--c-white);
}
.btn-lg {
  padding: .85rem 2.2rem;
  font-size: 1rem;
}
.btn-sm {
  padding: .4rem 1rem;
  font-size: .8rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. SITE HEADER & NAVIGATION
───────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow .25s;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(28,13,21,.08);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-logo-text .logo-name {
  font-family: var(--ff-display);
  font-size: 1.6rem; font-weight: 600;
  color: var(--c-primary);
  display: block; line-height: 1;
  letter-spacing: .02em;
}
.site-logo-text .logo-tag {
  font-size: .65rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-gold-dk);
  display: block; line-height: 1; margin-top: 2px;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav a {
  font-size: .875rem; font-weight: 500;
  color: var(--c-text-lt);
  padding: .4rem .85rem;
  border-radius: 6px;
  transition: var(--transition);
}
.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--c-primary); background: var(--c-blush); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.header-login {
  font-size: .875rem; font-weight: 500; color: var(--c-text-lt);
  padding: .4rem .85rem; border-radius: 6px; text-decoration: none;
}
.header-login:hover { color: var(--c-primary); }

/* Logged-in member chip in header */
.header-member-name {
  display: flex; align-items: center; gap: .45rem;
  text-decoration: none; color: var(--c-text-lt);
  font-size: .875rem; font-weight: 500;
  padding: .3rem .7rem .3rem .3rem;
  border-radius: 40px; border: 1.5px solid var(--c-border);
  background: var(--c-white); transition: var(--transition);
}
.header-member-name:hover { border-color: var(--c-primary); color: var(--c-primary); }
.header-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-gold));
  color: #fff; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header-member-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─────────────────────────────────────────────────────────────────────────────
   4. HERO SECTION
───────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--c-plum) 0%, #3D0B1F 50%, var(--c-primary) 100%);
  color: var(--c-white);
}

/* Decorative mandala ornament — signature visual identity */
.hero-ornament {
  position: absolute; top: -80px; right: -80px;
  width: 620px; height: 620px;
  opacity: .12; pointer-events: none;
  animation: heroSpin 60s linear infinite;
}
@keyframes heroSpin { to { transform: rotate(360deg); } }

.hero-ornament-2 {
  position: absolute; bottom: -120px; left: -100px;
  width: 400px; height: 400px;
  opacity: .06; pointer-events: none;
  animation: heroSpin 80s linear infinite reverse;
}

/* Grain texture overlay */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  padding: var(--sp-2xl) 0;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(201,165,90,.15);
  border: 1px solid rgba(201,165,90,.35);
  color: var(--c-gold-lt);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 40px;
  margin-bottom: var(--sp-md);
}
.hero-eyebrow::before { content: '✦'; }

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--c-white);
  margin-bottom: var(--sp-md);
}
.hero-title em {
  font-style: italic;
  color: var(--c-gold-lt);
}

.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  margin-bottom: var(--sp-lg);
  max-width: 540px; line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: var(--sp-xl); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-trust-item {
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.7); font-size: .82rem;
}
.hero-trust-item::before {
  content: '✓';
  width: 18px; height: 18px;
  background: rgba(201,165,90,.3);
  color: var(--c-gold-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. STATS STRIP
───────────────────────────────────────────────────────────────────────────── */
.stats-strip {
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-lg) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  background: var(--c-white);
  padding: var(--sp-md) var(--sp-lg);
  text-align: center;
}
.stat-number {
  font-family: var(--ff-display);
  font-size: 2.8rem; font-weight: 600;
  color: var(--c-primary); line-height: 1;
  display: block;
}
.stat-label {
  font-size: .78rem; font-weight: 500;
  color: var(--c-muted);
  letter-spacing: .06em; text-transform: uppercase;
  margin-top: .3rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. HOW IT WORKS
───────────────────────────────────────────────────────────────────────────── */
.how-it-works {
  padding: var(--sp-2xl) 0;
  background: var(--c-white);
}
.section-head { text-align: center; margin-bottom: var(--sp-xl); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 48px; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-gold) 0, var(--c-gold) 8px, transparent 8px, transparent 18px);
  z-index: 0;
}

.step-card {
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  position: relative;
}
.step-number {
  font-family: var(--ff-display);
  font-size: 4rem; font-weight: 700;
  color: var(--c-gold-lt);
  line-height: 1; display: block; margin-bottom: .5rem;
  position: relative; z-index: 1;
}
.step-icon {
  width: 64px; height: 64px;
  background: var(--c-blush);
  border: 2px solid var(--c-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto var(--sp-md);
  position: relative; z-index: 1;
  transition: var(--transition);
}
.step-card:hover .step-icon {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: scale(1.08);
}
.step-title { font-size: 1.2rem; margin-bottom: .5rem; }
.step-desc { color: var(--c-muted); font-size: .9rem; }

/* ─────────────────────────────────────────────────────────────────────────────
   7. WHY CHOOSE US / FEATURES
───────────────────────────────────────────────────────────────────────────── */
.features-section {
  padding: var(--sp-2xl) 0;
  background: var(--c-blush);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--sp-xl);
}
.feature-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  border: 1px solid var(--c-border);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold-lt);
}
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--c-blush), var(--c-cream));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: var(--sp-md);
  border: 1px solid var(--c-border);
}
.feature-title {
  font-family: var(--ff-display);
  font-size: 1.2rem; margin-bottom: .4rem;
}
.feature-desc { color: var(--c-muted); font-size: .9rem; line-height: 1.6; }

/* ─────────────────────────────────────────────────────────────────────────────
   8. PROFILE TEASERS
───────────────────────────────────────────────────────────────────────────── */
.profiles-teaser {
  padding: var(--sp-2xl) 0;
  background: var(--c-white);
}
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--sp-xl);
}
.teaser-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--c-white);
}
.teaser-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.teaser-photo {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: linear-gradient(135deg, var(--c-blush), var(--c-cream));
  display: flex; align-items: center; justify-content: center;
}
.teaser-avatar-svg { width: 60%; height: 60%; opacity: .35; }
.teaser-blur-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(28,13,21,.8) 0%, transparent 100%);
  display: flex; align-items: flex-end; padding: var(--sp-md);
}
.teaser-name {
  font-family: var(--ff-display);
  font-size: 1.4rem; color: var(--c-white); font-weight: 500;
}
.teaser-tag {
  position: absolute; top: var(--sp-sm); right: var(--sp-sm);
  background: var(--c-gold); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .2rem .6rem;
  border-radius: 4px;
}
.teaser-body { padding: var(--sp-md); }
.teaser-facts {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--sp-sm);
}
.teaser-fact {
  font-size: .78rem; color: var(--c-muted);
  background: var(--c-blush); padding: .2rem .6rem;
  border-radius: 4px;
}
.teaser-lock {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--c-muted);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--c-border);
}
.teaser-lock-icon { font-size: 1rem; }

.profiles-cta-row {
  text-align: center; margin-top: var(--sp-lg);
}
.profiles-cta-row p {
  color: var(--c-muted); font-size: .9rem; margin-top: .5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. TESTIMONIALS
───────────────────────────────────────────────────────────────────────────── */
.testimonials-section {
  padding: var(--sp-2xl) 0;
  background: var(--c-plum);
  overflow: hidden;
}
.testimonials-section .section-label { color: var(--c-gold-lt); }
.testimonials-section .section-title { color: var(--c-white); }
.testimonials-section .divider-gold { margin-top: .6rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--sp-xl);
}
.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,165,90,.2);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--ff-display);
  font-size: 5rem; line-height: .8;
  color: var(--c-gold); opacity: .25;
  position: absolute; top: var(--sp-md); left: var(--sp-md);
  pointer-events: none;
}
.testimonial-text {
  color: rgba(255,255,255,.8);
  font-size: .95rem; line-height: 1.7;
  margin-bottom: var(--sp-md);
  padding-top: 1.5rem;
}
.testimonial-couple {
  display: flex; align-items: center; gap: .75rem;
}
.couple-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  border: 2px solid rgba(201,165,90,.3);
}
.couple-name {
  font-family: var(--ff-display);
  font-size: 1.05rem; font-weight: 500; color: var(--c-white);
}
.couple-meta { font-size: .78rem; color: rgba(255,255,255,.45); }
.testimonial-hearts {
  position: absolute; top: var(--sp-md); right: var(--sp-md);
  color: var(--c-gold); font-size: .75rem; letter-spacing: .1em; opacity: .6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. MEMBERSHIP PLANS STRIP
───────────────────────────────────────────────────────────────────────────── */
.plans-strip {
  padding: var(--sp-2xl) 0;
  background: var(--c-cream);
}
.plans-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl); align-items: center;
  margin-bottom: var(--sp-xl);
}
.plans-intro-text .section-title { text-align: left; }
.plans-intro-text .divider-gold  { margin: .6rem 0 var(--sp-md); }

.plans-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.plan-preview {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: var(--sp-md) var(--sp-md) var(--sp-lg);
  border: 2px solid var(--c-border);
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.plan-preview:hover { border-color: var(--c-gold); box-shadow: var(--shadow-md); }
.plan-preview.featured {
  border-color: var(--c-gold);
  background: linear-gradient(170deg, #fff9ef 0%, var(--c-white) 100%);
}
.plan-popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--c-gold);
  color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .9rem; border-radius: 40px; white-space: nowrap;
}
.plan-preview-name {
  font-family: var(--ff-display);
  font-size: 1.3rem; font-weight: 500; margin-bottom: .3rem;
}
.plan-preview-price {
  font-family: var(--ff-display);
  font-size: 2rem; font-weight: 600; color: var(--c-primary);
  line-height: 1; margin-bottom: var(--sp-sm);
}
.plan-preview-price sub {
  font-size: .9rem; font-weight: 400; color: var(--c-muted);
  vertical-align: middle; font-family: var(--ff-body);
}
.plan-preview-feat {
  font-size: .8rem; color: var(--c-muted);
  margin-bottom: var(--sp-md); line-height: 1.6;
  min-height: 3rem;
}
.plan-preview .btn { width: 100%; justify-content: center; font-size: .82rem; }

/* ─────────────────────────────────────────────────────────────────────────────
   11. CTA BANNER
───────────────────────────────────────────────────────────────────────────── */
.cta-banner {
  padding: var(--sp-2xl) 0;
  background: linear-gradient(135deg, var(--c-primary) 0%, #6B0E28 100%);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '💞';
  position: absolute; font-size: 20rem;
  opacity: .04; top: -40%; left: -5%;
  pointer-events: none; line-height: 1;
}
.cta-banner h2 {
  color: var(--c-white); margin-bottom: .6rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}
.cta-banner p { color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto var(--sp-lg); }
.cta-banner-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────────────────────
   12. SITE FOOTER
───────────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-plum);
  color: rgba(255,255,255,.65);
  padding-top: var(--sp-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-name { color: var(--c-white); font-size: 1.5rem; }
.footer-brand .logo-tag  { color: var(--c-gold-lt); }
.footer-brand p {
  margin-top: var(--sp-md); font-size: .88rem; line-height: 1.7;
  color: rgba(255,255,255,.5);
}
.footer-col h4 {
  color: var(--c-white); font-family: var(--ff-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: var(--sp-md);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a {
  color: rgba(255,255,255,.5); font-size: .88rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--c-gold-lt); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-md) 0;
  font-size: .8rem;
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--c-gold-lt); }

/* ─────────────────────────────────────────────────────────────────────────────
   13. CONTENT PAGES (shortcode page wrapper)
───────────────────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--c-plum), var(--c-primary));
  padding: var(--sp-xl) 0;
  text-align: center;
}
.page-hero h1 { color: var(--c-white); font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero-bread {
  display: flex; justify-content: center; gap: .5rem;
  font-size: .82rem; color: rgba(255,255,255,.5);
  margin-top: .5rem;
}
.page-hero-bread a { color: var(--c-gold-lt); }

.page-content-wrap {
  padding: var(--sp-2xl) 0;
  min-height: 60vh;
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. BLOG / ARCHIVE
───────────────────────────────────────────────────────────────────────────── */
.archive-hero {
  background: var(--c-blush);
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--c-border);
}
.archive-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 2rem; padding: var(--sp-xl) 0;
}
.posts-grid { display: grid; gap: 2rem; }
.post-card {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; background: var(--c-white);
  transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--c-blush); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: var(--sp-md) var(--sp-lg); }
.post-meta { font-size: .78rem; color: var(--c-muted); margin-bottom: .4rem; }
.post-title { font-size: 1.3rem; margin-bottom: .5rem; }
.post-title a { color: var(--c-text); }
.post-title a:hover { color: var(--c-primary); }
.post-excerpt { color: var(--c-muted); font-size: .9rem; margin-bottom: var(--sp-md); }
.read-more {
  font-size: .82rem; font-weight: 600; color: var(--c-primary);
  display: inline-flex; align-items: center; gap: .3rem;
}
.read-more::after { content: '→'; }

/* Sidebar */
.sidebar-widget {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: var(--sp-md);
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-family: var(--ff-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted);
  margin-bottom: var(--sp-md); padding-bottom: .5rem;
  border-bottom: 1px solid var(--c-border);
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. SINGLE POST
───────────────────────────────────────────────────────────────────────────── */
.single-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 2rem; padding: var(--sp-xl) 0;
}
.single-article .post-title { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: var(--sp-md); }
.single-article .post-meta  { margin-bottom: var(--sp-lg); padding-bottom: var(--sp-md); border-bottom: 1px solid var(--c-border); }
.entry-content h2, .entry-content h3 { margin: 1.5rem 0 .6rem; }
.entry-content p   { margin-bottom: 1rem; line-height: 1.75; }
.entry-content img { border-radius: var(--radius-sm); margin: 1rem 0; }
.entry-content blockquote {
  border-left: 3px solid var(--c-gold); padding-left: 1.2rem;
  color: var(--c-muted); font-style: italic; margin: 1.5rem 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. 404 PAGE
───────────────────────────────────────────────────────────────────────────── */
.error-404 {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-2xl) 0;
}
.error-404-icon { font-size: 6rem; margin-bottom: var(--sp-md); }
.error-404 h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--c-primary); margin-bottom: .5rem;
}
.error-404 p { color: var(--c-muted); max-width: 440px; margin: 0 auto var(--sp-lg); }

/* ─────────────────────────────────────────────────────────────────────────────
   17. WOOCOMMERCE OVERRIDES
───────────────────────────────────────────────────────────────────────────── */
.woocommerce-page .woocommerce {
  padding: var(--sp-xl) 0;
}
.woocommerce-page h1.page-title,
.woocommerce-page h2 {
  font-family: var(--ff-display);
  color: var(--c-primary);
}
/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--c-primary) !important;
  color: #fff !important;
  border-radius: 40px !important;
  font-family: var(--ff-body) !important;
  font-weight: 600 !important;
  font-size: .875rem !important;
  border: none !important;
  padding: .65rem 1.6rem !important;
  transition: var(--transition) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--c-primary-dk) !important;
  color: #fff !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--c-gold) !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--c-gold-dk) !important;
}
/* Form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1.5px solid var(--c-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: .6rem .9rem !important;
  font-family: var(--ff-body) !important;
  transition: var(--transition) !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--c-primary) !important;
  box-shadow: 0 0 0 3px rgba(139,26,58,.1) !important;
  outline: none !important;
}
/* Order summary table */
.woocommerce table.shop_table {
  border: 1px solid var(--c-border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--c-blush) !important;
  font-family: var(--ff-body) !important;
  font-weight: 600 !important; font-size: .82rem !important;
  text-transform: uppercase !important; letter-spacing: .06em !important;
}
/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-top-color: var(--c-primary) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}
.woocommerce-message { border-top-color: #2E7D32 !important; }

/* ─────────────────────────────────────────────────────────────────────────────
   18. WORDPRESS CORE OVERRIDES
───────────────────────────────────────────────────────────────────────────── */
.wp-block-image img { border-radius: var(--radius-sm); }
.aligncenter { text-align: center; }
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }

/* Pagination */
.pagination, .nav-links {
  display: flex; justify-content: center; gap: .4rem;
  padding: var(--sp-lg) 0;
}
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-white); border: 1.5px solid var(--c-border);
  font-size: .88rem; color: var(--c-text); text-decoration: none;
  transition: var(--transition);
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* Breadcrumbs */
.breadcrumb { font-size: .82rem; color: var(--c-muted); margin-bottom: var(--sp-md); }
.breadcrumb a { color: var(--c-gold-dk); }
.breadcrumb span + span::before { content: ' / '; }

/* ─────────────────────────────────────────────────────────────────────────────
   19. ANIMATIONS
───────────────────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }

/* ─────────────────────────────────────────────────────────────────────────────
   21. PLUGIN PAGES — FULL-WIDTH LAYOUT
   Fixes: dashboard and search appearing "boxed too small".
   When body has .vivah-plugin-page the theme removes all container
   constraints and lets the Matrimonial WP plugin control its own layout.
───────────────────────────────────────────────────────────────────────────── */

/* Wrapper that holds the_content() output on plugin pages */
.plugin-page-content {
  width: 100%;
  background: var(--c-cream);
  min-height: calc(100vh - var(--header-h) - 120px);
}

/* Remove any residual box constraints on every mw- layout root */
body.vivah-plugin-page .mw-wrap,
body.vivah-plugin-page .mw-dashboard,
body.vivah-plugin-page .mw-search-wrap,
body.vivah-plugin-page .mw-membership-wrap,
body.vivah-plugin-page .mw-inbox-wrap,
body.vivah-plugin-page .mw-chat-wrap,
body.vivah-plugin-page .mw-interests-wrap,
body.vivah-plugin-page .mw-shortlist-wrap,
body.vivah-plugin-page .mw-views-wrap,
body.vivah-plugin-page .mw-auth-wrap,
body.vivah-plugin-page #mw-register-wrap {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* ── Dashboard — fill the full viewport width ──────────────────────────────── */
body.vivah-plugin-page .mw-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-h) - 120px);
  gap: 0;
  width: 100%;
}

body.vivah-plugin-page .mw-dash-sidebar {
  min-height: calc(100vh - var(--header-h) - 120px);
  position: sticky;
  top: var(--header-h);
  align-self: start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

body.vivah-plugin-page .mw-dash-main {
  padding: 2rem 2.5rem;
  background: #FAFAFA;
  min-height: calc(100vh - var(--header-h) - 120px);
}

/* ── Search — filter panel left, results right, full width ─────────────────── */
body.vivah-plugin-page .mw-search-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  min-height: calc(100vh - var(--header-h) - 120px);
  background: var(--c-cream);
  align-items: start;
}

body.vivah-plugin-page .mw-search-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
}

/* ── Membership — generous horizontal padding ──────────────────────────────── */
body.vivah-plugin-page .mw-membership-wrap {
  padding: 2rem 3rem;
}

/* ── Inbox — full-width two-pane layout ────────────────────────────────────── */
body.vivah-plugin-page .mw-inbox-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - var(--header-h) - 120px);
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* ── Auth pages (register / login) — centred on full-width background ──────── */
body.vivah-plugin-page .mw-auth-wrap,
body.vivah-plugin-page #mw-register-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1.5rem;
  background: var(--c-cream);
  min-height: calc(100vh - var(--header-h) - 120px);
}

/* ── Profiles grid on search results ───────────────────────────────────────── */
body.vivah-plugin-page .mw-profiles-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ── Responsive: stack on tablet/mobile ────────────────────────────────────── */
@media (max-width: 1024px) {
  body.vivah-plugin-page .mw-dashboard {
    grid-template-columns: 220px 1fr;
  }
  body.vivah-plugin-page .mw-search-wrap {
    grid-template-columns: 260px 1fr;
    padding: 1rem 1.2rem;
  }
  body.vivah-plugin-page .mw-membership-wrap {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  /* On mobile the plugin's own responsive CSS already stacks layouts.
     The theme just ensures there's no unwanted horizontal overflow. */
  body.vivah-plugin-page .mw-dashboard,
  body.vivah-plugin-page .mw-search-wrap,
  body.vivah-plugin-page .mw-inbox-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.vivah-plugin-page .mw-dash-sidebar {
    position: static;
    min-height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  body.vivah-plugin-page .mw-search-panel {
    position: static;
    max-height: none;
  }

  body.vivah-plugin-page .mw-membership-wrap {
    padding: 1.5rem 1rem;
  }

  body.vivah-plugin-page .plugin-page-content,
  .plugin-page-content {
    padding: 0;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   22. PLUGIN PAGE HERO — COMPACT HEIGHT
   The page-hero on plugin pages should be shorter than on content pages
   since the main content below is the plugin's full-screen UI.
───────────────────────────────────────────────────────────────────────────── */
body.vivah-plugin-page .page-hero {
  padding: 1.2rem 0;
  min-height: auto;
}
body.vivah-plugin-page .page-hero h1 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

/* ─────────────────────────────────────────────────────────────────────────────
   END OF STYLESHEET
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .plans-cards    { grid-template-columns: repeat(2, 1fr); }
  .plans-intro    { grid-template-columns: 1fr; }
  .plans-intro-text .section-title { text-align: center; }
  .plans-intro-text .divider-gold  { margin: .6rem auto var(--sp-md); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--c-white); padding: 1rem;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md); z-index: 999;
  }
  .primary-nav.open a { padding: .7rem 1rem; border-radius: 6px; }
  .menu-toggle { display: flex; }

  .hero-content { padding: var(--sp-xl) 0; }
  .hero-ornament { width: 320px; height: 320px; top: -40px; right: -60px; }
  .hero-ornament-2 { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 0; }
  .steps-grid::before { display: none; }

  .features-grid    { grid-template-columns: 1fr; }
  .profiles-grid    { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .plans-cards      { grid-template-columns: 1fr; }
  .archive-layout   { grid-template-columns: 1fr; }
  .single-layout    { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .footer-bottom { justify-content: center; text-align: center; }

  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub   { font-size: 1rem; }
}

@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
}
