:root {
  --bg: #ffffff;
  --fg: #141414;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --alt-bg: #f6f5f2;
  --accent: #8a9a86;        /* verde-sálvia discreto — troque aqui pra mudar o acento */
  --accent-dark: #6f7d6b;
  --radius: 12px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-intro {
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 30;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  margin-right: 8px;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.22s ease;
}

.nav a:hover { color: var(--fg); }
.nav a:hover::after { width: 100%; }

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

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--fg);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

.btn-primary:hover {
  background: var(--bg);
  color: var(--fg);
  transform: translateY(-2px);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.9rem;
  background: var(--fg);
  color: var(--bg);
  white-space: nowrap;
}

.btn-small:hover {
  background: var(--bg);
  color: var(--fg);
}

/* Hero */
.hero {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-text { max-width: 560px; }

.hero-photo {
  position: relative;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  z-index: 0;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  filter: grayscale(100%);
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-photo { order: -1; }
  .hero-photo::before { inset: 12px -12px -12px 12px; }
  .hero-photo img { max-height: 440px; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.12rem;
  margin-bottom: 34px;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--alt-bg);
}

.section h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.section-cta {
  background: var(--fg);
  color: var(--bg);
  text-align: center;
}

.section-cta h2 { color: var(--bg); }
.section-cta h2::after { left: 50%; transform: translateX(-50%); }
.section-cta p { color: #d8d8d8; }
.section-cta .btn-primary {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--bg);
}
.section-cta .btn-primary:hover {
  background: transparent;
  color: var(--bg);
}

.cta-inner { max-width: 560px; margin: 0 auto; }

/* Colunas (Atendimento) */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 640px) {
  .cols { grid-template-columns: 1fr; }
}

/* Como funciona — passos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
}

.step {
  padding: 8px 4px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Áreas de atuação — cards com hover */
.grid-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.grid-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .grid-list { grid-template-columns: 1fr 1fr; }
}

.area-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  cursor: default;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.area-title {
  font-weight: 600;
  font-size: 1.02rem;
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.area-text {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e6e6e6;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.area-card:hover,
.area-card:focus,
.area-card:focus-within {
  background: var(--fg);
  border-color: var(--fg);
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.2);
  outline: none;
}

.area-card:hover .area-title,
.area-card:focus .area-title,
.area-card:focus-within .area-title { opacity: 0; transform: translateY(-6px); }

.area-card:hover .area-text,
.area-card:focus .area-text,
.area-card:focus-within .area-text { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .area-text { font-size: 0.76rem; padding: 14px; }
  .area-card { min-height: 118px; }
}

/* Formação (seção Sobre) */
.formacao-title {
  margin-top: 36px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--accent-dark);
}

.formacao-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 620px;
}

.formacao-list li {
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.formacao-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

.atendimento-cta {
  margin-top: 36px;
}

/* FAQ */
.faq {
  max-width: 720px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  color: var(--fg);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-dark);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 0 20px;
  margin: 0;
  max-width: 640px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  text-align: center;
}

.footer p { margin: 0 0 6px; }
.footer a { color: var(--accent-dark); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.fine-print { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  text-decoration: none;
  z-index: 40;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

/* Animação de entrada (reveal) */
.reveal {
  opacity: 0;
  transform: translateY(55px);
  transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Variantes de direção (hero) */
.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Cascata — cada filho entra em sequência (atraso vem do JS) */
[data-stagger] > * { opacity: 0; }

[data-stagger].in-view > * {
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(45px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-stagger] > * { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* Marcadores de placeholder — remover quando o conteúdo real entrar */
.placeholder,
.placeholder-note {
  color: #b3261e;
  font-weight: 600;
}

.placeholder-block {
  border: 1px dashed #b3261e;
  background: #fff5f4;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #7a1f1a;
}
