/* ===== RLP Advocacia — design tokens ===== */
:root {
  --navy-950: #0b0f1f;
  --navy-900: #10152b;
  --navy-850: #141b36;
  --navy-800: #1a2242;
  --navy-700: #232c52;
  --navy-line: rgba(255, 255, 255, 0.08);

  --blue-500: #3f6fd8;
  --blue-400: #6f97e8;
  --blue-glow: rgba(63, 111, 216, 0.22);

  --gold-300: #f3e2b9;
  --gold-400: #dcbd7c;
  --gold-500: #c6a35a;
  --gold-600: #a3813f;
  --gold-glow: rgba(198, 163, 90, 0.2);

  --ink-0: #ffffff;
  --ink-70: rgba(255, 255, 255, 0.75);
  --ink-55: rgba(255, 255, 255, 0.58);
  --ink-40: rgba(255, 255, 255, 0.4);

  --radius-lg: 1.75rem;
  --radius-md: 1.1rem;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink-0);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-400);
  font-weight: 600;
}

.section { padding-block: 100px; position: relative; }
.section--tight { padding-block: 56px; }
.section--alt { background: var(--navy-900); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--ink-55); font-size: 1.05rem; line-height: 1.7; }
.section-head.center { margin-inline: auto; text-align: center; }

.gold-rule { width: 56px; height: 2px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); margin-top: 16px; border-radius: 2px; }
.gold-rule.center { margin-inline: auto; }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 15, 31, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.brand img { height: 38px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { font-size: 0.9rem; color: var(--ink-70); transition: color 0.2s ease; position: relative; padding-bottom: 4px; }
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-400); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500);
  transform: translateX(-50%);
}

.nav-cta {
  border: 1px solid var(--gold-500); color: var(--gold-300) !important;
  padding: 10px 22px; border-radius: 999px; font-size: 0.85rem !important;
  transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--gold-500); color: var(--navy-950) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-0); border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); box-shadow: 0 14px 34px -14px var(--gold-glow); }
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--ink-0); }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn--on-photo { border-color: rgba(255,255,255,0.5); color: var(--ink-0); backdrop-filter: blur(4px); background: rgba(11,15,31,0.25); }
.btn--on-photo:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn--block { width: 100%; }

/* ===== Photo hero (home + contact) ===== */
.photo-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photo-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.photo-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,12,24,0.55) 0%, rgba(9,12,24,0.35) 35%, rgba(9,12,24,0.92) 92%),
    linear-gradient(90deg, rgba(9,12,24,0.75) 0%, rgba(9,12,24,0.15) 62%);
}
.photo-hero-content { position: relative; z-index: 1; padding-block: 64px 72px; width: 100%; }
.photo-hero .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(198, 163, 90, 0.45); background: rgba(198,163,90,0.16);
  color: var(--gold-300); padding: 8px 18px; border-radius: 999px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 24px;
}
.photo-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); max-width: 780px; line-height: 1.1; color: var(--ink-0); }
.photo-hero .hero-lede { margin-top: 26px; max-width: 600px; font-size: 1.12rem; line-height: 1.75; color: var(--ink-70); }
.photo-hero .hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.photo-hero.hero--short { min-height: 62vh; }

.photo-caption {
  position: absolute; right: 24px; bottom: 24px; z-index: 1;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-40);
}

/* ===== Split divider (mission/vision, about) ===== */
.split-divider { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 48px; }
.split-divider .rule-v { background: var(--navy-line); }
.split-divider .eyebrow { display: block; margin-bottom: 14px; }
.split-divider h3 { font-size: 1.5rem; color: var(--ink-0); }
.split-divider p { margin-top: 16px; color: var(--ink-70); line-height: 1.8; }

.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.about-lede { color: var(--ink-70); font-size: 1.08rem; line-height: 1.85; max-width: 560px; }
.about-lede + .about-lede { margin-top: 18px; }

/* ===== Pull quote ===== */
.pull-quote {
  border-left: 2px solid var(--gold-500);
  padding-left: 32px;
  margin-block: 8px;
}
.pull-quote p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.5;
  color: var(--ink-0);
}
.pull-quote cite {
  display: block; margin-top: 18px; font-style: normal;
  font-family: "Inter", sans-serif; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-400);
}

/* ===== Practice areas — numbered rows ===== */
.area-list { border-top: 1px solid var(--navy-line); }
.area-row {
  display: grid; grid-template-columns: 100px 1fr 1.1fr;
  gap: 32px; align-items: start;
  padding-block: 40px;
  border-bottom: 1px solid var(--navy-line);
  transition: background 0.25s ease;
}
.area-row:hover { background: rgba(255,255,255,0.02); }
.area-row .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem; color: var(--gold-500); line-height: 1;
  opacity: 0.85;
}
.area-row h3 { font-size: 1.5rem; color: var(--ink-0); }
.area-row p { color: var(--ink-55); line-height: 1.8; font-size: 0.98rem; }

