/* ============================================================
   EVERTON ALVES — Advogado Trabalhista
   Design system (desktop-first) + shared components
   ============================================================ */

:root {
  /* Brand palette */
  --sage: #9CA07F;
  --sage-2: #8b906c;
  --sage-dark: #6f7355;
  --sage-deep: #565a41;
  --cream: #F2F1E9;
  --cream-2: #ECEADD;
  --paper: #FBFBF6;
  --ink: #34342c;
  --ink-soft: #55554b;
  --beige: #C9C6B0;
  --beige-line: #DAD8C6;
  --wa: #128C4A;
  --wa-dark: #0f7a40;
  --gold: #B08D57; /* used extremely sparingly for tiny accents */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: 40px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 60px;

  --shadow-sm: 0 4px 14px rgba(52,52,44,.07);
  --shadow: 0 18px 44px rgba(52,52,44,.11);
  --shadow-lg: 0 36px 80px rgba(52,52,44,.18);
  --shadow-sage: 0 22px 50px rgba(111,115,85,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: .005em; color: var(--ink); }

/* Serif numerals: force lining figures so "10+" doesn't render as "IO+" */
.stat .num, .stat-float .n, .pstep .dot, .num-ghost, .why-visual .badge-float .n,
.cred b, .testi-ava, .quote, h1, h2, h3, h4 {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
}

/* Anchor targets clear the fixed header on jump */
section[id], [id] { scroll-margin-top: 92px; }

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1360px; }
section { position: relative; }
.pad { padding: 108px 0; }
.pad-lg { padding: 132px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .28em;
  font-size: .72rem; font-weight: 700; color: var(--sage-dark);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--sage); display: inline-block; }
.eyebrow.center::after { content: ""; width: 34px; height: 2px; background: var(--sage); display: inline-block; }
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: #e9ecd9; }
.eyebrow.light::before, .eyebrow.light.center::after { background: rgba(255,255,255,.55); }

