/* ===== Design tokens ===== */
:root {
  --maroon-900: #3a0d12;
  --maroon-800: #591620;
  --maroon-700: #7a1f2b;
  --saffron-500: #e8912d;
  --saffron-400: #f2a93f;
  --gold-400: #d4af37;
  --gold-300: #e6c766;
  --cream-50: #fdf8ef;
  --cream-100: #f7ecd7;
  --ink-900: #241512;
  --ink-700: #4a3630;
  --ink-500: #7a655d;
  --border: #e6d5b8;
  --white: #ffffff;
  --success: #2e7d4f;
  --warning: #b3541e;
  --danger: #a3222b;
  --shadow: 0 8px 24px rgba(58, 13, 18, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--maroon-900); margin: 0 0 0.5em; line-height: 1.25; }
p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--maroon-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--cream-100); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-500);
  font-weight: 700;
  margin-bottom: 10px;
}
.lede { max-width: 640px; margin: 0 auto 40px; color: var(--ink-500); font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--saffron-500), var(--gold-400)); color: var(--maroon-900); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(58,13,18,0.2); }
.btn-outline { background: transparent; border-color: var(--maroon-700); color: var(--maroon-700); }
.btn-outline:hover { background: var(--maroon-700); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--maroon-900);
  border-bottom: 3px solid var(--gold-400);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream-50); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  flex-shrink: 0;
}
.brand-logo-img {
  object-fit: cover;
  border: 2px solid var(--gold-400);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--cream-50); }
.brand-tagline { font-size: 0.7rem; color: var(--gold-300); letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links a { color: var(--cream-100); font-weight: 500; font-size: 0.85rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-300); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--gold-400); border-radius: 8px;
  color: var(--cream-50); font-size: 1.3rem; padding: 6px 12px; cursor: pointer;
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--maroon-900);
    flex-direction: column; align-items: flex-start; gap: 0; max-height: 0; overflow: hidden;
    border-bottom: 3px solid var(--gold-400); transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 20px; width: 100%; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(232,145,45,0.18), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(212,175,55,0.16), transparent 40%),
    linear-gradient(180deg, var(--maroon-900), var(--maroon-800));
  color: var(--cream-50);
  padding: 88px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-logo {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold-400); box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}
.hero h1 { color: var(--cream-50); font-size: clamp(2rem, 4vw, 3rem); max-width: 760px; margin: 0 auto 18px; }
.hero p.lede { color: var(--cream-100); max-width: 620px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.4); color: var(--gold-300); padding: 6px 16px;
  border-radius: 999px; font-size: 0.8rem; margin-bottom: 22px; letter-spacing: 0.03em;
}

/* ===== Cards / grid ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(58,13,18,0.16); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--cream-100); margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { margin-bottom: 14px; }
.card .btn { font-size: 0.85rem; padding: 9px 18px; }

.feature-banner {
  background: linear-gradient(120deg, var(--maroon-800), var(--maroon-900));
  color: var(--cream-50); border-radius: var(--radius); padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.feature-banner h2 { color: var(--cream-50); margin-bottom: 8px; }
.feature-banner p { color: var(--cream-100); max-width: 480px; margin-bottom: 0; }

/* ===== Forms ===== */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; position: relative; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }
.field input, .field select {
  padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit; background: var(--cream-50); color: var(--ink-900);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--saffron-500); background: var(--white); }
.field small { color: var(--ink-500); font-size: 0.75rem; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm); max-height: 220px; overflow-y: auto;
  z-index: 20; box-shadow: var(--shadow); display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-list div { padding: 9px 13px; cursor: pointer; font-size: 0.9rem; }
.autocomplete-list div:hover, .autocomplete-list div.active { background: var(--cream-100); }
.form-section-title { font-size: 0.95rem; font-weight: 700; color: var(--maroon-700); margin: 22px 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-section-title:first-child { margin-top: 0; }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 8px; display: none; }
.form-error.show { display: block; }

/* ===== Results ===== */
.result-panel { display: none; margin-top: 40px; }
.result-panel.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-box { background: var(--cream-100); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.stat-box .value { font-family: var(--font-heading); font-size: 1.4rem; color: var(--maroon-900); font-weight: 700; }
.stat-box .label { font-size: 0.75rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

table.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
table.data-table th, table.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
table.data-table th { color: var(--maroon-700); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
table.data-table tr:hover { background: var(--cream-100); }

.chart-wrap { display: flex; justify-content: center; margin: 24px 0; }
.chart-wrap svg { max-width: 420px; width: 100%; }

.koota-table td.score-full { color: var(--success); font-weight: 700; }
.koota-table td.score-zero { color: var(--danger); font-weight: 700; }
.koota-table td.score-partial { color: var(--warning); font-weight: 700; }

.verdict-banner {
  border-radius: var(--radius); padding: 24px 28px; margin: 24px 0; text-align: center;
  border: 2px solid var(--border);
}
.verdict-good { background: #eaf6ee; border-color: var(--success); }
.verdict-average { background: #fdf3e3; border-color: var(--warning); }
.verdict-poor { background: #fbeaea; border-color: var(--danger); }
.verdict-banner .score { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--maroon-900); }

.dosha-flag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-top: 6px; }
.dosha-flag.yes { background: #fbeaea; color: var(--danger); }
.dosha-flag.no { background: #eaf6ee; color: var(--success); }

/* ===== Content pages ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 34px; }
.prose ul { color: var(--ink-700); padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.remedy-card { border-left: 4px solid var(--saffron-500); }

.about-owner {
  background: var(--cream-100); border-radius: var(--radius); padding: 30px; margin-top: 30px;
  border: 1px solid var(--border);
}

/* ===== Footer ===== */
.site-footer { background: var(--maroon-900); color: var(--cream-100); padding: 48px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--gold-300); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--cream-100); }
.footer-grid a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.8rem; color: var(--ink-500); text-align: center; }
.footer-bottom p { color: inherit; margin-bottom: 6px; }

.badge-note {
  font-size: 0.78rem; color: var(--ink-500); background: var(--cream-100); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-top: 14px; border: 1px dashed var(--border);
}

/* ===== Lead capture gate ===== */
.lead-gate-overlay {
  position: fixed; inset: 0; background: rgba(36, 21, 18, 0.72);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.lead-gate-card { max-width: 420px; width: 100%; text-align: center; }
.lead-gate-card .field { text-align: left; }

/* ===== Print / Save as PDF ===== */
.print-btn { margin: 24px auto; display: flex; }
@media print {
  .no-print, .site-header, .site-footer, .form-card, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .section { padding: 8px 0; }
  a { color: inherit; text-decoration: none; }
  .card, .stat-box, .verdict-banner { break-inside: avoid; }
  .chart-wrap svg { max-width: 320px; }
}
