/* =========================================================
   Edivânia Cristina Bolonhin — Advocacia
   Paleta: verde musgo + areia/dourado
   ========================================================= */

:root {
  --verde-900: #1c2417;
  --verde-800: #263120;
  --verde-700: #2f3d27;
  --verde-600: #435434;
  --dourado: #b68c4a;
  --dourado-claro: #d4b478;
  --areia: #f4efe3;
  --areia-escura: #e6dcc4;
  --branco: #ffffff;
  --texto: #2a2a22;
  --texto-claro: #6b6b5c;
  --borda: #ded4bc;

  --fonte-titulo: "Playfair Display", "Georgia", serif;
  --fonte-corpo: "Lato", "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --radius: 4px;
  --sombra: 0 10px 30px rgba(28, 36, 23, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fonte-corpo);
  color: var(--texto);
  background: var(--branco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  color: var(--verde-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--fonte-corpo);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dourado);
  margin-bottom: 0.9em;
}

.section {
  padding: 76px 0;
}

.section--areia { background: var(--areia); }
.section--verde {
  background: linear-gradient(160deg, var(--verde-800), var(--verde-900));
  color: var(--areia);
}
.section--verde h2, .section--verde h3 { color: var(--branco); }

.section-head {
  max-width: 680px;
  margin: 0 0 3rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--dourado);
  color: var(--verde-900);
}
.btn-primary:hover { background: var(--dourado-claro); }

.btn-outline {
  border-color: var(--branco);
  color: var(--branco);
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  border-color: var(--verde-800);
  color: var(--verde-800);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--verde-800); color: var(--branco); }

.btn-whatsapp {
  background: #25D366;
  color: #06210f;
}
.btn-whatsapp:hover { background: #1ebc59; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 36, 23, 0.97);
  backdrop-filter: blur(6px);
}
.header .container {
  padding-left: 32px;
  padding-right: 32px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text {
  font-family: var(--fonte-titulo);
  color: var(--branco);
  line-height: 1.15;
}
.brand-text strong { display: block; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-text span { display: block; font-size: 0.68rem; color: var(--dourado-claro); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--fonte-corpo); font-weight: 700; margin-top: 2px; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  color: var(--areia);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active { border-color: var(--dourado); color: var(--dourado-claro); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--branco);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--verde-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.main-nav.open { max-height: 400px; }
  nav.main-nav a { width: 100%; padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header { position: sticky; }
  .header-inner { position: relative; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--branco);
  background: var(--verde-900);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,26,16,0.92) 30%, rgba(20,26,16,0.55) 75%);
}
.hero-content {
  position: relative;
  max-width: 640px;
  padding: 60px 0;
}
.hero-content .eyebrow { color: var(--dourado-claro); }
.hero-content h1 { color: var(--branco); }
.hero-content p.lede {
  font-size: 1.15rem;
  color: rgba(244,239,227,0.9);
  max-width: 520px;
}
.hero-content p.lede-extra {
  font-size: 0.85rem;
  color: rgba(244,239,227,0.65);
  max-width: 520px;
  margin-top: -0.6em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1.6rem;
}
.hero-credenciais {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-credenciais div {
  border-left: 2px solid var(--dourado);
  padding-left: 14px;
  font-size: 0.85rem;
  color: rgba(244,239,227,0.85);
  max-width: 190px;
}
.hero-credenciais strong { display: block; color: var(--branco); font-family: var(--fonte-titulo); font-size: 1.05rem; }

/* ---------- Cards de área de atuação ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .contato-grid { grid-template-columns: 1.3fr 1fr; } }

.card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--sombra);
}
.card .num {
  font-family: var(--fonte-titulo);
  color: var(--dourado);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Bio / sobre ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .sobre-grid { grid-template-columns: 1fr; } }
.sobre-foto {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.sobre-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid var(--branco);
  outline: 1px solid var(--borda);
}
.sobre-grid p { line-height: 1.45; }

.lista-check { list-style: none; margin: 0; padding: 0; }
.lista-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.9em;
}
.lista-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dourado);
}

/* ---------- Faixa CTA ---------- */
.cta-band {
  background: var(--verde-900);
  color: var(--branco);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--branco); }
.cta-band p { color: rgba(244,239,227,0.85); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Galeria ---------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.galeria a { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); }
.galeria img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.4s ease; }
.galeria a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .galeria { grid-template-columns: 1fr; } }

