/* =========================================================
   theme.css — modern matrimony-site theme
   Inspired by the clean, card-based, red/maroon-accented look
   used by mainstream Indian matrimony platforms.
   ========================================================= */

:root {
  --brand-red: #b3123f;
  --brand-red-dark: #8a0e30;
  --brand-gold: #d69e2e;
  --ink: #23202b;
  --muted: #6b6674;
  --bg: #f7f5f8;
  --card: #ffffff;
  --border: #eae6ee;
  --success: #1f9d55;
  --danger: #d9342b;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(35, 32, 43, 0.06);
  --shadow-lg: 0 8px 30px rgba(35, 32, 43, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar / header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-red);
}
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-gold));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a { color: var(--ink); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--brand-red); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--brand-red); color: var(--brand-red); }
.btn-outline:hover { background: var(--brand-red); color: #fff; text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 60%, #5c0a22 100%);
  color: #fff;
  padding: 56px 20px 90px;
}
.hero h1 { font-size: 34px; margin: 0 0 8px; }
.hero p { margin: 0 0 26px; opacity: .92; font-size: 16px; }

.search-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  color: var(--ink);
  max-width: 980px;
  margin: -54px auto 0;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 780px) { .search-grid { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.field select, .field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
}
.field select:focus, .field input:focus { outline: 2px solid var(--brand-gold); border-color: var(--brand-gold); }

/* ---------- Cards / grid ---------- */
.section { padding: 46px 20px; }
.section-title { font-size: 24px; margin: 0 0 22px; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-card__photo {
  aspect-ratio: 3/4;
  background: #f0eef2 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.profile-card__body { padding: 14px; }
.profile-card__name { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.profile-card__meta { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fdf0e8;
  color: var(--brand-gold);
}
.badge-verified { background: #e7f7ee; color: var(--success); }

/* ---------- Forms / auth pages ---------- */
.auth-wrap {
  max-width: 460px;
  margin: 50px auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}
.auth-wrap h1 { font-size: 22px; margin: 0 0 6px; }
.auth-wrap .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--brand-gold); border-color: var(--brand-gold);
}
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f6c8c4; }
.alert-success { background: #e9f9ef; color: var(--success); border: 1px solid #b9ecca; }
.alert-info { background: #eef4fd; color: #1a56b0; border: 1px solid #c6dcf7; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 780px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
  height: fit-content;
}
.dash-side a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.dash-side a:hover, .dash-side a.active { background: #fdf0f3; color: var(--brand-red); text-decoration: none; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: #1c1720; color: #cfc7d6; padding: 40px 20px 24px; margin-top: 60px; }
.site-footer a { color: #efe6f2; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 780px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 12px; }
.site-footer .bottom { margin-top: 28px; border-top: 1px solid #332b39; padding-top: 18px; font-size: 12px; color: #948d9c; text-align: center; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }

.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
