/* Alves da Silva Advogados — Advocacia Trabalhista
   Identidade: navy profundo + preto + cinza + branco (sem cores de marca coloridas).
   Tipografia: Manrope (estrutura/institucional) + Fraunces itálico (acento humano/confiança).
   Fotografia real do Dr. Leonardo Alves da Silva na hero; fotografia autoral em tom
   navy/carvão nas demais seções (áreas de atuação, abordagem, quem somos). */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,500;1,9..144,500;1,9..144,600&display=swap');

:root {
  /* navy scale — sampled a partir da foto real do escritório */
  --navy-950: #05070d;
  --navy-900: #0a0f1c;
  --navy-800: #0f1626;
  --navy-700: #17203a;
  --navy-600: #22304f;
  --navy-500: #35496f;
  --navy-400: #5b7196;
  --navy-300: #8fa3c2;

  --gray-900: #14161b;
  --gray-700: #3d424d;
  --gray-500: #6b7280;
  --gray-300: #a6acb8;
  --gray-200: #d9dce2;
  --gray-100: #eef0f3;

  --white: #ffffff;
  --cream: #f7f7f5;

  /* surfaces */
  --bg-dark: var(--navy-900);
  --surface-dark: var(--navy-800);
  --surface-dark-2: var(--navy-700);
  --border-dark: rgba(255,255,255,0.1);
  --ink-on-dark: #f4f5f7;
  --ink-on-dark-dim: #aab2c2;
  --ink-on-dark-accent: #cfd9ea;

  --bg-light: var(--white);
  --surface-light-2: var(--gray-100);
  --border-light: var(--gray-200);
  --ink-on-light: #14161b;
  --ink-on-light-dim: var(--gray-500);

  --shadow-soft: 0 24px 60px -20px rgba(5, 7, 13, 0.45);
  --shadow-tight: 0 8px 24px -10px rgba(5, 7, 13, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
  --radius: 4px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--ink-on-light);
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-400);
  font-weight: 700;
}
.eyebrow::before { content: ''; display: block; width: 26px; height: 2px; background: currentColor; }
section[data-surface="dark"] .eyebrow, .hero .eyebrow, .approach-section .eyebrow { color: var(--ink-on-dark-accent); }

.accent { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; }
.hero .accent, .approach-section .accent { color: var(--white); }
section[data-surface="light"] .accent { color: var(--navy-700); }

.mark-divider { display: flex; align-items: flex-end; gap: 5px; margin-bottom: 18px; height: 20px; }
.mark-divider span { display: block; width: 30px; height: 4px; border-radius: 2px; background: var(--navy-500); }
.mark-divider span:last-child { background: var(--gray-400, var(--gray-300)); transform: translateY(4px); width: 20px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 15, 28, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-full { height: 34px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); }
.footer-brand .logo-full { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-on-dark-dim);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink-on-dark); border-color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary { background: var(--white); color: var(--navy-900); }
.btn-primary:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0,0,0,0.35); }
.btn-outline { background: transparent; color: var(--ink-on-dark); border: 1.5px solid rgba(255,255,255,0.28); }
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-navy { background: var(--navy-700); color: var(--white); }
.btn-navy:hover { background: var(--navy-600); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(10,15,28,0.5); }
.btn-outline-dark { background: transparent; color: var(--ink-on-light); border: 1.5px solid var(--border-light); }
.btn-outline-dark:hover { border-color: var(--navy-700); color: var(--navy-700); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 12.5px; }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.btn svg { flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-on-dark); display: block; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); transform-origin: center; }
.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); }

@media (max-width: 960px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy-900); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 36px 28px; gap: 6px; transform: translateX(100%); transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--border-dark); }
  .header-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 480px) { .brand svg { height: 32px; } .brand .brand-name { font-size: 12.5px; } }

/* ---------- section surfaces ---------- */
section { padding: 116px 0; position: relative; }
section[data-surface="dark"] { background: var(--bg-dark); color: var(--ink-on-dark); }
section[data-surface="dark"] p { color: var(--ink-on-dark-dim); }
section[data-surface="light"] { background: var(--bg-light); color: var(--ink-on-light); }
section[data-surface="tint"] { background: var(--surface-light-2); color: var(--ink-on-light); }
@media (max-width: 720px) { section { padding: 80px 0; } }

/* ---------- hero — full-bleed foto real ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: var(--ink-on-dark); padding-top: var(--header-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.3) 32%, rgba(5,7,13,0.55) 64%, rgba(5,7,13,0.96) 100%),
    linear-gradient(90deg, rgba(6,9,17,0.94) 0%, rgba(6,9,17,0.6) 42%, rgba(6,9,17,0.1) 74%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 100px; padding-top: 60px; }
.hero-mark { width: 46px; height: auto; opacity: 0.9; margin-bottom: 26px; }
.hero-copy { max-width: 680px; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.01em;
  text-transform: uppercase; margin: 20px 0 26px;
}
.hero-copy p.lead { font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.hero-copy p.sub { font-size: 16px; color: var(--ink-on-dark-dim); max-width: 50ch; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .hero { min-height: 94vh; }
  .hero .wrap { padding-bottom: 64px; }
  .hero-bg img { object-position: 74% 26%; }
  .hero-copy h1 { font-size: clamp(2rem, 8vw, 2.6rem); margin: 16px 0 18px; }
}

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-on-dark-dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--white), transparent); animation: scrollcue 2.2s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(0.6); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* ---------- section heads ---------- */
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.16; font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin-top: 18px; font-size: 16.5px; }
section[data-surface="light"] .section-head p, section[data-surface="tint"] .section-head p { color: var(--ink-on-light-dim); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .mark-divider { justify-content: center; }

/* ---------- approach — full-bleed foto (biblioteca) ---------- */
.approach-section { position: relative; padding: 0; min-height: 620px; display: flex; align-items: center; color: var(--ink-on-dark); overflow: hidden; }
.approach-section .approach-bg { position: absolute; inset: 0; z-index: 0; }
.approach-section .approach-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.approach-section .approach-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(5,7,13,0.95) 0%, rgba(5,7,13,0.82) 40%, rgba(5,7,13,0.42) 68%, rgba(5,7,13,0.75) 100%);
}
.approach-section .wrap { position: relative; z-index: 1; padding-top: 116px; padding-bottom: 116px; }
.approach-section .section-head-inline { max-width: 620px; }
.approach-section h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.2; font-weight: 800; margin-top: 18px; }
.approach-section .lead-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.approach-section .lead-list p { font-size: 16px; color: var(--ink-on-dark-dim); }
.approach-actions { margin-top: 40px; }
@media (max-width: 720px) { .approach-section .wrap { padding-top: 80px; padding-bottom: 80px; } }

