/* =========================================================
   Especialistas WordPress — Folha de Estilo Base
   especialistaswordpress.com.br
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Lora:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --wp-blue: #0073AA;
  --wp-blue-dark: #005177;
  --wp-blue-light: #E8F4FB;
  --ink: #0D1B2A;
  --ink-mid: #2C3E50;
  --ink-light: #5A6A7A;
  --cream: #F8F5EF;
  --cream-dark: #EDE9DF;
  --white: #FFFFFF;
  --gold: #C8860A;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Lora', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max: 1280px;
  --radius: 10px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--wp-blue); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0;
  font-family: var(--font-display); font-size: 14px;
  z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ── HEADER ──────────────────────────────────── */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--wp-blue);
  position: sticky; top: 0; z-index: 100;
}

.site-header .wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 66px;
}

.site-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px; height: 38px;
  background: var(--wp-blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: 17px; color: #fff; letter-spacing: -1px;
}

.logo-text strong {
  display: block;
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: #fff; line-height: 1.2;
}

.logo-text small {
  display: block;
  font-family: var(--font-display); font-size: 10px;
  font-weight: 400; color: #7A9ABB;
  letter-spacing: 0.07em; text-transform: uppercase;
}

.site-nav {
  display: flex; align-items: center; gap: 1.75rem;
}

.site-nav a {
  font-family: var(--font-display); font-size: 13px;
  font-weight: 600; color: #AABFCE;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--wp-blue);
}

.site-nav .nav-cta {
  background: var(--wp-blue); color: #fff !important;
  padding: 8px 18px !important; border-radius: 6px;
  border-bottom: none !important;
}

.site-nav .nav-cta:hover { background: var(--wp-blue-dark) !important; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--ink); color: #5A7A8A;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 1.5rem;
}

.footer-about p {
  font-size: 14px; line-height: 1.7;
  color: #4A6A7A; margin-top: .75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .875rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a {
  font-size: 14px; color: #4A6A7A;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  font-family: var(--font-display); font-size: 13px;
  color: #2A4A5A; flex-wrap: wrap; gap: .75rem;
}

.footer-bottom a { color: var(--wp-blue); }

/* ── BREADCRUMB ──────────────────────────────── */
.breadcrumb {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-light); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--wp-blue); }
.breadcrumb span { color: #AAB4BC; }

/* ── ARTICLE CONTENT ─────────────────────────── */
.article-content h2 {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; margin: 2.5rem 0 .875rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--cream-dark);
}

.article-content h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 700; color: var(--ink-mid);
  margin: 1.75rem 0 .6rem;
}

.article-content p {
  font-size: 17px; color: var(--ink-mid);
  line-height: 1.8; margin-bottom: 1.1rem;
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem; margin-bottom: 1.1rem;
}

.article-content li {
  font-size: 17px; color: var(--ink-mid);
  line-height: 1.7; margin-bottom: .4rem;
}

.article-content strong { color: var(--ink); }

.article-content a {
  color: var(--wp-blue);
  border-bottom: 1px solid rgba(0,115,170,.3);
}
.article-content a:hover { border-bottom-color: var(--wp-blue); }

/* ── CALLOUT / HIGHLIGHT ─────────────────────── */
.callout {
  background: var(--wp-blue-light);
  border-left: 4px solid var(--wp-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout strong { color: var(--wp-blue-dark); }
.callout p { font-size: 15px; color: var(--ink-mid); margin: .5rem 0 0; }

.callout-warn {
  background: #FEF9EC;
  border-left: 4px solid var(--gold);
}
.callout-warn strong { color: #8A5A00; }

/* ── TABLE ───────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }

table {
  width: 100%; border-collapse: collapse;
  font-size: 15px;
}

th {
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: 13px;
  font-weight: 600; text-align: left;
  padding: 12px 16px; letter-spacing: .03em;
}

td {
  padding: 11px 16px; color: var(--ink-mid);
  border-bottom: 1px solid var(--cream-dark);
}

tr:nth-child(even) td { background: #FDFBF7; }
tr:hover td { background: var(--wp-blue-light); }

/* ── FAQ ─────────────────────────────────────── */
.faq-list { margin: 0; }
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--ink);
  margin-bottom: .6rem;
}

.faq-a {
  font-size: 16px; color: var(--ink-mid);
  line-height: 1.75;
}

/* ── CARD GRID ───────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin: 1.5rem 0;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color .2s, transform .2s;
}

.card:hover {
  border-color: var(--wp-blue);
  transform: translateY(-2px);
}

.card h3 {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 700; color: var(--ink);
  margin-bottom: .5rem;
}

.card p { font-size: 14px; color: var(--ink-light); line-height: 1.6; }

/* ── STEP BLOCK ──────────────────────────────── */
.steps { margin: 1.5rem 0; }
.step {
  display: flex; gap: 1.25rem; margin-bottom: 1.5rem;
  align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--wp-blue); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px;
}
.step-body h3 {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--ink); margin-bottom: .4rem;
}
.step-body p { font-size: 15px; color: var(--ink-mid); line-height: 1.7; }
.step-body code {
  background: var(--ink); color: #7ECEF4;
  font-family: var(--font-mono); font-size: 13px;
  padding: 2px 7px; border-radius: 4px;
}

/* ── IN-PAGE NAV ─────────────────────────────── */
.in-page-nav {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.in-page-nav p {
  font-family: var(--font-display); font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-light); margin-bottom: .75rem;
}
.in-page-nav ol {
  padding-left: 1.25rem; margin: 0;
}
.in-page-nav li { margin-bottom: .3rem; }
.in-page-nav a {
  font-family: var(--font-display); font-size: 14px;
  color: var(--wp-blue); font-weight: 600;
  border-bottom: none;
}
.in-page-nav a:hover { text-decoration: underline; }

/* ── POST META ───────────────────────────────── */
.post-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.meta-chip {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--cream-dark); color: var(--ink-light);
  padding: 4px 10px; border-radius: 20px;
}
.meta-chip.cat {
  background: var(--wp-blue-light); color: var(--wp-blue-dark);
}

/* ── SIDEBAR WIDGET ──────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.widget-title {
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink);
  margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--cream-dark);
}

.related-post {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-bottom: .875rem; padding-bottom: .875rem;
  border-bottom: 1px solid var(--cream-dark);
}
.related-post:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.related-thumb {
  width: 64px; height: 52px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.related-post h4 {
  font-family: var(--font-display); font-size: 13px;
  font-weight: 600; color: var(--ink);
  line-height: 1.3; margin-bottom: 3px;
}
.related-post span {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-light);
}

/* ── NEWSLETTER INLINE ───────────────────────── */
.newsletter-box {
  background: var(--wp-blue); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: center;
}
.newsletter-box h3 {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; color: #fff; margin-bottom: .5rem;
}
.newsletter-box p {
  font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 1rem;
}
.newsletter-form {
  display: flex; gap: .5rem; flex-direction: column;
}
.newsletter-form input {
  padding: 12px 14px; border-radius: 8px; border: none;
  font-family: var(--font-body); font-size: 14px;
  color: var(--ink); outline: none;
}
.newsletter-form button {
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; padding: 12px; border: none;
  border-radius: 8px; cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--ink-mid); }

/* ── TAG CLOUD ───────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--cream); color: var(--ink-mid);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--cream-dark);
  cursor: pointer; transition: background .2s, color .2s;
}
.tag:hover {
  background: var(--wp-blue); color: #fff;
  border-color: var(--wp-blue);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
}
