:root {
  --ink: #0a1622;
  --navy: #0e2032;
  --navy-2: #13293f;
  --navy-3: #1b3c5c;
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --card: #fbf9f4;
  --gold: #bd9647;
  --gold-2: #e4c67f;
  --gold-deep: #9c7a30;
  --text: #22303c;
  --text-muted: #5d6b78;
  --light: #eef1f5;
  --light-muted: #a7b6c6;
  --line: #ded6c6;
  --line-dark: rgba(228, 198, 127, 0.16);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max: 1180px;
  --gold-grad: linear-gradient(135deg, #e4c67f 0%, #bd9647 55%, #9c7a30 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Tipografia utilitária ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.eyebrow-mark { width: 26px; height: 1px; background: var(--gold); display: inline-block; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }

.section-index {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 18px;
}
.section-index.light { color: var(--gold-2); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--gold-deep); font-weight: 600; }
.section-title.light { color: var(--light); }
.section-title.light em { color: var(--gold-2); }

/* ---- Botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 2px; font-family: var(--font-body);
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold {
  background: var(--gold-grad); color: #21170a;
  box-shadow: 0 10px 26px -10px rgba(157, 122, 48, 0.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(157, 122, 48, 0.85); }
.btn-line-light { border-color: rgba(238, 241, 245, 0.4); color: var(--light); }
.btn-line-light:hover { background: var(--light); color: var(--navy); border-color: var(--light); }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0; background: rgba(11, 22, 34, 0.92);
  backdrop-filter: blur(10px); border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 58px; height: auto; transition: width 0.3s ease; }
.scrolled .brand-mark { width: 46px; }
.brand-word {
  display: flex; flex-direction: column; line-height: 1.06;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  color: var(--light); letter-spacing: 0.01em; white-space: nowrap;
}
.brand-word em {
  font-style: normal; color: var(--gold-2); font-weight: 500;
  font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase;
  font-family: var(--font-body);
}

.nav { display: flex; gap: 34px; }
.nav a {
  color: var(--light-muted); font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 4px 0; transition: color 0.2s ease;
}
.nav a .nav-idx { font-size: 0.66rem; color: var(--gold); margin-right: 4px; letter-spacing: 0.08em; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.28s ease;
}
.nav a:hover, .nav a.active { color: var(--light); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-cta { padding: 10px 22px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 6px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--light); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative; background: var(--navy); color: var(--light);
  padding: 168px 0 88px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(228, 198, 127, 0.14), transparent 60%),
    radial-gradient(800px 500px at -5% 110%, rgba(27, 60, 92, 0.6), transparent 60%),
    linear-gradient(165deg, var(--ink) 0%, var(--navy) 55%, var(--navy-2) 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px);
  background-size: 100% 46px; opacity: 0.5; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}
.hero-text .eyebrow { color: var(--gold-2); margin-bottom: 24px; }
.hero-text .eyebrow-mark { background: var(--gold-2); }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.15rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.015em;
  color: #fff; margin-bottom: 26px;
}
.hero-title em { font-style: italic; color: var(--gold-2); }
.hero-lead { color: var(--light-muted); font-size: 1.1rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note {
  color: var(--gold-2); font-size: 0.82rem; letter-spacing: 0.05em; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(228,198,127,0.18); }

.hero-photo { position: relative; justify-self: center; max-width: 380px; }
.hero-photo img {
  position: relative; z-index: 1; border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.75);
  filter: saturate(1.02);
}
.hero-photo-frame {
  position: absolute; z-index: 0; inset: -16px -16px 40px 24px;
  border: 1px solid var(--gold); border-radius: 4px; opacity: 0.7;
}
.hero-photo-cap {
  position: absolute; z-index: 2; left: -18px; bottom: 22px;
  background: rgba(10, 22, 34, 0.86); backdrop-filter: blur(6px);
  border-left: 2px solid var(--gold); padding: 12px 18px;
}
.hero-photo-cap strong { display: block; font-family: var(--font-display); color: #fff; font-size: 1.02rem; }
.hero-photo-cap span { display: block; color: var(--light-muted); font-size: 0.76rem; letter-spacing: 0.04em; }

.hero-scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid rgba(238,241,245,0.35); border-radius: 14px;
  display: none;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px;
  background: var(--gold-2); transform: translateX(-50%); animation: scrolldot 1.8s ease infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---- Ticker ---- */
.ticker {
  background: var(--ink); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  overflow: hidden; padding: 20px 0;
}
.ticker-track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { color: var(--light-muted); font-size: 0.9rem; letter-spacing: 0.03em; white-space: nowrap; }
.ticker-item b { color: var(--gold-2); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.ticker-dot { color: var(--gold); font-size: 0.6rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Sobre ---- */
.sobre { background: var(--paper); }
.sobre-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.sobre-head { position: sticky; top: 110px; }
.sobre-head .section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sobre-body p { color: var(--text-muted); margin-bottom: 20px; }
.sobre-lead { font-size: 1.15rem; color: var(--text) !important; }
.sobre-body strong { color: var(--text); }
.sobre-list { margin-top: 30px; border-top: 1px solid var(--line); }
.sobre-list li {
  padding: 14px 0 14px 30px; position: relative; color: var(--text); font-weight: 500;
  font-size: 0.95rem; border-bottom: 1px solid var(--line);
}
.sobre-list li::before {
  content: ''; position: absolute; left: 0; top: 21px; width: 12px; height: 1px; background: var(--gold);
}

/* ---- Serviços ---- */
.servicos { background: var(--paper-2); }
.servicos-head { max-width: 640px; margin-bottom: 52px; }
.servicos-lead { color: var(--text-muted); font-size: 1.05rem; margin-top: 18px; }
.servicos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.servico-card {
  background: var(--card); padding: 34px 28px 38px; position: relative;
  transition: background 0.3s ease, transform 0.3s ease; will-change: transform;
}
.servico-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.servico-card:hover { background: #fff; }
.servico-card:hover::before { transform: scaleX(1); }
.servico-num { font-family: var(--font-display); font-size: 0.9rem; color: var(--gold-deep); font-weight: 600; letter-spacing: 0.05em; }
.servico-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; margin: 12px 0 10px; color: var(--ink); line-height: 1.2; }
.servico-card p { color: var(--text-muted); font-size: 0.9rem; }
.servicos-note {
  margin: 36px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* ---- Método ---- */
.metodo { background: var(--navy); color: var(--light); }
.metodo-head { max-width: 620px; margin-bottom: 48px; }
.modelo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.modelo-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line-dark); padding: 36px 30px; border-radius: 4px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.modelo-card:hover { transform: translateY(-6px); border-color: rgba(228,198,127,0.4); }
.modelo-tag {
  display: inline-block; color: var(--gold-2); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.modelo-card h3 { font-family: var(--font-display); font-weight: 500; color: #fff; font-size: 1.35rem; margin-bottom: 14px; }
.modelo-card p { color: var(--light-muted); font-size: 0.94rem; }

.processo { margin-top: 72px; padding-top: 52px; border-top: 1px solid var(--line-dark); }
.processo-title { font-family: var(--font-display); font-style: italic; color: var(--gold-2); font-size: 1.25rem; margin-bottom: 34px; }
.processo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.processo-steps li { position: relative; padding-top: 8px; }
.processo-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--font-display); color: var(--gold-2); font-size: 1.1rem; margin-bottom: 18px;
}
.processo-steps h4 { font-family: var(--font-display); font-weight: 500; color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.processo-steps p { color: var(--light-muted); font-size: 0.9rem; }

/* ---- Autoridade ---- */
.autoridade { background: var(--ink); color: var(--light); padding: clamp(56px, 8vw, 92px) 0; }
.autoridade-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.autoridade-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-left: 1px solid var(--line-dark); padding-left: 20px; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--gold-2); line-height: 1; }
.stat-label { display: block; color: var(--light-muted); font-size: 0.82rem; margin-top: 10px; }
.autoridade-note .eyebrow { color: var(--gold-2); margin-bottom: 16px; }
.autoridade-note .eyebrow-mark { background: var(--gold-2); }
.autoridade-note p:last-child { color: var(--light-muted); font-size: 1rem; }
.autoridade-note strong { color: #fff; }

/* ---- Contato ---- */
.contato { background: var(--paper); }
.contato-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contato-lead { color: var(--text-muted); font-size: 1.05rem; margin: 18px 0 32px; max-width: 440px; }
.contato-channels { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); }
.channel {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line); transition: padding 0.25s ease, color 0.25s ease;
}
.channel:hover { padding-left: 12px; }
.channel-label { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.channel-value { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }

.contato-form {
  background: var(--card); border: 1px solid var(--line); padding: 36px;
  border-radius: 4px; box-shadow: 0 30px 60px -40px rgba(10,22,34,0.4);
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.contato-form label { font-size: 0.8rem; font-weight: 600; margin-bottom: 7px; color: var(--text); letter-spacing: 0.02em; }
.contato-form input, .contato-form select, .contato-form textarea {
  font-family: var(--font-body); padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 3px; font-size: 0.95rem; background: #fff; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contato-form input:focus, .contato-form select:focus, .contato-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189,150,71,0.15);
}
.contato-form textarea { resize: vertical; }
.form-hint { text-align: center; color: var(--text-muted); font-size: 0.78rem; margin-top: 14px; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: var(--light-muted); padding: 56px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; max-width: 340px; }
.footer-mark { width: 54px; height: auto; }
.footer-brand p { font-family: var(--font-display); color: var(--light); font-size: 1rem; }
.footer-meta { text-align: right; font-size: 0.85rem; }
.footer-meta p { margin-bottom: 6px; }
.footer-oab { color: var(--gold-2); font-weight: 600; letter-spacing: 0.04em; }
.footer-fine { color: #6b7d8e; font-size: 0.76rem; max-width: 420px; margin-left: auto; }
.footer-copy { color: #566878; font-size: 0.78rem; margin-top: 10px; }

/* ---- WhatsApp flutuante ---- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transform: translateY(90px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.25s ease;
}
.wa-float.show { transform: translateY(0); opacity: 1; }
.wa-float:hover { box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.8); }
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---- Reveal (intencional, discreto) ---- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---- Responsivo ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { order: -1; max-width: 320px; }
  .hero-scroll { display: none; }
  .sobre-grid { grid-template-columns: 1fr; gap: 32px; }
  .sobre-head { position: static; }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .modelo-grid { grid-template-columns: 1fr; }
  .processo-steps { grid-template-columns: 1fr; gap: 28px; }
  .autoridade-inner { grid-template-columns: 1fr; gap: 40px; }
  .contato-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; gap: 0; background: var(--navy); padding: 96px 32px 32px;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
    border-left: 1px solid var(--line-dark); z-index: 99;
  }
  .nav.nav-open { transform: translateX(0); }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; z-index: 100; }
  .servicos-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .footer-fine, .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .hero-scroll span, .wa-float::after { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .modelo-card, .servico-card, .channel { transition: none; }
}