.section-head { max-width: 720px; margin-bottom: 62px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 18px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.display { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; }
.text-sage { color: var(--sage-dark); }
.italic { font-style: italic; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  letter-spacing: .02em; padding: 17px 32px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: var(--shadow-sage); }
.btn-wa svg { fill: #fff; }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-3px); box-shadow: 0 26px 52px rgba(18,140,74,.34); }
.btn-lg { padding: 21px 40px; font-size: 1.08rem; }
.btn-sage { background: var(--sage-dark); color: #fff; }
.btn-sage:hover { background: var(--sage-deep); transform: translateY(-3px); box-shadow: var(--shadow-sage); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--beige); }
.btn-ghost:hover { border-color: var(--sage-dark); color: var(--sage-dark); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--wa-dark); }
.btn-light svg { fill: var(--wa); }
.btn-light:hover { background: #f3f4ea; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--sage-dark); font-size: .98rem; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(242,241,233,0);
  transition: background .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(249,249,246,.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  height: 70px; box-shadow: var(--shadow-sm); border-bottom-color: var(--beige-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1360px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand img { height: 40px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--sage-dark); transition: width .3s var(--ease); }
.nav a:hover { color: var(--sage-dark); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 12px 22px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-top: calc(var(--header-h) + 22px); padding-bottom: 96px;
  background:
    radial-gradient(1200px 700px at 82% -5%, rgba(156,160,127,.24), transparent 60%),
    radial-gradient(900px 600px at -5% 100%, rgba(201,198,176,.34), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
}
.hero-emblem-bg {
  position: absolute; right: -160px; top: -120px; width: 720px; max-width: 60vw;
  opacity: .06; pointer-events: none; z-index: 0; transform: rotate(-6deg);
}
.hero .wrap { position: relative; z-index: 2; max-width: 1320px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  color: var(--sage-deep); background: rgba(255,255,255,.7); border: 1px solid var(--beige-line);
  padding: 8px 15px; border-radius: var(--radius-pill);
}
.badge svg { width: 15px; height: 15px; fill: var(--sage-dark); }
.hero h1 { font-size: clamp(2.7rem, 4.6vw, 4.35rem); margin-bottom: 24px; letter-spacing: -.01em; }
.hero h1 .accent { display: block; color: var(--sage-dark); font-style: italic; font-size: .68em; line-height: 1.16; margin-top: .22em; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 34px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .92rem; color: var(--ink-soft); }
.hero-note svg { width: 20px; height: 20px; fill: var(--wa); flex: none; }

/* hero media */
.hero-media { position: relative; }
.hero-photo-frame {
  position: relative; border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); z-index: 2;
  aspect-ratio: 4/5; background: var(--beige);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  opacity: 0; transition: opacity .9s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 4;
  display: flex; justify-content: center; gap: 9px;
}
.hero-dots .hd {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.9); background: rgba(255,255,255,.35);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hero-dots .hd.is-active { background: #fff; transform: scale(1.15); }
.hero-media::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px; border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  border: 2px solid var(--sage); opacity: .5; z-index: 1;
}
.hero-media .diamond {
  position: absolute; width: 120px; height: 120px; background: var(--sage);
  transform: rotate(45deg); border-radius: 22px; z-index: 0; opacity: .9;
}
.hero-media .diamond.d1 { top: -34px; left: -34px; }
.hero-media .diamond.d2 { bottom: 40px; right: -46px; width: 74px; height: 74px; background: var(--beige); border-radius: 16px; }
.stat-float {
  position: absolute; bottom: 26px; left: -40px; z-index: 3;
  background: var(--paper); border: 1px solid var(--beige-line); border-radius: var(--radius);
  padding: 18px 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.stat-float .n { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--sage-dark); line-height: 1; }
.stat-float .t { font-size: .82rem; color: var(--ink-soft); line-height: 1.3; max-width: 15ch; }

.hero-badge { display: none; }
@media (min-width: 1081px) {
  .hero-badge {
    display: inline-flex; align-items: center; position: absolute; top: 24px; left: 50%;
    transform: translateX(-50%); z-index: 5; background: var(--sage-dark); color: #fff;
    border: none; border-radius: 999px; padding: 16px 34px;
    font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; box-shadow: 0 14px 30px rgba(0,0,0,.28);
    animation: hero-badge-float 3.5s ease-in-out infinite;
  }
}
@keyframes hero-badge-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Hero ocupa exatamente a altura da janela no desktop, adaptando-se
   dinamicamente a cada resolucao para que todo o conteudo apareca de imediato. */
@media (min-width: 1081px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 12px);
    padding-bottom: 28px;
  }
  .hero .wrap { width: 100%; }
  /* limita a altura da imagem para nunca ultrapassar a janela em telas baixas;
     mantem a proporcao 4/5 mas corta topo/base quando a altura disponivel e menor */
  .hero-photo-frame {
    max-height: calc(100dvh - var(--header-h) - 56px);
    margin-left: auto;
  }
}
/* Telas desktop de altura media (~768 a 820px): compressao leve, mantendo
   as fontes praticamente no tamanho normal, so ajustando espacamentos. */
@media (min-width: 1081px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--header-h) + 6px); padding-bottom: 22px; }
  .hero-badges { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2.55rem, 4.3vw, 4rem); margin-bottom: 18px; }
  .hero-sub { font-size: 1.14rem; margin-bottom: 24px; }
  .hero-note { margin-top: 16px; }
  .hero-photo-frame { max-height: calc(100dvh - var(--header-h) - 44px); }
}
/* Telas desktop realmente baixas (<=730px): compressao mais forte para
   caber tudo sem estourar a janela. */
@media (min-width: 1081px) and (max-height: 730px) {
  .hero { padding-top: calc(var(--header-h) + 2px); padding-bottom: 16px; }
  .hero-badges { margin-bottom: 13px; }
  .hero h1 { font-size: clamp(2.25rem, 3.4vw, 3.3rem); margin-bottom: 13px; }
  .hero h1 .accent { margin-top: .12em; }
  .hero-sub { font-size: 1.04rem; margin-bottom: 18px; }
  .hero-note { margin-top: 12px; }
  .hero-photo-frame { max-height: calc(100dvh - var(--header-h) - 32px); }
}

/* ============================================================
   TRUST / STATS BAR
   ============================================================ */
