
:root {
  /* Palette pulled directly from installer.varianportal.com */
  --brand-yellow: #FFCD04;
  --brand-blue: #3D80E9;
  --brand-navy: #011B3D;
  --bg: #F7F4ED;
  --bg-2: #ECE6D6;
  --surface: #FDFAF1;
  --paper: #FFFFFF;
  --line: rgba(1, 27, 61, 0.10);
  --line-strong: rgba(1, 27, 61, 0.22);
  --text: #011B3D;
  --text-2: #1A2F54;
  --muted: #5C6878;
  --dim: #8B96A8;
  --gold: #FFCD04;
  --gold-deep: #A87E00;
  --gold-soft: rgba(255, 205, 4, 0.16);
  --gold-soft-2: rgba(255, 205, 4, 0.30);
  --blue: #3D80E9;
  --blue-deep: #2A66C7;

  --max-width: 1200px;
  --content-width: 720px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--text); text-decoration: none; }

/* ============================ HEADER ============================ */
/* Translucent navy nav identical to the main site so the brand reads continuously */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 27, 61, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 244, 237, 0.10);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (max-width: 768px) {
  .header-inner { padding: 14px 20px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.brand-img {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .brand-img { height: 26px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-family: var(--font-sans);
  color: rgba(247, 244, 237, 0.65);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: color .2s ease;
}

.nav a:hover { color: var(--gold); }

.nav a.active { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  transition: all .2s ease;
  border: 1px solid rgba(247, 244, 237, 0.30);
  color: var(--bg);
  background: transparent;
}

.btn:hover {
  border-color: var(--bg);
  background: rgba(247, 244, 237, 0.08);
}

.btn-primary {
  background: var(--gold);
  color: var(--text);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: #fff;
  color: var(--text);
  transform: translateY(-1px);
  border-color: #fff;
}

/* ============================ HERO ============================ */
/* Navy hero with the same gold radial glow as the main site, so /blog/ feels like another section of one site */
.hero {
  background: var(--brand-navy);
  color: var(--bg);
  padding: 130px 0 90px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -300px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255, 205, 4, 0.16) 0%, transparent 65%);
  opacity: .9;
  filter: blur(40px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61, 128, 233, 0.10) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero-inner { padding: 0 24px; }
  .hero { padding: 110px 0 70px; }
}

/* Eyebrow uses the same JetBrains-Mono monospace uppercase treatment as the main site */
.hero-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  max-width: 1100px;
  color: var(--bg);
}
.hero-title .accent { color: var(--gold); font-style: italic; font-weight: 400; }

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.7vw, 22px);
  color: rgba(247, 244, 237, 0.82);
  max-width: 680px;
  line-height: 1.55;
}

/* ============================ SECTION LABEL ============================ */
/* Matches the .eyebrow treatment on the main site */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 28px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-label-number {
  color: var(--gold-deep);
  font-weight: 700;
}

.section-label-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ============================ POSTS GRID ============================ */
.posts-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px 96px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 16px 36px rgba(1, 27, 61, 0.12);
}

.post-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.post-card-body {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-label {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(1, 27, 61, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
  width: fit-content;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 14px;
}

.post-card-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 22px;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--dim);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.post-card-arrow {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.2px;
}

.post-card:hover .post-card-arrow { color: var(--blue-deep); }

/* ============================ ARTICLE ============================ */
.article-wrap {
  background: var(--bg);
}

.article-hero {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 32px;
}

.article-hero-image {
  display: block;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.article-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 32px 40px;
}

.article-footer-nav {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 32px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-footer-nav .back-link {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 36px;
  transition: color 0.15s ease;
}

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

.article-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 24px;
}
/* Italic accent in headlines matches the main site (brand blue on light backgrounds) */
.article-title .accent,
.article-body h2 .accent,
.article-body h3 .accent { color: var(--blue-deep); font-style: italic; font-weight: 400; }

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: var(--text);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.article-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--dim);
  border-radius: 50%;
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px 56px;
}

.article-body h1,
.article-body h2,
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 56px 0 18px;
  line-height: 1.15;
}

.article-body h2 {
  font-size: 2rem;
  padding-top: 8px;
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 40px;
  letter-spacing: -0.015em;
}

.article-body p {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.article-body p:first-of-type {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
}

.article-body ul {
  margin: 0 0 26px;
  padding-left: 22px;
  list-style: none;
}

.article-body li {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  position: relative;
  padding-left: 18px;
}

.article-body li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-deep);
  font-weight: 600;
}

.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--text); font-style: italic; }

/* Tags */
.article-tags {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 36px 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.tag {
  display: inline-block;
  padding: 6px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Related */
.related-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 32px 96px;
  border-top: 1px solid var(--line);
  margin-top: 64px;
}

/* ============================ CTA BLOCK ============================ */
/* Mirrors the Kia CTA + book-a-call block on the main site */
.cta-block {
  max-width: var(--max-width);
  margin: 48px auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .cta-block { padding: 0 20px; } }

.cta-inner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0A2A5C 100%);
  color: var(--bg);
  border-radius: 18px;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 237, 0.08);
  box-shadow: 0 24px 60px rgba(1, 27, 61, 0.18);
}
@media (max-width: 768px) { .cta-inner { padding: 36px 28px; } }

.cta-inner::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 205, 4, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--bg);
  position: relative;
}
.cta-inner h3 .accent { color: var(--gold); font-style: italic; font-weight: 400; }

.cta-inner p {
  color: rgba(247, 244, 237, 0.82);
  max-width: 580px;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}

.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

.cta-inner .btn {
  border-color: rgba(247, 244, 237, 0.30);
  color: var(--bg);
}
.cta-inner .btn:hover {
  border-color: var(--bg);
  background: rgba(247, 244, 237, 0.08);
}
.cta-inner .btn-primary {
  background: var(--gold);
  color: var(--text);
  border-color: var(--gold);
}
.cta-inner .btn-primary:hover { background: #fff; color: var(--text); border-color: #fff; }

/* ============================ FOOTER ============================ */
/* Navy footer matching the main site */
.site-footer {
  margin-top: auto;
  background: var(--brand-navy);
  color: rgba(247, 244, 237, 0.70);
  padding: 64px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--bg);
}

.footer-brand p {
  color: rgba(247, 244, 237, 0.70);
  font-size: 14px;
  line-height: 1.55;
  max-width: 280px;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { color: rgba(247, 244, 237, 0.70); font-size: 14px; line-height: 1.55; }

.footer-col a {
  color: rgba(247, 244, 237, 0.70);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 40px 0;
  border-top: 1px solid rgba(247, 244, 237, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(247, 244, 237, 0.50);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================ MOBILE ============================ */
@media (max-width: 768px) {
  .header-inner { padding: 14px 20px; gap: 12px; }
  .nav { gap: 18px; }
  .nav a { font-size: 16px; }
  .nav a[href*="book"] { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-inner { padding: 0 20px; }
  .posts-section { padding: 56px 20px 72px; }
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-card { padding: 28px; }
  .article-header { padding: 48px 20px 32px; }
  .article-body { padding: 0 20px 40px; }
  .article-body p { font-size: 17px; }
  .article-body p:first-of-type { font-size: 18px; }
  .article-body li { font-size: 17px; }
  .article-tags { padding: 28px 20px 0; }
  .related-section { padding: 56px 20px 72px; }
  .cta-block { padding: 0 20px; }
  .cta-inner { padding: 36px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 20px; text-align: center; }
}
