:root {
  /* Patriot palette */
  --kf-primary: #1b2a49;        /* Patriot Navy */
  --kf-accent: #c62828;         /* Freedom Red */
  --kf-bg: #f5f6f8;             /* Light background */
  --kf-text-main: #111827;      /* Main text */
  --kf-text-muted: #4b5563;     /* Muted text */
  --kf-border: #e5e7eb;         /* Borders */
}

/* ========= BASE ========= */

body.kf-body {
  background-color: var(--kf-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--kf-text-main);
}

.kf-main {
  min-height: 70vh;
}

/* ========= NAVBAR ========= */

.kf-header .navbar {
  background-color: var(--kf-primary) !important; /* Navy background */
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.kf-header .navbar-brand.kf-logo {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.kf-logo-main {
  color: var(--kf-accent); /* red */
}

.kf-logo-sub {
  color: #ffffff; /* white */
  margin-left: 0.35rem;
}

.kf-header .nav-link {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.kf-header .nav-link:hover,
.kf-header .nav-link:focus {
  color: #ffffff;
}

.kf-header .kf-btn-main {
  background-color: var(--kf-accent);
  border-color: var(--kf-accent);
  color: #ffffff;
}

.kf-header .kf-btn-main:hover,
.kf-header .kf-btn-main:focus {
  background-color: #a91f1f;
  border-color: #a91f1f;
  color: #ffffff;
}

/* ========= HERO ========= */

.kf-hero {
  background: linear-gradient(120deg, #edf1f7 0%, #ffffff 100%);
}

.kf-hero h1 span.text-primary {
  color: var(--kf-primary) !important;
}

.kf-hero-list li {
  color: var(--kf-text-muted);
}

/* ========= BUTTONS ========= */

.kf-btn-main {
  background-color: var(--kf-accent);
  border-color: var(--kf-accent);
  padding-inline: 1.75rem;
  padding-block: 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff;
}

.kf-btn-main:hover,
.kf-btn-main:focus {
  background-color: #a91f1f;
  border-color: #a91f1f;
  color: #ffffff;
}

/* Ghost button */
.kf-btn-ghost {
  border-radius: 999px;
  font-weight: 500;
  border-width: 1.5px;
  border-color: var(--kf-primary);
  color: var(--kf-primary);
}

.kf-btn-ghost:hover {
  background-color: #e5e7f0;
  color: var(--kf-primary);
}

/* ========= HERO CARD ========= */

.kf-hero-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--kf-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.kf-hero-card img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
}

/* Desktop crop (1:2 ratio) */
@media (min-width: 992px) {
  .kf-hero-card img {
    height: 300px;
    object-fit: cover;
    object-position: center;
  }
}

/* ========= SCORE CHIP ========= */

.kf-score-chip {
  background-color: #fbe9e9;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--kf-accent);
  font-size: 0.82rem;
}

/* ========= CARDS ========= */

.kf-step-card,
.kf-report-card,
.kf-product-card,
.kf-stat-card,
.kf-highlight-box {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--kf-border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.kf-question-container { max-width: 800px; margin: 0 auto; }

/* ========= STEP NUMBER ========= */

.kf-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #e3e8f5;
  color: var(--kf-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ========= QUIZ ANSWERS ========= */

.kf-answer-btn {
  border-radius: 999px;
  padding-block: 0.75rem;
  padding-inline: 1rem;
  width: 100%;
  border: 1.5px solid var(--kf-primary);
  background-color: #ffffff;
  color: var(--kf-primary);
  text-align: left;
  font-weight: 500;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.05s ease;
}

/* Hover → red */
.kf-answer-btn:hover {
  background-color: var(--kf-accent);
  border-color: var(--kf-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Active → darker red */
.kf-answer-btn:active,
.kf-answer-btn:focus {
  background-color: #a91f1f;
  border-color: #a91f1f;
  color: #ffffff;
  outline: none;
}

/* ========= QUIZ PROGRESS (NAVY → RED gradient) ========= */

.kf-progress-bar {
  height: 6px;
  border-radius: 999px;
  background-color: var(--kf-border);
  overflow: hidden;
}

.kf-progress-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--kf-primary) 0%, var(--kf-accent) 100%);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(198, 40, 40, 0.25);
}

/* ========= LOADING SCREENS ========= */

.kf-loading-progress {
  height: 10px;
  border-radius: 999px;
  background-color: var(--kf-border);
  overflow: hidden;
}

.kf-loading-progress-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--kf-primary) 0%, var(--kf-accent) 100%);
  transition: width 0.45s ease;
  box-shadow: 0 0 12px rgba(198, 40, 40, 0.3);
}

/* ========= RESULTS ========= */

.kf-results-score {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--kf-accent);
}

.kf-bundle-tag {
  display: inline-block;
  background-color: #e3e8f5;
  color: var(--kf-primary);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

/* ========= PRODUCT CARDS ========= */

.kf-product-card img {
  border-radius: 0.75rem;
}

.kf-product-price {
  font-weight: 600;
  color: var(--kf-primary);
}

/* ========= HELPERS ========= */

@media (max-width: 575.98px) {
  .kf-hero-card {
    margin-top: 1.5rem;
  }
}
