/* Goswami Matrimony — design system */
:root {
  --maroon: #7a1030;
  --maroon-dark: #5c0b24;
  --marigold: #e8952b;
  --marigold-soft: #f6b04a;
  --saffron: #f4a825;
  --gold: #c99a3b;
  --ink: #2a211d;
  --ink-soft: #6b5d54;
  --cream: #fdf8f1;
  --cream-2: #f7efe3;
  --card: #ffffff;
  --line: #ece0d0;
  --green: #2f8f5b;
  --shadow-sm: 0 1px 2px rgba(74, 42, 20, .06), 0 2px 8px rgba(74, 42, 20, .05);
  --shadow-md: 0 6px 22px rgba(74, 42, 20, .10);
  --shadow-lg: 0 18px 50px rgba(74, 42, 20, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--maroon-dark); margin: 0 0 .5em; }
a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 248, 241, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: var(--maroon-dark); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--marigold-soft), var(--maroon));
  display: grid; place-items: center; color: #fff; font-size: 20px; box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav a.active { color: var(--maroon); }
.nav a:hover { color: var(--maroon); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .06s ease, box-shadow .2s ease, background .2s;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--marigold-soft), var(--marigold)); color: #4a2a10; box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: var(--shadow-md); color: #4a2a10; }
.btn-ghost { background: #fff; color: var(--maroon); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--maroon); }
.btn-sm { padding: 8px 15px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, #fff6ea 0%, var(--cream) 55%, #fbe9ea 100%); overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .35;
}
.hero::before { width: 320px; height: 320px; background: radial-gradient(circle, var(--marigold-soft), transparent 70%); top: -80px; right: -60px; }
.hero::after { width: 360px; height: 360px; background: radial-gradient(circle, #f6b8c4, transparent 70%); bottom: -120px; left: -80px; }
.hero .inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); letter-spacing: -.5px; }
.hero .lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.trust { display: flex; gap: 22px; color: var(--ink-soft); font-size: .9rem; }
.trust b { color: var(--maroon-dark); font-family: var(--font-serif); font-size: 1.15rem; }

/* Quick search card */
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px; }
.hero-card h3 { font-size: 1.25rem; margin-bottom: 4px; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: .9rem; color: var(--ink); display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fffdfa; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(232, 149, 43, .18); }
textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .opt { display: block; text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; background: #fffdfa; }
.seg input:checked + .opt { border-color: var(--maroon); background: #fdeef0; color: var(--maroon-dark); box-shadow: inset 0 0 0 1px var(--maroon); }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.alt { background: var(--cream-2); }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-serif); font-size: 2.1rem; color: var(--maroon); }
.stat .lbl { color: var(--ink-soft); font-size: .92rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: #fdeef0; color: var(--maroon); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 14px; }

/* ---------- Profile cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard .photo { aspect-ratio: 4/5; background: var(--cream-2); position: relative; overflow: hidden; }
.pcard .photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard .match { position: absolute; top: 10px; left: 10px; background: rgba(47,143,91,.95); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.pcard .heart { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; display: grid; place-items: center; cursor: pointer; font-size: 16px; box-shadow: var(--shadow-sm); }
.pcard .heart.on { color: var(--maroon); }
.pcard .body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--maroon-dark); }
.pcard .meta { font-size: .88rem; color: var(--ink-soft); }
.pcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: .76rem; background: var(--cream-2); border: 1px solid var(--line); color: var(--ink-soft); padding: 3px 9px; border-radius: 999px; }
.pcard .foot { margin-top: auto; padding-top: 12px; }

/* ---------- Search layout ---------- */
.search-wrap { display: grid; grid-template-columns: 268px 1fr; gap: 26px; align-items: start; padding: 32px 0 60px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.filters h4 { font-size: 1.05rem; margin-bottom: 14px; }
.filters .field { margin-bottom: 13px; }
.result-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }

/* ---------- Profile view ---------- */
.pv { display: grid; grid-template-columns: 380px 1fr; gap: 34px; padding: 34px 0 64px; align-items: start; }
.pv .gallery img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.pv .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pv .thumbs img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; cursor: pointer; }
.pv-head h1 { font-size: 2.2rem; margin-bottom: 2px; }
.pv-head .sub { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 16px; }
.pv-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.detail-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.dl .row { display: flex; flex-direction: column; }
.dl .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.dl .v { font-weight: 600; }

/* Banners */
.banner { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.banner.ok { background: #e7f5ec; border: 1px solid #b7e0c6; color: #1f6b40; }
.banner.err { background: #fdecec; border: 1px solid #f3c3c3; color: #a12525; }
.banner.info { background: #fff5e6; border: 1px solid #f4dcae; color: #8a5a12; }

/* Auth pages */
.auth-wrap { max-width: 460px; margin: 46px auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 34px 32px; }
.auth-wrap h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; margin-top: 16px; color: var(--ink-soft); }

/* Chips (dashboard tabs) */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.chip.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.badge-count { background: var(--marigold); color: #4a2a10; border-radius: 999px; padding: 1px 8px; font-size: .78rem; margin-left: 6px; }

.empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty .big { font-size: 2.4rem; margin-bottom: 8px; }

/* Footer */
.footer { background: var(--maroon-dark); color: #f3d9c9; padding: 46px 0 28px; margin-top: 40px; }
.footer a { color: #f7d9b8; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer .brand { color: #fff; }
.footer .fine { border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #e6b79c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 48px; }
  .pv { grid-template-columns: 1fr; }
  .search-wrap { grid-template-columns: 1fr; }
  .filters { position: static; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dl { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
