/* =============================================================
   Vision Group Consulting — Blog Post Stylesheet
   blog-post.css  |  Shared across all blog post pages
   ============================================================= */

/* ── RESET & TOKENS ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy:         #0a1a3a;
  --navy-dark:    #112a58;
  --steel:        #2e3b4e;
  --silver:       #9aa9bb;
  --platinum:     #eef2f6;
  --white:        #ffffff;
  --border-light: #dbe1e9;
  --text-primary: #1f2a3f;
  --text-soft:    #4f5a6f;
  --accent-gold:  #c7a02a;
  --transition:   all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --nav-height:   72px;
  --content-max:  860px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.65;
}


/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1rem;
}


/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 45px;
  height: auto;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--navy);
  transition: width 0.25s ease;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active-link::after {
  width: 100%;
}

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

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.5rem;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.09em;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-gold) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 26, 58, 0.97);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mobile-menu ul li {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu ul li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.mobile-menu.open ul li {
  opacity: 1;
  transform: none;
}

.mobile-menu.open ul li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open ul li:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open ul li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open ul li:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.open ul li:nth-child(5) { transition-delay: 0.25s; }

.mobile-menu ul li a {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 1.3rem 2rem;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu ul li a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu .mobile-cta {
  margin-top: 2rem;
  background: var(--white);
  color: var(--navy) !important;
  padding: 1rem 2.6rem !important;
  border-radius: 2px;
  font-weight: 600 !important;
  border-top: none !important;
}

.mobile-menu .mobile-cta:hover {
  background: var(--accent-gold) !important;
  color: var(--navy) !important;
}


/* ── POST HERO ── */
.post-hero {
  background: var(--platinum);
  padding: 4rem 7% 3.5rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Decorative geometric accent */
.post-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(199, 160, 42, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.post-category {
  display: inline-block;
  background: rgba(199, 160, 42, 0.12);
  color: var(--accent-gold);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.post-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--navy);
  margin-bottom: 1.4rem;
  max-width: 720px;
  line-height: 1.2;
}

.post-hero-desc {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 600px;
  margin-bottom: 1.8rem;
  line-height: 1.65;
  font-weight: 300;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--steel);
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-light);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.post-meta-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--silver);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.73rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumb-sep {
  color: var(--silver);
  font-size: 0.65rem;
}

.breadcrumb span {
  color: var(--accent-gold);
}


/* ── FEATURED IMAGE ── */
.featured-image-wrap {
  max-width: var(--content-max);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.featured-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 40px -12px rgba(10, 26, 58, 0.15);
}


/* ── POST BODY ── */
.blog-post-content {
  max-width: var(--content-max);
  margin: 3.5rem auto 5rem;
  padding: 0 1.5rem;
}

.post-body {
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 1.4rem;
}

.post-body strong {
  color: var(--navy);
  font-weight: 600;
}

.post-body h2 {
  font-size: 1.6rem;
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  color: var(--navy);
  border-left: 3px solid var(--accent-gold);
  padding-left: 1rem;
}

.post-body h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1.5rem 1.6rem;
}

.post-body li {
  margin-bottom: 0.55rem;
  padding-left: 0.3rem;
}

/* Pull Quote */
.pull-quote {
  background: var(--platinum);
  border-left: 3px solid var(--accent-gold);
  padding: 1.8rem 2.2rem;
  margin: 2.5rem 0;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.7;
  position: relative;
}

.pull-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Info Box */
.info-box {
  background: rgba(10, 26, 58, 0.04);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--navy);
  padding: 1.6rem 2rem;
  margin: 2rem 0;
  border-radius: 0 0 4px 4px;
}

.info-box-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Post Divider */
.post-divider {
  width: 50px;
  height: 2px;
  background: var(--border-light);
  margin: 3rem 0;
}


/* ── AUTHOR CARD ── */
.author-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--navy);
  margin: 3rem 0;
  background: var(--platinum);
  border-radius: 0 0 4px 4px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar svg {
  width: 30px;
  height: 30px;
  stroke: white;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.8;
}

.author-info {}

.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.author-role {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}

.author-bio {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}


/* ── RELATED POSTS ── */
.related-posts {
  max-width: var(--content-max);
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.related-posts-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.related-posts-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}

.related-posts-rule {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

.related-card {
  background: var(--white);
  padding: 1.8rem;
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.related-card:hover {
  background: var(--platinum);
  transform: translateY(-3px);
}

.related-tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  display: block;
}

.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.7rem;
  transition: color 0.2s;
}

.related-card:hover .related-title { color: var(--accent-gold); }

.related-excerpt {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.related-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 1rem;
  font-weight: 500;
  transition: gap 0.2s;
}

.related-arrow svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.related-card:hover .related-arrow { gap: 0.7rem; color: var(--accent-gold); }


/* ── PARTNERS STRIP ── */
#partners {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.partners-header {
  padding: 0 7% 2rem;
}

.partners-track-wrap {
  position: relative;
  overflow: hidden;
}

.partners-track-wrap::before,
.partners-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.partners-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.partners-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.partners-track {
  display: flex;
  gap: 1px;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.partners-track:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-slide {
  background: var(--white);
  border: 1px solid var(--border-light);
  width: 260px;
  height: 130px;
  flex-shrink: 0;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.partner-slide:hover { background: var(--platinum); }

.partner-logo {
  max-width: 180px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.partner-slide:hover .partner-logo { opacity: 1; }


/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: var(--silver);
  padding: 4rem 7% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1rem;
  max-width: 240px;
  line-height: 1.65;
}

.footer-col h5 {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.22);
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ── FADE ANIMATIONS ── */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.85s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade.in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .post-hero { padding: 3rem 5%; }
  .blog-post-content { padding: 0 5%; margin: 2.5rem auto 4rem; }
  .featured-image-wrap { padding: 0 5%; margin-top: 2rem; }
  .related-posts { padding: 0 5%; }
  .related-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .author-card { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .post-meta-line { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; }
  .partner-slide { width: 200px; height: 110px; }
  .partner-logo { max-width: 140px; }
}
