/* CBL Advogados — identidade "Corte Estratégico" */

:root {
  --deep: #0E3B3F;   /* verde profundo */
  --ink: #172B2E;    /* tinta atlântica */
  --accent: #F2742C; /* laranja estratégico */
  --paper: #F3F0E8;  /* papel mineral */
  --white: #FBFAF7;  /* near-white, casa com o canvas da logo oficial */
  --mist: #D9E3DF;   /* névoa */
  --slate: #607174;

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Aptos", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main { overflow: hidden; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; }

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 24px; top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Nav --- */

.nav {
  height: 88px;
  padding: 0 clamp(24px, 6vw, 86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: inline-flex; width: 154px; height: 64px; align-items: center; }
.brand img { display: block; width: 100%; height: auto; }

.nav nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}
.nav nav a:not(.nav-cta) { opacity: 0.82; }
.nav nav a:not(.nav-cta):hover,
.nav nav a:not(.nav-cta):focus-visible { opacity: 1; }
.nav-cta { border-bottom: 1px solid var(--accent); padding-bottom: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); }

/* --- Hero --- */

.hero {
  min-height: calc(100vh - 88px);
  background: var(--deep);
  color: var(--white);
  padding: clamp(70px, 9vw, 125px) clamp(24px, 6vw, 86px) 42px;
  position: relative;
  display: grid;
  grid-template-columns: 58% 42%;
  align-content: center;
}

.hero-copy { position: relative; z-index: 2; max-width: 740px; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
}

.hero-copy > p {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  max-width: 620px;
  color: var(--mist);
}

.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 42px;
  flex-wrap: wrap;
}

.button {
  background: var(--accent);
  color: #fff;
  padding: 16px 22px;
  font-weight: 800;
  font-size: 13px;
  display: inline-block;
}
.button:hover { background: #d8631f; }

.text-link {
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 6px;
}
.text-link span { margin-left: 18px; color: var(--accent); }

.hero-foot {
  position: absolute;
  bottom: 30px;
  left: clamp(24px, 6vw, 86px);
  right: clamp(24px, 6vw, 86px);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #b6c8c5;
}

.strategic-cut { height: 460px; position: relative; align-self: center; }
.strategic-cut::before {
  content: "";
  position: absolute;
  left: 48%; top: 7%;
  height: 86%; width: 10px;
  background: var(--accent);
  transform: skewX(-13deg);
}
.strategic-cut i {
  position: absolute;
  left: 6%; right: 8%; top: 50%;
  height: 1px;
  background: rgba(217, 227, 223, 0.25);
}
.strategic-cut span, .strategic-cut em {
  position: absolute; top: 46%;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  color: #a8bfbb;
}
.strategic-cut span { left: 6%; }
.strategic-cut em { right: 8%; color: var(--accent); }

/* --- Section rhythm --- */

section:not(.hero) { padding: clamp(80px, 10vw, 145px) clamp(24px, 6vw, 86px); }

.section-title {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8vw;
  margin-bottom: 70px;
}
.section-title h2, .method h2, .contact h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-title p { font-size: 17px; line-height: 1.6; color: var(--slate); }

/* --- Intro --- */

.intro {
  background: var(--white);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10vw;
  align-items: end;
}
.display-line {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.intro > p:last-child { font-size: 17px; line-height: 1.7; color: var(--slate); }

/* --- Áreas de atuação --- */

.practice { background: var(--paper); }

.area-list { border-top: 1px solid #b9c8c4; }
.area-list article {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid #b9c8c4;
  align-items: start;
}
.area-list article > span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}
.area-list h3 { font-family: var(--serif); font-size: 26px; }
.area-list p { color: var(--slate); line-height: 1.65; max-width: 560px; }

/* --- Método --- */

.method {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}
.method-copy > p { color: #b8c9c7; line-height: 1.7; font-size: 17px; max-width: 580px; margin-top: 28px; }
.method ol { list-style: none; margin: 0; padding: 0; }
.method li {
  padding: 27px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}
.method li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.method b { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.method span { font-size: 13px; color: #b8c9c7; }

/* --- Sócios --- */

.partners { background: var(--white); }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.partner-grid article { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: start; }
.portrait {
  height: 190px;
  background: var(--deep);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 28px;
}
.portrait.bianca { background: var(--mist); color: var(--deep); }
.partner-grid h3 { font-family: var(--serif); font-size: 27px; margin: 4px 0 8px; }
.partner-grid p { line-height: 1.6; color: var(--slate); margin: 12px 0; }
.partner-grid .role {
  font-size: 11px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Contato --- */

.contact { background: var(--deep); color: var(--white); display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 10vw; }
.contact > div > p { color: #c5d4d1; font-size: 16px; line-height: 1.7; max-width: 620px; }
.contact-box { border-top: 1px solid var(--accent); padding-top: 24px; }
.contact-box p { margin: 0 0 12px; }
.contact-box a:hover { color: var(--accent); }
.contact-note { font-size: 11px !important; color: #95aaa6 !important; margin-top: 35px !important; }

/* --- Rodapé --- */

footer {
  padding: 38px clamp(24px, 6vw, 86px);
  background: var(--deep);
  color: #b8c9c7;
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.7fr;
  gap: 40px;
  align-items: end;
  font-size: 10px;
}
.footer-brand { width: 142px; display: block; }
footer p { margin: 0; line-height: 1.5; }
footer p:last-child { text-align: right; }

/* --- Responsive --- */

@media (max-width: 800px) {
  .nav { height: 72px; }
  .brand { width: 126px; }
  .nav > nav { display: none; }
  .nav > nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--deep);
    padding: 10px clamp(24px, 6vw, 86px) 24px;
  }
  .nav > nav a { width: 100%; padding: 12px 0; }
  .nav-toggle { display: flex; }

  .hero { min-height: 760px; grid-template-columns: 1fr; padding-top: 70px; align-content: start; }
  .hero h1 { font-size: 48px; }
  .strategic-cut { height: 210px; margin-top: 35px; }
  .hero-foot { bottom: 22px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }

  .intro, .section-title, .method, .partner-grid, .contact { grid-template-columns: 1fr; }
  .intro, .method, .contact { gap: 60px; }

  .area-list article { grid-template-columns: 42px 1fr; }
  .area-list article p { grid-column: 2; }

  .partner-grid article { grid-template-columns: 95px 1fr; }
  .portrait { height: 125px; padding: 12px; font-size: 20px; }

  footer { grid-template-columns: 1fr; gap: 20px; }
  footer p:last-child { text-align: left; }
}
