/*
 * NY Insurance Consultant — Blog Stylesheet
 * Phase 4 · March 2026
 * Requires: style.css (loaded first)
 */

/* ── Blog Hero ──────────────────────────────────────────────────── */
.blog-hero {
  background: var(--ink);
  padding: 140px 0 72px;
  position: relative; overflow: hidden;
}
.blog-hero__top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 60%, var(--green) 100%);
  background-size: 200% 100%;
  animation: barShift 6s linear infinite;
}
@keyframes barShift { 0%{background-position:0 0} 100%{background-position:200% 0} }
.blog-hero__bread {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px;
  color: rgba(255,255,255,.4); margin-bottom: 20px;
}
.blog-hero__bread a { color: var(--green); }
.blog-hero__bread span { color: rgba(255,255,255,.2); }
.blog-hero__cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--green); color: var(--ink);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.blog-hero__h1 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 4.5vw, 60px); line-height: 1; letter-spacing: -.01em;
  color: var(--white); margin-bottom: 18px; max-width: 860px;
}
.blog-hero__h1 span { color: var(--green); }
.blog-hero__meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}
.blog-hero__meta strong { color: rgba(255,255,255,.75); font-weight: 600; }
.blog-hero__lede {
  font-family: var(--font-body); font-size: 18px;
  color: rgba(255,255,255,0.85); max-width: 720px; line-height: 1.72;
}
.blog-hero__lede strong { color: var(--white); }

/* ── Article Layout ─────────────────────────────────────────────── */
.article-wrap { padding: 72px 0 96px; background: var(--white); }
.article-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px; align-items: start;
}

