/* =========================================================================
   Marcio Eduardo Tenório Advogados
   Design system · refined editorial luxury
   Palette from brand manual: #1d3320 (verde) · #afad91 (sage/dourado)
   ========================================================================= */

/* ---------- Fonts ---------- */
/* Cormorant Garamond (display serif) + Montserrat (body sans) — self-loaded
   via Google Fonts with preconnect in <head> for performance. */

/* ========================================================================
   1. Tokens
   ======================================================================== */
:root {
  /* Brand */
  --green:        #1d3320;
  --green-deep:   #12241a;
  --green-800:    #24402a;
  --green-700:    #33513a;
  --sage:         #afad91;
  --sage-light:   #c6c4ac;
  --sage-dark:    #6f6b49; /* darkened for AA text contrast on light bg */

  /* Neutrals */
  --ivory:        #f6f4ee;
  --ivory-2:      #efece2;
  --paper:        #fbfaf6;
  --ink:          #1b1f1b;
  --muted:        #62675d;
  --gray:         #9d9d9d;

  /* Functional */
  --bg:           var(--ivory);
  --text:         var(--ink);
  --line:         rgba(29, 51, 32, .14);
  --line-strong:  rgba(29, 51, 32, .28);
  --shadow-sm:    0 2px 10px rgba(18, 36, 26, .06);
  --shadow-md:    0 18px 45px -20px rgba(18, 36, 26, .28);
  --shadow-lg:    0 40px 80px -30px rgba(18, 36, 26, .40);

  /* Type */
  --serif:  "Cormorant Garamond", "Times New Roman", serif;
  --sans:   "Montserrat", -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --container: 1220px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --radius: 2px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ========================================================================
   2. Reset & base
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.06rem);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  letter-spacing: .003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

::selection { background: var(--green); color: var(--ivory); }

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

/* ========================================================================
   3. Typography
   ======================================================================== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: .005em;
  color: var(--green-deep);
}

.display {
  font-size: clamp(2.9rem, 1.6rem + 5.4vw, 6.2rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: .01em;
}

h2, .h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.7rem); }
h3, .h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }

p { max-width: 68ch; }

/* Justified body copy (per brand guidance) */
.split__body p,
.lawyer__body p,
.value p,
.footer-brand p { text-align: justify; text-align-last: left; }

.lead {
  font-size: clamp(1.15rem, 1.05rem + .55vw, 1.5rem);
  line-height: 1.6;
  color: #33413a;
  font-weight: 300;
}

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.eyebrow.is-centered::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}

.serif-accent { font-family: var(--serif); font-style: italic; }

/* ========================================================================
   4. Layout helpers
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1400px; }

.section { padding-block: var(--section-y); position: relative; z-index: 2; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.4rem; }
.section-head h2 { margin-bottom: 1.2rem; }
.section-head p { color: var(--muted); }
.section-head.is-centered p { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }

.hairline { height: 1px; background: var(--line); border: 0; }

/* ========================================================================
   5. Buttons
   ======================================================================== */
.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--ivory);
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding: 1.05em 2.1em;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  z-index: 0;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover { color: var(--green-deep); border-color: var(--sage); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--green);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--green-deep); }

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  border-color: rgba(246, 244, 238, .35);
}
.btn--light:hover { color: var(--green-deep); }

/* Text link with underline sweep */
.link {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  position: relative;
  padding-bottom: 4px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--sage-dark);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(0); transform-origin: left; }
