/* ============================================================
   page.css — shared inner-page layout for dowry.lol
   ============================================================ */

/* --- Design Tokens ----------------------------------------- */
:root {
  --bg: #1a050a;
  --bg-deep: #0e0307;
  --bg-card: #270a11;
  --bg-card-hover: #320d16;
  --line: rgba(212, 168, 87, 0.18);
  --line-strong: rgba(212, 168, 87, 0.45);
  --line-faint: rgba(212, 168, 87, 0.08);
  --gold: #d4a857;
  --gold-bright: #e8c47a;
  --gold-dim: #8a6d3b;
  --cream: #f1e4cb;
  --cream-dim: #c5b594;
  --cream-fade: #8a7d65;
  --crimson: #c4453d;
  --crimson-deep: #8a1f1a;
  --leaf: #6b8a4a;
  --font-display: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-2: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-bright); }

/* --- Base body --------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 20% -10%, rgba(196, 69, 61, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(212, 168, 87, 0.06), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(14, 3, 7, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-brand img { border-radius: 6px; }
.nav-brand:hover { color: var(--gold-bright); }
.nav-brand .brand-dot { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-dim);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--cream);
  background: rgba(212, 168, 87, 0.08);
}
.nav-links a[aria-current="page"] {
  color: var(--gold);
  background: rgba(212, 168, 87, 0.06);
}

/* Hamburger button (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(212, 168, 87, 0.28);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream-dim);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10, 2, 5, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-strong);
    padding: 6px 0 14px;
    gap: 0;
    z-index: 899;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    animation: navMenuIn 0.2s ease;
  }
  .nav-links.is-open li { width: 100%; }
  .nav-links.is-open a {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-faint);
  }
  .nav-links.is-open li:last-child a { border-bottom: none; }
}

@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--cream-fade);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--cream-fade); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: 0.45; }
.breadcrumb-current { color: var(--gold-dim); }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.page-header {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.page-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  margin: 0 0 18px;
}
.page-title em {
  font-style: italic;
  color: var(--crimson);
}
.page-subtitle {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--cream-dim);
  margin: 0;
  max-width: 60ch;
}

/* Article body typography */
.page-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 400;
  color: var(--cream);
  margin: 52px 0 16px;
  line-height: 1.15;
}
.page-body h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 36px 0 12px;
}
.page-body p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.72;
  color: var(--cream-dim);
  margin: 0 0 22px;
}
.page-body strong { color: var(--cream); font-weight: 600; }
.page-body em { font-style: italic; color: var(--cream); }
.page-body a { color: var(--gold); }
.page-body a:hover { color: var(--gold-bright); }
.page-body ul, .page-body ol {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--cream-dim);
  margin: 0 0 22px;
  padding-left: 26px;
}
.page-body li { margin-bottom: 10px; }
.page-body li strong { color: var(--cream); }

/* Law card */
.law-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  margin: 24px 0;
}
.law-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.law-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.law-card p {
  margin-bottom: 0;
}
.penalty-tag {
  display: inline-block;
  background: rgba(196, 69, 61, 0.14);
  border: 1px solid rgba(196, 69, 61, 0.28);
  color: var(--crimson);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--r-sm);
  margin-top: 14px;
}

/* Stat callout */
.stat-callout {
  background: rgba(212, 168, 87, 0.05);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.stat-callout-num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-callout-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--cream-dim);
}

/* FAQ items */
.faq-item {
  border-bottom: 1px solid var(--line-faint);
  padding: 26px 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--line-faint); }
.faq-q {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--cream);
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.25;
}
.faq-a {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream-dim);
  margin: 0;
}
.faq-a a { color: var(--gold); }
.faq-a strong { color: var(--cream); }

/* Case law item */
.case-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  margin: 20px 0;
}
.case-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cream);
  margin: 0 0 6px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.case-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.case-item p { margin-bottom: 0; }

/* Helpline strip */
.helpline-strip {
  background: rgba(196, 69, 61, 0.08);
  border: 1px solid rgba(196, 69, 61, 0.22);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 40px 0;
}
.helpline-strip h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 14px;
}
.helpline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.helpline-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 69, 61, 0.12);
  border: 1px solid rgba(196, 69, 61, 0.28);
  border-radius: 40px;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--cream);
  text-decoration: none;
  transition: background 0.2s;
}
.helpline-pill:hover { background: rgba(196, 69, 61, 0.22); color: var(--cream); }
.helpline-pill span { font-weight: 700; font-size: 15px; color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 48px 0 0;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 12px;
}
.brand-rupee { color: var(--gold); }
.brand-name { color: var(--cream); }
.brand-dot { color: var(--gold); }
.footer-blurb {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--cream-fade);
  line-height: 1.6;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--cream-dim);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-fineprint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--cream-fade);
  line-height: 1.6;
  margin: 0;
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--cream-fade);
  flex-wrap: wrap;
}
.footer-bottom-dot { font-size: 6px; opacity: 0.5; }
.footer-bottom strong { color: var(--cream-dim); }

/* Responsive */
@media (max-width: 600px) {
  .page-wrap { padding: 32px 18px 72px; }
  .law-card { padding: 20px 20px; }
  .case-item { padding: 20px 20px; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-alert {
  background: rgba(196, 69, 61, 0.08);
  border: 1px solid rgba(196, 69, 61, 0.22);
  border-left: 3px solid var(--crimson);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 0 0 36px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream-dim);
}
.contact-alert strong { color: var(--cream); }
.contact-alert a { color: var(--gold); font-weight: 600; }

.contact-form { margin: 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}
.form-field .req { color: var(--crimson); }
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--cream);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--cream-fade); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(212, 168, 87, 0.12);
}

/* Honeypot — visually hidden, off-screen, never shown to humans */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--cream-fade);
  margin: 8px 0 0;
}
.form-hint.is-ok { color: var(--leaf); }

.g-recaptcha { margin-top: 4px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-submit {
  background: var(--gold);
  color: #2a0810;
  border: none;
  border-radius: var(--r-md);
  padding: 13px 30px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
}
.form-submit:hover { background: var(--gold-bright); }
.form-submit:active { transform: translateY(1px); }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.form-status {
  font-family: var(--font-sans);
  font-size: 14px;
  margin: 0;
  color: var(--cream-dim);
}
.form-status.is-success { color: var(--leaf); }
.form-status.is-error { color: var(--crimson); }
.form-status.is-pending { color: var(--cream-fade); }

.form-privacy {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--cream-fade);
  line-height: 1.6;
  margin: 22px 0 0;
}
.form-privacy a { color: var(--gold-dim); }
.form-privacy a:hover { color: var(--gold); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
