/* ============================================================
   Machado, Coimbra & Silveira Advogados Associados
   Design system + estilos globais
   ============================================================ */

/* Fontes (self-hosted, variaveis) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0303-0304, U+0308-0309, U+1E00-1EFF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0303-0304, U+0308-0309, U+1E00-1EFF;
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #131210;
  --ink-soft: #35332e;
  --paper: #FBFAF6;
  --paper-pure: #FFFFFF;
  --stone: #6b6862;
  --stone-light: #96938c;
  --hairline: rgba(19, 18, 16, 0.12);
  --hairline-on-dark: rgba(251, 250, 246, 0.16);
  --green: #1d6b42;
  --green-deep: #144f31;
  --green-tint: #eef4f0;
  --whatsapp: #25D366;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-h1: clamp(2.35rem, 1.55rem + 3.4vw, 4.25rem);
  --fs-h2: clamp(1.85rem, 1.5rem + 1.6vw, 2.85rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --fs-h4: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.78rem;

  --container: 1272px;
  --container-pad: clamp(20px, 5vw, 64px);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.85rem;
  --space-4: 1.25rem;
  --space-5: 2rem;
  --space-6: 2.75rem;
  --space-7: 4rem;
  --space-8: 5.5rem;
  --space-9: 8rem;

  --section-pad: clamp(4.5rem, 3.5rem + 4vw, 8rem);

  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture { max-width: 100%; display: block; }
img { height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }
table { border-collapse: collapse; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; }
h4 { font-size: var(--fs-h4); font-weight: 500; }
p { max-width: 62ch; }
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
  transition: top 0.2s var(--ease);
  font-size: var(--fs-small);
}
.skip-link:focus { top: 12px; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: '';
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--dark { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.75em;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.15s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green);
  color: var(--paper-pure);
  border-color: var(--green);
}
.btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); }

.btn--ghost-dark {
  color: var(--ink);
  border-color: var(--hairline);
  background: transparent;
}
.btn--ghost-dark:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn--ghost-light {
  color: var(--paper);
  border-color: var(--hairline-on-dark);
  background: transparent;
}
.btn--ghost-light:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.btn--text {
  padding: 0;
  border: 0;
  color: var(--ink);
  font-weight: 600;
  gap: 0.5em;
  position: relative;
}
.btn--text svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.btn--text:hover svg { transform: translateX(3px); }
.btn--text::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.btn--sm { padding: 0.7em 1.3em; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 22px;
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-color: var(--hairline);
  box-shadow: 0 8px 30px -20px rgba(19, 18, 16, 0.25);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.7em;
  flex-shrink: 0;
}
.site-header__logo img {
  height: 46px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .site-header__logo img { height: 38px; }
.site-header__wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.site-header__wordmark strong { display: block; font-weight: 600; }
.site-header__wordmark span { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); font-family: var(--font-body); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.site-nav__list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
}
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}
.site-nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header-cta { display: inline-flex; }
.header-cta--mobile { display: none; }

@media (max-width: 1023px) {
  .site-nav__list, .header-cta--desktop { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 100px var(--container-pad) var(--space-6);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    gap: var(--space-6);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }
  .site-nav__list a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
  .header-cta--mobile { display: inline-flex; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  background-color: var(--paper);
  background-image: url('../img/hero-trio-mobile.webp');
  background-size: cover;
  background-position: top center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    var(--paper) 0%, var(--paper) 46%,
    rgba(251, 250, 246, 0.85) 57%,
    rgba(251, 250, 246, 0.35) 70%,
    rgba(251, 250, 246, 0) 85%);
}
@media (min-width: 768px) {
  .hero {
    align-items: center;
    background-image: url('../img/hero-trio-desktop.webp');
    background-position: center right;
  }
  .hero::before {
    background: linear-gradient(to right,
      var(--paper) 0%, var(--paper) 44%,
      rgba(251, 250, 246, 0.85) 54%,
      rgba(251, 250, 246, 0.35) 66%,
      rgba(251, 250, 246, 0) 80%);
  }
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 124px var(--space-6);
}
@media (min-width: 768px) {
  .hero__inner { padding-block: var(--space-7); }
}
.hero__content {
  max-width: 560px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__content { max-width: 460px; }
}
.hero__eyebrow { margin-bottom: var(--space-4); }
.hero__title {
  margin-bottom: var(--space-4);
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-3);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.6em;
  font-size: var(--fs-small);
  color: var(--stone);
  margin-bottom: var(--space-6);
}
.hero__meta li { display: flex; align-items: center; gap: 0.5em; }
.hero__meta svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
}
.hero__scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--container-pad);
  bottom: var(--space-5);
  display: none;
  align-items: center;
  gap: 0.7em;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  writing-mode: vertical-rl;
}
@media (min-width: 1024px) {
  .hero__scroll-cue { display: flex; }
}
.hero__scroll-cue::after {
  content: '';
  width: 1px;
  height: 46px;
  background: var(--hairline-on-dark);
}

/* ---------- Section base ---------- */
section { position: relative; }
.section {
  padding-block: var(--section-pad);
}
.section--tight { padding-block: calc(var(--section-pad) * 0.7); }
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark p { color: rgba(251, 250, 246, 0.72); }
.section--tint { background: var(--green-tint); }
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-7);
}
.section-head h2 { margin-top: var(--space-3); }
.section-head p { margin-top: var(--space-4); font-size: var(--fs-lead); color: var(--stone); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  max-width: none;
}

