/* ============================================================
   Vantage Consulting — Blog stylesheet
   Shared by /blog/index.html and every /blog/posts/*.html page.
   Reuses the exact design tokens, header, and footer from the
   main site (vbuscon_website.html) so the blog reads as part of
   the same site, not a bolted-on afterthought.
   ============================================================ */

:root {
  /* Vantage identity 4A — plum / moss / sage / ink / ground */
  --plum: #4A2D5C;
  --plum-deep: #3A2249;
  --plum-soft: rgba(74,45,92,0.12);
  --moss: #3E7A5E;
  --moss-deep: #2F5F49;
  --moss-soft: rgba(62,122,94,0.12);
  --sage: #8FB69F;
  --alert: #B3261E;
  --alert-soft: rgba(179,38,30,0.12);

  --paper: #F3F2F2;
  --paper-warm: #EAE7E4;
  --ink: #2E2438;
  --ink-soft: #6B617A;

  --mustard: var(--moss);
  --mustard-deep: var(--moss-deep);
  --mustard-soft: var(--moss-soft);
  --coral: var(--plum);
  --coral-deep: var(--plum-deep);
  --coral-soft: var(--plum-soft);
  --teal: var(--moss);
  --teal-deep: var(--moss-deep);
  --teal-soft: var(--moss-soft);
  --violet: var(--moss);
  --violet-deep: var(--moss-deep);
  --violet-soft: var(--moss-soft);
  --sage-bright: var(--plum);
  --sage-soft: var(--plum-soft);

  --line: rgba(46,36,56,0.12);
  --line-soft: rgba(46,36,56,0.08);
  --max-width: 1180px;
  --content-width: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  color: var(--plum);
  letter-spacing: -0.5px;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--plum); color: var(--paper); }

/* ===== HEADER (identical to main site) ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,243,237,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  position: relative;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; width: 26px; height: 26px; }
.brand { display: flex; align-items: center; gap: 10px; }
a.brand { text-decoration: none; color: inherit; cursor: pointer; transition: opacity 0.15s; }
a.brand:hover { opacity: 0.8; }
.brand img { width: 34px; height: 34px; }
.brand-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.6px;
  border-left: 2px solid var(--plum);
  padding-left: 12px;
}
.brand-text span {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--plum);
  margin-top: 3px;
}
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover { color: var(--ink); background: var(--line-soft); }
nav a.active { color: var(--ink); background: var(--line-soft); }
.nav-cta { margin-left: 10px; background: var(--ink) !important; color: var(--paper) !important; }
.nav-cta:hover { background: var(--coral) !important; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    box-shadow: 0 12px 24px rgba(46,36,56,0.12);
  }
  nav.nav-open { display: flex; }
  nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-cta { margin-left: 0; text-align: center; }
}

/* ===== SECTION LABEL (shared kicker system) ===== */
.section { padding: 72px 0; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 0;
  margin-bottom: 18px;
  position: relative;
}
.kicker::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 42px; height: 3px;
  border-radius: 2px;
}
.k-mustard { color: var(--mustard-deep); }
.k-mustard::after { background: var(--mustard); }
.k-coral { color: var(--coral-deep); }
.k-coral::after { background: var(--coral); }
.k-teal { color: var(--teal-deep); }
.k-teal::after { background: var(--teal); }

/* ===== BLOG HERO / INDEX HEAD ===== */
.blog-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 88% -10%, rgba(62,122,94,0.28), transparent 60%),
    radial-gradient(ellipse 500px 400px at -5% 80%, rgba(74,45,92,0.18), transparent 60%);
  pointer-events: none;
}
.blog-hero .wrap { position: relative; }
.blog-hero h1 { color: var(--paper); font-size: 46px; letter-spacing: -1px; max-width: 640px; }
.blog-hero p { margin-top: 16px; color: rgba(246,243,237,0.72); font-size: 18px; max-width: 560px; }

/* ===== TAG FILTER PILLS ===== */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.tag-filter-pill {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag-filter-pill:hover { border-color: var(--moss); color: var(--ink); }
.tag-filter-pill.active {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}
.tag-filter-empty {
  color: var(--ink-soft);
  font-size: 15px;
  padding: 40px 0;
  text-align: center;
}

/* ===== POST GRID / CARDS ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(42,46,51,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(42,46,51,0.14); }
.post-card-top { height: 6px; background: var(--moss); }
.post-card:nth-child(3n+2) .post-card-top { background: var(--plum); }
.post-card:nth-child(3n+3) .post-card-top { background: var(--sage); }
.post-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--moss-deep);
  background: var(--moss-soft);
  padding: 5px 12px;
  border-radius: 14px;
}
.post-card h3 { font-size: 20px; line-height: 1.3; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.post-card-meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }

.post-card.featured {
  grid-column: span 3;
  flex-direction: row;
}
.post-card.featured .post-card-top { width: 6px; height: auto; }
.post-card.featured .post-card-body { padding: 40px 44px; gap: 14px; }
.post-card.featured h3 { font-size: 28px; }
.post-card.featured p { font-size: 16.5px; max-width: 640px; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; flex-direction: column; }
  .post-card.featured .post-card-top { width: auto; height: 6px; }
  .blog-hero h1 { font-size: 34px; }
}

/* ===== ARTICLE PAGE ===== */
.article-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--moss-deep);
  background: var(--moss-soft);
  padding: 6px 14px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: 42px;
  letter-spacing: -1px;
  max-width: var(--content-width);
}
.article-dek {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: var(--content-width);
  line-height: 1.55;
}
.article-byline {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.article-byline strong { color: var(--ink); font-weight: 700; }
.article-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 32px 40px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body img { border-radius: 10px; margin: 8px 0 32px; }
.article-body img.hero-portrait {
  max-height: 640px;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.article-body h2 { font-size: 27px; margin: 44px 0 16px; letter-spacing: -0.3px; }
.article-body h3 { font-size: 21px; margin: 34px 0 12px; }
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--plum); }
.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--moss);
  font-size: 20px;
  font-weight: 500;
  color: var(--plum);
  font-style: normal;
}
.article-body a { color: var(--plum); text-decoration: underline; text-decoration-color: var(--sage); }

.article-body .table-scroll { overflow-x: auto; margin: 0 0 28px; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15.5px; }
.article-body th, .article-body td { padding: 10px 14px 10px 0; text-align: left; border-bottom: 1px solid var(--paper-warm); white-space: nowrap; }
.article-body th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--moss); }
.article-body tr:last-child td { border-bottom: none; }
.article-body table strong { color: var(--plum); }

.article-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px 72px;
}
.article-cta {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-cta strong { font-size: 19px; color: var(--plum); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 8px;
}
.back-link:hover { color: var(--plum); }

.btn-primary {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  background: linear-gradient(100deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(74,45,92,0.3);
}
.btn-schedule {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  background: linear-gradient(100deg, var(--moss) 0%, var(--moss-deep) 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(62,122,94,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-schedule:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(62,122,94,0.4); }
.cta-secondary-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--sage);
}
.cta-secondary-link:hover { color: var(--plum); }

@media (max-width: 640px) {
  .article-hero h1 { font-size: 30px; }
  .article-body { padding: 40px 24px 24px; font-size: 17px; }
  .article-body img.hero-portrait { max-height: 420px; }
}

/* ===== FOOTER (identical to main site) ===== */
footer {
  padding: 30px 0;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--paper);
}
footer .brand { opacity: 0.8; }
footer .brand img { width: 22px; height: 22px; }
footer .brand-text { font-size: 14px; border-left: 0; padding-left: 0; }
footer .brand-text span { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }
