:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --ink: #1B1F2A;
  --ink-soft: #616a7a;

  --navy: #1E2A47;
  --gold: #B08D4F;
  --gold-soft: #F1E8D6;
  --line: rgba(27,31,42,0.1);
  --radius: 16px;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .logo { font-family: var(--font-display); letter-spacing: -0.01em; }

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

.tag, .section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--navy);
  background: var(--gold-soft);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.section-tag.light { background: rgba(255,255,255,0.12); color: #fff; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ================= NAVBAR ================= */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(248,247,244,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 1000; }
.nav-flex { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.15rem; font-weight: 600; }
.logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.nav-cta) { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.88rem; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero { padding: 150px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.18; font-weight: 600; margin: 0 0 20px; }
.hero p { color: var(--ink-soft); font-size: 1.02rem; max-width: 460px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(30,42,71,.25); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* assinatura animada */
.signature { max-width: 320px; }
.signature__svg { width: 100%; height: auto; }
.signature__svg path {
  fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: drawSignature 2.4s ease-out 0.4s forwards;
}
.signature__label { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); margin-top: -6px; }
@keyframes drawSignature { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .signature__svg path { animation: none; stroke-dashoffset: 0; } }

.hero-visual { display: flex; justify-content: center; }
.portrait-frame { position: relative; width: min(360px, 82vw); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(27,31,42,0.12); }
.portrait-frame img { width: 100%; height: 440px; object-fit: cover; display: block; }
.portrait-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 10px 16px;
  display: flex; flex-direction: column;
}
.portrait-badge strong { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.portrait-badge span { font-size: 0.75rem; color: var(--ink-soft); }

/* ================= ÁREAS ================= */
.areas { background: var(--surface); padding: 100px 0; }
.areas h2 { font-size: 2rem; margin: 0 0 40px; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.area-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.area-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(27,31,42,.08); border-color: var(--gold); }
.area-index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); display: block; margin-bottom: 12px; }
.area-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.area-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ================= PROCESSO / TIMELINE ================= */
.processo { padding: 100px 0; text-align: center; }
.processo h2 { font-size: 2rem; margin: 0 0 10px; }
.processo-desc { color: var(--ink-soft); margin-bottom: 56px; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: left; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 22px; left: 8%; right: 8%; height: 1px;
  background: var(--line);
}
.timeline-item { position: relative; }
.timeline-marker {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  margin-bottom: 18px; position: relative; z-index: 1;
}
.timeline-item h3 { font-size: 1rem; margin: 0 0 8px; }
.timeline-item p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; margin: 0; }

/* ================= SOBRE ================= */
.sobre { background: var(--surface); padding: 100px 0; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.sobre h2 { font-size: 1.9rem; }
.sobre-text p { color: var(--ink-soft); line-height: 1.7; }

.sobre-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sobre-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.sobre-card i { color: var(--gold); }

/* ================= CONTATO ================= */
.contato { background: var(--navy); color: #fff; padding: 100px 0; text-align: center; }
.contato-box { max-width: 460px; margin: auto; }
.contato h2 { font-size: 1.9rem; margin: 0 0 10px; }
.contato p { opacity: 0.75; margin-bottom: 30px; }

.contato input, .contato textarea {
  width: 100%; padding: 13px 14px; margin-bottom: 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff;
  font-family: var(--font-body); font-size: 0.95rem;
}
.contato textarea { min-height: 100px; resize: vertical; }
.contato input::placeholder, .contato textarea::placeholder { color: rgba(255,255,255,0.5); }
.contato input:focus, .contato textarea:focus { outline: none; border-color: var(--gold); }

.contato button {
  width: 100%; padding: 14px; border-radius: 10px; border: none;
  background: var(--gold); color: var(--navy); font-weight: 700; cursor: pointer;
  transition: transform .2s ease;
}
.contato button:hover { transform: translateY(-2px); }

/* ================= FOOTER ================= */
.footer { background: var(--ink); color: rgba(255,255,255,.6); text-align: center; padding: 30px; font-size: 0.85rem; }

/* ================= WHATSAPP ================= */
.whatsapp {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: #25d366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; z-index: 1000; box-shadow: 0 12px 28px rgba(0,0,0,.25);
  animation: float 2.5s infinite; transition: transform .3s ease;
}
.whatsapp:hover { transform: scale(1.08); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ================= RESPONSIVO ================= */
@media (max-width: 900px) {
  .hero-grid, .sobre-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p, .signature { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .areas-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .sobre-cards { grid-template-columns: 1fr; }

  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; right: 20px; background: var(--surface);
    border: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    gap: 16px; width: 210px; padding: 20px; border-radius: 14px;
    box-shadow: 0 20px 40px rgba(27,31,42,.12); display: none;
  }
  .nav-links.active { display: flex; }
}