/* ---------- Intro editorial (apresentacao institucional) ---------- */
.intro {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 900px) {
  .intro { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); }
}
.intro__statement {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.intro__body p { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 54ch; }
.intro__body p + p { margin-top: var(--space-4); }

/* ---------- Areas de atuacao ---------- */
.areas-list {
  border-top: 1px solid var(--hairline);
}
.area-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.3s var(--ease);
}
@media (min-width: 860px) {
  .area-row {
    grid-template-columns: 90px 1.1fr 1.4fr auto;
    align-items: center;
  }
}
.area-row:hover { background: var(--paper-pure); }
.area-row__index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--stone-light);
}
.area-row__title {
  font-size: var(--fs-h3);
  font-weight: 500;
}
.area-row__title a { display: inline-flex; align-items: baseline; gap: 0.5em; }
.area-row__title a:hover { color: var(--green); }
.area-row__desc {
  color: var(--stone);
  font-size: 0.98rem;
  max-width: 52ch;
}
.area-row__action {
  justify-self: start;
}
@media (min-width: 860px) { .area-row__action { justify-self: end; } }

/* ---------- O Escritorio ---------- */
.about {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .about--reverse .about__media { order: 2; }
}
.about__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
}
.about__body p { color: var(--ink-soft); font-size: 1.05rem; }
.about__body p + p { margin-top: var(--space-4); }
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline);
}
.about__fact dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}
.about__fact dd { color: var(--stone); font-size: 0.92rem; max-width: 24ch; }

/* ---------- Profissionais ---------- */
.team {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 860px) {
  .team { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}
.team-member__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: var(--space-5);
  background: var(--ink);
}
.team-member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}
.team-member:hover .team-member__photo img { transform: scale(1.035); }
.team-member__name { font-size: var(--fs-h4); margin-bottom: 0.35em; }
.team-member__oab {
  display: block;
  font-size: 0.82rem;
  color: var(--stone);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.team-member__spec {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ---------- Depoimentos ---------- */
.testimonials {
  display: grid;
  gap: var(--space-7) var(--space-7);
}
@media (min-width: 760px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
}
.testimonial { padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  max-width: 46ch;
}
.testimonial cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-size: 0.88rem;
  color: var(--stone);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: var(--space-6); }
.faq-group__title {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-3);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--green);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item__answer {
  padding-bottom: var(--space-4);
  max-width: 66ch;
  color: var(--ink-soft);
}

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final__inner { max-width: 640px; margin-inline: auto; }
.cta-final h2 { margin-bottom: var(--space-3); }
.cta-final p { margin-inline: auto; margin-bottom: var(--space-6); }
.cta-final__actions { display: flex; justify-content: center; }

