/* =========================================================================
   FASS Advogados — Landing Page
   Implementação responsiva do design "FASS Landing Page.dc.html"
   (o design original é um canvas fixo de 1440px; aqui ele vira layout fluido)
   ========================================================================= */

/* --------------------------------- Tokens -------------------------------- */
:root {
  /* Cores */
  --c-bg:            #181818;
  --c-surface:       #242424;
  --c-accent:        #F24E1E;
  --c-accent-hi:     #FF6B42;
  --c-text:          #FFFFFF;
  --c-text-soft:     #EBEDF0;
  --c-text-muted:    #D5D6DB;
  --c-text-dim:      #84829A;

  /* Gradiente do botão principal */
  --g-primary: linear-gradient(135deg, #FF6236 0%, #F24E1E 55%, #D93F13 100%);

  /* Tipografia */
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Poppins", "Inter", system-ui, sans-serif;

  /* Ritmo vertical / medidas */
  --shell:      1060px;   /* largura útil do design (1440 - 190*2) */
  --gutter:     clamp(20px, 5vw, 40px);
  --section-y:  clamp(72px, 10vw, 150px);
  --header-h:   88px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

a { color: var(--c-accent); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--c-accent-hi); }

:focus-visible {
  outline: 2px solid var(--c-accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* Container ---------------------------------------------------------------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

/* ---------------------------- Barra de progresso -------------------------- */
.progress-track {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #F24E1E, #FF8A5B);
  box-shadow: 0 0 12px rgba(242, 78, 30, .6);
  /* scaleX em vez de width: não recalcula layout a cada quadro de scroll. */
  transition: transform .12s linear;
  will-change: transform;
}

/* --------------------------------- Botões -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { color: #fff; }

.btn--primary {
  min-width: 170px;
  height: 60px;
  padding-inline: 26px;
  border-radius: 10px;
  font-size: 18px;
  background: var(--g-primary);
  box-shadow: 0 14px 30px -8px rgba(242, 78, 30, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s ease;
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -10px rgba(242, 78, 30, .7);
  filter: brightness(1.08);
}
.btn--primary:active { transform: translateY(-1px); }

.btn--solid {
  height: 40px;
  padding-inline: 20px;
  border-radius: 5px;
  /* 600 em 17px cruza o limiar de "texto grande"; branco sobre laranja
     é 3,57:1, suficiente ali mas não em peso 500. */
  font-weight: 600;
  font-size: 17px;
  background: var(--c-accent);
  box-shadow: 0 4px 2.4px rgba(0, 0, 0, .25);
  transition: background .3s ease, transform .3s var(--ease);
}
.btn--solid:hover { background: var(--c-accent-hi); transform: translateY(-2px); }

.center-cta { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 72px); }

/* --------------------------------- Header -------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(24, 24, 24, .79);
  backdrop-filter: blur(10px);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.is-stuck {
  background: rgba(24, 24, 24, .95);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.header__logo img { width: 86px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__list a {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  color: var(--c-text-soft);
  white-space: nowrap;
}
.nav__list a:hover { color: var(--c-accent); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text-soft);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(818px, 100svh);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(60px, 9vw, 110px);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero__image {
  position: absolute;
  inset: -2%;
  background: url("assets/hero-team.webp") center / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  /* duas camadas: o fade vertical para o fundo da página + um véu suave
     atrás do texto, porque o meio da foto de equipe é claro demais */
  /* O Figma deixa a foto clara: o texto ganha contraste por um véu suave
     atrás dele e por um sombreado só nas bordas, não escurecendo tudo. */
  background:
    radial-gradient(58% 42% at 50% 62%, rgba(24,24,24,.42) 0%, rgba(24,24,24,0) 100%),
    linear-gradient(180deg,
      rgba(24,24,24,.30) 0%,
      rgba(24,24,24,.06) 18%,
      rgba(24,24,24,0) 42%,
      rgba(24,24,24,.30) 78%,
      var(--c-bg) 100%);
}

.hero__content { position: relative; text-align: center; }