.link .arrow { transition: transform .4s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* ========================================================================
   6. Header / navigation
   ======================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 1.1rem;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(246,244,238,.16);
  opacity: 1;
  transition: opacity .5s;
}
.site-header.is-solid {
  background: rgba(246, 244, 238, .88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding-block: .7rem;
}
.site-header.is-solid::after { opacity: 0; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: .85rem; z-index: 2; }
.brand img { height: 57px; width: auto; transition: height .5s var(--ease); }
.is-solid .brand img { height: 50px; }
/* logo is dark; over hero it sits on dark bg so invert-ish not needed —
   we use the light lockup over hero via filter */
.brand-logo--onhero { filter: brightness(0) invert(1) opacity(.94); }
.is-solid .brand-logo--onhero { filter: none; }

/* Wider bar to fit the language switcher next to the CTA */
.site-header .container.nav { max-width: 1360px; }

/* Language switcher (PT / EN flags) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: .3rem;
  flex: none;
}
.lang-switch::before {
  content: "";
  width: 1px;
  height: 20px;
  margin-right: .35rem;
  background: rgba(246, 244, 238, .28);
}
.is-solid .lang-switch::before { background: var(--line-strong); }
.lang-btn {
  width: 30px;
  height: 21px;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  opacity: .5;
  filter: grayscale(.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  transition: opacity .35s var(--ease), filter .35s var(--ease), transform .35s var(--ease), box-shadow .35s;
}
.lang-btn svg { width: 100%; height: 100%; display: block; }
.lang-btn:hover { opacity: .85; filter: grayscale(.15); transform: translateY(-1px); }
.lang-btn.is-active {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 1.5px var(--sage), 0 2px 7px rgba(0, 0, 0, .18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.4vw, 2.6rem);
}
.nav-links a {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-block: .4rem;
  transition: color .4s;
}
.is-solid .nav-links a { color: var(--green-deep); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--sage); }
.is-solid .nav-links a[aria-current="page"] { color: var(--green); }

.nav-cta { margin-left: .5rem; }
.nav .btn {
  padding: .8em 1.5em;
  font-size: .68rem;
}
.nav-cta svg { width: 15px; height: 15px; flex: none; }
/* Keep the CTA label ivory in every header state (overrides the
   dark nav-link colour applied when the header is solid) */
.nav-links a.nav-cta,
.is-solid .nav-links a.nav-cta { color: var(--ivory); }
.nav-links a.nav-cta:hover,
.is-solid .nav-links a.nav-cta:hover { color: var(--green-deep); }

/* Burger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform .45s var(--ease), opacity .3s, background .4s;
}
.is-solid .nav-toggle span { background: var(--green-deep); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span { background: var(--ivory); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========================================================================
   7. Hero
   ======================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease-out) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,36,26,.55) 0%, rgba(18,36,26,.30) 35%, rgba(18,36,26,.72) 100%),
    linear-gradient(90deg, rgba(18,36,26,.55) 0%, rgba(18,36,26,0) 55%);
}

.hero__inner {
  width: 100%;
  padding-bottom: clamp(3.5rem, 8vh, 7rem);
  padding-top: 8rem;
}
.hero .eyebrow { color: var(--sage-light); margin-bottom: 1.8rem; }
.hero__title {
  color: var(--ivory);
  max-width: 16ch;
  margin-bottom: 1.8rem;
}
.hero__title em { font-style: italic; color: var(--sage-light); }
.hero__sub {
  max-width: 52ch;
  font-weight: 300;
  font-size: clamp(1.05rem, .98rem + .5vw, 1.35rem);
  color: rgba(246,244,238,.86);
  margin-bottom: 2.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.5rem, 8vh, 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  writing-mode: vertical-rl;
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(246,244,238,.7);
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 60px;
  background: linear-gradient(var(--sage), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{ transform: scaleY(.4); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ========================================================================
   8. Intro / editorial split
   ======================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split__media { grid-column: span 6; position: relative; }
.split__body { grid-column: span 6; }
.split--reverse .split__media { order: 2; }

.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.figure:hover img { transform: scale(1.05); }
.figure--wide img { aspect-ratio: 3 / 2; }
.figure__frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246,244,238,.5);
  pointer-events: none;
  z-index: 2;
}
.figure__tag {
  position: absolute;
  left: 0; bottom: 26px;
  background: var(--green);
  color: var(--ivory);
  padding: .9rem 1.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  z-index: 3;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.6rem;
}
.stat { }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: 1;
  color: var(--green);
  display: block;
}
.stat__num sup { color: var(--sage-dark); font-size: .5em; top: -.7em; }
.stat__label {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .7rem;
}

/* ========================================================================
   9. Areas grid
   ======================================================================== */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.area-card {
  position: relative;
  background: var(--paper);
  padding: clamp(2rem, 3.5vw, 2.8rem);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  transition: color .6s var(--ease);
}
.area-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.area-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85);
  transform: scale(1.02);
  transition: transform 1s var(--ease-out), filter .6s;
}
.area-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,36,26,.15) 0%, rgba(18,36,26,.55) 55%, rgba(18,36,26,.92) 100%);
  transition: background .6s;
}
.area-card__num {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--sage-light);
  margin-bottom: auto;
  padding-bottom: 1.5rem;
}
.area-card__icon {
  width: 34px; height: 34px;
  color: var(--sage-light);
  margin-bottom: 1.1rem;
}
.area-card__icon svg { width: 100%; height: 100%; }
.area-card h3 { color: var(--ivory); font-size: 1.5rem; }
.area-card p {
  color: rgba(246,244,238,.78);
  font-size: .92rem;
  line-height: 1.55;
  margin-top: .7rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease), opacity .5s, margin .6s;
}
.area-card__more {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-top: 1.2rem;
  opacity: .85;
}
.area-card:hover .area-card__img img { transform: scale(1.1); filter: saturate(1); }
.area-card:hover .area-card__img::after {
  background: linear-gradient(180deg, rgba(18,36,26,.35) 0%, rgba(18,36,26,.7) 45%, rgba(20,38,26,.95) 100%);
}
.area-card:hover p { max-height: 120px; opacity: 1; margin-top: 1rem; }

/* compact list variant (home) */
.area-card--min { min-height: 260px; }

/* --- Detailed area cards (áreas page) — symbol-led, no photography --- */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
}
.area-feature {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s;
}
/* hairline that draws itself across the top on hover */
.area-feature::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--sage-dark), var(--sage));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.area-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}
.area-feature:hover::before { transform: scaleX(1); }

/* index numeral, watermark-style */
.area-feature__num {
  position: absolute;
  top: clamp(1rem, 2vw, 1.4rem);
  right: clamp(1.2rem, 2.4vw, 1.8rem);
  z-index: -1;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  line-height: 1;
  color: var(--green);
  opacity: .07;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  user-select: none;
}
.area-feature:hover .area-feature__num { opacity: .13; transform: translateY(-3px); }

/* emblem: rotated square frame holding the practice-area symbol */
.area-feature__emblem {
  position: relative;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: clamp(1.4rem, 2.4vw, 1.9rem);
  flex: none;
}
.area-feature__emblem::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  background: rgba(175, 173, 145, .10);
  transform: rotate(45deg);
  transition: background .55s var(--ease), border-color .55s var(--ease), transform .7s var(--ease-out);
}
.area-feature:hover .area-feature__emblem::before {
  background: var(--green);
  border-color: var(--green);
  transform: rotate(135deg);
}
.area-feature__emblem svg {
  position: relative;
  width: 30px; height: 30px;
  color: var(--sage-dark);
  transition: color .55s var(--ease);
}
.area-feature:hover .area-feature__emblem svg { color: var(--sage-light); }

.area-feature h3 { font-size: 1.55rem; margin-bottom: .9rem; }
.area-feature h3::after {
  content: "";
  display: block;
  width: 34px; height: 1px;
  background: var(--sage);
  margin-top: .9rem;
  transition: width .6s var(--ease-out);
}
.area-feature:hover h3::after { width: 68px; }
.area-feature p { color: var(--muted); font-size: .96rem; flex: 1; }
.area-feature__tag {
  margin-top: 1.4rem;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: inline-flex; align-items: center; gap: .5em;
}

/* --- Practice-area index panel (escritório page, replaces photo) --- */
.atuacao-panel {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(175,173,145,.18), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-deep));
  border-radius: var(--radius);
  overflow: hidden;
}
.atuacao-panel::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246,244,238,.16);
  pointer-events: none;
}
.atuacao-panel__label {
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.6rem;
}
.atuacao-panel__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(246,244,238,.13);
  border: 1px solid rgba(246,244,238,.13);
}
.atuacao-panel__list li {
  background: transparent;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.05rem .9rem;
  color: rgba(246,244,238,.9);
  font-size: .84rem;
  line-height: 1.35;
  backdrop-filter: none;
  transition: background .5s var(--ease), color .5s;
}
.atuacao-panel__list li:hover { background: rgba(246,244,238,.07); color: var(--ivory); }
.atuacao-panel__list svg {
  width: 22px; height: 22px;
  flex: none;
  color: var(--sage);
  transition: color .5s;
}
.atuacao-panel__list li:hover svg { color: var(--sage-light); }
.atuacao-panel__foot {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage-light);
}

/* ========================================================================
   10. Advogados
   ======================================================================== */
