/* LogShaadi.com — stylesheet
   Palette drawn from a wedding's own materials: kumkum red, mehndi green,
   marigold, on undyed paper. */

:root {
  --ink: #1B1725;
  --kumkum: #8C1D40;
  --kumkum-dark: #6E1532;
  --mehndi: #4A6B4F;
  --marigold: #E9A13B;
  --paper: #FCFAF7;
  --card: #FFFFFF;
  --muted: #6E6678;
  --line: #E6DFD6;
  --shade: #F4EEE6;

  --serif: "Fraunces", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;

  --w: 1120px;
  --r: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--kumkum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kumkum-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand svg { width: 34px; height: 34px; flex: none; }

.brand-word {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-word span { color: var(--kumkum); }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .96rem;
}

.nav a:hover { background: var(--shade); }

.nav a.here { color: var(--kumkum); font-weight: 700; }

.pip {
  display: inline-block;
  min-width: 19px;
  padding: 0 5px;
  margin-left: 5px;
  background: var(--kumkum);
  color: #fff;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 19px;
  text-align: center;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  background: var(--kumkum);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}

.btn:hover { background: var(--kumkum-dark); color: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--kumkum);
  border-color: var(--kumkum);
}
.btn-quiet:hover { background: var(--kumkum); color: #fff; }

.btn-green { background: var(--mehndi); }
.btn-green:hover { background: #3B5740; }

.btn-plain {
  background: var(--shade);
  color: var(--ink);
  border-color: var(--line);
}
.btn-plain:hover { background: #EAE2D7; color: var(--ink); }

.btn-sm { padding: 7px 14px; font-size: .87rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, #FBF0DC 0%, rgba(251,240,220,0) 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}

.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.1rem; color: var(--muted); }

.garland {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}
.garland i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--marigold);
  display: block;
}
.garland i:nth-child(even) { background: var(--kumkum); }

/* Quick search panel */
.finder {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: 0 14px 34px rgba(27, 23, 37, .07);
}

.finder h2 { font-size: 1.2rem; margin-bottom: 14px; }

.finder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ---------- Forms ---------- */
label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=search], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-family: var(--sans);
  font-size: .97rem;
  color: var(--ink);
}

textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

input:focus, select:focus, textarea:focus { border-color: var(--kumkum); outline: none; box-shadow: 0 0 0 3px rgba(140, 29, 64, .12); }

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin: 5px 0 0; }

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  margin-bottom: 18px;
}

/* ---------- Panels & cards ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
}

.section { padding: 56px 0; }
.section-alt { background: var(--shade); }

.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px;
}

.pcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pcard-photo {
  aspect-ratio: 4 / 5;
  background: var(--shade);
  overflow: hidden;
}
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; }

.pcard-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: 0; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { color: var(--kumkum); }
.pcard-meta { font-size: .87rem; color: var(--muted); margin: 0; }
.pcard-foot { margin-top: 12px; display: flex; gap: 8px; }

.verified {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  color: var(--mehndi);
  border: 1px solid rgba(74, 107, 79, .4);
  background: rgba(74, 107, 79, .08);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* ---------- Profile page ---------- */
.profile-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: start;
}

.profile-photo {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--shade);
  aspect-ratio: 4/5;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 22px 0;
}
.fact { background: var(--card); padding: 13px 16px; }
.fact dt { font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.fact dd { margin: 0; font-size: .97rem; }

/* ---------- Search layout ---------- */
.search-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 88px; }

/* ---------- Messages ---------- */
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 74%; padding: 11px 15px; border-radius: 14px; font-size: .95rem; }
.bubble time { display: block; font-size: .72rem; opacity: .7; margin-top: 5px; }
.bubble.mine { align-self: flex-end; background: var(--kumkum); color: #fff; border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: var(--shade); border-bottom-left-radius: 4px; }

.convo-list { list-style: none; margin: 0; padding: 0; }
.convo-list li { border-bottom: 1px solid var(--line); }
.convo-list a { display: flex; gap: 13px; padding: 14px 6px; text-decoration: none; color: var(--ink); align-items: center; }
.convo-list a:hover { background: var(--shade); }
.convo-list img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--kumkum);
  display: block;
  border-bottom: 2px solid var(--marigold);
  width: 28px;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Stories ---------- */
.story {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--marigold);
  border-radius: var(--r);
  padding: 22px 24px;
}
.story blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; }
.story cite { font-style: normal; font-weight: 700; font-size: .93rem; }
.story .when { color: var(--muted); font-size: .85rem; }

/* ---------- Notices ---------- */
.note {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: .95rem;
  border: 1px solid;
}
.note-ok   { background: rgba(74,107,79,.09); border-color: rgba(74,107,79,.35); color: #2F4A34; }
.note-warn { background: rgba(233,161,59,.12); border-color: rgba(233,161,59,.5); color: #7A5312; }
.note-err  { background: rgba(140,29,64,.08); border-color: rgba(140,29,64,.35); color: var(--kumkum-dark); }

.empty {
  text-align: center;
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  color: var(--muted);
}
.empty h3 { color: var(--ink); }

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; color: var(--muted); font-weight: 700; }
tbody tr:hover { background: var(--shade); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; display: block; line-height: 1; }
.stat span { font-size: .84rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: #C9C2D2;
  padding: 44px 0 28px;
  margin-top: 60px;
  font-size: .92rem;
}
.site-foot a { color: #F0E9DC; text-decoration: none; }
.site-foot a:hover { color: var(--marigold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { font-family: var(--sans); font-size: .84rem; color: #fff; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-brand svg { width: 30px; height: 30px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px; color: #9990A6; font-size: .85rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.auth-page { max-width: 460px; margin: 54px auto; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; background: var(--card); }
.pager .on { background: var(--kumkum); color: #fff; border-color: var(--kumkum); }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.stack > * + * { margin-top: 20px; }
.muted { color: var(--muted); }

/* ---------- Language ---------- */
.nav a.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--mehndi);
}
.nav a.lang-switch:hover { border-color: var(--mehndi); background: rgba(74, 107, 79, .07); }

/* Devanagari hangs from a headline bar (shirorekha). Negative letter-spacing
   breaks the bar between letters, and the stacked vowel signs need more
   vertical room than Latin text. */
html[lang="hi"] body { line-height: 1.75; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] h4,
html[lang="hi"] legend { letter-spacing: 0; line-height: 1.35; }
html[lang="hi"] h1 { font-size: clamp(1.9rem, 5.4vw, 3rem); }
html[lang="hi"] label, html[lang="hi"] th, html[lang="hi"] .fact dt { font-size: .88rem; }
html[lang="hi"] .brand-word { letter-spacing: -0.02em; } /* brand stays Latin */

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .profile-top, .search-layout, .field-row, .foot-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .profile-photo { max-width: 300px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 2px;
    box-shadow: 0 12px 24px rgba(27,23,37,.09);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { text-align: center; margin-top: 8px; }
  .hero { padding: 34px 0; }
  .section { padding: 40px 0; }
  .panel { padding: 20px; }
  .bubble { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
