/* ===================================================================
   THYAGO BEZERRA ADVOCACIA — estilos da landing page
   Paleta e tipografia extraídas do site atual (tbsa.adv.br):
   fundo off-white, texto grafite, acento dourado/bronze.
   Estrutura de seções inspirada em souzaokawa.com.br.
   =================================================================== */

:root {
  --bg: #F6F5F2;
  --bg-alt: #EFEBE4;
  --surface: #FFFFFF;
  --text: #31353C;
  --text-muted: #6B6F78;
  --accent: #AB7B52;
  --accent-dark: #8C6240;
  --border: rgba(49, 53, 60, 0.12);
  --shadow: 0 20px 50px -20px rgba(49, 53, 60, 0.25);

  --font-heading: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--text-muted); }

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

section { padding: 96px 0; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.eyebrow-light { color: #E8C9A8; }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-lead { margin-top: 16px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-large { padding: 16px 36px; font-size: 1rem; }

.btn-header { margin-left: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 242, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-dot { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
  background: var(--text);
  color: var(--bg);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(31,33,38,0.94) 0%, rgba(49,53,60,0.82) 42%, rgba(49,53,60,0.55) 100%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(171,123,82,0.30) 0%, rgba(171,123,82,0) 70%);
  mix-blend-mode: screen;
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero .eyebrow { color: #E8C9A8; }

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--bg);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(246,245,242,0.75);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero .btn-primary { background: var(--accent); color: var(--text); }
.hero .btn-primary:hover { background: #C79466; }
.hero .btn-ghost { color: var(--bg); border-color: rgba(246,245,242,0.3); }
.hero .btn-ghost:hover { border-color: var(--bg); }

/* ---------- Sobre (declaração de essência) ---------- */
.about-statement { background: var(--surface); }

.about-statement-inner {
  max-width: 760px;
}

.about-statement h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 28px;
}

.about-statement p {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.about-statement p:last-child { margin-bottom: 0; }

/* ---------- Principles (SEE-style pillars) ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.principle-num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.principle-card h3 { margin-bottom: 10px; }

/* ---------- Áreas de atuação ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.area-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 30px 26px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.area-index {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 18px;
}

.area-card h3 { margin-bottom: 10px; }
.area-card p { font-size: 0.94rem; }

/* ---------- Como atuamos (steps) ---------- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step { flex: 1; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.94rem; max-width: 280px; }

.step-line {
  flex: 0 0 60px;
  height: 1px;
  background: var(--border);
  margin-top: 20px;
}

/* ---------- Stats ---------- */
.stats { background: var(--text); color: var(--bg); padding: 72px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(246,245,242,0.7);
}

/* ---------- O escritório / Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.founder-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

.founder-photo img { width: 100%; height: 100%; object-fit: cover; }

.founder-content h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.founder-content p { margin-bottom: 14px; font-size: 0.98rem; }

.founder-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.credential-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.credential-value {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
}

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.diff-card {
  padding: 28px 0;
  border-top: 2px solid var(--text);
}

.diff-card h3 { margin-bottom: 10px; }
.diff-card p { font-size: 0.94rem; }

/* ---------- CTA final / Contato ---------- */
.cta-final {
  background: var(--text);
  color: var(--bg);
  padding: 100px 0;
}

.cta-final-inner { max-width: 640px; }

.cta-final h2 { color: var(--bg); margin-bottom: 16px; }

.cta-final p { color: rgba(246,245,242,0.75); margin-bottom: 20px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0 40px;
}

.contact-item {
  display: block;
  border: 1px solid rgba(246,245,242,0.18);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
  border-color: var(--accent);
  background: rgba(246,245,242,0.04);
  transform: translateY(-2px);
}

.contact-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E8C9A8;
  margin-bottom: 8px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--bg);
}

.cta-final .btn-primary { background: var(--accent); color: var(--text); }
.cta-final .btn-primary:hover { background: #C79466; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-nav { display: flex; gap: 24px; font-size: 0.88rem; }

.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: right;
}

.footer-contact a:hover { color: var(--accent-dark); }

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 90;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 980px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; min-height: 76px; }

  .main-nav,
  .btn-header {
    display: none;
    flex-basis: 100%;
  }

  .nav-toggle { display: flex; order: 3; margin-left: auto; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    order: 4;
    gap: 18px;
    padding: 20px 0 8px;
    border-top: 1px solid var(--border);
  }

  .site-header.nav-open .btn-header {
    display: inline-flex;
    order: 5;
    align-self: flex-start;
    margin: 4px 0 20px;
  }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .principles-grid,
  .areas-grid,
  .diff-grid,
  .stats-grid,
  .contact-grid,
  .founder-credentials { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 28px; }
  .step-line { display: none; }
  .hero { padding: 120px 0 88px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
}
