/* =========================================================
   Corretora Zeni Lima — estilos do site institucional
   Paleta: marfim + verde-esmeralda + bronze. Mobile first.
   ========================================================= */

:root {
  --ivory: #f6f1e8;        /* fundo principal */
  --paper: #fbf8f2;        /* cartões */
  --sand: #ede4d3;         /* seções alternadas */
  --emerald: #0f3d33;      /* cor principal */
  --emerald-2: #16503f;
  --emerald-ink: #0a2b24;  /* rodapé */
  --bronze: #b08d57;       /* filetes e detalhes (decorativo) */
  --bronze-text: #7a5a2b;  /* bronze para TEXTO sobre fundo claro (AA) */
  --champagne: #e3cfa4;    /* texto de destaque sobre o verde */
  --ink: #1e1e1c;          /* texto */
  --muted: #55534d;        /* texto secundário */
  --on-dark: #f6f1e8;
  --on-dark-muted: #c9d3cc;
  --line: rgba(15, 61, 51, 0.16);
  --line-dark: rgba(227, 207, 164, 0.28);
  --whatsapp: #1e7e4f;
  --whatsapp-hover: #176840;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(15, 61, 51, 0.06), 0 12px 32px -18px rgba(15, 61, 51, 0.28);
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: var(--emerald-2); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--emerald);
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 7.4vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 5.2vw, 2.6rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
em.accent { font-style: italic; color: var(--bronze-text); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--emerald); color: var(--on-dark); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bronze-text); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--bronze); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-hover); color: #fff; }
.btn-primary { background: var(--emerald); color: var(--on-dark); }
.btn-primary:hover { background: var(--emerald-2); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--emerald); border-color: var(--emerald); }
.btn-ghost:hover { background: var(--emerald); color: var(--on-dark); }
.btn-light { background: var(--ivory); color: var(--emerald); }
.btn-light:hover { background: #fff; color: var(--emerald); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 20px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--emerald); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; color: var(--emerald); }
.brand-sub { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-text); }
.nav { display: flex; gap: 22px; width: 100%; justify-content: flex-start; padding: 4px 0 2px; border-top: 1px solid var(--line); }
.nav a { font-size: 0.86rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--bronze-text); }
.nav .nav-wa { display: none; }

@media (min-width: 760px) {
  .nav { width: auto; border-top: 0; padding: 0; align-items: center; gap: 30px; }
  .nav .nav-wa {
    display: inline-flex; padding: 9px 16px; background: var(--emerald); color: var(--on-dark);
    border-radius: var(--radius);
  }
  .nav .nav-wa:hover { background: var(--emerald-2); color: var(--on-dark); }
}

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
.hero-text .lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.hero-actions .btn { flex: 1 1 220px; }
.seal {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius);
}
.seal-mark {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--bronze); display: grid; place-items: center;
  font-family: var(--serif); font-size: 0.72rem; color: var(--bronze-text); font-weight: 600; letter-spacing: .06em;
}
.seal strong { display: block; font-size: 0.95rem; color: var(--emerald); }
.seal span { font-size: 0.8rem; color: var(--muted); }
.hero-photo { position: relative; margin: 0; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -10px -14px 22px;
  background: var(--emerald); border-radius: var(--radius); z-index: 0;
}
.hero-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-photo figcaption {
  position: absolute; z-index: 2; left: -1px; bottom: 22px;
  background: var(--ivory); padding: 12px 18px; border-left: 3px solid var(--bronze);
  box-shadow: var(--shadow);
}
.hero-photo figcaption strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; color: var(--emerald); }
.hero-photo figcaption span { font-size: 0.78rem; color: var(--muted); letter-spacing: .04em; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 64px; padding-top: 72px; padding-bottom: 80px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-photo { max-width: 470px; justify-self: end; width: 100%; }
}

/* ---------- Faixa de credenciais ---------- */
.credentials { background: var(--emerald); color: var(--on-dark); }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cred { padding: 26px 16px 24px; border-bottom: 1px solid var(--line-dark); }
.cred:nth-child(odd) { border-right: 1px solid var(--line-dark); padding-left: 0; }
.cred:nth-child(n+3) { border-bottom: 0; }
.cred b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 5vw, 2.1rem); color: var(--champagne); line-height: 1.1; }
.cred span { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--on-dark-muted); line-height: 1.4; }
@media (min-width: 900px) {
  .cred-grid { grid-template-columns: repeat(4, 1fr); }
  .cred { border-bottom: 0; border-right: 1px solid var(--line-dark); padding: 34px 28px; }
  .cred:nth-child(odd) { padding-left: 28px; }
  .cred:first-child { padding-left: 0; }
  .cred:last-child { border-right: 0; }
}

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

/* Sobre */
.about-grid { display: grid; gap: 40px; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-photo::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(246, 241, 232, .7); border-radius: 2px; pointer-events: none;
}
.about-text p { color: var(--ink); }
.about-text .legal-line {
  font-size: 0.95rem; color: var(--muted); border-left: 2px solid var(--bronze); padding-left: 16px;
}
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--emerald); margin: 8px 0 0; }
.signature small { display: block; font-family: var(--sans); font-style: normal; font-size: 0.78rem; color: var(--bronze-text); letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
}

/* Serviços */
.cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.card { padding: 28px 0 30px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-content: start; }
.card .num { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--bronze-text); grid-row: span 2; font-weight: 300; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { grid-template-columns: 1fr; padding: 34px 0 36px; }
  .card .num { grid-row: auto; font-size: 2.6rem; margin-bottom: 14px; }
}

/* Como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: s; content: "0" counter(s);
  display: block; font-family: var(--serif); font-size: 3rem; font-weight: 300; line-height: 1; color: var(--bronze); margin-bottom: 14px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Faixa de chamada */
.cta-band { background: var(--emerald); color: var(--on-dark); padding: 60px 0; }
.cta-band .container { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--on-dark); margin: 0 0 8px; }
.cta-band p { color: var(--on-dark-muted); margin: 0; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1fr auto; gap: 48px; } }

/* Contato */
.contact-grid { display: grid; gap: 32px; }
.company-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); }
.company-card h3 { font-size: 1.35rem; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.company-data { margin: 0; display: grid; gap: 0; }
.company-data div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.company-data div:last-child { border-bottom: 0; }
.company-data dt { font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-text); }
.company-data dd { margin: 0; font-size: 0.98rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-side { display: grid; gap: 18px; align-content: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn { flex: 1 1 220px; }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-caption { font-size: 0.85rem; color: var(--muted); margin: 0; }
@media (min-width: 640px) { .company-data div { grid-template-columns: 190px 1fr; gap: 16px; align-items: baseline; } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; } .map iframe { height: 420px; } }

/* ---------- Rodapé (idêntico em todas as páginas) ---------- */
.site-footer { background: var(--emerald-ink); color: var(--on-dark-muted); padding: 52px 0 30px; font-size: 0.92rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--champagne); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand .brand-name { color: var(--on-dark); }
.footer-brand .brand-sub { color: var(--champagne); }
.footer-legal { line-height: 1.85; margin: 0 0 22px; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.footer-legal strong { color: var(--on-dark); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 22px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.footer-links span { color: var(--bronze); }
.copy { font-size: 0.82rem; margin: 0; color: var(--on-dark-muted); }

/* ---------- Páginas legais ---------- */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--ink); font-size: 1rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }
.legal .box { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--bronze); padding: 18px 20px; border-radius: var(--radius); }
.legal .box p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