.hero__title {
  max-width: 760px;
  margin-inline: auto;
  font-weight: 700;
  font-size: clamp(38px, 5.9vw, 84px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.hero__lead {
  max-width: 601px;
  margin: clamp(20px, 3vw, 34px) auto 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.875;
  color: var(--c-text);
}

.hero .btn--primary { margin-top: clamp(28px, 4vw, 44px); }

/* Rabisco na primeira linha, sob "escritório full" ------------------------
   O SVG é um pincel cheio de 377x66. O design não mostra o pincel inteiro:
   ele o inclina com matrix(0.992,0.123,-0.510,0.860,19.162,-27.394) e recorta
   uma janela de 385x12 — o que sobra é a faixa fina e levemente diagonal.
   Aqui a mesma construção, só que proporcional: a janela mantém a razão
   385:12 e o traço lá dentro mantém 377.45:66.183, então tudo acompanha o
   tamanho do texto. */
.underline { position: relative; display: inline-block; white-space: nowrap; }

.underline__crop {
  position: absolute;
  left: 2%;
  bottom: -.06em;
  width: 100%;
  aspect-ratio: 385 / 12;      /* a janela de recorte do design */
  overflow: hidden;
  pointer-events: none;
}

.underline__stroke {
  position: absolute;
  left: 0;
  top: 0;
  width: 98.04%;               /* 377.45 / 385 */
  aspect-ratio: 377.45 / 66.183;
  background: var(--c-accent);
  -webkit-mask: url("assets/underline-orange.svg") no-repeat 0 0 / 100% 100%;
          mask: url("assets/underline-orange.svg") no-repeat 0 0 / 100% 100%;
  /* o translate em % do próprio traço reproduz os e/f da matriz do design */
  transform: translate(5.08%, -41.39%) matrix(0.992, 0.123, -0.510, 0.860, 0, 0);
  transform-origin: 0 0;
  animation: draw-in 1.2s var(--ease) .6s both;
}

/* -------------------------------- Seções --------------------------------- */
.section { padding-block: var(--section-y); }

.section__head {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}
.section__head > * { max-width: 900px; }
.section__head .eyebrow { text-align: center; }

.eyebrow {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--c-accent);
}
/* só o rótulo da landing é caixa-baixa, como no design */
.section__head .eyebrow { text-transform: lowercase; }
.split .eyebrow { text-transform: uppercase; font-family: var(--f-body); }

.section__title {
  margin-top: 19px;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.08;
  color: var(--c-text);
}
.section__title--muted  { color: var(--c-text-muted); }
.section__title--center { margin-top: 0; }   /* alinhado à esquerda, como no Figma */

/* ---------------------- Faixa "como atuamos" (desk) ---------------------- */
.section--atuacao { padding-bottom: 0; }

.band {
  position: relative;
  margin-top: clamp(40px, 6vw, 68px);
  padding-block: clamp(48px, 6vw, 76px) clamp(72px, 9vw, 110px);
  isolation: isolate;
}
.band__media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.band__image {
  position: absolute;
  inset: 0;
  background-position: 50% 70%;
  background-size: cover;
  background-repeat: no-repeat;
}
.band__image--desk { background-image: url("assets/desk-band.webp"); }
.band__scrim { position: absolute; inset: 0; }
/* O Figma desfoca a metade esquerda da foto em vez de só escurecê-la —
   é o que deixa o texto legível sem apagar a imagem. */
.band__scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 62%);
          mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 62%);
}
.band__scrim--from-left {
  background: linear-gradient(90deg,
    rgba(24,24,24,.94) 0%, rgba(24,24,24,.88) 20%,
    rgba(24,24,24,.66) 40%, rgba(24,24,24,.16) 62%, rgba(36,36,36,.02) 76%);
}

.band__content { position: relative; }

.prose {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.45;
}
.band .btn--primary { margin-top: clamp(32px, 4vw, 48px); }

/* ------------------------------- Áreas ----------------------------------- */
.areas__wrap { position: relative; margin-top: clamp(40px, 6vw, 72px); }

.areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 21px;
  row-gap: 31px;
}

.area {
  flex: 0 1 248px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(36, 36, 36, .78);
  border: 1px solid rgba(242, 78, 30, .14);
  box-shadow: 0 4px 17.4px rgba(0, 0, 0, .25);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.1;
  text-align: center;
  color: var(--c-accent);
  cursor: default;
  transition: transform .4s var(--ease), background .4s ease,
              border-color .4s ease, box-shadow .4s ease;
}
.area:hover {
  transform: translateY(-6px);
  background: rgba(48, 40, 37, .92);
  border-color: rgba(242, 78, 30, .5);
  box-shadow: 0 18px 34px -10px rgba(0, 0, 0, .55);
}

.areas__squiggle {
  position: absolute;
  right: -46px;
  bottom: -34px;
  width: 96px;
  z-index: -1;
  opacity: .9;
  animation: float 6s ease-in-out infinite alternate;
}

/* --------------------------- Como trabalhamos ---------------------------- */
.pillars {
  margin-top: clamp(40px, 6vw, 78px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* No Figma o card é um retângulo escuro liso: sem linha-gradiente no topo e
   sem o traço acima do título — os dois vinham do .dc.html, não do design. */
.pillar {
  position: relative;
  min-height: 390px;
  padding: 44px 30px;
  border-radius: 13px;
  background: #212121;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  transition: transform .5s var(--ease), background .5s ease, box-shadow .5s ease;
}
.pillar:hover {
  transform: translateY(-10px);
  background: #262626;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .7);
}
.pillar__rule { display: none; }
.pillar__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.245;
  color: var(--c-accent);
}
.pillar__body { font-size: 16px; line-height: 1.5; }

/* --------------------------- Blocos split (foto) -------------------------- */
.split {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 293px;
  padding-block: clamp(56px, 7vw, 84px);
  isolation: isolate;
}
.split__media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.split__image {
  position: absolute;
  inset: 0;
  background-position: 50% 64%;
  background-size: cover;
  background-repeat: no-repeat;
}
.split__image--experiencia { background-image: url("assets/experiencia.webp"); background-position: 100% 64%; }
.split__image--handshake   { background-image: url("assets/handshake.webp");   background-position: 0% 64%; }

.split__scrim { position: absolute; inset: 0; }
.split__scrim--from-left {
  background: linear-gradient(90deg, var(--c-bg) 46%, rgba(24,24,24,.6) 68%, rgba(36,36,36,.02) 100%);
}
.split__scrim--from-right {
  background: linear-gradient(270deg, var(--c-bg) 46%, rgba(24,24,24,.6) 68%, rgba(36,36,36,.02) 100%);
}

.split__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}
.split--text-right .split__content {
  margin-left: auto;
  margin-right: max(var(--gutter), (100vw - var(--shell)) / 2);
  text-align: right;
  align-items: flex-end;
}

.split__title {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}
.split__title--lg {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1;
}
.split__body { font-size: 16px; line-height: 1.45; }
.split__body--lg { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; }
.split__body strong { font-weight: 700; }

/* ---------------------------------- CTA ---------------------------------- */
.cta {
  position: relative;
  margin-top: clamp(56px, 8vw, 100px);
  padding-block: clamp(90px, 12vw, 170px);
  border-radius: 129px 20px 20px 20px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__image {
  position: absolute;
  inset: 0;
  background: url("assets/cta-bg.webp") center / cover no-repeat;
}
.cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--c-bg) 0%, rgba(24,24,24,.86) 28%, rgba(24,24,24,.86) 72%, var(--c-bg) 100%);
}

.cta__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.08;
  color: var(--c-accent);
}
.cta__lead {
  max-width: 640px;
  margin: clamp(14px, 2vw, 22px) auto 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}
.cta .btn--primary { margin-top: clamp(28px, 4vw, 44px); }

/* --------------------------------- Footer -------------------------------- */
.site-footer { padding-block: clamp(56px, 8vw, 96px) 36px; }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
}
.footer__logo img { width: 125px; height: auto; }

.footer__heading {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.245;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.245;
  color: #E5E5E5;
}
.footer__nav a:hover { color: var(--c-accent); }

.footer__social { text-align: right; margin-left: auto; }
.footer__social-label {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.245;
  letter-spacing: .005em;
}
.social { display: flex; gap: 25px; justify-content: flex-end; margin-top: 18px; }
.social__link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  transition: background .3s ease, transform .3s var(--ease);
}
.social__link:hover { background: rgba(0, 0, 0, .5); transform: translateY(-3px); color: var(--c-accent-hi); }

.footer__legal {
  margin-top: clamp(48px, 7vw, 88px);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.245;
  text-align: center;
  color: var(--c-text-dim);
}

/* -------------------------------- Animações ------------------------------ */
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-14px, -10px, 0); }
}
@keyframes draw-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

/* Estado inicial do reveal (aplicado só quando o JS está ativo) */
.js [data-reveal],
.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="right"] { transform: translateX(38px); }
.js [data-reveal="left"]  { transform: translateX(-38px); }

.js [data-reveal].is-visible,
.js [data-reveal-stagger] > .is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------- Responsivo ------------------------------ */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(20, 20, 20, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 14px 4px; font-size: 18px; }
  .nav__cta { margin-top: 14px; align-self: flex-start; }

  /* Fotos de fundo passam a lastro escuro: legibilidade primeiro no mobile */
  .band__scrim--from-left,
  .split__scrim--from-left,
  .split__scrim--from-right {
    background: linear-gradient(180deg, rgba(24,24,24,.90) 0%, rgba(24,24,24,.94) 100%);
  }

  .split--text-right .split__content {
    margin-right: 0;
    text-align: left;
    align-items: flex-start;
    width: min(100% - var(--gutter) * 2, var(--shell));
    margin-inline: auto;
  }

  .areas__squiggle { right: -20px; bottom: -48px; width: 66px; }
}

@media (max-width: 560px) {
  .area { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; }
  .footer__social { text-align: left; margin-left: 0; }
  .social { justify-content: flex-start; }
  .cta { border-radius: 64px 16px 16px 16px; }
}

/* --------------------------- Preferências do SO -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .underline__stroke { animation: none; clip-path: none; }
}

@media print {
  .site-header, .progress-track, .btn { display: none; }
  body { background: #fff; color: #000; }
}
