/* =========================================================
   INDIA CAR GUIDE - style.css
   ========================================================= */

/* CUSTOM PROPERTIES */
:root {
  --bg:          #F7F5F0;
  --bg-card:     #FFFFFF;
  --bg-raised:   #F0EDE6;
  --border:      rgba(0,0,0,0.09);
  --text-1:      #18181B;
  --text-2:      #52525B;
  --text-3:      #A1A1AA;
  --accent:      #E85D04;
  --green:       #15803D;
  --green-bg:    #F0FDF4;
  --green-border:#BBF7D0;
  --amber:       #B45309;
  --amber-bg:    #FFFBEB;
  --amber-border:#FDE68A;
  --red:         #B91C1C;
  --red-bg:      #FEF2F2;
  --red-border:  #FECACA;

  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover:0 2px 6px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.09);
  --transition:  200ms ease-out;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* UTILITIES */
.hidden { display: none !important; }
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-1);
  text-decoration: none;
  font-style: italic;
}

.nav-logo span {
  color: var(--accent);
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text-1); }

/* =========================================================
   HOME - HERO
   ========================================================= */

.hero {
  text-align: center;
  padding: 60px 20px 48px;
  max-width: 600px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
}

/* =========================================================
   MODULE GRID
   ========================================================= */

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 16px;
}

@media (max-width: 560px) {
  .module-grid { grid-template-columns: 1fr; }
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.module-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.15);
}

.module-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}

.module-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text-1);
  line-height: 1.25;
  display: block;
}

.module-tagline {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  display: block;
  flex: 1;
}

.module-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  display: block;
}

/* HOME FOOTER */
.home-footer {
  padding: 32px 0 48px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.home-footer a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   QUIZ CHROME (shared header + progress)
   ========================================================= */

.quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.btn-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-back:hover { color: var(--text-1); }

.quiz-module-name {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-step {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.quiz-progress {
  height: 3px;
  background: var(--border);
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 300ms ease-out;
}

/* =========================================================
   QUIZ - QUESTION
   ========================================================= */

.quiz-question-wrap {
  padding: 40px 0 48px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.quiz-question-wrap.slide-out {
  opacity: 0;
  transform: translateX(-12px);
}

.quiz-question {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.25;
  color: var(--text-1);
  margin-bottom: 28px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-1);
  cursor: pointer;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.option-btn:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateX(3px);
}

.option-btn:active {
  background: var(--bg-raised);
  transform: translateX(3px);
}

/* =========================================================
   VERDICT
   ========================================================= */

.verdict-container {
  padding: 36px 0 60px;
}

/* Tag */
.verdict-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.verdict-tag--green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.verdict-tag--amber {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.verdict-tag--red {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

/* Recommendation headline */
.verdict-recommendation {
  font-family: var(--font-serif);
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 36px;
}

/* Sections */
.verdict-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.verdict-section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* Math */
.verdict-math-headline {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.3;
}

.verdict-math-detail {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  background: var(--bg-raised);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Insight */
.verdict-insight {
  font-size: 16px;
  color: var(--text-1);
  line-height: 1.75;
}

/* Caveats */
.verdict-caveats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verdict-caveats li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.verdict-caveats li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
  top: 1px;
}

/* Footer CTAs */
.verdict-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-1);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text-1);
  background: var(--bg-raised);
}

.btn-data {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-3);
  transition: color var(--transition);
}

.btn-data:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 480px) {
  .hero { padding: 40px 20px 36px; }
  .quiz-question-wrap { padding: 28px 0 40px; }
  .verdict-container { padding: 28px 0 48px; }
  .verdict-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