/* ===== Differentiators — vertical list ===== */
.diff-list { display: grid; gap: 0; border-top: 1px solid var(--navy-line); }
.diff-item {
  display: grid; grid-template-columns: 64px 1fr;
  gap: 24px; align-items: flex-start;
  padding-block: 28px;
  border-bottom: 1px solid var(--navy-line);
}
.diff-item .mark {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); flex-shrink: 0;
}
.diff-item h4 { font-family: "Inter", sans-serif; font-size: 1.02rem; font-weight: 600; color: var(--ink-0); }
.diff-item p { margin-top: 6px; color: var(--ink-55); font-size: 0.92rem; line-height: 1.7; }

/* ===== Timeline (método/processo) ===== */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 15%, var(--gold-500) 85%, transparent);
}
.timeline-step { position: relative; padding-right: 24px; }
.timeline-step .step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-950); border: 1px solid var(--gold-500);
  color: var(--gold-300); font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; margin-bottom: 26px;
}
.timeline-step h3 { font-size: 1.3rem; color: var(--ink-0); }
.timeline-step p { margin-top: 10px; color: var(--ink-55); line-height: 1.75; font-size: 0.95rem; max-width: 300px; }

/* ===== Testimonials (featured showcase) ===== */
.testimonial-showcase { max-width: 860px; margin-inline: auto; text-align: center; position: relative; }
.testimonial-mark {
  font-family: "Cormorant Garamond", serif; font-size: 6rem; line-height: 1;
  color: var(--gold-500); opacity: 0.28; height: 56px; user-select: none;
}
.testimonial-panels { position: relative; min-height: 200px; }
.testimonial-slide {
  display: none; opacity: 0; transition: opacity 0.35s ease;
}
.testimonial-slide.is-active { display: block; opacity: 1; }
.testimonial-slide .quote {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.55; color: var(--ink-0);
}
.testimonial-stars { display: flex; gap: 4px; color: var(--gold-400); justify-content: center; margin-top: 22px; }
.testimonial-name { margin-top: 14px; font-size: 1rem; font-weight: 600; color: var(--ink-0); }
.testimonial-role { margin-top: 2px; font-size: 0.85rem; color: var(--ink-40); }

.testimonial-tabs {
  display: flex; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap;
}
.testimonial-tab {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--navy-line); background: var(--navy-900);
  border-radius: 999px; padding: 8px 18px 8px 8px;
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
  font-family: "Inter", sans-serif; font-size: 0.85rem; color: var(--ink-55);
}
.testimonial-tab .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950); display: flex; align-items: center; justify-content: center;
  font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 0.9rem;
}
.testimonial-tab:hover { border-color: rgba(198,163,90,0.35); }
.testimonial-tab.is-active { border-color: var(--gold-500); background: var(--gold-glow); color: var(--ink-0); }

/* ===== Partners logo strip ===== */
.partners-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px 40px; padding-block: 8px;
}
.partners-strip .partner-logo {
  opacity: 0.5; filter: grayscale(1); transition: opacity 0.25s ease, filter 0.25s ease;
  max-height: 34px; width: auto;
}
.partners-strip .partner-logo:hover { opacity: 1; filter: grayscale(0); }

/* ===== FAQ (interactive accordion, single-open) ===== */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro p.lede { margin-top: 18px; color: var(--ink-55); line-height: 1.8; max-width: 380px; }
.faq-intro .btn { margin-top: 28px; }

.faq-accordion { border-top: 1px solid var(--navy-line); }
.faq-item { border-bottom: 1px solid var(--navy-line); transition: background 0.25s ease; }
.faq-item.is-open { background: rgba(198, 163, 90, 0.045); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; gap: 22px;
  padding-block: 25px; cursor: pointer; background: none; border: none; text-align: left;
  border-left: 2px solid transparent; padding-left: 18px; margin-left: -18px;
  transition: border-color 0.25s ease;
}
.faq-item.is-open .faq-trigger { border-left-color: var(--gold-500); }
.faq-trigger .faq-num {
  font-family: "Cormorant Garamond", serif; font-size: 1.3rem; color: var(--gold-500);
  opacity: 0.7; flex-shrink: 0; width: 28px;
}
.faq-trigger .faq-q {
  flex-grow: 1; font-family: "Cormorant Garamond", serif; font-size: 1.25rem; color: var(--ink-0);
}
.faq-trigger .faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold-500); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: transform 0.3s ease, background 0.25s ease;
}
.faq-item.is-open .faq-trigger .faq-icon { transform: rotate(135deg); background: var(--gold-500); color: var(--navy-950); }
.faq-trigger .faq-icon::before, .faq-trigger .faq-icon::after { content: ""; position: absolute; background: currentColor; }
.faq-trigger .faq-icon::before { width: 12px; height: 1.5px; }
.faq-trigger .faq-icon::after { width: 1.5px; height: 12px; }

