/* ═══════════════════════════════════════════════════════════════════════════
   Divya Unmilan — base.css
   Design tokens, reset, typography, buttons, badges, forms, layout utilities.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --gold: #C4956A;
  --gold-light: #D4AC84;
  --cream: #FAF6F0;
  --cream-dark: #F0E8DC;
  --deep: #1A1412;
  --deep-warm: #2D2320;
  --deep-blue: #1E2A3A;
  --saffron: #D4783A;
  --saffron-light: #E8A06A;
  --maroon: #6B2D3E;
  --sage: #7A8B6F;
  --ivory: #FFFCF7;
  --text-primary: #1A1412;
  --text-secondary: #5A4D44;
  --text-light: #7A6D64;   /* 4.9:1 on --ivory — WCAG AA for body text */
  --border: #E8DFD3;
  --success: #4F7A3E;
  --danger: #A63D3D;
  --warning: #B8862B;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-sm: 6px;
  --shadow-card: 0 20px 50px rgba(26, 20, 18, 0.08);
  --shadow-lift: 0 24px 60px rgba(26, 20, 18, 0.1);
  --container: 1280px;
  --gutter: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
[hidden] { display: none !important; }

/* Lucide icons default sizing */
i[data-lucide], svg.lucide { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.btn svg.lucide, .btn i[data-lucide] { width: 15px; height: 15px; }

/* ─── Layout ────────────────────────────────────────────────────────────── */
.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; position: relative; }
.section-sm { padding: 60px 0; }
.section-cream { background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%); }
.section-dark { background: var(--deep); }
.section-dark .section-title { color: var(--cream); }
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.5); }
.section-accent-line::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gold), transparent);
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; font-weight: 500;
}
.section-tag-line { width: 30px; height: 1px; background: var(--gold); }
.section-title { font-size: 42px; font-weight: 400; color: var(--deep); line-height: 1.2; }
.section-subtitle {
  font-size: 15px; color: var(--text-light); margin-top: 12px;
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.section-more { text-align: center; margin-top: 48px; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: all 0.3s var(--ease); line-height: 1.2;
}
.btn-sm { padding: 9px 18px; font-size: 11px; letter-spacing: 1px; }
.btn-lg { padding: 15px 36px; letter-spacing: 1.5px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(196, 149, 106, 0.3); }
.btn-saffron { background: var(--saffron); color: #fff; }
.btn-saffron:hover { background: var(--maroon); transform: translateY(-1px); }
.btn-deep { background: var(--deep); color: var(--cream); }
.btn-deep:hover { background: var(--saffron); color: #fff; }
.btn-outline { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--deep); background: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(196, 149, 106, 0.3); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8a3030; }
.btn-link { background: none; color: var(--saffron); padding: 0; border: 0; text-decoration: none; }
.btn-link:hover { color: var(--maroon); }
.btn[disabled], .btn.is-loading { opacity: 0.55; pointer-events: none; }

/* ─── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 4px; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.5;
}
.badge-saffron { background: var(--saffron); }
.badge-gold { background: var(--gold); color: var(--deep); }
.badge-sage { background: var(--sage); }
.badge-maroon { background: var(--maroon); }
.badge-deep { background: var(--deep); }
.badge-soft { background: var(--cream-dark); color: var(--text-secondary); }
.badge-success { background: #E6F0E1; color: var(--success); }
.badge-danger { background: #F7E4E4; color: var(--danger); }
.badge-warning { background: #F8EED8; color: #8A6516; }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-light); font-weight: 600; margin-bottom: 8px;
}
.form-label .req { color: var(--saffron); }
.form-control {
  width: 100%; padding: 13px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s; -webkit-appearance: none; appearance: none;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.12); }
.form-control.is-invalid { border-color: var(--danger); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A7D74' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form-error { color: var(--danger); font-size: 12px; margin-top: 6px; }
.form-hint { color: var(--text-light); font-size: 12px; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); }
.form-check input { margin-top: 4px; accent-color: var(--saffron); width: 16px; height: 16px; }

/* ─── Prose (admin-written HTML) ────────────────────────────────────────── */
.prose { font-size: 16px; line-height: 1.85; color: var(--text-secondary); }
.prose-narrow { max-width: 780px; margin: 0 auto; }
.prose h2, .prose h3 { color: var(--deep); margin: 36px 0 14px; }
.prose h2 { font-size: 32px; } .prose h3 { font-size: 24px; font-weight: 600; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--saffron); }
.prose blockquote { border-left: 3px solid var(--gold); padding: 8px 24px; margin: 24px 0; font-family: var(--font-serif); font-size: 22px; font-style: italic; color: var(--deep); }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose thead th { background: var(--cream); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.prose code { background: var(--cream-dark); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose h3 + p, .prose h2 + p { margin-top: 0; }
.prose-updated { font-size: 12px; color: var(--text-light); margin-top: 40px; border-top: 1px solid var(--border); padding-top: 16px; }

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 5000;
  background: var(--gold); color: var(--deep); padding: 12px 22px; border-radius: 0 0 8px 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
#main:focus { outline: none; }

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn-row .btn { width: 100%; }
}

/* ─── Odia typography ───────────────────────────────────────────────────────
   Odia glyphs sit taller than Latin and carry more above/below the baseline,
   so they need extra leading and a touch more size to read comfortably. */
[lang="or"] { line-height: 1.95; }
h1[lang="or"], h2[lang="or"], h3[lang="or"], .hero-title-odia, .page-hero-title-odia,
.nav-logo-odia, .footer-brand-odia, .pillar-title-odia, .price-card-odia { line-height: 1.45; }
p[lang="or"], .pillar-desc-odia, .hero-odia-desc, .about-intro-odia p { font-size: 1.02em; }
.about-intro-odia p { line-height: 2.05; }