.lawyer {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.lawyer + .lawyer { margin-top: clamp(4rem, 8vw, 7rem); }
.lawyer__media { grid-column: span 5; position: relative; }
.lawyer--reverse .lawyer__media { order: 2; }
.lawyer__body { grid-column: span 7; }
.lawyer__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Monogram portrait (no photo available) */
.lawyer__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(175,173,145,.22), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  overflow: hidden;
  isolation: isolate;
}
.lawyer__portrait::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(175,173,145,.32);
  pointer-events: none;
}
.lawyer__portrait img {
  width: 84px;
  height: auto;
  opacity: .92;
  filter: brightness(0) saturate(100%) invert(78%) sepia(9%) saturate(560%) hue-rotate(21deg) brightness(94%) contrast(86%);
}
.lawyer__portrait .mono {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 5rem);
  letter-spacing: .18em;
  color: var(--ivory);
  line-height: 1;
  padding-left: .18em;
}
.lawyer__portrait .mono-sub {
  font-family: var(--sans);
  font-size: .64rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--sage-light);
}

.lawyer__role {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}
.lawyer__name { margin-bottom: 1.5rem; }
.lawyer__body p + p { margin-top: 1.1rem; }
.lawyer__body p { color: #3a453e; }
.lawyer__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.lawyer__meta div { min-width: 140px; }
.lawyer__meta dt {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: .35rem;
}
.lawyer__meta dd { font-family: var(--serif); font-size: 1.15rem; color: var(--green-deep); }

/* ========================================================================
   11. Values / feature list
   ======================================================================== */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.value { position: relative; padding-top: 2rem; }
.value::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 2px;
  background: var(--sage);
}
.value__icon { width: 30px; height: 30px; color: var(--green); margin-bottom: 1.2rem; }
.value h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.value p { color: var(--muted); font-size: .96rem; }

/* ========================================================================
   12. Quote / manifesto
   ======================================================================== */
.manifesto {
  background: var(--green);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: "”";
  position: absolute;
  top: -.2em; left: .1em;
  font-family: var(--serif);
  font-size: 34rem;
  line-height: 1;
  color: rgba(175,173,145,.08);
  pointer-events: none;
}
.manifesto__inner { position: relative; text-align: center; max-width: 960px; margin-inline: auto; }
.manifesto blockquote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.3rem);
  line-height: 1.28;
  font-weight: 400;
  color: var(--ivory);
}
.manifesto blockquote em { color: var(--sage-light); font-style: italic; }
.manifesto blockquote { margin-inline: auto; }
.manifesto__cite {
  margin-top: 2.5rem;
  margin-inline: auto;      /* centre the box so its text truly centres */
  max-width: none;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sage-light);
}

/* ========================================================================
   13. CTA band
   ======================================================================== */
