/* =========================================================
   Matrimonial platform - main stylesheet
   Palette: deep maroon, antique gold, ivory, charcoal
   ========================================================= */
:root {
  --brand: #7a1f3d;
  --brand-dark: #5a1530;
  --brand-light: #a33a5c;
  --gold: #c9a14a;
  --gold-soft: #ead9ad;
  --ivory: #fbf7f0;
  --cream: #f5efe6;
  --ink: #2b2228;
  --muted: #6c6268;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(90, 21, 48, .08);
  --shadow-lg: 0 18px 45px rgba(90, 21, 48, .14);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--ivory); line-height: 1.65; font-size: 1rem; }
h1, h2, h3, .display-font, .brand-text { font-family: 'Playfair Display', Georgia, serif; }
h1, h2, h3, h4 { color: var(--brand-dark); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn-brand { background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 999px; padding-inline: 1.25rem; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-outline-brand { border: 1px solid var(--brand); color: var(--brand); border-radius: 999px; padding-inline: 1.1rem; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #d8b35c, var(--gold)); color: #3a2a06; border: none; border-radius: 999px; font-weight: 600; padding-inline: 1.25rem; }
.btn-gold:hover { filter: brightness(1.05); color: #2a1d02; }
.btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.topbar { background: var(--brand-dark); color: #f3e6ea; font-size: .82rem; padding: .35rem 0; }
.topbar a { color: #f3e6ea; text-decoration: none; }
.main-nav { background: rgba(251, 247, 240, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #eadfcd; }
.main-nav .nav-link { color: var(--ink); font-size: .92rem; font-weight: 500; padding-inline: .6rem !important; border-radius: 8px; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--brand); background: rgba(122, 31, 61, .06); }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: var(--gold-soft); }
.brand-text { font-weight: 700; color: var(--brand); font-size: 1.25rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.brand-logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 420px) { .brand-text { font-size: 1.05rem; } .brand-logo { height: 34px; max-width: 100px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 10%, rgba(201, 161, 74, .25), transparent 60%), linear-gradient(135deg, #5a1530 0%, #7a1f3d 55%, #8f2c4d 100%); color: #fff; padding: 5.5rem 0 6rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.15; }
.hero .lead { color: #f3e3e8; max-width: 560px; }
.hero::after { content: ''; position: absolute; inset: auto -10% -60px -10%; height: 120px; background: var(--ivory); border-radius: 50% 50% 0 0; }
.hero-card { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1.6rem; position: relative; z-index: 2; }
.hero-art { max-width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25)); }
.mandala { position: absolute; opacity: .08; width: 520px; right: -120px; top: -120px; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mandala, .fade-up { animation: none !important; transition: none !important; } }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--cream); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--gold); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.divider-ornament { width: 90px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: .8rem auto 1.5rem; border: 0; opacity: 1; }
.card-soft { background: #fff; border: 1px solid #efe4d2; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, rgba(122, 31, 61, .08), rgba(201, 161, 74, .2)); color: var(--brand); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-family: 'Playfair Display', serif; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }
.stat { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--brand); }
.notice { background: #fff8e6; border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 8px; font-size: .92rem; }
.page-header { background: linear-gradient(135deg, #5a1530, #7a1f3d); color: #fff; padding: 3.5rem 0 2.8rem; }
.page-header h1 { color: #fff; }
.page-header p { color: #f1dfe5; }
.price-tag { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--brand); }
.plan-card.featured { border: 2px solid var(--gold); position: relative; }
.plan-card.featured::before { content: 'Most chosen'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #3a2a06; font-size: .75rem; font-weight: 600; padding: .15rem .7rem; border-radius: 999px; }
.feature-list li { padding: .25rem 0; }
.feature-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; color: var(--gold); margin-right: .5rem; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: #ded3c2; padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-light); box-shadow: 0 0 0 .2rem rgba(122, 31, 61, .15); }
.form-label { font-weight: 500; font-size: .92rem; }
.form-text { font-size: .8rem; }
.required::after { content: ' *'; color: #b02a37; }
.reg-shell { background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid #efe4d2; }
.reg-progress { height: 8px; border-radius: 99px; background: #f0e6d6; }
.reg-progress .progress-bar { background: linear-gradient(90deg, var(--brand), var(--gold)); }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.step-list li a .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: #f0e6d6; color: var(--muted); flex: none; }
.step-list li.done a .dot { background: #2f8f5b; color: #fff; }
.step-list li.current a { background: rgba(122, 31, 61, .07); font-weight: 600; }
.step-list li.current a .dot { background: var(--brand); color: #fff; }
.step-list li.locked a { pointer-events: none; opacity: .55; }
.priority-toggle .btn { font-size: .72rem; padding: .1rem .5rem; }
.likert { display: flex; flex-wrap: wrap; gap: .4rem; }
.likert label { border: 1px solid #ded3c2; border-radius: 999px; padding: .25rem .75rem; font-size: .8rem; cursor: pointer; }
.likert input { position: absolute; opacity: 0; }
.likert input:checked + span { color: #fff; }
.likert label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.category-card { cursor: pointer; border: 2px solid #efe4d2; }
.category-card:has(input:checked) { border-color: var(--brand); background: #fff7f9; }
.upload-tile { border: 2px dashed #d9c9ae; border-radius: 14px; padding: 1rem; background: #fffdf8; }
.upload-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }

/* ---------- Profiles & dashboard ---------- */
.profile-card .photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px 12px 0 0; background: linear-gradient(135deg, #efe4d2, #f9f1e4); display: grid; place-items: center; color: #b49a74; font-size: 3rem; }
.score-ring { --p: 0; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), #efe4d2 0); font-weight: 700; color: var(--brand); position: relative; }
.score-ring::before { content: ''; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.score-ring span { position: relative; font-size: .9rem; }
.badge-verified { background: #e7f5ec; color: #1f7a45; }
.dash-side .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: 2px; }
.dash-side .list-group-item.active { background: var(--brand); }
.match-reasons li { font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: #2a1520; color: #d9c8cf; }
.site-footer a { color: #e9d9a8; text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 575.98px) {
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 4.5rem; }
  .reg-shell { border-radius: 14px; }
}
@media print { .main-nav, .topbar, .site-footer { display: none; } }
