/*
Theme Name: Erika Barros
Theme URI: https://erikabarros.com
Author: Erika Barros
Description: Tema próprio para o site institucional Erika Barros — Tecnologia e Engenharia, sem dependência de page builder.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: erika-barros
*/

:root {
  /* Paleta oficial (amostrada dos arquivos em assets/marca) */
  --bg: #ffffff;
  --bg-alt: #fbf6f1;
  --topbar-bg: #e6ddce; /* neutral */
  --terracota: #e2bca8; /* tertiary — bordas suaves */
  --terracota-dark: #ce6643; /* primary — links, CTA, destaques */
  --text: #211d18;
  --text-muted: #6b6459;
  --border: #e3dccb;
  --card-bg: #ffffff;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --bg-alt: #1e1a14;
    --topbar-bg: #241f18;
    --terracota: #e6a97d; /* secondary */
    --terracota-dark: #ffb59e; /* primary (dark scheme) */
    --text: #f3ede2;
    --text-muted: #b5ac9c;
    --border: #322c22;
    --card-bg: #211d17;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  background: var(--topbar-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (prefers-color-scheme: dark) {
  .brand-mark { filter: invert(1); }
}

nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }

nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.9rem;
  font-weight: 400;
}

nav a:hover { color: var(--terracota-dark); }

.hero {
  padding: 6rem 2rem 3.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.3;
  margin: 0 0 1.25rem;
}

.hero h1 em {
  font-style: normal;
  font-weight: 700;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  border: 1.5px solid var(--text);
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary:hover {
  background: var(--text);
  color: var(--bg);
}

.servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

.servico-card {
  border: 1px solid var(--terracota);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  background: var(--card-bg);
}

.servico-card h3 {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.6rem;
}

.servico-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-hint {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ferramentas, .sobre, .area-cliente, .sistemas, .contato {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.ferramentas, .area-cliente { background: var(--bg-alt); max-width: none; }
.ferramentas > *, .area-cliente > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.sobre p { color: var(--text-muted); max-width: 700px; }
.sobre .entry-content { color: var(--text-muted); max-width: 700px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.grid-vazio {
  color: var(--text-muted);
  font-style: italic;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.card-icon { font-size: 1.75rem; }

.card h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-grow: 1;
}

.card-cta {
  color: var(--terracota-dark);
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.parcerias {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  text-align: center;
}

.parcerias h2 { margin-bottom: 1.5rem; }

.parcerias-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.parceiro {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.contato p { color: var(--text-muted); }
.contato a { color: var(--terracota-dark); }

.social-list {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.social-icon:hover { border-color: var(--terracota); color: var(--terracota-dark); }

footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