.cta {
  position: relative;
  background: var(--green-deep);
  color: var(--ivory);
  overflow: hidden;
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.cta h2 { color: var(--ivory); max-width: 18ch; }
.cta h2 em { color: var(--sage-light); font-style: italic; }
.cta__aside { max-width: 380px; }
.cta__aside p { color: rgba(246,244,238,.8); margin-bottom: 1.8rem; }

/* ========================================================================
   14. Page hero (interior)
   ======================================================================== */
.page-hero {
  position: relative;
  padding-top: clamp(9rem, 16vh, 13rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: var(--green-deep);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(175,173,145,.16), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(51,81,58,.5), transparent 60%);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2; opacity: .22;
}
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .eyebrow { color: var(--sage-light); margin-bottom: 1.6rem; }
.page-hero h1 { color: var(--ivory); max-width: 18ch; }
.page-hero .lead { color: rgba(246,244,238,.82); margin-top: 1.6rem; max-width: 60ch; }
.breadcrumb {
  display: flex; gap: .6rem; align-items: center;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(246,244,238,.55);
  margin-bottom: 2rem;
}
.breadcrumb a:hover { color: var(--sage-light); }
.breadcrumb span { color: var(--sage-light); }

/* ========================================================================
   15. Contact
   ======================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-info .info-item {
  display: flex;
  gap: 1.3rem;
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-item:first-of-type { padding-top: 0; }
.info-item__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h3 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: .4rem;
}
.info-item p, .info-item a { font-size: 1.05rem; color: var(--green-deep); }
.info-item a:hover { color: var(--sage-dark); }

/* Form */
.form { background: var(--paper); padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid var(--line); }
.field { position: relative; margin-bottom: 1.7rem; }
.field label {
  display: block;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .95em 1em;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .35s, box-shadow .35s, background .35s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(175,173,145,.25);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.form__note { font-size: .8rem; color: var(--muted); margin-top: 1.2rem; text-align: center; }
.form__success {
  display: none;
  padding: 1rem 1.2rem;
  background: rgba(29,51,32,.06);
  border-left: 2px solid var(--green);
  color: var(--green-deep);
  font-size: .92rem;
  margin-bottom: 1.5rem;
}
.form__success.is-visible { display: block; }
.form__error {
  padding: 1rem 1.2rem;
  background: rgba(150, 45, 35, .07);
  border-left: 2px solid #8d3327;
  color: #7a2b21;
  font-size: .92rem;
  margin-bottom: 1.5rem;
}
.form__error[hidden] { display: none; }
/* honeypot — fora da tela, nunca focável por teclado */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.map-embed {
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 7;
  filter: grayscale(.35) contrast(1.02);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ========================================================================
   16. Footer
   ======================================================================== */
.site-footer {
  background: var(--green-deep);
  color: rgba(246,244,238,.72);
  position: relative;
  z-index: 2;
  padding-top: clamp(4rem, 7vw, 6rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.footer-brand img { height: 54px; filter: brightness(0) invert(1) opacity(.92); margin-bottom: 1.5rem; }
.footer-brand p { font-size: .92rem; max-width: 34ch; color: rgba(246,244,238,.6); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1.4rem;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: .85rem; }
.footer-col a { font-size: .95rem; transition: color .3s; }
.footer-col a:hover { color: var(--sage-light); }
.footer-col address { font-style: normal; font-size: .95rem; line-height: 1.9; color: rgba(246,244,238,.62); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 2rem;
  border-top: 1px solid rgba(246,244,238,.12);
  font-size: .76rem;
  letter-spacing: .04em;
  color: rgba(246,244,238,.5);
}
.footer-bottom a:hover { color: var(--sage-light); }

/* ========================================================================
   17. WhatsApp float
   ======================================================================== */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--green);
  color: var(--ivory);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), background .4s;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); background: var(--green-800); }
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  opacity: 0;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0%{ transform: scale(.9); opacity:.7 } 100%{ transform: scale(1.35); opacity:0 } }

/* ========================================================================
   18. Reveal animations
   ======================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* Hero staggered load */
.hero .load-in { opacity: 0; transform: translateY(28px); animation: loadIn 1.1s var(--ease-out) forwards; }
.hero .load-in[data-delay="1"] { animation-delay: .25s; }
.hero .load-in[data-delay="2"] { animation-delay: .45s; }
.hero .load-in[data-delay="3"] { animation-delay: .65s; }
.hero .load-in[data-delay="4"] { animation-delay: .85s; }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* ========================================================================
   19. Responsive
   ======================================================================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .split__media, .split__body,
  .lawyer__media, .lawyer__body { grid-column: 1 / -1; }
  .split, .lawyer { grid-template-columns: 1fr; }
  .split--reverse .split__media,
  .lawyer--reverse .lawyer__media { order: 0; }
  .lawyer__media { max-width: 440px; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; order: 3; }
  .nav-cta { display: none; }
  .nav { gap: .55rem; flex-wrap: nowrap; }
  .brand { margin-right: auto; order: 1; }
  .brand img, .is-solid .brand img { height: 42px; }
  .lang-switch { order: 2; margin-left: 0; margin-right: .2rem; }
  .lang-switch::before { display: none; }
  .lang-btn { width: 26px; height: 19px; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--green-deep);
    transform: translateX(100%);
    transition: transform .6s var(--ease);
    padding: 2rem;
  }
  body.nav-open .nav-links { transform: none; }
  .nav-links a { color: var(--ivory); font-size: 1.1rem; letter-spacing: .2em; }
  .is-solid .nav-links a { color: var(--ivory); }
  .nav-links a[aria-current="page"] { color: var(--sage); }
  .nav-links .btn { color: var(--ivory); }
}

@media (max-width: 480px) {
  .display { font-size: clamp(2.3rem, 1.7rem + 4vw, 3rem); }
  .page-hero h1 { max-width: 100%; }
}

@media (max-width: 620px) {
  :root { --section-y: 4rem; }
  .atuacao-panel__list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .form__row { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .stat-row { gap: 1.5rem 2rem; }
  .areas { grid-template-columns: 1fr; }
}

/* ========================================================================
   20. Motion / reduced
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero .load-in { opacity: 1 !important; transform: none !important; }
  .hero__bg img { transform: none; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