.stats {
  background: var(--ink); color: #fff; padding: 54px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.14); }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 700; color: #fff; line-height: 1; }
.stat .num .suf { color: var(--sage); }
.stat .lbl { margin-top: 8px; font-size: .92rem; color: #c7c8ba; letter-spacing: .02em; }

/* ============================================================
   INTRO / POSICIONAMENTO
   ============================================================ */
.intro { background: var(--paper); position: relative; overflow: hidden; text-align: center; }
.intro .emblem-bg { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(6deg); width: 560px; max-width: 80%; opacity: .045; pointer-events: none; }
.intro .wrap { position: relative; z-index: 1; }
.intro-inner { max-width: 900px; margin: 0 auto; }
.intro-mark { display: block; width: 58px; height: 58px; margin: 0 auto 26px; }
.intro-mark img { width: 100%; height: 100%; object-fit: contain; }
.intro-title { font-size: clamp(2rem, 3.8vw, 3.15rem); line-height: 1.12; color: var(--ink); max-width: 20ch; margin: 0 auto 24px; }
.intro-rule { width: 70px; height: 2px; background: var(--sage); margin: 0 auto 24px; }
.intro-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   EMPATHY BAND ("Você foi demitido?")
   ============================================================ */
.empathy { background: var(--sage-deep); color: #fff; overflow: hidden; }
.empathy::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('assets_recomeco.jpg') center 42% / cover no-repeat;
}
.empathy::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(70,74,54,.88) 0%, rgba(86,90,65,.76) 48%, rgba(111,115,85,.55) 100%);
}
.empathy .wrap { position: relative; z-index: 1; }
.empathy-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.empathy h2 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.5rem); margin-bottom: 20px; }
.empathy p { color: #f2f4e6; font-size: 1.14rem; max-width: 52ch; }
.empathy-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.empathy .btn-light { align-self: stretch; }
.empathy-reassure { font-size: .92rem; color: #eef0e0; display: flex; align-items: center; gap: 9px; }
.empathy-reassure svg { width: 18px; height: 18px; fill: #fff; }

/* ============================================================
   PRACTICE AREAS (grid of linked cards)
   ============================================================ */
.areas { background: var(--cream); }
.areas-search { position: relative; max-width: 560px; margin: -14px auto 42px; }
.areas-search .s-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: var(--sage-dark); pointer-events: none; }
.areas-search input {
  width: 100%; padding: 16px 50px 16px 52px; border: 1px solid var(--beige-line); border-radius: var(--radius-pill);
  background: var(--paper); font-family: var(--sans); font-size: 1.02rem; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.areas-search input::placeholder { color: #9a9a8c; }
.areas-search input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(156,160,127,.22); }
.areas-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.areas-search .s-clear {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
  border: none; background: var(--cream-2); color: var(--ink-soft); border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease);
}
.areas-search .s-clear:hover { background: var(--beige); color: var(--ink); }
.areas-search .s-clear[hidden] { display: none; }
.area-card.is-hidden { display: none; }
.areas-noresult { text-align: center; color: var(--ink-soft); margin-top: 26px; font-size: 1.05rem; }
.areas-noresult a { color: var(--sage-dark); font-weight: 600; text-decoration: underline; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--beige-line); border-radius: var(--radius);
  padding: 32px 30px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.area-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: var(--sage); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.area-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--sage); }
