/* NIL for Texas Parents — blog styles
   Design tokens, nav and footer rules match index.html so pre-rendered
   article pages are visually identical to the site. */

:root {
  --navy: #1B3A6B;
  --navy-dark: #0F2347;
  --navy-mid: #243F72;
  --red: #BF0A30;
  --red-dark: #960820;
  --gold: #C8972A;
  --gold-light: #E8B84B;
  --white: #FFFFFF;
  --off-white: #F7F6F2;
  --cream: #EDE9DF;
  --text: #1A1A1A;
  --text-mid: #444;
  --text-light: #777;
  --border: #D0C9BA;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy-dark);
  border-bottom: 3px solid var(--red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-star { color: var(--gold); font-size: 1.3rem; letter-spacing: 3px; }
.nav-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 3px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; }

/* ─── ARTICLE HEADER ─── */
.post-hero {
  background: var(--navy-dark);
  padding: 120px 5% 64px;
  position: relative;
  border-bottom: 3px solid var(--red);
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 60px,
      rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px,
      rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
  pointer-events: none;
}
.post-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.post-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.post-eyebrow a { color: var(--gold); text-decoration: none; }
.post-eyebrow a:hover { color: var(--gold-light); text-decoration: underline; }
.post-eyebrow span.sep { color: rgba(255,255,255,0.3); }
h1.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.14;
  margin-bottom: 20px;
}
.post-standfirst {
  font-size: 1.12rem; line-height: 1.75;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
}
.post-byline {
  margin-top: 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.post-byline strong { color: rgba(255,255,255,0.75); font-weight: 600; }

/* ─── ARTICLE BODY ─── */
.post-wrap { max-width: 800px; margin: 0 auto; padding: 56px 5% 80px; }
.post-figure { margin: 0 0 44px; }
.post-figure img {
  display: block; width: 100%; height: auto;
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.14);
}
.post-body { font-size: 1.08rem; line-height: 1.82; color: var(--text-mid); }
.post-body p { margin-bottom: 24px; }
.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.28;
  margin: 48px 0 18px;
}
.post-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.12rem; font-weight: 600; letter-spacing: 0.4px;
  color: var(--navy);
  margin: 34px 0 14px;
}
.post-body ul, .post-body ol { margin: 0 0 24px 22px; }
.post-body li { margin-bottom: 10px; }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--red-dark); }

/* ─── BOOK CTA ─── */
.post-cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0D2040 100%);
  border-radius: 8px;
  padding: 44px 44px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--red), var(--gold));
}
.post-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--white);
  margin-bottom: 14px;
}
.post-cta p {
  font-size: 1rem; line-height: 1.72;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(191,10,48,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(191,10,48,0.45);
}

/* ─── RELATED ─── */
.related { background: var(--cream); padding: 72px 5%; border-top: 1px solid var(--border); }
.related-inner { max-width: 1100px; margin: 0 auto; }
.related h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 32px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 4px;
  padding: 26px 24px;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.09); }
.related-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem; font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.34;
  margin-bottom: 10px;
}
.related-card p { font-size: 0.88rem; line-height: 1.62; color: var(--text-light); }

/* ─── BLOG INDEX ─── */
.index-hero {
  background: var(--navy-dark);
  padding: 120px 5% 60px;
  border-bottom: 3px solid var(--red);
}
.index-hero-inner { max-width: 1100px; margin: 0 auto; }
.index-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900; color: var(--white);
  line-height: 1.1; margin-bottom: 18px;
}
.index-hero h1 em { font-style: italic; color: var(--gold-light); }
.index-hero p { font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,0.72); max-width: 640px; }
.index-list { max-width: 1100px; margin: 0 auto; padding: 60px 5% 80px; }
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.index-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 4px;
  padding: 28px 26px;
  text-decoration: none; display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.index-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.09); }
.index-card .date {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 12px;
}
.index-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.14rem; font-weight: 700;
  color: var(--navy-dark); line-height: 1.32; margin-bottom: 12px;
}
.index-card p { font-size: 0.9rem; line-height: 1.65; color: var(--text-light); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--red);
  padding: 60px 5% 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand .nav-star { display: block; margin-bottom: 12px; }
.footer-brand h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-section h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a,
.footer-section ul li span {
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-section ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .post-cta { padding: 34px 26px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
