/* ============================================================
   Shubh Yaatra Ltd — Shared Design System (tokens)
   Used by BOTH the public website and the ERP.
   Tone: dignified, calm, compassionate.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@300;400;500;600;700&family=Yatra+One&display=swap');

:root {
  /* ---- Brand palette (Hindu memorial: maroon · marigold · cream) ---- */
  /* Aligned with the Shubh Yaatra logo (oxblood diya + rising smoke on cream). */
  --color-primary:            #7a2e2e; /* deep maroon / oxblood — from the logo */
  --color-primary-600:        #672727;
  --color-primary-700:        #521f1f;
  --color-on-primary:         #faf6ee;

  --color-accent:             #d99a2b; /* marigold / saffron gold — flowers, diya flame */
  --color-accent-600:         #b57e1e;
  --color-on-accent:          #3a2810; /* dark brown text on gold (contrast-safe) */

  --color-background:         #faf6ee; /* warm cream */
  --color-surface:            #ffffff; /* cards, panels */
  --color-surface-2:          #f3ece0; /* subtle raised / hover */

  --color-foreground:         #2e2620; /* warm dark-brown ink */
  --color-muted-foreground:   #6f645a; /* secondary text */
  --color-faint:              #9a8f83; /* captions, meta */

  --color-border:             #e7ddcd;
  --color-border-strong:      #d8cbb5;

  --color-success:            #4f7a5b;
  --color-warning:            #b57e1e;
  --color-destructive:        #a4483d;
  --color-on-destructive:     #ffffff;

  --color-ring:               #d99a2b;

  /* ---- Typography ---- */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Yatra One', 'Newsreader', Georgia, serif; /* Devanagari-flavoured wordmark */

  --text-xs:   0.78rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --leading-tight: 1.15;
  --leading-normal: 1.6;

  /* ---- Spacing scale (standard density) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  /* ---- Radius & shadow ---- */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(43, 41, 38, 0.06);
  --shadow:    0 4px 14px rgba(43, 41, 38, 0.08);
  --shadow-lg: 0 12px 34px rgba(43, 41, 38, 0.12);

  --container: 1140px;
  --transition: 220ms ease;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--leading-tight);
  color: var(--color-primary-700);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p  { margin: 0 0 var(--space-4); }
a  { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-600); }
img { max-width: 100%; height: auto; display: block; }
small { color: var(--color-faint); }

/* ---- Focus (accessibility) ---- */
:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-10); }
.text-center { text-align: center; }
.muted { color: var(--color-muted-foreground); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-600);
  margin-bottom: var(--space-2);
}

/* ---- Buttons (shared) ---- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-base);
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-600); color: var(--color-on-primary); }
.btn-accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn-accent:hover { background: var(--color-accent-600); color: var(--color-on-accent); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border-strong); }
.btn-outline:hover { background: var(--color-surface-2); }
.btn-ghost { background: transparent; color: var(--color-primary); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}
