/*
Theme Name: Solvrs Blog
Description: Tema customizado do blog da Solvrs Solutions, replicando a identidade visual do site institucional (solvrs.com.br) — cores, tipografia e header/footer.
Author: LVX Digital
Version: 1.0
Text Domain: solvrs-blog
*/

:root {
  --color-navy-900: #00154a;
  --color-navy-700: #001f63;
  --color-blue-400: #5d8de3;
  --color-blue-300: #7da4ea;
  --color-blue-50: #eef2fc;
  --color-cream: #F4F1EA;
  --color-cream-soft: #FAF8F3;
  --color-white: #FFFFFF;
  --color-ink: #0E1726;
  --color-slate: #5B6678;
  --color-slate-soft: #8A93A3;
  --color-border: #E4E1D8;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-Variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Variable.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-VariableItalic.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-white);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container-x {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--color-navy-900);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container-x {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}
.site-logo img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: background-color 200ms, color 200ms;
}
.site-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.site-nav a.is-active { color: #fff; background: rgba(255,255,255,0.1); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 200ms;
  white-space: nowrap;
}
.header-cta:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 860px) {
  .site-nav { display: none; }
}

/* ── Blog hero ────────────────────────────────────────────── */
.blog-hero {
  background: var(--color-navy-900);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at top, rgba(125,164,234,0.18), transparent 60%);
  pointer-events: none;
}
.blog-hero .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue-300);
  position: relative;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0;
  position: relative;
}
.blog-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 42rem;
  margin-top: 0.75rem;
  position: relative;
}

/* ── Blog listing (index/archive/category) ───────────────── */
.blog-listing {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.post-card:hover {
  border-color: var(--color-navy-700);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -24px rgba(0,31,99,0.35);
}
.post-card .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-400);
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--color-ink);
}
.post-card p { color: var(--color-slate); margin: 0; font-size: 0.95rem; line-height: 1.6; }
.post-card time { color: var(--color-slate-soft); font-size: 0.82rem; }

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-slate);
}

/* ── Post único ───────────────────────────────────────────── */
.single-post { padding: clamp(3rem, 7vw, 5rem) 0; }
.single-post .post-header { max-width: 42rem; margin: 0 auto 2.5rem; }
.single-post .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue-400);
}
.single-post h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
}
.single-post .post-meta { color: var(--color-slate-soft); font-size: 0.85rem; }
.single-post .post-content {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-slate);
}
.single-post .post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-top: 2.5rem;
}
.single-post .post-content p { margin: 1em 0; }
.single-post .post-content a { color: var(--color-navy-700); text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  color: var(--color-navy-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--color-navy-900);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0;
  margin-top: 4rem;
}
.site-footer .container-x {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer img { height: 22px; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .rights { font-size: 0.8rem; color: rgba(255,255,255,0.45); width: 100%; margin-top: 1rem; }
