/* ============================================================
   IdentityShld.com — Global Stylesheet
   Light theme, content-first, mobile-first
   ============================================================ */

:root {
  --blue:       #1e40af;
  --blue-hover: #1d3a7a;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;
  --text:       #111827;
  --body:       #374151;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --bg:         #ffffff;
  --bg-alt:     #f9fafb;
  --radius:     8px;
  --maxw:       720px;
  --maxw-wide:  1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -.2px;
  flex-shrink: 0;
}

.nav-brand:hover { text-decoration: none; }

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

/* Mobile nav */
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 16px; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO (homepage)
   ============================================================ */

.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 60px 20px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  max-width: 660px;
  margin: 0 auto 16px;
  letter-spacing: -.5px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.btn:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

/* ============================================================
   ARTICLE GRID (homepage + blog index)
   ============================================================ */

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -.2px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .15s, border-color .15s;
  background: var(--bg);
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: #d1d5db;
  text-decoration: none;
}

.article-card .card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--blue);
}

.article-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}

.article-card .card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

.article-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-header {
  padding: 40px 0 0;
}

.article-category {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.3px;
  margin-bottom: 12px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 36px;
}

/* Body content */
.article-body {
  padding-bottom: 60px;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  letter-spacing: -.2px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.article-body strong { color: var(--text); }

/* CTA box inside article */
.article-cta {
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 28px 24px;
  margin: 36px 0;
  text-align: center;
}

.article-cta h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.article-cta p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 20px;
}

.article-cta .btn {
  display: inline-block;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
}

.back-link:hover { color: var(--blue); text-decoration: none; }

/* ============================================================
   DISCLOSURE / FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
}

.footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--blue); }

.footer-legal {
  max-width: var(--maxw-wide);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-legal p { margin-bottom: 8px; }
.footer-legal p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

/* ============================================================
   DISCLOSURE BAR (affiliate notice)
   ============================================================ */

.disclosure-bar {
  background: #fefce8;
  border-bottom: 1px solid #fde68a;
  padding: 8px 20px;
  font-size: 12px;
  color: #78716c;
  text-align: center;
}

/* ============================================================
   UTILITY
   ============================================================ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