/* ---------- Contato ---------- */
.contact {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: stretch; }
}
.contact__list { margin-top: var(--space-6); border-top: 1px solid var(--hairline); }
.contact__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--hairline);
}
.contact__item svg {
  width: 19px; height: 19px;
  color: var(--green);
  flex-shrink: 0;
}
.contact__item a, .contact__item span { font-size: 1rem; }
.contact__item a:hover { color: var(--green); }
.contact__map {
  min-height: 340px;
  background: var(--stone-light);
  filter: grayscale(0.35) contrast(1.05);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (min-width: 900px) { .contact__map { min-height: 100%; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--space-7) var(--space-5);
}
.footer-top {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--hairline-on-dark);
}
@media (min-width: 860px) {
  .footer-top { grid-template-columns: 1.3fr 0.85fr 1fr; gap: var(--space-6); }
}
.footer-brand__logo { display: flex; align-items: center; gap: 0.7em; margin-bottom: var(--space-4); }
.footer-brand__logo img { height: 40px; width: auto; filter: invert(1) brightness(1.6); }
.footer-brand p { color: var(--stone-light); font-size: 0.95rem; max-width: 34ch; }
.footer-heading {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: 0.7em; }
.footer-links a { font-size: 0.95rem; color: rgba(251,250,246,0.85); }
.footer-links a:hover { color: var(--paper); }
.footer-contact { display: flex; flex-direction: column; gap: 0.7em; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.7em; font-size: 0.95rem; color: rgba(251,250,246,0.85); }
.footer-contact svg { width: 16px; height: 16px; margin-top: 3px; color: var(--stone-light); flex-shrink: 0; }
.footer-contact a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.82rem;
  color: var(--stone-light);
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(19, 18, 16, 0.45);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }
@media (min-width: 640px) {
  .wa-float { right: 28px; bottom: 28px; }
}

/* ---------- Paginas de area ---------- */
.area-hero {
  padding-block: 150px var(--space-8);
  background: var(--ink);
  color: var(--paper);
}
.area-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--stone-light);
  margin-bottom: var(--space-5);
}
.area-hero__breadcrumb a:hover { color: var(--paper); }
.area-hero h1 { color: var(--paper); max-width: 16ch; }
.area-hero__lead { color: rgba(251,250,246,0.75); font-size: var(--fs-lead); max-width: 56ch; margin-top: var(--space-4); }
.area-hero__actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; }

.area-body {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 960px) {
  .area-body { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-9); }
}
.area-body__lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 58ch;
}
.area-topics {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline);
}
.area-topics__title {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-4);
}
.area-topics ul { display: flex; flex-direction: column; }
.area-topics li {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--hairline);
  font-size: 1.02rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.8em;
}
.area-topics li::before {
  content: '';
  width: 5px; height: 5px;
  margin-top: 0.65em;
  background: var(--green);
  flex-shrink: 0;
}
.area-aside {
  background: var(--paper-pure);
  border: 1px solid var(--hairline);
  padding: var(--space-6);
  align-self: start;
}
@media (min-width: 960px) {
  .area-aside { position: sticky; top: 110px; }
}
.area-aside h3 { margin-bottom: var(--space-3); }
.area-aside p { color: var(--stone); font-size: 0.95rem; margin-bottom: var(--space-5); }
.area-aside__list { display: flex; flex-direction: column; gap: 0.6em; margin-bottom: var(--space-5); }
.area-aside__list a { font-size: 0.92rem; color: var(--ink-soft); }
.area-aside__list a.is-current { color: var(--green); font-weight: 600; }
.area-aside__list a:hover { color: var(--green); }
.area-aside .btn { width: 100%; }

.related-areas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.related-areas a {
  font-size: 0.85rem;
  padding: 0.5em 1em;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.related-areas a:hover { border-color: var(--green); color: var(--green); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