.faq-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; opacity: 1; }
.faq-panel-inner { overflow: hidden; }
.faq-panel-inner p {
  padding: 0 18px 28px 68px; color: var(--ink-55); line-height: 1.8; max-width: 620px;
}

/* ===== Sócios (partners / team) ===== */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.partner-card {
  border: 1px solid var(--navy-line); background: var(--navy-900);
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
}
.partner-photo {
  width: 128px; height: 128px; border-radius: 50%; margin-inline: auto 12px;
  border: 1.5px dashed rgba(198, 163, 90, 0.45);
  background: rgba(255,255,255,0.02);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-40); margin-bottom: 20px;
}
.partner-photo svg { width: 40px; height: 40px; }
.partner-card h3 { font-size: 1.25rem; color: var(--ink-0); }
.partner-card .role { margin-top: 4px; font-size: 0.85rem; color: var(--gold-400); text-transform: uppercase; letter-spacing: 0.1em; }
.partner-card .bio { margin-top: 14px; font-size: 0.9rem; color: var(--ink-55); line-height: 1.7; }
.linkedin-btn {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--navy-line); color: var(--ink-70);
  padding: 9px 20px; border-radius: 999px; font-size: 0.85rem;
  transition: all 0.2s ease;
}
.linkedin-btn:hover { border-color: var(--gold-500); color: var(--gold-300); }

/* ===== CTA banner ===== */
.cta-banner {
  border: 1px solid rgba(198, 163, 90, 0.3);
  background: linear-gradient(135deg, rgba(198, 163, 90, 0.12), rgba(63, 111, 216, 0.08));
  border-radius: var(--radius-lg);
  padding: 56px; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.cta-banner p { margin-top: 16px; color: var(--ink-70); max-width: 560px; margin-inline: auto; }
.cta-banner .hero-actions { justify-content: center; margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 36px; }
.contact-row {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--navy-line); background: var(--navy-900);
  border-radius: var(--radius-md); padding: 18px 20px;
}
.contact-row .ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: var(--gold-glow); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-40); }
.contact-row .value { margin-top: 4px; font-size: 1rem; color: var(--ink-0); }
.contact-note { margin-top: 8px; font-size: 0.82rem; color: var(--ink-40); }

.contact-form {
  border: 1px solid var(--navy-line); background: var(--navy-900);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.82rem; color: var(--ink-55); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, 0.04);
  border-radius: 14px; padding: 13px 16px; color: var(--ink-0);
  font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--gold-500); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-40); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-msg { border-radius: 12px; padding: 14px 16px; font-size: 0.9rem; display: none; }
.form-msg.is-visible { display: block; }
.form-msg--success { background: rgba(63, 111, 216, 0.12); border: 1px solid var(--blue-400); color: var(--blue-400); }
.form-msg--error { background: rgba(220, 90, 90, 0.12); border: 1px solid #e08585; color: #f0a5a5; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--navy-line); padding-block: 56px 28px; background: var(--navy-900); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 40px; }
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-55); font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--gold-400); margin-bottom: 18px;
}
.footer-col a, .footer-col p { display: block; color: var(--ink-55); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--navy-line); text-align: center; font-size: 0.82rem; color: var(--ink-40); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .split-divider { grid-template-columns: 1fr; }
  .split-divider .rule-v { display: none; }
  .area-row { grid-template-columns: 60px 1fr; }
  .area-row p { grid-column: 2 / -1; margin-top: 4px; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { display: none; }
  .partner-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .partners-strip { justify-content: center; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--navy-950); border-bottom: 1px solid var(--navy-line);
    padding: 18px 24px 26px;
  }
  .main-nav.is-open a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 10px; text-align: center; }
  .form-row-2 { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .cta-banner { padding: 34px 22px; }
  .diff-item { grid-template-columns: 48px 1fr; }
  .photo-hero { min-height: 78vh; }
  .testimonial-mark { font-size: 4rem; }
  .testimonial-tabs { gap: 10px; }
  .testimonial-tab span.tab-role { display: none; }
  .faq-trigger .faq-q { font-size: 1.08rem; }
  .faq-panel-inner p { padding-left: 18px; }
}
