/* JudicAI Blog — Shared stylesheet
   Matches the homepage: charcoal/amber, Montserrat + Lora */

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

:root {
  --black:       #0c0c0c;
  --charcoal:    #141414;
  --charcoal-2:  #1c1c1c;
  --charcoal-3:  #242424;
  --charcoal-4:  #2e2e2e;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --text:        #f2ede6;
  --text-2:      rgba(242,237,230,0.65);
  --text-3:      rgba(242,237,230,0.35);
  --amber:       #e8a325;
  --amber-2:     #f0b840;
  --amber-dim:   rgba(232,163,37,0.12);
  --amber-glow:  rgba(232,163,37,0.2);
  --amber-border:rgba(232,163,37,0.22);
  --wa-green:    #25D366;
  --serif: 'Lora', Georgia, serif;
  --sans:  'Montserrat', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-2); }

/* ── NAV ── */
nav.blog-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--amber); }

.nav-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: #0c0c0c;
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 6px;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.nav-wa-btn:hover { background: var(--amber-2); color: #0c0c0c; transform: translateY(-1px); box-shadow: 0 4px 16px var(--amber-glow); }
.nav-wa-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── ARTICLE ── */
article {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 32px 60px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

article h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--text);
}

.article-meta {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.article-meta .dot { opacity: 0.5; }

article .lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 36px;
  font-style: italic;
  opacity: 0.92;
}

article h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 48px 0 16px;
  color: var(--text);
}

article h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 32px 0 12px;
  color: var(--text);
}

article p {
  margin-bottom: 18px;
  color: var(--text-2);
}

article p strong {
  color: var(--text);
  font-weight: 600;
}

article ul, article ol {
  margin: 18px 0 24px 24px;
  color: var(--text-2);
}
article li { margin-bottom: 10px; }
article li strong { color: var(--text); }

/* numbered steps — large */
.steps-list {
  list-style: none;
  margin: 32px 0;
  padding: 0;
}
.steps-list li {
  position: relative;
  padding: 20px 20px 20px 64px;
  margin-bottom: 14px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 8px;
  counter-increment: step;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 20px; top: 22px;
  width: 30px; height: 30px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  color: var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  font-family: var(--sans);
}
.steps-list { counter-reset: step; }
.steps-list li strong { display: block; margin-bottom: 4px; color: var(--text); }

/* callouts */
.callout {
  background: var(--charcoal);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--text-2);
}
.callout strong { color: var(--amber); display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.warning {
  background: rgba(226, 75, 74, 0.05);
  border-left: 3px solid #e24b4a;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--text-2);
}
.warning strong { color: #e24b4a; display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* table */
.law-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.law-table th, .law-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.law-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--charcoal);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.law-table td strong { color: var(--text); }

/* CTA box */
.cta-box {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  border: 1px solid var(--amber-border);
  border-radius: 10px;
  padding: 28px 28px;
  margin: 44px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute;
  top: -40%; left: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.cta-box p {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 18px;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--amber); color: #0c0c0c;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s;
}
.cta-btn:hover { background: var(--amber-2); color: #0c0c0c; transform: translateY(-1px); box-shadow: 0 6px 20px var(--amber-glow); }
.cta-btn svg { width: 16px; height: 16px; }

/* FAQ */
.faq-section { margin-top: 56px; }
.faq-section h2 { margin-bottom: 24px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.faq-item p {
  font-size: 15px;
  margin: 0;
  color: var(--text-2);
}

/* related posts */
.related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.related a {
  display: block;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s;
}
.related a:hover {
  border-color: var(--amber-border);
  background: var(--charcoal-2);
  color: var(--text);
  transform: translateY(-1px);
}

/* footer */
footer.blog-footer {
  margin-top: 80px;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
footer.blog-footer .footer-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
footer.blog-footer .footer-logo span { color: var(--amber); }
footer.blog-footer .footer-links {
  display: flex; justify-content: center; gap: 24px;
  margin: 14px 0;
}
footer.blog-footer .footer-links a { color: var(--text-2); font-size: 13px; }

/* sticky WhatsApp */
.sticky-wa {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--wa-green);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: transform 0.2s;
  color: #fff;
}
.sticky-wa:hover { transform: scale(1.08); color: #fff; }
.sticky-wa svg { width: 28px; height: 28px; }

/* ── BLOG INDEX ── */
.blog-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 32px 40px;
  text-align: center;
}
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-hero h1 span { color: var(--amber); }
.blog-hero p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

.posts-grid {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px;
  transition: all 0.25s;
  display: block;
  color: var(--text);
}
.post-card:hover {
  border-color: var(--amber-border);
  background: var(--charcoal-2);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.post-card .tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}
.post-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text);
}
.post-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 14px;
}
.post-card .read-more {
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* mobile */
@media (max-width: 720px) {
  nav.blog-nav { padding: 14px 20px; }
  article { padding: 100px 20px 40px; }
  article h1 { font-size: 30px; }
  article h2 { font-size: 24px; }
  .steps-list li { padding: 18px 18px 18px 58px; }
  .steps-list li::before { left: 16px; top: 20px; }
  .blog-hero { padding: 120px 20px 30px; }
  .posts-grid { padding: 0 20px 60px; }
}
