/* =============================================
   BUSINESS ASCENDER — Blog Styles
   ============================================= */

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

:root {
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-dark:   #1d4ed8;
  --navy:        #0a0f1e;
  --navy-mid:    #0f172a;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --gradient:    linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-text: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.12);
  --shadow-blue: 0 8px 40px rgba(37,99,235,.25);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; color: var(--gray-800); background: var(--white); overflow-x: hidden; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
  font-size: .9rem; text-decoration: none; transition: var(--transition);
  cursor: pointer; border: none; font-family: 'Inter', sans-serif; white-space: nowrap;
}
.btn--primary { background: var(--gradient); color: var(--white); box-shadow: var(--shadow-blue); }
.btn--primary:hover { opacity: .88; transform: translateY(-1px); }
.btn--white { background: var(--white); color: var(--blue-dark); font-weight: 700; }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--audit { background: rgba(37,99,235,.08); color: var(--blue); border: 1.5px solid rgba(37,99,235,.2); }
.btn--audit:hover { background: rgba(37,99,235,.14); }
.btn--sm { padding: 9px 18px; font-size: .82rem; }
.btn--lg { padding: 15px 32px; font-size: 1rem; }

.section { padding: 80px 0; }
.section--gray { background: var(--gray-50); }

.section__label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  background: rgba(37,99,235,.07); border: 1px solid rgba(37,99,235,.16);
  padding: 6px 14px; border-radius: 100px;
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(10,15,30,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; text-decoration: none; transition: var(--transition); }
.nav__logo:hover { opacity: .85; }
.logo-img { height: 56px; width: auto; mix-blend-mode: screen; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.8); transition: var(--transition); }
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav__mobile { display: none; flex-direction: column; background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,.07); padding: 16px 24px 24px; }
.nav__mobile a { text-decoration: none; color: rgba(255,255,255,.8); font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .95rem; }
.nav__mobile.open { display: flex; }

/* ---- BLOG HERO ---- */
.blog-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.blog-hero__inner { position: relative; z-index: 1; }
.blog-hero__inner .section__label { color: #93c5fd; background: rgba(147,197,253,.08); border-color: rgba(147,197,253,.2); margin-bottom: 20px; }
.blog-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: var(--white); margin-bottom: 16px; letter-spacing: -.02em; }
.blog-hero p { font-size: 1.1rem; color: rgba(255,255,255,.55); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ---- POST IMAGES ---- */
.post-image {
  width: 100%; height: 100%; border-radius: inherit;
  background-size: cover; background-position: center;
}
/* 1 — Sales process optimization */
.post-image--1 {
  background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=80');
  background-color: #1d4ed8;
}
/* 2 — Ideal customer profile / strategy */
.post-image--2 {
  background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1200&q=80');
  background-color: #0369a1;
}
/* 3 — LinkedIn B2B leads */
.post-image--3 {
  background-image: url('https://images.unsplash.com/photo-1563986768494-4dee2763ff3f?auto=format&fit=crop&w=1200&q=80');
  background-color: #0f766e;
}
/* 4 — CRM setup */
.post-image--4 {
  background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1200&q=80');
  background-color: #7c3aed;
}
/* 5 — Sales team scaling */
.post-image--5 {
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1200&q=80');
  background-color: #b45309;
}
/* 6 — B2B content marketing */
.post-image--6 {
  background-image: url('https://images.unsplash.com/photo-1432888498266-38ffec3eaf0a?auto=format&fit=crop&w=1200&q=80');
  background-color: #065f46;
}
/* 7 — B2B growth audit */
.post-image--7 {
  background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80');
  background-color: #1e3a5f;
}

/* ---- FEATURED POST ---- */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: var(--transition);
}
.featured-post:hover { box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.2); transform: translateY(-3px); }
.featured-post__image { min-height: 360px; }
.featured-post__content { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.featured-post__content h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700; color: var(--gray-800); margin: 14px 0 16px; line-height: 1.25;
}
.featured-post__content p { font-size: .97rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 28px; }

/* ---- POST META ---- */
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.15);
  padding: 3px 10px; border-radius: 100px;
}
.post-date, .post-read { font-size: .8rem; color: var(--gray-400); }
.post-date::before { content: '·'; margin-right: 12px; }

/* ---- POST AUTHOR ---- */
.post-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: var(--white); flex-shrink: 0; }
.post-author strong { display: block; font-size: .9rem; font-weight: 700; color: var(--gray-800); }
.post-author span { font-size: .78rem; color: var(--gray-400); }