.area-card:hover::before { transform: scaleY(1); }
.area-ico {
  width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(150deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.area-ico svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.7; }
.area-card h3 { font-size: 1.55rem; }
.area-card p { font-size: .98rem; color: var(--ink-soft); flex: 1; }
.area-card .link-arrow { margin-top: 4px; }
.area-card .num-ghost {
  position: absolute; right: 16px; top: 4px; font-family: var(--serif); font-weight: 700;
  font-size: 4.2rem; color: var(--cream-2); z-index: 0; line-height: 1; transition: color .3s var(--ease);
}
.area-card:hover .num-ghost { color: rgba(156,160,127,.22); }
.area-card > * { position: relative; z-index: 1; }

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.process { background: var(--paper); overflow: hidden; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.process-grid::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--beige) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.pstep { position: relative; z-index: 1; text-align: center; }
.pstep .dot {
  width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--sage); color: var(--sage-dark);
  font-family: var(--serif); font-size: 1.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.pstep:hover .dot { background: var(--sage-dark); color: #fff; transform: translateY(-6px) scale(1.05); }
.pstep h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pstep p { font-size: .94rem; color: var(--ink-soft); }

/* ============================================================
   DIFERENCIAIS (why me)
   ============================================================ */
.why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-list { display: grid; gap: 14px; }
.why-item {
  display: flex; gap: 18px; background: var(--paper); border: 1px solid var(--beige-line);
  border-radius: var(--radius); padding: 22px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why-item:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.why-item .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; transition: background .35s var(--ease); }
.why-item .ico svg { width: 24px; height: 24px; stroke: var(--sage-dark); fill: none; stroke-width: 1.8; transition: stroke .35s var(--ease); }
.why-item.active { border-color: var(--sage); box-shadow: var(--shadow); transform: translateX(6px); }
.why-item.active .ico { background: var(--sage-dark); }
.why-item.active .ico svg { stroke: #fff; }
.why-item h4 { font-size: 1.28rem; margin-bottom: 3px; }
.why-item p { font-size: .95rem; color: var(--ink-soft); }
.why-visual { position: relative; }
.why-visual .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.why-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
/* 4-image slideshow */
.why-slider { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--beige); }
.why-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.why-slide.is-active { opacity: 1; }
.why-slide img { width: 100%; height: 100%; object-fit: cover; }
.why-slider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52,52,44,0) 55%, rgba(52,52,44,.42)); pointer-events: none; }
.why-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.why-dots .wd { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .3s var(--ease), width .3s var(--ease); }
.why-dots .wd.is-active { background: #fff; width: 22px; border-radius: 5px; }
.why-visual .badge-float {
  position: absolute; bottom: -22px; right: -22px; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 20px 26px; box-shadow: var(--shadow-lg); text-align: center;
}
.why-visual .badge-float .n { font-family: var(--serif); font-size: 2.2rem; color: var(--sage); font-weight: 700; line-height: 1; }
.why-visual .badge-float .t { font-size: .8rem; color: #d7d8cb; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--paper); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 66px; align-items: center; }
.about-photo { position: relative; }
.about-photo .frame { aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 2; }
.about-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-photo::after { content: ""; position: absolute; inset: -22px 22px 22px -22px; border: 2px solid var(--sage); border-radius: var(--radius-lg); z-index: 1; opacity: .55; }
.about-photo .emblem-mark { position: absolute; top: -30px; right: -18px; width: 120px; opacity: .5; z-index: 3; }
.about h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin: 16px 0 22px; }
.about p { color: var(--ink-soft); font-size: 1.08rem; }
.about .creds { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cred {
  display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--beige-line);
  border-radius: 12px; padding: 14px 20px;
}
.cred svg { width: 26px; height: 26px; stroke: var(--sage-dark); fill: none; stroke-width: 1.6; flex: none; }
.cred b { font-family: var(--serif); font-size: 1.15rem; display: block; }
.cred span { font-size: .82rem; color: var(--ink-soft); }
.about .note {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px;
  background: var(--cream); border-left: 4px solid var(--sage); border-radius: 10px;
  padding: 14px 20px; font-size: .96rem; color: var(--ink-soft);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { background: var(--cream); position: relative; overflow: hidden; }
.testi .emblem-bg { position: absolute; right: -140px; bottom: -120px; width: 460px; opacity: .05; pointer-events: none; z-index: 0; transform: rotate(8deg); }
.testi .wrap { position: relative; z-index: 1; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard {
  --ac: var(--sage); --ac2: var(--sage-dark);
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--beige-line); border-radius: var(--radius-lg);
  padding: 40px 32px 28px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--ac), var(--ac2)); }
.tcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--ac); }
.tcard-quote { position: absolute; top: 16px; right: 26px; font-family: var(--serif); font-weight: 700; font-size: 5.5rem; line-height: 1; color: var(--cream-2); z-index: 0; transition: color .3s var(--ease); }
.tcard:hover .tcard-quote { color: color-mix(in srgb, var(--ac) 22%, var(--cream-2)); }
.tcard-tag {
  position: relative; z-index: 1; align-self: flex-start; margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: #fff; background: linear-gradient(150deg, var(--ac), var(--ac2));
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.tcard-tag svg { width: 13px; height: 13px; fill: #fff; }
.tcard-text { position: relative; z-index: 1; font-size: 1.06rem; color: var(--ink); line-height: 1.6; flex: 1; margin-bottom: 20px; }
.tcard-stars { display: flex; gap: 3px; margin-bottom: 20px; }
.tcard-stars svg { width: 17px; height: 17px; fill: var(--ac2); }
.tcard-person { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--beige-line); }
.tcard-ava {
  width: 54px; height: 54px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #fff;
  background: linear-gradient(150deg, var(--ac), var(--ac2)); box-shadow: var(--shadow-sm);
}
.tcard-id b { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 1.18rem; line-height: 1.15; }
.tcard-id b svg { width: 16px; height: 16px; fill: var(--sage-dark); flex: none; }
.tcard-role { display: block; font-size: .86rem; color: var(--ink-soft); }
.tcard-loc { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--sage-dark); font-weight: 600; margin-top: 3px; }
.tcard-loc svg { width: 13px; height: 13px; fill: currentColor; }
.testi-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin-top: 40px;
}
.testi-trust span { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.testi-trust svg { width: 20px; height: 20px; fill: var(--sage-dark); flex: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid > .section-head { position: sticky; top: 110px; }
.faq-trust { margin-top: 30px; display: grid; gap: 12px; }
.faq-trust .row { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-soft); }
.faq-trust .row svg { width: 22px; height: 22px; fill: var(--sage-dark); flex: none; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--beige-line); border-radius: var(--radius); background: var(--cream); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--sage); background: var(--paper); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 26px; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q .pm { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--sage-dark); border-radius: 2px; }
.faq-q .pm::before { top: 12px; left: 3px; right: 3px; height: 2px; }
.faq-q .pm::after { left: 12px; top: 3px; bottom: 3px; width: 2px; transition: transform .3s var(--ease); }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--ink-soft); font-size: 1rem; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta { background: linear-gradient(135deg, var(--sage-dark), var(--sage-deep)); color: #fff; text-align: center; overflow: hidden; }
/* CTA with photo background (advogado no tribunal) */
.cta.cta-photo { background: var(--sage-deep); }
.cta.cta-photo { padding: 82px 0; }
.cta.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url('everton-tribunal.jpg') center 22% / cover no-repeat; }
.cta.cta-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(52,52,44,.5) 0%, rgba(70,74,54,.72) 55%, rgba(86,90,65,.82) 100%); }
.cta.cta-photo .emblem-bg { display: none; }
/* Keep the wide composition (subject left, text clear of his face) across sizes:
   a shorter band stays wider than the image, so cover crops top/bottom (not the sides). */