/* ── Article Body ───────────────────────────────────────────────── */
.article-body h2 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -.01em;
  color: var(--ink); margin: 44px 0 14px; padding-top: 8px;
  border-top: 3px solid var(--green-light);
}
.article-body h2:first-child { margin-top: 0; border-top: none; }
.article-body h2 span { color: var(--green); }
.article-body h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 20px; letter-spacing: .02em; color: var(--ink); margin: 28px 0 8px;
}
.article-body p {
  font-family: var(--font-body); font-size: 16px; color: var(--mid);
  line-height: 1.82; margin-bottom: 18px;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body p a { color: var(--green); text-decoration: underline; }
.article-body p a:hover { color: var(--green-dark); }
.article-body ul, .article-body ol {
  margin: 4px 0 20px; padding: 0; list-style: none;
}
.article-body ul li, .article-body ol li {
  font-family: var(--font-body); font-size: 15px; color: var(--mid);
  line-height: 1.72; padding: 8px 0 8px 28px;
  position: relative; border-bottom: 1px solid var(--border);
}
.article-body ul li:last-child, .article-body ol li:last-child { border-bottom: none; }
.article-body ul li::before {
  content: ''; position: absolute; left: 2px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.article-body ol { counter-reset: ol-count; }
.article-body ol li { counter-increment: ol-count; }
.article-body ol li::before {
  content: counter(ol-count);
  position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: var(--ink);
  font-family: var(--font-display); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.article-body ul li strong, .article-body ol li strong { color: var(--ink); }

/* ── Article callout boxes ──────────────────────────────────────── */
.callout {
  border-radius: var(--radius-lg); padding: 24px 28px; margin: 28px 0;
  border-left: 4px solid;
}
.callout--green  { background: var(--green-light); border-color: var(--green); }
.callout--blue   { background: var(--blue-light);  border-color: var(--blue); }
.callout--warn   { background: #FEF9EC; border-color: #F59E0B; }
.callout--red    { background: #FEF2F2; border-color: #EF4444; }
.callout__title {
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
}
.callout--green .callout__title { color: var(--green-dark); }
.callout--blue  .callout__title { color: var(--blue-dark); }
.callout--warn  .callout__title { color: #92400E; }
.callout--red   .callout__title { color: #991B1B; }
.callout p {
  font-family: var(--font-body); font-size: 14px; line-height: 1.7; margin: 0 !important;
}
.callout--green p { color: var(--green-dark); }
.callout--blue  p { color: var(--blue-dark); }
.callout--warn  p { color: #78350F; }
.callout--red   p { color: #7F1D1D; }

/* ── Article data table ─────────────────────────────────────────── */
.art-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-family: var(--font-body); font-size: 14px; }
.art-table th { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; padding: 12px 16px; text-align: left; }
.art-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--mid); vertical-align: top; }
.art-table tr:nth-child(even) td { background: var(--surface); }
.art-table td strong { color: var(--ink); }

/* ── Article CTA strip ──────────────────────────────────────────── */
.article-cta {
  background: var(--ink); border-radius: var(--radius-xl);
  padding: 36px 40px; margin: 44px 0;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.article-cta__text { flex: 1; }
.article-cta__title {
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  text-transform: uppercase; color: var(--white); letter-spacing: .02em; margin-bottom: 6px;
}
.article-cta__sub { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.5; }
.article-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Author box ─────────────────────────────────────────────────── */
.author-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; margin-top: 48px;
  display: flex; align-items: flex-start; gap: 20px;
}
.author-box__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: var(--ink);
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-box__name { font-family: var(--font-display); font-size: 18px; font-weight: 800; text-transform: uppercase; color: var(--ink); letter-spacing: .02em; }
.author-box__role { font-family: var(--font-body); font-size: 12px; color: var(--green); margin: 2px 0 10px; }
.author-box__bio { font-family: var(--font-body); font-size: 14px; color: var(--mid); line-height: 1.65; }

/* ── Related articles ───────────────────────────────────────────── */
.related { background: var(--surface); padding: 72px 0; }
.related__title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 3.5vw, 40px); color: var(--ink); margin-bottom: 36px; line-height: 1;
}
.related__title span { color: var(--green); }
.related__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.rel-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .22s var(--ease);
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.rel-card__img { height: 160px; background-size: cover; background-position: center; position: relative; }
.rel-card__cat {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--green); color: var(--ink); padding: 3px 10px; border-radius: 4px;
}
.rel-card__body { padding: 20px; }
.rel-card__date { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.rel-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); line-height: 1.25; margin-bottom: 10px; }
.rel-card__link { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }

/* ── Blog sidebar ───────────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 100px; }
.bs-card {
  background: var(--ink); border-radius: var(--radius-xl);
  padding: 24px; margin-bottom: 16px;
}
.bs-card--light { background: var(--surface); border: 1px solid var(--border); }
.bs-card__title {
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  text-transform: uppercase; color: var(--white); letter-spacing: .02em; margin-bottom: 5px;
}
.bs-card--light .bs-card__title { color: var(--ink); }
.bs-card__sub { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.72); margin-bottom: 16px; }
.bs-card--light .bs-card__sub { color: var(--mid); }
.bs-links { display: flex; flex-direction: column; gap: 3px; }
.bs-links a {
  font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.88);
  padding: 7px 10px; border-radius: var(--radius);
  transition: all .2s; display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.bs-links a:hover { background: rgba(107,191,69,.15); color: var(--green); }
.bs-links a::before { content: '→'; font-size: 11px; opacity: .7; flex-shrink:0; }
.bs-card--light .bs-links a { color: var(--ink); font-weight: 500; }
.bs-card--light .bs-links a:hover { color: var(--green); background: var(--green-light); }
.bs-phone { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: var(--green); letter-spacing: -.01em; display: block; margin-bottom: 3px; }
.bs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bs-tag {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  background: var(--surface-2); color: var(--mid);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 10px;
  transition: all .15s;
}
.bs-tag:hover { background: var(--green-light); border-color: rgba(107,191,69,.25); color: var(--green-dark); }

/* ── Blog index ─────────────────────────────────────────────────── */
.blog-index { padding: 80px 0; background: var(--surface); }
.blog-index__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card-full {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .22s var(--ease); display: flex; flex-direction: column;
}
.blog-card-full:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-card-full__img { height: 200px; background-size: cover; background-position: center; position: relative; flex-shrink: 0; }
.blog-card-full__cat { position: absolute; top: 14px; left: 14px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--green); color: var(--ink); padding: 4px 10px; border-radius: 4px; }
.blog-card-full__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-full__date { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.blog-card-full__title { font-family: var(--font-display); font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); line-height: 1.2; margin-bottom: 8px; }
.blog-card-full__excerpt { font-family: var(--font-body); font-size: 13px; color: var(--mid); line-height: 1.65; margin-bottom: 14px; flex: 1; }
.blog-card-full__link { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.blog-card-full--featured { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; }
.blog-card-full--featured .blog-card-full__img { height: auto; min-height: 300px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .blog-card-full--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .blog-card-full--featured .blog-card-full__img { min-height: 200px; }
}
@media (max-width: 768px) {
  .blog-index__grid { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; padding: 24px; }
  .author-box { flex-direction: column; }
}
