/* ==========================================================
   Fabiano Santana | Advocacia Trabalhista Especializada
   CSS puro - compatível com qualquer hospedagem (HostGator)
   ========================================================== */

:root {
  --navy: #0b1d33;
  --navy-2: #12304f;
  --gold: #b08d57;
  --gold-2: #c9a76d;
  --paper: #f6f3ee;
  --white: #ffffff;
  --text: #2b3440;
  --muted: #6b7684;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(11, 29, 51, .12);
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: transparent; color: var(--gold-2); transform: translateY(-2px); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
  margin: 0 0 14px;
}
.eyebrow.dark { color: var(--gold); }

.divider { width: 64px; height: 2px; background: var(--gold); margin: 18px 0 26px; }
.divider.center { margin-inline: auto; }

/* ---------- Espaços de imagem ---------- */
.img-slot { position: relative; overflow: hidden; background: var(--navy-2); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }

/* Quando a imagem ainda não foi colocada, mostra um aviso */
.img-slot.is-empty img { display: none; }
.img-slot.is-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px),
    var(--navy-2);
  border: 2px dashed rgba(201, 167, 109, .6);
}
.img-slot.is-empty::after {
  content: "COLOQUE O LINK DA SUA IMAGEM AQUI\A(" attr(data-label) ")";
  white-space: pre-wrap;
  padding: 20px;
  color: var(--gold-2);
  font-size: .8rem;
  letter-spacing: .1em;
  font-weight: 500;
  line-height: 1.6;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(11, 29, 51, .55);
  backdrop-filter: blur(6px);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 4px 20px rgba(0,0,0,.25); }

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; }

.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-title); font-size: 1.7rem; font-weight: 700; color: var(--white); letter-spacing: .02em; }
.logo-sub { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; }

.nav ul { display: flex; gap: 34px; }
.nav a {
  position: relative;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); padding: 8px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .3s;
}
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,29,51,.92) 0%, rgba(11,29,51,.7) 55%, rgba(11,29,51,.35) 100%); }
.hero-content { position: relative; z-index: 2; padding: 140px 0 160px; max-width: 760px; margin-left: max(4%, calc((100% - 1180px) / 2)); }
.hero h1 { color: var(--white); font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 700; margin-bottom: .2em; }
.hero-text { font-size: 1.15rem; font-weight: 300; max-width: 560px; margin: 0 0 36px; color: rgba(255,255,255,.9); }

/* ---------- Pilares ---------- */
.pillars { position: relative; z-index: 5; margin-top: -90px; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow); }
.pillar { padding: 40px 28px; text-align: center; border-right: 1px solid #ece7de; }
.pillar:last-child { border-right: 0; }
.pillar-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.pillar-icon svg { width: 26px; height: 26px; fill: var(--gold); }
.pillar h3 { font-size: 1.5rem; }
.pillar p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* ---------- Seções ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 70px; align-items: center; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media { position: relative; }
.about-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.about-text h2 span { display: block; font-size: .55em; color: var(--gold); font-weight: 600; margin-top: 6px; }
.about-text p { margin: 0 0 18px; }

.stats { display: flex; gap: 40px; margin-top: 34px; padding-top: 30px; border-top: 1px solid #e6e0d4; }
.stat strong { display: block; font-family: var(--font-title); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.stat span { display: block; font-size: .82rem; color: var(--muted); margin-top: 8px; max-width: 200px; line-height: 1.5; }

/* ---------- Atuação ---------- */
.atuacao { background: var(--paper); }
.atuacao-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 50px; align-items: stretch; }
.atuacao-media .wide { height: 100%; min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }
.atuacao-cards { display: grid; gap: 26px; }
.card { background: var(--white); padding: 36px 38px; border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.card h3 { font-size: 1.7rem; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.check-list li { position: relative; padding-left: 26px; font-size: .92rem; font-weight: 500; color: var(--navy); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* ---------- Frase final ---------- */
.closing { position: relative; padding: 130px 0; text-align: center; color: var(--white); overflow: hidden; }
.closing-bg { position: absolute; inset: 0; }
.closing-overlay { position: absolute; inset: 0; background: rgba(11, 29, 51, .88); }
.closing-content { position: relative; z-index: 2; }
.closing-content p { font-family: var(--font-title); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; margin: 0 0 .15em; line-height: 1.3; }
.closing-content p:last-child { color: var(--gold-2); }

/* ---------- Contato ---------- */
.contato-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: start; }
.contato-info .short { height: 220px; border-radius: var(--radius); margin-bottom: 30px; }
.contato-info h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 22px 0 4px; }
.contato-info p { margin: 0; }
.contato-info a:hover { color: var(--gold); }

.contato-form { background: var(--paper); padding: 40px; border-radius: var(--radius); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--white); border: 1px solid #d9d2c4; border-radius: var(--radius); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-size: .9rem; font-weight: 500; }
.form-status.ok { color: #1f7a3d; }
.form-status.err { color: #b3261e; }
.contato-form .btn:hover { color: var(--gold); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 54px 0 40px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; }
.social { display: flex; gap: 14px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(201,167,109,.5); border-radius: 50%; transition: background .25s; }
.social a:hover { background: var(--gold); }
.social svg { width: 18px; height: 18px; fill: var(--white); }
.to-top { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.to-top:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .8rem; text-align: center; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.3); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid #ece7de; }
  .about-grid, .atuacao-grid, .contato-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .atuacao-media .wide { min-height: 300px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 380px; box-shadow: 0 12px 24px rgba(0,0,0,.3); }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 4% 20px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a::after { display: none; }
  .site-header { background: var(--navy); }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .hero-content { padding: 120px 0 150px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid #ece7de; }
  .pillar:last-child { border-bottom: 0; }
  .stats { flex-direction: column; gap: 24px; }
  .check-list { grid-template-columns: 1fr; }
  .card, .contato-form { padding: 28px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { align-items: center; }
  .about-media::before { inset: 14px -10px -14px 10px; }
}