/* ---- TOOLBAR ---- */
.blog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.blog-toolbar__title { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--gray-800); }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 7px 16px; border-radius: 100px; font-size: .82rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-600); transition: var(--transition); font-family: 'Inter', sans-serif;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---- POSTS GRID ---- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  color: inherit; transition: var(--transition); display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.2); transform: translateY(-3px); }
.post-card.hidden { display: none; }
.post-card__image { height: 180px; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--gray-800); line-height: 1.4; }
.post-card__body p { font-size: .87rem; color: var(--gray-600); line-height: 1.65; flex: 1; }
.post-read { font-size: .82rem; font-weight: 600; color: var(--blue); margin-top: auto; }

/* ---- BLOG CTA ---- */
.blog-cta { position: relative; background: var(--navy); padding: 96px 0; text-align: center; overflow: hidden; }
.blog-cta__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(37,99,235,.2) 0%, rgba(124,58,237,.1) 50%, transparent 80%); }
.blog-cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.blog-cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--white); }
.blog-cta p { font-size: 1.05rem; color: rgba(255,255,255,.55); max-width: 500px; line-height: 1.7; }

/* ---- FOOTER ---- */
.footer { background: var(--navy-mid, #0f172a); padding: 64px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand .nav__logo { color: var(--white); margin-bottom: 12px; }
.footer__brand p { font-size: .88rem; color: rgba(255,255,255,.4); line-height: 1.6; margin-top: 12px; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col strong { font-size: .83rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.footer__col a { font-size: .9rem; color: rgba(255,255,255,.55); text-decoration: none; transition: var(--transition); }
.footer__col a:hover { color: var(--white); }
.footer__bottom { padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: center; }
.footer__bottom span { font-size: .82rem; color: rgba(255,255,255,.3); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__image { min-height: 240px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-toolbar { flex-direction: column; align-items: flex-start; }
  .footer__links { grid-template-columns: 1fr; }
}

/* ---- ARTICLE PAGE ---- */
.article-hero { background: var(--navy); padding: 140px 0 64px; position: relative; overflow: hidden; }
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.article-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.article-hero .post-meta { margin-bottom: 20px; }
.article-hero .post-tag { color: #93c5fd; background: rgba(147,197,253,.08); border-color: rgba(147,197,253,.2); }
.article-hero .post-date, .article-hero .post-read { color: rgba(255,255,255,.4); }
.article-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 24px; letter-spacing: -.02em; }
.article-hero .post-author strong { color: var(--white); }
.article-hero .post-author span { color: rgba(255,255,255,.4); }

.article-cover { width: 100%; height: 400px; }
.article-cover .post-image { border-radius: 0; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; padding: 64px 0 96px; align-items: start; }

.article-body { max-width: 100%; }
.article-body h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--gray-800); margin: 40px 0 16px; }
.article-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--gray-800); margin: 28px 0 12px; }
.article-body p { font-size: 1rem; color: var(--gray-600); line-height: 1.85; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.article-body li { font-size: 1rem; color: var(--gray-600); line-height: 1.75; }
.article-body strong { color: var(--gray-800); font-weight: 600; }
.article-body blockquote {
  border-left: 4px solid var(--blue); padding: 16px 24px;
  background: rgba(37,99,235,.04); border-radius: 0 8px 8px 0;
  margin: 28px 0; font-size: 1.05rem; font-style: italic; color: var(--gray-700);
}
.article-body .callout {
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px 28px; margin: 28px 0;
}
.article-body .callout strong { display: block; margin-bottom: 8px; color: var(--blue); }
.article-divider { border: none; border-top: 1.5px solid var(--gray-200); margin: 40px 0; }

.article-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px 24px; }
.sidebar-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: .95rem; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-list a { font-size: .88rem; color: var(--gray-600); text-decoration: none; padding: 6px 10px; border-radius: 6px; display: block; transition: var(--transition); border-left: 2px solid transparent; }
.toc-list a:hover { color: var(--blue); background: rgba(37,99,235,.05); border-left-color: var(--blue); }
.toc-list a.active { color: var(--blue); background: rgba(37,99,235,.07); border-left-color: var(--blue); font-weight: 600; }

.sidebar-cta { background: var(--navy); border-color: rgba(37,99,235,.3); }
.sidebar-cta h4 { color: var(--white); }
.sidebar-cta p { font-size: .88rem; color: rgba(255,255,255,.55); margin-bottom: 16px; line-height: 1.6; }

.article-back { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--gray-600); text-decoration: none; margin-bottom: 48px; transition: var(--transition); }
.article-back:hover { color: var(--blue); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-cover { height: 240px; }
}
