/* Bazaar Trust — marketing site shared styles */

:root {
  --maroon-950: #2c0808;
  --maroon-900: #3d0b0b;
  --maroon-800: #4d0f0f;
  --maroon-700: #5c1414;
  --gold-500: #d4af5a;
  --gold-400: #e0c380;
  --cream-100: #faf3e6;
  --cream-200: #f0e4cc;
  --ink-700: #2a1c10;
  --max-w: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Page-load / page-leave transition (see assets/page-transition.js) */
html.has-page-transition body {
  opacity: 0;
  transition: opacity 0.22s ease;
}
html.has-page-transition body.is-loaded { opacity: 1; }
html.has-page-transition body.is-leaving { opacity: 0; }

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink-700);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

body.lang-hi, body.lang-hi h1, body.lang-hi h2, body.lang-hi h3, body.lang-hi p, body.lang-hi a, body.lang-hi span, body.lang-hi li {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

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

a { color: inherit; }

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

/* ---------- Header ---------- */

header.site-header {
  background: var(--maroon-900);
  padding: 16px 0;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 40px;
  width: 40px;
}

.brand-text {
  color: var(--gold-500);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  color: var(--maroon-950);
  background: var(--gold-500);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  transition: box-shadow 0.15s ease;
}

.btn-login:hover {
  box-shadow: 0 4px 14px rgba(212, 175, 90, 0.35);
}

.docs-link {
  color: var(--cream-200);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.docs-link:hover {
  opacity: 1;
  color: var(--gold-500);
}

.lang-switch a {
  color: var(--cream-200);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(212, 175, 90, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.lang-switch a:hover {
  background: rgba(212, 175, 90, 0.15);
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle at 30% 20%, var(--maroon-700), var(--maroon-950) 70%);
  padding: 72px 0 88px;
  text-align: center;
}

.hero-logo {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 32px;
}

.hero h1 {
  color: var(--gold-500);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 16px;
  font-weight: 700;
}

.hero p.subhead {
  color: var(--cream-200);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold-500);
  color: var(--maroon-950);
}

.btn-gold:hover { box-shadow: 0 6px 18px rgba(212, 175, 90, 0.35); }

.btn-outline {
  border: 1.5px solid var(--gold-500);
  color: var(--gold-500);
  background: transparent;
}

.btn-outline:hover { background: rgba(212, 175, 90, 0.1); }

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--maroon-800);
  margin: 0 0 12px;
  font-weight: 700;
}

.section-sub {
  text-align: center;
  color: #6b584a;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* Features grid */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: 12px;
  padding: 28px 24px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--maroon-900);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--maroon-900);
}

.feature-card p {
  margin: 0;
  color: #5a4a3d;
  font-size: 0.95rem;
}

/* How it works */

.steps {
  background: var(--cream-200);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 12px;
}

.step .num {
  counter-increment: step;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--maroon-900);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step .num::before { content: counter(step); }

.step h3 { margin: 0 0 8px; font-size: 1rem; color: var(--maroon-900); }
.step p { margin: 0; font-size: 0.92rem; color: #5a4a3d; }

/* Trust strip */

.trust-strip {
  background: var(--maroon-950);
  color: var(--cream-200);
  text-align: center;
}

.trust-strip .section-title { color: var(--gold-500); }
.trust-strip .section-sub { color: var(--cream-200); }

.trust-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.trust-points .point {
  padding: 16px;
}

.trust-points .point .label {
  color: var(--gold-500);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.trust-points .point .desc {
  font-size: 0.9rem;
  color: var(--cream-200);
  opacity: 0.85;
}

/* Contact */

.contact {
  text-align: center;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: 16px;
  padding: 48px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* Footer */

footer.site-footer {
  background: var(--maroon-950);
  color: var(--cream-200);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}

footer.site-footer .footer-logo {
  height: 28px;
  margin: 0 auto 12px;
}

footer.site-footer a {
  color: var(--gold-500);
  text-decoration: none;
}

footer.site-footer .fine {
  opacity: 0.6;
  margin-top: 8px;
}

footer.site-footer .footer-links {
  margin: 4px 0 12px;
}

footer.site-footer .footer-links .links-label {
  opacity: 0.7;
  margin-right: 6px;
}

@media (max-width: 640px) {
  section { padding: 48px 0; }
  .hero { padding: 56px 0 64px; }
}