/* ---------- Mapa / endereço ---------- */
.endereco-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
}
@media (max-width: 860px) { .endereco-box { grid-template-columns: 1fr; } }
.endereco-info {
  background: var(--verde-900);
  color: var(--areia);
  padding: 44px 40px;
}
.endereco-info h3 { color: var(--branco); }
.endereco-info .item { margin-bottom: 1.4em; }
.endereco-info .item strong { display: block; color: var(--dourado-claro); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3em; }
.mapa-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Blog / crédito rural ---------- */
.post {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--sombra);
}
.post .post-tag {
  display: inline-block;
  background: var(--areia-escura);
  color: var(--verde-800);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1em;
}
.post h2 { margin-bottom: 0.3em; }
.post .post-meta { color: var(--texto-claro); font-size: 0.85rem; margin-bottom: 1.6em; }
.post ul, .post ol { padding-left: 1.3em; }
.post li { margin-bottom: 0.5em; }
.post .fonte {
  font-size: 0.82rem;
  color: var(--texto-claro);
  border-top: 1px solid var(--borda);
  padding-top: 1em;
  margin-top: 1.6em;
}
.post .post-cta { margin-top: 1.8em; }
.aviso-oab {
  background: var(--areia);
  border-left: 3px solid var(--dourado);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--texto-claro);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6em 0;
}

/* ---------- Formulário de contato ---------- */
.form-box {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 44px;
  border: 1px solid var(--borda);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--verde-800);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  background: var(--areia);
  color: var(--texto);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--dourado);
  background: var(--branco);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.82rem; color: var(--texto-claro); margin-top: 10px; }

.contato-lateral .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contato-lateral .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--verde-900);
  color: var(--dourado-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contato-lateral .icon svg { width: 22px; height: 22px; }
.contato-lateral h3 { margin-bottom: 0.2em; }
.contato-lateral p { margin: 0; color: var(--texto-claro); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--verde-900);
  color: rgba(244,239,227,0.75);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--dourado-claro);
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1em;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 50%; }
.footer-brand strong { color: var(--branco); font-family: var(--fonte-titulo); font-size: 1.05rem; }
.footer-grid a { display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--dourado-claro); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(244,239,227,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--dourado); border-color: var(--dourado); color: var(--verde-900); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(244,239,227,0.15);
  padding-top: 22px;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Diagnóstico rápido (fluxo em etapas) ---------- */
.diag-container { max-width: 720px; }
.diag-intro {
  text-align: center;
  color: var(--texto-claro);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
}
.diag-progress {
  height: 6px;
  background: var(--areia-escura);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
}
.diag-progress-bar {
  height: 100%;
  width: 20%;
  background: var(--dourado);
  border-radius: 20px;
  transition: width 0.3s ease;
}
.diag-box {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 44px;
}
.diag-step .eyebrow { margin-bottom: 0.6em; }
.diag-step h2 { margin-bottom: 0.35em; }
.diag-sub { color: var(--texto-claro); margin-bottom: 1.8em; }
.diag-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.diag-option {
  text-align: left;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  background: var(--areia);
  color: var(--texto);
  font-family: var(--fonte-corpo);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.diag-option:hover { border-color: var(--dourado); background: var(--branco); }
.diag-option.selected {
  border-color: var(--dourado);
  background: var(--verde-900);
  color: var(--branco);
}
.diag-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 16px;
}
.diag-erro { color: #a33; font-size: 0.85rem; margin: -10px 0 16px; }
.diag-resumo {
  background: var(--areia);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.diag-resumo strong { display: block; margin-bottom: 0.6em; color: var(--verde-800); }
.diag-resumo-item { margin-bottom: 0.4em; color: var(--texto); }
.diag-resumo-item span { font-weight: 700; color: var(--verde-800); }
.diag-aviso {
  font-size: 0.82rem;
  color: var(--texto-claro);
  text-align: center;
  margin-top: 24px;
}
@media (max-width: 600px) {
  .diag-box { padding: 30px 22px; }
}

/* ---------- Página interna: título ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--verde-800), var(--verde-900));
  color: var(--branco);
  padding: 120px 0 64px;
  text-align: center;
}
.page-hero .eyebrow { color: var(--dourado-claro); }
.page-hero h1 { color: var(--branco); margin-bottom: 0.3em; }
.page-hero p { color: rgba(244,239,227,0.85); max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(244,239,227,0.6); margin-top: 0.6em; }
.breadcrumb a:hover { color: var(--dourado-claro); }