@media (max-width: 1024px) {
  .cta.cta-photo { padding: 60px 0; }
  .cta.cta-photo h2 { font-size: clamp(1.9rem, 4.8vw, 2.7rem); }
  .cta.cta-photo p { font-size: 1.06rem; }
}
@media (max-width: 680px) {
  .cta.cta-photo { padding: 300px 0 52px; background-position: center; }
  .cta.cta-photo::before { background-position: 32% 12%; }
  .cta.cta-photo::after { background: linear-gradient(180deg, rgba(52,52,44,.15) 0%, rgba(52,52,44,.35) 42%, rgba(70,74,54,.9) 100%); }
}
.cta .emblem-bg { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 640px; max-width: 80%; opacity: .08; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.8rem); max-width: 20ch; margin: 18px auto 16px; }
.cta p { color: #eef0e0; font-size: 1.16rem; max-width: 50ch; margin: 0 auto 34px; }
.cta .btn-light { box-shadow: var(--shadow-lg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #cfd0c4; padding: 76px 0 30px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo-mark { height: 62px; display: block; margin-bottom: 10px; }
.footer-logo-text {
  display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px;
}
.footer-brand p { color: #a9aa9c; font-size: .92rem; max-width: 30ch; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 18px; font-weight: 700; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #cfd0c4; transition: color .2s, padding .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact div { margin-bottom: 14px; }
.footer-contact .lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #90917f; margin-bottom: 2px; }
.footer-contact a, .footer-contact span { color: #eceadf; }
.footer-wa { margin-top: 8px; }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid #46463d; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #90917f; font-size: .82rem; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(18,140,74,.45);
  transition: transform .3s var(--ease); animation: wa-pulse 2.6s infinite;
}
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 12px 30px rgba(18,140,74,.45), 0 0 0 0 rgba(18,140,74,.4);} 50% { box-shadow: 0 12px 30px rgba(18,140,74,.45), 0 0 0 16px rgba(18,140,74,0);} }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

/* ============================================================
   SERVICE PAGE (internal)
   ============================================================ */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + 76px); padding-bottom: 76px;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(156,160,127,.22), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
  overflow: hidden;
}
.page-hero .emblem-bg { position: absolute; right: -120px; top: -80px; width: 520px; opacity: .07; transform: rotate(-6deg); }
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--sage-dark); }
.breadcrumb .sep { color: var(--beige); }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); max-width: 18ch; margin-bottom: 20px; }
.page-hero .lead { font-size: 1.24rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 30px; }
.page-body { background: var(--paper); }
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.article :where(h2) { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 8px 0 16px; }
.article :where(h3) { font-size: 1.5rem; margin: 34px 0 12px; }
.article p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 18px; }
.article .lead-in { font-size: 1.2rem; color: var(--ink); }
.check-list { display: grid; gap: 14px; margin: 22px 0 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; color: var(--ink); }
.check-list li svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.callout {
  background: var(--cream); border: 1px solid var(--beige-line); border-left: 4px solid var(--sage);
  border-radius: var(--radius); padding: 26px 30px; margin: 30px 0;
}
.callout h3 { margin: 0 0 8px; font-size: 1.35rem; }
.callout p { margin: 0; }
.aside-cta {
  position: sticky; top: 100px; background: linear-gradient(160deg, var(--sage-dark), var(--sage-deep));
  color: #fff; border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow);
}
.aside-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.aside-cta p { color: #f4f6ec; font-size: .98rem; margin-bottom: 22px; }
.aside-cta .btn { width: 100%; }
.aside-mini { margin-top: 18px; display: grid; gap: 10px; }
.aside-mini .row { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #f0f2e5; }
.aside-mini svg { width: 18px; height: 18px; fill: #fff; flex: none; }
.related { background: var(--cream); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.related-card { background: var(--paper); border: 1px solid var(--beige-line); border-radius: var(--radius); padding: 24px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: var(--sage); }
.related-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.related-card .link-arrow { font-size: .88rem; }
/* related card with image (blog "Continue lendo") */
.related-card.has-img { padding: 0; display: flex; flex-direction: column; }
.related-card .rthumb { aspect-ratio: 16/10; overflow: hidden; }
.related-card .rthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.related-card.has-img:hover .rthumb img { transform: scale(1.06); }
.related-card .rbody { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-list { background: var(--paper); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--beige-line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--sage); }
.post-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(150deg, var(--sage), var(--sage-dark)); display: flex; align-items: flex-end;
}
.post-thumb.alt { background: linear-gradient(150deg, var(--sage-dark), var(--sage-deep)); }
.post-thumb.ink { background: linear-gradient(150deg, #45463c, var(--ink)); }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52,52,44,.12), rgba(52,52,44,0) 45%, rgba(52,52,44,.28)); z-index: 1; }
.post-thumb .emblem { position: absolute; right: -30px; top: -28px; width: 190px; opacity: .16; filter: brightness(0) invert(1); z-index: 1; }
.post-thumb .chip {
  position: relative; z-index: 2; margin: 16px; background: rgba(255,255,255,.94); color: var(--sage-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill); box-shadow: 0 4px 12px rgba(52,52,44,.18);
}
.post-body-c { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.42rem; line-height: 1.15; margin-bottom: 10px; }
.post-card p { font-size: .96rem; color: var(--ink-soft); flex: 1; margin-bottom: 18px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-soft); }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--beige); }
.post-card .link-arrow { margin-top: 16px; }

/* Article (blog post) */
.post-hero .post-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: .92rem; color: var(--ink-soft); }
.post-hero .chip {
  background: var(--sage); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 7px 15px; border-radius: var(--radius-pill);
}
.post-hero .post-info .who { display: flex; align-items: center; gap: 9px; }
.post-hero .post-info .ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg,var(--sage),var(--sage-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: .9rem; }
.article h2 { scroll-margin-top: 96px; }
.article .toc {
  background: var(--cream); border: 1px solid var(--beige-line); border-radius: var(--radius);
  padding: 24px 28px; margin: 6px 0 30px;
}
.article .toc h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sage-dark); margin-bottom: 12px; }
.article .toc ul { display: grid; gap: 8px; }
.article .toc a { color: var(--ink); font-weight: 500; display: inline-flex; gap: 8px; }
.article .toc a:hover { color: var(--sage-dark); }
.article .toc a::before { content: "—"; color: var(--sage); }
.article blockquote {
  border-left: 4px solid var(--sage); background: var(--cream); border-radius: 0 12px 12px 0;
  padding: 18px 24px; margin: 24px 0; font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--ink);
}
.article .inline-cta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--cream); border: 1px dashed var(--sage); border-radius: var(--radius);
  padding: 20px 24px; margin: 28px 0;
}
.article .inline-cta p { margin: 0; flex: 1; min-width: 220px; color: var(--ink); font-weight: 500; }
.author-box {
  display: flex; gap: 22px; align-items: center; margin-top: 44px; padding: 28px;
  background: var(--cream); border: 1px solid var(--beige-line); border-radius: var(--radius-lg);
}
.author-box .ava { width: 74px; height: 74px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.author-box .ava img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-box h4 { font-size: 1.35rem; margin-bottom: 4px; }
.author-box p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.related-posts { background: var(--cream); }

/* ============================================================
   BLOG BLOCK ON HOME
   ============================================================ */
.blog-home { background: var(--cream); }
.blog-home .blog-grid { margin-bottom: 44px; }
.blog-home-foot { text-align: center; }

/* ============================================================
   CONTACT (form -> WhatsApp + map)
   ============================================================ */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: stretch; }
