/* ============================================================
   Franklin Ribeiro Advocacia — Identidade visual
   Preto profundo + dourado champanhe
   ============================================================ */

:root {
  /* Paleta extraída do cartão de visita: azul-petróleo #3d4c5a + dourado */
  --black: #2c3844;
  --ink: #3d4c5a;
  --ink-2: #46545f;
  --gold: #c9a961;
  --gold-light: #e8d5a3;
  --gold-deep: #8e7846;
  --gold-grad: linear-gradient(120deg, #8e7846 0%, #d9bd8a 45%, #f0dcb0 60%, #b3945e 100%);
  --paper: #f4f6f8;
  --paper-2: #e9edf1;
  --text: #2c343d;
  --text-soft: #5a6470;
  --text-inverse: #edeff1;
  --text-inverse-soft: #aab4bd;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow-gold: 0 10px 40px -12px rgba(201, 169, 97, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--gold); color: var(--black); }

/* ============ Preloader ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--black);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__logo {
  width: 110px;
  margin-inline: auto;
  mix-blend-mode: screen;
  animation: pulseLogo 1.6s ease-in-out infinite;
}
.preloader__bar {
  display: block;
  width: 120px;
  height: 1px;
  margin: 26px auto 0;
  background: rgba(201, 169, 97, 0.2);
  position: relative;
  overflow: hidden;
}
.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: translateX(-100%);
  animation: loadBar 1.4s var(--ease) infinite;
}
@keyframes pulseLogo {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes loadBar {
  to { transform: translateX(100%); }
}

/* ============ Header ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: linear-gradient(rgba(44, 56, 68, 0.92), rgba(44, 56, 68, 0.75) 70%, transparent);
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.header.is-scrolled {
  padding: 8px 0;
  background: rgba(44, 56, 68, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 30px -10px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo {
  height: 72px;
  width: auto;
  mix-blend-mode: screen; /* funde o fundo preto do SVG ao header escuro */
  transition: height 0.4s var(--ease);
}
.header.is-scrolled .header__logo { height: 56px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; }
.nav__link {
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inverse-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--gold-light); }
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Botões */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  text-align: center;
}
.btn--gold {
  background: var(--gold-grad);
  background-size: 160% auto;
  color: #1a1508;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -12px rgba(201, 169, 97, 0.5);
}
.btn--outline {
  border-color: rgba(201, 169, 97, 0.6);
  color: var(--gold-light);
  background: transparent;
}
.btn--outline:hover {
  background: rgba(201, 169, 97, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(233, 230, 223, 0.25);
  color: var(--text-inverse);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.btn--block { display: block; width: 100%; }
.nav__cta { padding: 11px 22px; font-size: 0.78rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  width: 26px;
  height: 1.5px;
  background: var(--gold-light);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 169, 97, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 90%, rgba(201, 169, 97, 0.05), transparent 60%),
    linear-gradient(160deg, #2c3844 0%, #3d4c5a 55%, #303c49 100%);
  overflow: hidden;
  padding: 140px 0 100px;
}
.hero__watermark {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 720px);
  opacity: 0.16;
  pointer-events: none;
  animation: floatMark 9s ease-in-out infinite;
}
.hero__watermark img {
  mix-blend-mode: screen;
  filter: blur(0.3px);
}
@keyframes floatMark {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-53%) scale(1.02); }
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: calc((100% - min(1180px, 92%)) / 2 + 0px);
}
@media (max-width: 1280px) { .hero__content { margin-inline: auto; } }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__eyebrow::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--gold-grad);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.12;
  color: var(--text-inverse);
  margin: 26px 0 24px;
}
.hero__title em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text {
  color: var(--text-inverse-soft);
  font-size: 1.06rem;
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 64px;
  background: rgba(201, 169, 97, 0.25);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold-grad);
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(280%); }
}

/* ============ Seções base ============ */
.section { padding: 110px 0; }
.section--dark {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 169, 97, 0.06), transparent 60%),
    var(--ink);
  color: var(--text-inverse);
}
.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.section--dark .section__eyebrow { color: var(--gold); }
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.2;
  margin-top: 14px;
  color: var(--ink);
}
.section--dark .section__title { color: var(--text-inverse); }
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.gold-rule {
  width: 70px;
  height: 2px;
  background: var(--gold-grad);
  margin: 22px 0 28px;
}
.gold-rule--center { margin-inline: auto; }

/* ============ Sobre ============ */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about__frame {
  position: relative;
  background: var(--black);
  padding: 46px;
  box-shadow: 0 30px 70px -30px rgba(44, 56, 68, 0.55);
}
.about__frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  pointer-events: none;
  transition: inset 0.5s var(--ease);
}
.about__frame:hover::before { inset: 8px; }
.about__logo { width: 100%; mix-blend-mode: screen; }
.about__body p { color: var(--text-soft); margin-bottom: 18px; }
.about__body strong { font-weight: 500; color: var(--text); }
.about__values { margin-top: 28px; display: grid; gap: 12px; }
.about__values li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 400;
  color: var(--text);
}
.tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
}

