/* ============================================================
   Cornerstone Protection Group — Blog stylesheet
   Mirrors the design tokens, nav, and footer of the main site
   (see index.html / about.html). Shared by /blog/index.html and
   every /blog/<slug>.html post so generated pages stay consistent.
   ============================================================ */

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

:root {
  /* Supportify GPT brand palette (teal). Token names kept; only values changed. */
  --navy:        #0F2A2E;
  --navy-deep:   #0A2422;
  --navy-mid:    #0B7E72;
  --navy-light:  #54666A;
  --gold:        #0E9C8C;
  --gold-light:  #1AC3B0;
  --gold-pale:   #E7F7F4;
  --cream:       #F1FAF8;
  --rule:        #E2EDEB;
  --white:       #FFFFFF;
  --font-body:   'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --font-display:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--navy-mid); }

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

/* ── NAV (verbatim from site) ──────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 245, 239, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { display: block; height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; color: var(--navy);
  opacity: 0.7; transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-cta { display: flex; align-items: center; }
.btn-primary {
  display: inline-block; background: var(--navy); color: white;
  border: none; padding: 14px 36px;
  font-family: var(--font-display); font-size: 11px;
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--navy-mid); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); }
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: 24px; gap: 20px; align-items: flex-start;
  }
  .nav-cta.open {
    display: block; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); padding: 0 24px 24px;
  }
}

/* ── PAGE HEADER (verbatim from about.html) ────────────── */
.page-header { background: var(--navy-deep); padding-top: 72px; }
.page-header-inner {
  max-width: 1160px; margin: 0 auto; padding: 64px 24px 60px;
  position: relative; overflow: hidden;
}
.page-header-inner::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
}
.page-header-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.page-header-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 400; color: white; line-height: 1.15; max-width: 760px;
}
.page-header-title em { font-style: italic; color: var(--gold-light); }
.page-header-rule {
  height: 1px; margin-top: 28px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent);
}

/* ── BREADCRUMB ────────────────────────────────────────── */
.breadcrumb {
  position: relative; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { margin: 0 8px; color: rgba(255,255,255,0.3); }

/* ── ARTICLE META (under the header) ───────────────────── */
.post-meta {
  position: relative; z-index: 1; margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.post-meta .cat {
  color: var(--navy-deep); background: var(--gold);
  padding: 4px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}

/* ── ARTICLE HERO IMAGE ────────────────────────────────── */
.post-hero {
  max-width: 980px;
  margin: -52px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.post-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 18px 50px rgba(10,30,51,0.22);
}
@media (max-width: 600px) { .post-hero { margin-top: -28px; } }

/* ── ARTICLE BODY ──────────────────────────────────────── */
.article { padding: 56px 0 96px; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-wrap p {
  font-size: 17px; line-height: 1.85; color: var(--navy);
  margin-bottom: 24px;
}
.article-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px); font-weight: 500; color: var(--navy);
  line-height: 1.25; margin: 52px 0 8px;
}
.article-wrap h2 + .gold-rule { margin: 14px 0 26px; }
.article-wrap h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 25px); font-weight: 600; color: var(--navy);
  margin: 38px 0 14px;
}
.gold-rule { width: 48px; height: 1.5px; background: var(--gold); margin: 20px 0 28px; }
.article-wrap ul, .article-wrap ol { margin: 0 0 26px 26px; }
.article-wrap li { font-size: 17px; line-height: 1.8; margin-bottom: 10px; color: var(--navy); }
.article-wrap a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 3px; }
.article-wrap a:hover { color: var(--gold); }
.article-wrap strong { color: var(--navy-deep); }
.article-wrap figure { margin: 32px 0; }
.article-wrap figure img { width: 100%; height: auto; display: block; border-radius: 2px; }
.article-wrap figcaption {
  font-size: 13px; color: var(--navy-light); margin-top: 10px; text-align: center;
}
.lead { font-size: 20px !important; line-height: 1.7 !important; color: var(--navy-deep) !important; }

blockquote {
  border-left: 3px solid var(--gold); background: var(--gold-pale);
  margin: 32px 0; padding: 22px 28px;
  font-family: var(--font-display); font-style: italic;
  font-size: 21px; line-height: 1.5; color: var(--navy-deep);
}

/* Key-takeaways / TL;DR box */
.key-points {
  background: var(--white); border: 1px solid var(--rule);
  border-left: 3px solid var(--gold); padding: 24px 28px; margin: 0 0 40px;
}
.key-points .kp-title {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.key-points ul { margin: 0 0 0 20px; }
.key-points li { font-size: 15px; margin-bottom: 8px; }

/* In-article CTA */
.cta-box {
  background: var(--navy-deep); color: var(--white);
  padding: 44px 40px; margin: 56px 0 0; text-align: center;
}
.cta-box h2 {
  font-family: var(--font-display); color: var(--white);
  font-size: clamp(24px, 3vw, 32px); font-weight: 400; margin: 0 0 12px;
}
.cta-box p { color: rgba(255,255,255,0.7) !important; max-width: 520px; margin: 0 auto 28px !important; }
.cta-box .btn-primary { background: var(--gold); color: var(--navy-deep); }
.cta-box .btn-primary:hover { background: var(--gold-light); }

/* Author / disclosure */
.disclosure {
  max-width: 760px; margin: 48px auto 0; padding: 0 24px;
  font-size: 12px; color: var(--navy-light); line-height: 1.7;
}

/* ── BLOG LISTING ──────────────────────────────────────── */
.listing { padding: 72px 0 96px; }
.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px;
}
.post-card {
  background: var(--white); border: 1px solid var(--rule);
  display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none; color: inherit;
}
.post-card:hover { box-shadow: 0 8px 30px rgba(10,30,51,0.10); transform: translateY(-3px); }
.post-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--navy); }
.post-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.post-card h2 {
  font-family: var(--font-display); font-size: 23px;
  font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: 12px;
}
.post-card p { font-size: 14px; color: var(--navy-light); line-height: 1.7; margin-bottom: 18px; }
.post-card .read {
  margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy-mid);
}
.post-card-date { font-size: 12px; color: var(--navy-light); margin-bottom: 14px; }
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } }

/* ── FOOTER (verbatim from site) ───────────────────────── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  margin-bottom: 48px; max-width: 1160px; margin-left: auto; margin-right: auto; padding: 0 24px;
}
.footer-brand-logo { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 20px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 300px; }
.footer-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.1); padding-top: 28px;
  max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 1px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold-light); }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── FADE-IN ───────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