.contact-form {
  background: var(--paper); border: 1px solid var(--beige-line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.contact-form .field { margin-bottom: 18px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--beige-line); border-radius: 12px;
  background: var(--cream); font-family: var(--sans); font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(156,160,127,.25);
}
.contact-form textarea { resize: vertical; min-height: 118px; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.contact-form .form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.contact-form .form-note svg { width: 15px; height: 15px; fill: var(--sage-dark); vertical-align: -2px; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.brasil-badge {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  background: var(--sage); color: #fff; padding: 9px 18px; border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 600;
}
.brasil-badge svg { width: 17px; height: 17px; fill: #fff; }
.contact-info { background: var(--cream); border: 1px solid var(--beige-line); border-radius: var(--radius-lg); padding: 30px 32px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item > div { min-width: 0; }
.contact-item + .contact-item { margin-top: 18px; }
.contact-item .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--paper); border: 1px solid var(--beige-line); display: flex; align-items: center; justify-content: center; }
.contact-item .ic svg { width: 22px; height: 22px; fill: var(--sage-dark); }
.contact-item .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sage-dark); font-weight: 700; }
.contact-item b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.contact-item a, .contact-item span { color: var(--ink-soft); font-size: .98rem; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--sage-dark); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--beige-line); box-shadow: var(--shadow-sm); flex: 1; min-height: 240px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; filter: grayscale(.25) contrast(1.02); }