/* ---------- process (como funciona) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step {
  background: var(--surface-dark); border: 1px solid var(--border-dark); border-radius: var(--radius-lg);
  padding: 36px 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.3); }
.process-step .icon-wrap {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.process-step .icon-wrap svg { width: 22px; height: 22px; }
.process-step h4 { font-size: 17px; font-weight: 700; }
.process-step p { font-size: 14.5px; }
.process-step .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- por que escolher — foto + checklist ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-tight); aspect-ratio: 3 / 4; border: 1px solid var(--border-light); }
.about-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,28,0) 55%, rgba(10,15,28,0.5) 100%); }
.about-photo-card .corner-dot { position: absolute; top: 18px; right: 18px; z-index: 2; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(10,15,28,0.18); }
.why-copy .lead { font-size: 17px; color: var(--ink-on-light-dim); margin-bottom: 36px; }
.checklist { display: flex; flex-direction: column; gap: 26px; }
.checklist-item { display: flex; gap: 18px; align-items: flex-start; }
.checklist-item .chk { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--navy-700); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.checklist-item .chk svg { width: 15px; height: 15px; color: var(--navy-700); }
.checklist-item h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.checklist-item p { font-size: 14.5px; color: var(--ink-on-light-dim); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-photo-card { max-width: 420px; margin: 0 auto; } }

/* ---------- areas de atuacao — grid fotografico ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 24px;
  transition: transform 0.4s var(--ease);
}
.area-card:hover { transform: translateY(-6px); }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s var(--ease); }
.area-card:hover img { transform: scale(1.06); }
.area-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,7,13,0.05) 0%, rgba(5,7,13,0.35) 50%, rgba(5,7,13,0.92) 100%); }
.area-card .content { position: relative; z-index: 2; }
.area-card .num { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-on-dark-accent); display: block; margin-bottom: 10px; }
.area-card h3 { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 8px; letter-spacing: -0.01em; }
.area-card p { font-size: 13px; color: var(--ink-on-dark-dim); line-height: 1.5; }
@media (max-width: 1100px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas-grid { grid-template-columns: 1fr; } .area-card { aspect-ratio: 4/3; } }

.section-cta { display: flex; justify-content: center; margin-top: 52px; }

/* ---------- quem somos — full-bleed foto (escritório + estátua) ---------- */
.somos-section { position: relative; padding: 0; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: var(--ink-on-light); }
.somos-section .somos-bg { position: absolute; inset: 0; z-index: 0; }
.somos-section .somos-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.somos-section .somos-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 34%, rgba(255,255,255,0.55) 58%, rgba(255,255,255,0.1) 78%, rgba(255,255,255,0) 100%);
}
.somos-section .wrap { position: relative; z-index: 1; padding-top: 116px; padding-bottom: 116px; }
.somos-copy { max-width: 560px; }
.somos-copy p { color: var(--ink-on-light-dim); font-size: 16.5px; margin-bottom: 20px; }
.somos-copy p:last-of-type { margin-bottom: 0; }
.somos-copy strong { color: var(--ink-on-light); }
.stats-row { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.stat { border-top: 2px solid var(--navy-700); padding-top: 14px; min-width: 130px; }
.stat .num { font-family: 'Fraunces', serif; font-style: italic; font-size: 30px; color: var(--navy-700); display: block; }
.stat .lbl { font-size: 13px; color: var(--ink-on-light-dim); margin-top: 4px; display: block; }
.stat .stars { font-size: 18px; letter-spacing: 3px; color: var(--navy-700); }
@media (max-width: 900px) {
  .somos-section .wrap { padding-top: 80px; padding-bottom: 80px; }
  .somos-section .somos-bg img { object-position: 78% 50%; }
  .somos-section .somos-bg::after { background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.93) 38%, rgba(255,255,255,0.98) 100%); }
}

/* ---------- contato ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: var(--surface-dark); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 40px 32px; text-align: left; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.contact-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.28); }
.contact-card .icon-wrap { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--white); }
.contact-card .icon-wrap svg { width: 21px; height: 21px; }
.contact-card h4 { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-on-dark-dim); margin-bottom: 12px; }
.contact-card .val { font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.5; }
.contact-card .val a:hover { text-decoration: underline; }
.contact-card .note { font-size: 13.5px; color: var(--ink-on-dark-dim); margin-top: 8px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: var(--ink-on-dark-dim); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--border-dark); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 34ch; }
.footer-col h5 { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-on-dark); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; transition: color 0.25s; }
.footer-col a:hover { color: var(--white); }
.footer-col li.addr { font-size: 14px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 12.5px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy-800); border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--navy-700); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in { transition-delay: calc(var(--stagger-i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.text-center { text-align: center; }
