:root {
  --brand-primary: #31366D;
  --brand-secondary: #00A85A;
  --brand-orange: #F48734;
  --brand-yellow: #FFF114;
  --brand-gold: #C89008;
  --brand-white: #FFFFFF;
  --text-primary: #252525;
  --text-muted: #666666;
  --surface: #F5F8F6;
  --surface-green: #E9F4ED;
  --border-color: #DDE5DF;
  --success: #16834A;
  --warning: #B7791F;
  --danger: #C62828;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(49, 54, 109, 0.08);
  --shadow-lg: 0 12px 40px rgba(49, 54, 109, 0.14);
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-gu: 'Hind Vadodara', 'Noto Sans Gujarati', var(--font-en);
  --font-hi: 'Noto Sans Devanagari', var(--font-en);
  --container: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--text-primary);
  background: var(--brand-white);
  line-height: 1.65;
  font-size: 1rem;
}

:lang(gu) body, body:lang(gu) { font-family: var(--font-gu); line-height: 1.8; }
:lang(hi) body, body:lang(hi) { font-family: var(--font-hi); line-height: 1.8; }

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--brand-primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1em; }

a { color: var(--brand-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-secondary); }

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.site-main { min-height: 50vh; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn--primary { background: var(--brand-orange); color: #fff; }
.btn--primary:hover { background: #e0761f; color: #fff; transform: translateY(-1px); }
.btn--green { background: var(--brand-secondary); color: #fff; }
.btn--green:hover { background: #009150; color: #fff; transform: translateY(-1px); }
.btn--outline { border-color: var(--brand-primary); color: var(--brand-primary); background: transparent; }
.btn--outline:hover { background: var(--brand-primary); color: #fff; }

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1d2148 100%);
  padding: 1.5rem;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: min(440px, 100%);
}

.error-page { text-align: center; padding: 2rem 1rem; }
.error-code { font-size: 3rem; font-weight: 800; color: var(--brand-orange); margin: 0; }

.placeholder-hero { padding: 4rem 1.5rem; text-align: center; background: var(--surface-green); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
