/* =============================================
   Texas Data Guardians – Blog Stylesheet
   Theme: Cyber-Professional | Deep Navy + Red + Amber
   Mirrors: texasdataguardians.com/styles.css
   ============================================= */

:root {
  --navy:        #091728;
  --navy-mid:    #122742;
  --navy-light:  #1A3A5C;
  --blue:        #D7263D;   /* primary brand red — matches logo */
  --blue-light:  #E84860;
  --teal:        #0891B2;
  --amber:       #E87520;
  --amber-dark:  #C4601A;

  --white:       #FFFFFF;
  --off-white:   #F5F8FC;
  --gray-light:  #EBF1FA;
  --border:      #C4D4E8;
  --text:        #0E1D2F;
  --text-muted:  #4D6478;
  --text-light:  rgba(255,255,255,0.80);

  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(9,23,40,0.12);
  --shadow-md:   0 8px 32px rgba(9,23,40,0.18);
  --font:        'Nunito', sans-serif;
  --max-w:       1100px;
  --article-w:   740px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
  box-shadow: 0 4px 16px rgba(232,117,32,0.40);
}
.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  box-shadow: 0 6px 24px rgba(232,117,32,0.50);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
  padding: 0.55rem 1.3rem;
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #0B1D33 0%, var(--navy) 100%);
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  z-index: 100;
  padding: 0.55rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  line-height: 1;
}
.logo:hover { text-decoration: none; }
.logo-img-full {
  height: 64px;
  max-width: 280px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: #FF8A95; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--white);
  line-height: 0;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

/* ===== BLOG HERO ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #0D2540 100%);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(215,38,61,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(8,145,178,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; }

.blog-eyebrow {
  display: inline-block;
  background: rgba(255,138,149,0.10);
  border: 1px solid rgba(255,138,149,0.28);
  color: #FFB3BC;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.blog-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}
.blog-hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===== POSTS GRID (index page) ===== */
.posts-section {
  padding: 5rem 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.posts-section-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-tag {
  display: inline-block;
  background: rgba(215,38,61,0.08);
  color: var(--blue);
  padding: 0.22rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}

.post-card h2 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.post-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.4rem;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.post-meta-row span { display: flex; align-items: center; gap: 0.3rem; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  transition: gap 0.2s;
  width: fit-content;
}
.read-more:hover { gap: 0.65rem; text-decoration: none; }
.read-more svg { transition: transform 0.2s; }
.read-more:hover svg { transform: translateX(3px); }

/* ===== ARTICLE PAGE ===== */
.article-page {
  padding: 3.5rem 0 6rem;
  background: var(--white);
}
.article-wrap {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.article-back:hover { color: var(--blue); text-decoration: none; }

.article-tag {
  display: inline-block;
  background: rgba(215,38,61,0.08);
  color: var(--blue);
  padding: 0.22rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
  font-weight: 600;
}
.article-meta span { display: flex; align-items: center; gap: 0.35rem; }
.article-meta .author { color: var(--text); font-weight: 800; }

.article-ai-note {
  margin-top: 0.85rem;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
}

.article-header {
  padding-bottom: 2.5rem;
}

/* Article body typography */
.article-body { font-size: 1.04rem; line-height: 1.82; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.75rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--blue);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.article-body h3 {
  font-size: 1.07rem;
  font-weight: 800;
  color: var(--text);
  margin: 2rem 0 0.65rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-body li { margin-bottom: 0.55rem; }
.article-body strong { color: var(--text); font-weight: 800; }
.article-body a { color: var(--blue); font-weight: 700; }
.article-body a:hover { text-decoration: underline; }
.article-body code {
  background: var(--gray-light);
  border: 1px solid var(--border);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: 'Courier New', monospace;
  color: var(--navy);
}

/* Tip box (teal) */
.tip-box {
  background: #EFF9FB;
  border: 1px solid rgba(8,145,178,0.22);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
  font-size: 0.97rem;
  line-height: 1.7;
}
.tip-box strong { color: var(--teal); font-weight: 800; }

/* Warning box (amber) */
.warn-box {
  background: #FFF8EF;
  border: 1px solid rgba(232,117,32,0.22);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
  font-size: 0.97rem;
  line-height: 1.7;
}
.warn-box strong { color: var(--amber-dark); font-weight: 800; }

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 3rem 2.25rem;
  text-align: center;
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(215,38,61,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h2 {
  position: relative;
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.cta-box p {
  position: relative;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1.85rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.72;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--blue);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h5 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.footer-brand-row strong { color: var(--white); font-size: 1.1rem; }
.footer-brand p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.footer-contact { font-size: 0.93rem; line-height: 1.85; }
.footer-contact a { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-areas {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-fineprint { font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem 1.75rem;
    border-bottom: 2px solid var(--blue);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    gap: 1.1rem;
  }
  .nav-links.open { display: flex; }
  .navbar { position: relative; }

  .blog-hero { padding: 3rem 0 2.5rem; }
  .posts-section { padding: 3rem 0; }
  .posts-grid { grid-template-columns: 1fr; }

  .article-page { padding: 2.5rem 0 4rem; }
  .article-body h2 { font-size: 1.2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .logo-img-full { height: 48px; max-width: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-meta { gap: 0.75rem; font-size: 0.8rem; }
  .cta-box { padding: 2.25rem 1.5rem; }
}
