/* =========================================================
   Shaili — Shared design tokens & components
   Palette pulled from the brand mark: deep maroon, mustard
   gold, olive green, ivory cream.
   ========================================================= */

:root {
  /* Brand colors */
  --maroon-900: #4A1313;
  --maroon-800: #6B1F1F;
  --maroon-700: #7A2424;
  --maroon-600: #8B2F2F;

  --gold-600: #B88A1F;
  --gold-500: #D9A726;
  --gold-400: #E5BF4D;
  --gold-100: #F5E8B8;

  --olive-700: #6B7A20;
  --olive-600: #8FA32B;
  --olive-500: #A6B847;

  --cream-50:  #FDFBF5;
  --cream-100: #FBF7EE;
  --cream-200: #F4EDDD;
  --cream-300: #E8DEC4;

  --ink-900: #2A1F18;
  --ink-700: #4A3C30;
  --ink-500: #74655A;
  --ink-300: #A89A8C;
  --ink-200: #C9BEAF;

  /* Type */
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(74, 19, 19, 0.06), 0 2px 6px rgba(74, 19, 19, 0.04);
  --shadow-md: 0 4px 12px rgba(74, 19, 19, 0.08), 0 12px 28px rgba(74, 19, 19, 0.06);
  --shadow-lg: 0 12px 36px rgba(74, 19, 19, 0.12), 0 24px 60px rgba(74, 19, 19, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream-100);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--maroon-800); text-decoration: none; }
a:hover { color: var(--maroon-700); }

/* ---------- Type ---------- */
.font-serif { font-family: var(--font-serif); font-weight: 500; }
.font-mono { font-family: var(--font-mono); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--maroon-900);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
h4 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-700);
  line-height: 1.65;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-600);
  font-weight: 500;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(122, 36, 36, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--maroon-900);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand img { width: 44px; height: 44px; }
.brand-name { line-height: 1; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-600);
  display: block;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li > a:not(.btn) {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.93rem;
  color: var(--ink-700);
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.15s;
}
.nav-links > li > a:not(.btn):hover { background: rgba(122, 36, 36, 0.06); color: var(--maroon-800); }
.nav-links > li > a:not(.btn).active { color: var(--maroon-900); background: rgba(122, 36, 36, 0.08); }
.nav-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream-100);
    border-bottom: 1px solid rgba(122, 36, 36, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-radius: 10px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--maroon-800);
  color: var(--cream-50);
  box-shadow: 0 2px 0 var(--maroon-900), 0 6px 16px rgba(74, 19, 19, 0.2);
}
.btn-primary:hover {
  background: var(--maroon-700);
  color: var(--cream-50);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--maroon-900), 0 10px 22px rgba(74, 19, 19, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--maroon-900);
  border: 1px solid rgba(122, 36, 36, 0.25);
}
.btn-secondary:hover {
  background: rgba(122, 36, 36, 0.06);
  border-color: rgba(122, 36, 36, 0.45);
  color: var(--maroon-800);
}
.btn-gold {
  background: var(--gold-500);
  color: var(--maroon-900);
  box-shadow: 0 2px 0 var(--gold-600), 0 6px 16px rgba(184, 138, 31, 0.25);
}
.btn-gold:hover {
  background: var(--gold-400);
  color: var(--maroon-900);
  transform: translateY(-1px);
}
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--cream-50);
  border: 1px solid rgba(74, 19, 19, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 36, 36, 0.18);
  box-shadow: var(--shadow-md);
}

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.01em;
}
.field label .req { color: var(--maroon-700); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(74, 19, 19, 0.15);
  background: var(--cream-50);
  border-radius: 10px;
  color: var(--ink-900);
  transition: all 0.15s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--maroon-700);
  box-shadow: 0 0 0 4px rgba(122, 36, 36, 0.1);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field-error { color: var(--maroon-700); font-size: 0.82rem; margin-top: 2px; }

/* ---------- Tags / badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(184, 138, 31, 0.12);
  color: var(--gold-600);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.tag-olive { background: rgba(143, 163, 43, 0.14); color: var(--olive-700); }
.tag-maroon { background: rgba(122, 36, 36, 0.1); color: var(--maroon-800); }

/* ---------- Decorative ---------- */
.divider-sun {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
}
.divider-sun::before,
.divider-sun::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, rgba(184, 138, 31, 0.5), transparent);
}
.divider-sun-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(217, 167, 38, 0.18);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--maroon-900);
  color: var(--cream-200);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer a { color: var(--cream-200); }
.footer a:hover { color: var(--gold-400); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 232, 184, 0.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand .brand { color: var(--cream-100); }
.footer-brand .brand-tag { color: var(--gold-400); }
.footer-brand p { color: rgba(245, 232, 184, 0.7); font-size: 0.92rem; }

.footer h5 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 0.92rem; color: rgba(245, 232, 184, 0.85); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(245, 232, 184, 0.55);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.stack, .stack-sm, .stack-md, .stack-lg, .stack-xl { display: flex; flex-direction: column; }
.stack-sm { gap: 8px; }
.stack-md { gap: 16px; }
.stack-lg { gap: 24px; }
.stack-xl { gap: 40px; }
.row { display: flex; }
.row-center { align-items: center; }
.row-gap-md { gap: 16px; }
.row-gap-lg { gap: 24px; }
.row-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.muted { color: var(--ink-500); }
.maroon { color: var(--maroon-800); }
.gold { color: var(--gold-600); }
.olive { color: var(--olive-700); }

/* Indian-inspired ornamental SVG patterns used as page accents */
.ornament-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

/* Page hero base */
.page-hero {
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { margin-bottom: 14px; display: inline-block; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); }

/* Subtle paper texture (radial dots) for sections */
.paper {
  background-image:
    radial-gradient(rgba(184, 138, 31, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
}
