/* ==========================================================================
   SevaBook — Public Marketing Site Shared Stylesheet
   --------------------------------------------------------------------------
   Used by static HTML pages in /server/public/. Mirrors the React side's
   Tailwind config (client/tailwind.config.js). When you change a token here,
   sync it there too.
   --------------------------------------------------------------------------
   Source of truth: D:\SevaBook\WEBSITE-REDESIGN-BRIEF.md
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
:root {
  /* Brand — single accent. Indigo. */
  --brand-50:  #EEF2FF;
  --brand-100: #E0E7FF;
  --brand-500: #6366F1;
  --brand-600: #4F46E5;   /* Primary CTA */
  --brand-700: #4338CA;   /* CTA hover */
  --brand-800: #3730A3;   /* Headings on white */

  /* Warm accent — 5% seasoning, never a second brand */
  --accent-50:  #FFFBEB;
  --accent-500: #F59E0B;

  /* Slate / ink */
  --ink-900: #0F172A;     /* Primary text */
  --ink-600: #475569;     /* Body text */
  --ink-500: #64748B;     /* Captions */
  --ink-400: #94A3B8;     /* Subtle/dividers */
  --ink-200: #E2E8F0;     /* Borders */
  --ink-100: #F1F5F9;     /* Subtle bg */
  --ink-50:  #F8FAFC;     /* Page bg */
  --white:   #FFFFFF;

  /* Semantic */
  --success: #10B981;
  --danger:  #EF4444;

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Inter', sans-serif;

  /* Type scale (desktop) */
  --text-h1: 56px;
  --text-h2: 36px;
  --text-h3: 24px;
  --text-body: 17px;
  --text-small: 14px;
  --text-micro: 12px;

  /* Radius */
  --radius-tag:    4px;
  --radius-button: 8px;
  --radius-card:   12px;
  --radius-large:  16px;
  --radius-xl:     24px;

  /* Shadows */
  --shadow-subtle: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-elevated: 0 10px 30px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
  --shadow-hero: 0 30px 60px rgba(79,70,229,0.12);

  /* Layout */
  --max-content: 1180px;
  --gutter: 24px;
}

/* Mobile typography ------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --text-h1: 36px;
    --text-h2: 28px;
    --text-h3: 20px;
    --text-body: 16px;
  }
}

/* Reset / base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }
input, textarea, select { font: inherit; color: inherit; }

/* Layout primitives ------------------------------------------------------- */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
}

.eyebrow {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--brand-600);
  color: var(--white);
  box-shadow: var(--shadow-subtle);
}
.btn--primary:hover {
  background: var(--brand-700);
  color: var(--white);
  box-shadow: var(--shadow-elevated);
}
.btn--secondary {
  background: var(--white);
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
}
.btn--secondary:hover {
  border-color: var(--ink-400);
  color: var(--ink-900);
}
.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn--whatsapp:hover { background: #20BA5A; color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--ink-600);
  height: 44px;
  padding: 0 16px;
}
.btn--ghost:hover { color: var(--ink-900); background: var(--ink-100); transform: none; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13px; }

/* Cards ------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card--hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

/* Pill / badge ------------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 500;
}
.pill--brand {
  background: var(--brand-50);
  color: var(--brand-700);
}
.pill--accent {
  background: var(--accent-50);
  color: #92400E;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink-200); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 19px;
  color: var(--ink-900);
}
.site-logo:hover { color: var(--ink-900); }
.site-logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.site-nav {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-600);
}
.site-nav a:hover { color: var(--ink-900); }
.site-header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) {
  .site-nav { display: inline-flex; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* On tablet / small laptop — trim gap/font so 5 items don't crowd next to logo + CTA */
  .site-nav { gap: 16px; font-size: 13px; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--ink-700);
}
.menu-toggle:hover { background: var(--ink-100); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--ink-200);
  background: var(--white);
  padding: 12px var(--gutter) 18px;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 12px 0;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
  font-weight: 500;
  font-size: 16px;
}
.mobile-drawer a:last-of-type { border: 0; }
@media (min-width: 768px) { .mobile-drawer { display: none !important; } }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 32px;
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.site-footer a {
  display: block;
  color: rgba(255,255,255,0.72);
  padding: 5px 0;
  font-size: 14px;
}
.site-footer a:hover { color: var(--white); }
.site-footer__brand p { margin-top: 14px; max-width: 320px; line-height: 1.55; color: rgba(255,255,255,0.6); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.made-in-patna {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* Floating WhatsApp button ------------------------------------------------ */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,0.36), 0 4px 8px rgba(15,23,42,0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-fab:hover {
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px rgba(37,211,102,0.44), 0 6px 12px rgba(15,23,42,0.1);
}
.whatsapp-fab svg { width: 28px; height: 28px; }
@media (max-width: 768px) {
  .whatsapp-fab { right: 14px; bottom: 84px; }   /* leave space for sticky bar */
}

/* Sticky mobile CTA bar --------------------------------------------------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 55;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.18);
  align-items: center;
  gap: 8px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-sticky-cta.is-visible {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-sticky-cta .btn { flex: 1; height: 44px; }
.mobile-sticky-cta .close {
  width: 32px; height: 32px; border-radius: 8px; color: var(--ink-500);
}
@media (min-width: 769px) { .mobile-sticky-cta { display: none !important; } }

/* Form bits --------------------------------------------------------------- */
.field {
  display: block;
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-button);
  background: var(--white);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.field .help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-500);
}
.field .error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-500);
}

/* Avatar / initial fallback ---------------------------------------------- */
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-500), #A78BFA);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Section heads ---------------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
  margin-top: 12px;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-600);
  line-height: 1.55;
}

/* Animations ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities --------------------------------------------------------------- */
.text-ink-600 { color: var(--ink-600); }
.text-ink-500 { color: var(--ink-500); }
.text-brand   { color: var(--brand-600); }
.text-center  { text-align: center; }
.hidden       { display: none !important; }
@media (max-width: 767px) {
  .md-hidden  { display: none !important; }
}
@media (min-width: 768px) {
  .md-only    { display: none !important; }
}