/* ============================================================
   COOKIE BANNER + MAP CONSENT + LEGAL PAGE
   ============================================================ */
.cookie-bar {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 200;
  max-width: 960px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--beige-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px 26px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  transform: translateY(160%); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie-bar.show { transform: none; opacity: 1; }
.cookie-bar .cc-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; }
.cookie-bar .cc-ico svg { width: 26px; height: 26px; fill: var(--sage-dark); }
.cookie-bar .cc-text { flex: 1; min-width: 250px; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.cookie-bar .cc-text b { color: var(--ink); font-family: var(--serif); font-size: 1.12rem; display: block; margin-bottom: 3px; }
.cookie-bar a { color: var(--sage-dark); font-weight: 600; text-decoration: underline; }
.cookie-bar .cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .btn { padding: 12px 24px; font-size: .92rem; }

.contact-map { position: relative; }
.map-ph { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--cream); padding: 24px; }
.map-ph svg { width: 32px; height: 32px; fill: var(--sage-dark); }
.map-ph b { display: block; font-family: var(--serif); font-size: 1.25rem; margin: 10px 0 2px; color: var(--ink); }
.map-ph span { display: block; font-size: .82rem; color: var(--ink-soft); max-width: 30ch; margin: 0 auto; }
.map-ph .btn { margin-top: 16px; }

.legal .article h2 { margin-top: 40px; }
.legal .article h2:first-of-type { margin-top: 8px; }
.legal .article ul.bullets { list-style: disc; padding-left: 22px; margin: 0 0 18px; color: var(--ink-soft); }
.legal .article ul.bullets li { margin-bottom: 8px; font-size: 1.05rem; }
.legal .updated { display: inline-block; background: var(--cream); border: 1px solid var(--beige-line); border-radius: 10px; padding: 8px 16px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE (desktop-first → tablet → mobile)
   ============================================================ */
@media (max-width: 1080px) {
  :root { --gutter: 30px; }
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .stat-float { left: 0; }
  .empathy-grid, .why-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid > .section-head { position: static; }
  .contact-map { min-height: 300px; }
  .areas-grid, .testi-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .author-box { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 16px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .process-grid::before { display: none; }
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .aside-cta { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }

  /* Mobile slide-in nav */
  .nav.open {
    display: flex; position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: calc(var(--header-h) + 20px) 34px 34px; gap: 8px; box-shadow: var(--shadow-lg); z-index: 99;
  }
  .nav.open a { font-size: 1.15rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--beige-line); }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(52,52,44,.4); z-index: 98; }
}