/* ============ Áreas de atuação ============ */
.practice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(201, 169, 97, 0.14);
  padding: 42px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, background 0.45s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 97, 0.4);
  background: rgba(201, 169, 97, 0.05);
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 54px;
  height: 54px;
  color: var(--gold);
  margin-bottom: 24px;
  transition: transform 0.45s var(--ease);
}
.card:hover .card__icon { transform: translateY(-4px) scale(1.06); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gold-light);
}
.card p { font-size: 0.95rem; color: var(--text-inverse-soft); }

/* ============ Diferenciais ============ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 34px;
}
.why__item { position: relative; padding-top: 18px; }
.why__num {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.75;
  display: block;
  margin-bottom: 14px;
}
.why__item h3 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}
.why__item p { font-size: 0.95rem; color: var(--text-soft); }

/* ============ Faixa CTA ============ */
.cta-band {
  background:
    radial-gradient(ellipse 60% 90% at 80% 50%, rgba(201, 169, 97, 0.12), transparent 65%),
    linear-gradient(120deg, #2c3844, #3d4c5a);
  border-block: 1px solid rgba(201, 169, 97, 0.18);
  padding: 72px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--text-inverse);
  margin-bottom: 8px;
}
.cta-band p { color: var(--text-inverse-soft); }

/* ============ Contato ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: start;
}
.contact__list { display: grid; gap: 28px; margin-top: 10px; }
.contact__list li { display: flex; gap: 20px; align-items: flex-start; }
.contact__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150, 121, 74, 0.4);
  color: var(--gold-deep);
  transition: all 0.35s var(--ease);
}
.contact__list li:hover .contact__icon {
  background: var(--black);
  color: var(--gold-light);
  border-color: var(--black);
  transform: translateY(-3px);
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__list strong {
  display: block;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact__list p, .contact__list a { color: var(--text-soft); }
.contact__list a:hover { color: var(--gold-deep); }

.contact__panel {
  background: var(--black);
  padding: 48px 42px;
  text-align: center;
  box-shadow: 0 30px 70px -30px rgba(44, 56, 68, 0.6);
  position: relative;
}
.contact__panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 169, 97, 0.25);
  pointer-events: none;
}
.contact__panel > * { position: relative; }
.contact__logo { width: 210px; margin: 0 auto 22px; mix-blend-mode: screen; }
.contact__panel p {
  color: var(--text-inverse-soft);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.contact__oab {
  color: var(--gold) !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  margin-bottom: 12px !important;
}
.contact__panel .btn + .btn { margin-top: 14px; }

/* ============ Footer ============ */
.footer {
  background: var(--black);
  color: var(--text-inverse-soft);
  padding: 80px 0 0;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__logo {
  width: 190px;
  mix-blend-mode: screen;
  margin-bottom: 18px;
}
.footer__brand p { font-size: 0.92rem; max-width: 260px; }
.footer__oab {
  margin-top: 10px;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.84rem !important;
}
.footer__col h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  font-size: 0.92rem;
  transition: color 0.3s, padding-left 0.3s;
}
.footer__col a:hover { color: var(--gold-light); padding-left: 6px; }
.footer__data li { font-size: 0.88rem; line-height: 1.55; }
.footer__data span {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.footer__bottom {
  border-top: 1px solid rgba(201, 169, 97, 0.14);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #8b97a2;
}

/* ============ Flutuantes ============ */
.whatsapp-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  background-size: 160% auto;
  color: #2c3844;
  border: 1px solid rgba(240, 220, 176, 0.6);
  box-shadow: 0 12px 30px -8px rgba(201, 169, 97, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background-position 0.35s;
  animation: fabPulse 2.6s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); background-position: right center; }
.whatsapp-fab svg { width: 30px; height: 30px; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(201, 169, 97, 0.55), 0 0 0 0 rgba(201, 169, 97, 0.4); }
  50% { box-shadow: 0 12px 30px -8px rgba(201, 169, 97, 0.55), 0 0 0 14px rgba(201, 169, 97, 0); }
}

.to-top {
  position: fixed;
  right: 30px;
  bottom: 100px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--black);
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.4s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--ink-2); border-color: var(--gold); }
.to-top svg { width: 18px; height: 18px; }

/* ============ Animações de revelação ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

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

/* ============ Responsivo ============ */
@media (max-width: 1024px) {
  .practice__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; gap: 54px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(44, 56, 68, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; text-align: center; gap: 26px; }
  .nav__link { font-size: 1.05rem; }
  .hamburger { display: flex; }
  .section { padding: 84px 0; }
  .hero { padding: 130px 0 90px; }
  .hero__watermark { width: 90vw; right: -30%; opacity: 0.1; }
}

@media (max-width: 560px) {
  .practice__grid, .why__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .hero__actions .btn { width: 100%; }
  .contact__panel { padding: 40px 26px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .header__logo { height: 58px; }
  .header.is-scrolled .header__logo { height: 50px; }
}
