/* Article styles — Delmas Expertise blog */

.article-header {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201,165,92,0.08), transparent 60%),
    linear-gradient(135deg, #FAFBFC, #F0F4F8);
  padding: 60px 24px 50px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-nav { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .current { color: var(--text-2); font-weight: 500; }

.article-meta { display: flex; gap: 18px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.article-category {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.article-excerpt {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 32px;
  font-style: italic;
}

.article-author {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}
.author-name { font-weight: 600; color: var(--text); }
.author-role { font-size: 13px; color: var(--muted); }

.article-content { padding: 50px 24px 80px; }

.article-toc {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.article-toc .toc-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.article-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 24px;
}
.article-toc ol li {
  counter-increment: toc;
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}
.article-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 13px;
}
.article-toc a {
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.15s;
}
.article-toc a:hover { color: var(--primary); }

.article-body { color: var(--text); font-size: 17px; line-height: 1.8; }
.article-body p.lead-paragraph {
  font-size: 19px;
  color: var(--text-2);
  font-weight: 400;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text);
  margin: 48px 0 18px;
  padding-top: 16px;
  scroll-margin-top: 80px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--primary);
  margin: 32px 0 12px;
  font-weight: 700;
}
.article-body p { margin-bottom: 18px; color: var(--text-2); }
.article-body ul, .article-body ol { margin: 18px 0 22px 24px; padding-left: 8px; }
.article-body ul li, .article-body ol li { margin-bottom: 10px; color: var(--text-2); line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(31,78,121,0.3); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.article-body a:hover { text-decoration-color: var(--primary); }

.callout {
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 30px 0;
  border-left: 4px solid var(--primary);
  background: rgba(31,78,121,0.04);
}
.callout strong { color: var(--primary); font-size: 15px; }
.callout-primary { border-left-color: var(--primary); background: rgba(31,78,121,0.04); }
.callout-gold { border-left-color: var(--gold); background: rgba(201,165,92,0.06); }
.callout-gold strong { color: #8A6E2C; }
.callout p { margin: 0; color: var(--text-2); }

.article-faq {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}
.article-faq h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 28px;
  color: var(--text);
}

.article-cta {
  margin: 60px 0 50px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  color: white;
  font-size: 26px;
  margin-bottom: 12px;
}
.article-cta p { color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.article-cta .btn-primary {
  background: white;
  color: var(--primary) !important;
}
.article-cta .btn-primary:hover {
  background: var(--gold);
  color: white !important;
}

.related-articles {
  margin-top: 50px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}
.related-articles h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 28px;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.related-card {
  display: block;
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: all 0.25s ease;
  color: inherit;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.related-meta {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.related-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.related-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.related-link { color: var(--primary); font-weight: 600; font-size: 14px; }

@media (max-width: 600px) {
  .article-header { padding: 40px 20px 36px; }
  .article-content { padding: 30px 20px 60px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 24px; margin: 36px 0 14px; }
  .article-body h3 { font-size: 19px; }
  .article-toc { padding: 18px 20px; }
  .article-toc ol { grid-template-columns: 1fr; }
  .article-cta { padding: 30px 22px; }
}
