/* ============ HARLOW & PIERCE — DESIGN TOKENS ============ */
:root {
  --bg: #12151A;
  --panel: #1A1F26;
  --panel-hover: #222831;
  --border: rgba(245, 241, 232, 0.09);
  --text: #F5F1E8;
  --muted: #9AA1AB;
  --gold: #C9A227;
  --gold-light: #E3BC4B;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

.container { width: min(1140px, 92%); margin-inline: auto; }
section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
#results, #areas, .stats, #testimonials, #contact { border-top: 1px solid var(--border); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: #16130a;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(245, 241, 232, 0.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled {
  background: rgba(18, 21, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn { padding: 0.65rem 1.4rem; font-size: 0.88rem; }
.nav-reveal {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.nav.scrolled .nav-reveal { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .nav-reveal { transition: opacity 0.2s ease; transform: none; }
}

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ VIDEO HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* fallback enquanto o vídeo carrega */
  background: linear-gradient(160deg, #1a1f27, #12151A);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(18, 21, 26, 0.94) 30%, rgba(18, 21, 26, 0.55) 70%, rgba(18, 21, 26, 0.75));
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); margin-bottom: 1.4rem; }
.hero p { color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.18rem); margin-bottom: 2.2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--muted); }
.hero-note strong { color: var(--gold-light); }

/* ============ PAGE HEADER (subpáginas) ============ */
.page-head {
  padding: 9rem 0 4rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.page-head .kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 700px; }
.page-head p { color: var(--muted); max-width: 560px; margin-top: 1rem; }

/* ============ SECTION HEADS ============ */
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); }

/* ============ CARDS (áreas de atuação) ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  background: var(--panel-hover);
  border-color: rgba(201, 162, 39, 0.4);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 6px;
  background: rgba(201, 162, 39, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--gold-light); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  position: relative;
}
.card h3::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.card:hover h3::after { transform: scaleX(1); }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .card-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  transition: transform 0.35s var(--ease), color 0.35s ease;
}
.card:hover .card-link { transform: translateX(5px); color: var(--gold); }

/* ============ STATS MARQUEE (letreiro infinito) ============ */
.stats-marquee {
  background: var(--panel);
  border-block: 1px solid var(--border);
  padding: 2.2rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stats-marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: stats-scroll 30s linear infinite;
}
.stats-marquee:hover .stats-marquee-track { animation-play-state: paused; }
@keyframes stats-scroll { to { transform: translateX(-50%); } }
.stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  white-space: nowrap;
}
.stat-item b {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gold-light);
}
/* Playfair usa algarismos old-style (alturas variadas) por padrão;
   nos números grandes forçamos algarismos alinhados e monoespaçados */
.stat-item b, .stat b, .result-card b {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.stat-item span { color: var(--muted); font-size: 0.95rem; }
.stat-sep {
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.7;
}
@media (prefers-reduced-motion: reduce) {
  .stats-marquee-track { animation: none; }
}

/* ============ STATS ============ */
.stats { background: var(--panel); border-block: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat b {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  color: var(--gold-light);
  display: block;
}
.stat > span { color: var(--muted); font-size: 0.92rem; }

/* ============ CASE RESULTS CAROUSEL ============ */
.results-carousel { position: relative; }
.results-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 0.5rem;
  margin-top: -8px;
}
.results-track::-webkit-scrollbar { display: none; }
.result-card {
  flex: 0 0 calc((100% - 2.4rem) / 3);
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.result-card:hover { transform: translateY(-5px); border-color: rgba(201, 162, 39, 0.4); }
.result-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1.2rem;
}
.result-card b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.result-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.result-card p { color: var(--muted); font-size: 0.9rem; }

/* setas de navegação (compartilhadas pelos carrosséis) */
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.carousel-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 232, 0.25);
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.carousel-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #16130a;
  transform: translateY(-2px);
}
.carousel-arrow:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 900px) { .result-card { flex-basis: calc((100% - 1.2rem) / 2); } }
@media (max-width: 720px) { .result-card { flex-basis: 88%; } }

/* ============ TESTIMONIAL SLIDER ============ */
.slider { position: relative; max-width: 720px; margin-inline: auto; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s var(--ease); }
.slide { min-width: 100%; padding: 0 0.5rem; }
.slide-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.6rem;
  text-align: center;
}
.slide-card .stars { color: var(--gold); letter-spacing: 4px; margin-bottom: 1.2rem; }
.slide-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.slide-card .who { color: var(--muted); font-size: 0.9rem; }
.slide-card .who b { color: var(--text); display: block; font-size: 0.98rem; font-family: var(--font-body); }
.slider-nav { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1.8rem; }
.slider-dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(245, 241, 232, 0.18);
  cursor: pointer; padding: 0;
  transition: all 0.3s ease;
}
.slider-dot.active { background: var(--gold); width: 26px; }

/* ============ CTA BANNER ============ */
.cta-banner {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 2rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(201, 162, 39, 0.3);
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 100% at 50% -10%, rgba(201, 162, 39, 0.18), transparent);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); max-width: 620px; margin: 0 auto 1rem; position: relative; }
.cta-banner p { color: var(--muted); margin-bottom: 2rem; position: relative; }
.cta-banner .btn { position: relative; }

/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.member {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.member:hover { transform: translateY(-5px); border-color: rgba(201, 162, 39, 0.4); }
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.member span { color: var(--muted); font-size: 0.85rem; }

/* ============ VALUES / PROCESS LIST ============ */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.value:hover { transform: translateY(-5px); border-color: rgba(201, 162, 39, 0.4); }
.value .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
  transition: transform 0.35s var(--ease);
}
.value:hover .num { transform: scale(1.15); }
.value h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.value p { color: var(--muted); font-size: 0.94rem; }

/* ============ DETAIL ROWS (practice areas page) ============ */
.area-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.area-row:last-child { border-bottom: none; }
.area-row .card-icon { margin-bottom: 0; }
.area-row h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.area-row p { color: var(--muted); font-size: 0.96rem; max-width: 640px; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-size: 0.85rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 0.4rem; }
input, textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 130px; resize: vertical; }
.form-success {
  display: none;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  color: var(--gold-light);
  font-size: 0.95rem;
}
.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: grid;
  gap: 1.4rem;
}
.info-card h3 { font-size: 1.15rem; }
.info-card .item b { display: block; font-size: 0.85rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.info-card .item span { color: var(--muted); font-size: 0.95rem; }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid > div > p { color: var(--muted); font-size: 0.9rem; max-width: 260px; margin-top: 0.8rem; }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-grid ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}
.footer-grid ul a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.83rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .cards-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(18, 21, 26, 0.97);
    backdrop-filter: blur(14px);
    padding: 2rem;
    gap: 1.4rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .cards-grid, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .area-row { grid-template-columns: 1fr; gap: 1rem; }
}