@media (max-width: 680px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }
  .pad { padding: 68px 0; }
  .pad-lg { padding: 76px 0; }
  .section-head { margin-bottom: 42px; }
  .hero { padding-top: calc(var(--header-h) + 30px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-lg {
    padding: 14px 16px; font-size: clamp(.72rem, 3.6vw, .92rem); gap: 8px; white-space: nowrap;
  }
  .hero-actions .btn-lg svg { width: 18px; height: 18px; flex: none; }
  .hero-photo-frame { border-radius: 140px 140px var(--radius) var(--radius); }
  .stat-float { padding: 14px 18px; }
  .stat-float .n { font-size: 2rem; }
  .areas-grid, .testi-grid, .related-grid, .blog-grid { grid-template-columns: 1fr; }
  /* Passo a passo: 1 item por linha, dot a esquerda e linha pontilhada vertical */
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .pstep {
    display: grid; grid-template-columns: 70px 1fr; column-gap: 20px; align-items: start;
    text-align: left; padding-bottom: 30px;
  }
  .pstep:last-child { padding-bottom: 0; }
  .pstep .dot { grid-row: 1 / 3; align-self: start; margin: 0; }
  .pstep h3 { grid-column: 2; align-self: center; margin-bottom: 4px; }
  .pstep p { grid-column: 2; }
  .pstep::before {
    content: ""; position: absolute; left: 34px; top: 35px; bottom: -35px; width: 2px; z-index: 0;
    background: repeating-linear-gradient(180deg, var(--beige) 0 10px, transparent 10px 20px);
  }
  .pstep:last-child::before { display: none; }
  .contact-form .row2 { grid-template-columns: 1fr; gap: 0; }
  .contact-form .row2 .field { margin-bottom: 18px; }
  .contact-form { padding: 28px 22px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
  .empathy .btn-light, .hero-actions .btn { align-self: stretch; }
  .cta .btn-lg {
    padding: 14px 16px; font-size: clamp(.72rem, 3.6vw, .92rem); gap: 8px; white-space: nowrap;
  }
  .cta .btn-lg svg { width: 18px; height: 18px; flex: none; }
  .why-visual .badge-float { right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .wa-float { width: 56px; height: 56px; right: 18px; bottom: 18px; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; padding: 20px; gap: 16px; }
  .cookie-bar .cc-actions { flex-direction: column; }
  .cookie-bar .cc-actions .btn { width: 100%; }
}

/* ============================================================
   HERO MOBILE — foto solta no topo, frase de impacto embaixo
   Escopo: apenas <=680px. Nao afeta o desktop (regras de desktop
   ficam em @media (min-width:1081px)).
   ============================================================ */
@media (max-width: 680px) {
  .hero { padding-top: var(--header-h); padding-bottom: 44px; }
  .hero .wrap { max-width: 100%; }
  .hero-grid { display: flex; flex-direction: column; gap: 0; }

  /* Foto ocupa o topo, sangrando ate as bordas, sem moldura */
  .hero-media {
    order: -1;
    width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; max-width: none;
    height: 27rem; height: min(52svh, 27rem); margin-bottom: 0;
  }
  .hero-media .diamond { display: none; }
  .hero-media::before { display: none; }
  .stat-float { display: none; }
  #heroDots { display: none; }

  .hero-photo-frame {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border-radius: 0; box-shadow: none; background: none;
    aspect-ratio: auto; max-height: none; margin: 0;
  }
  /* funde a base da foto direto com o fundo da secao (sem linha divisoria) */
  .hero-photo-frame img {
    object-position: center 20%;
    -webkit-mask-image: linear-gradient(to bottom, #000 44%, rgba(0,0,0,.55) 74%, transparent 96%);
            mask-image: linear-gradient(to bottom, #000 44%, rgba(0,0,0,.55) 74%, transparent 96%);
  }
  .hero-photo-frame::after { display: none; }

  /* Badge flutuante, centralizado, um pouco abaixo da foto e acima do titulo */
  .hero-badge {
    display: inline-flex; align-items: center; position: absolute; z-index: 5;
    left: 50%; bottom: 0; transform: translate(-50%, 50%);
    background: var(--sage-dark); color: #fff; border: none; border-radius: 999px;
    padding: 10px 22px; font-size: .92rem; font-weight: 700; letter-spacing: .01em;
    box-shadow: 0 10px 22px rgba(0,0,0,.24);
    animation: hero-badge-float-mobile 3.5s ease-in-out infinite;
  }
  .hero-copy { padding-top: 26px; }

  /* Frase de impacto abaixo da foto, centralizada */
  .hero-copy { order: 0; display: flex; flex-direction: column; text-align: center; max-width: 100%; margin-top: -4px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-note { justify-content: center; }
  /* selos vao para baixo do texto (nao no topo) */
  .hero-badges { order: 9; justify-content: center; margin: 24px 0 0; }

  @keyframes hero-badge-float-mobile {
    0%, 100% { transform: translate(-50%, 50%); }
    50% { transform: translate(-50%, 42%) translateY(-6px); }
  }
}
