/* ============================================================
   Barreto & Alves — Advocacia e Consultoria Jurídica
   Design tokens + components
   ============================================================ */

:root {
  /* Brand palette */
  --wine:        #3D2235;
  --wine-deep:   #2E1A28;
  --wine-soft:   #5A3A4D;
  --gold:        #B49E73;
  --gold-soft:   #C8B591;
  --gold-deep:   #9C8557;
  --gold-text:   #7A6230; /* WCAG-AA gold for small text on light bg (>=4.5:1 on ivory/paper) */
  --taupe:       #D6CEC8;
  --taupe-light: #E4DED7;
  --ivory:       #F4F1EC;
  --paper:       #FBFAF8;
  --graphite:    #2A2530;

  /* Functional */
  --ink:         #2A2530;
  --muted:       #6B6068;
  --muted-light: #8C8289;
  --line:        #E2DBD2;
  --line-strong: #D2C8BC;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(42,37,48,.04), 0 4px 14px rgba(42,37,48,.05);
  --shadow-md: 0 8px 30px rgba(61,34,53,.10);
  --shadow-lg: 0 20px 60px rgba(61,34,53,.14);
  --ease: cubic-bezier(.22,.61,.36,1);

  --header-h: 84px;
}

/* ----------------------------------------------------------- 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: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }

/* ----------------------------------------------------------- Type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--wine); letter-spacing: -0.01em; text-wrap: balance; }
.h-display { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { text-wrap: pretty; text-align: justify; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ----------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-paper { background: var(--paper); }
.bg-taupe { background: var(--taupe-light); }
.bg-ivory { background: var(--ivory); }

.divider { height: 1px; background: var(--line); border: 0; }
.gold-rule { width: 56px; height: 2px; background: var(--gold); border: 0; }
.gold-rule.center { margin-inline: auto; }

/* ----------------------------------------------------------- Buttons */
.btn {
  --btn-fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  padding: .9rem 1.7rem;
  border-radius: var(--radius);
  background: var(--wine);
  color: var(--btn-fg);
  border: 1px solid var(--wine);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--wine-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--wine); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--gold); color: var(--wine); box-shadow: none; transform: translateY(-2px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); }
.btn--gold:hover { background: var(--gold-deep); color: var(--ivory); }
.btn--on-dark { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); }
.btn--on-dark:hover { background: var(--gold-soft); color: var(--wine-deep); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: .85rem; }
.btn--pill { border-radius: 100px; padding: .68rem 1.25rem; font-size: .72rem; }
.btn--pill svg { width: 17px; height: 17px; }
/* Filled action buttons read as uppercase labels, matching the brand */
.btn:not(.btn--ghost):not(.link-arrow) { text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.btn--ghost { text-transform: uppercase; letter-spacing: .07em; font-weight: 700; font-size: .8rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--wine);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow svg { transition: transform .3s var(--ease); width: 18px; height: 18px; }
.link-arrow:hover { color: var(--gold-text); gap: .8rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ----------------------------------------------------------- Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(244,241,236,.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(42,37,48,.02), 0 6px 24px rgba(42,37,48,.04); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 42px; height: auto; flex: none; }
.brand__shield { width: 56px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--wine); letter-spacing: .01em; white-space: nowrap; }
.brand__tag { font-family: var(--sans); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-top: .35rem; font-weight: 600; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); flex: 1; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.nav__link {
  position: relative;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  text-transform: uppercase; letter-spacing: .1em;
  padding: .4rem 0;
  white-space: nowrap;
  transition: color .3s var(--ease);
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--wine); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--wine); }

/* Dropdown */
.nav__item { position: relative; }
.nav__caret { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item.open .nav__caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 268px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav__item.open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px; background: var(--paper); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.dropdown a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .85rem; border-radius: var(--radius);
  font-size: .92rem; color: var(--ink); font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.dropdown a:hover { background: var(--ivory); color: var(--wine); }
.dropdown a .di { width: 18px; height: 18px; color: var(--gold-deep); flex: none; }
.dropdown a[aria-current="page"] { color: var(--wine); background: var(--ivory); }

.header-cta { margin-left: .4rem; white-space: nowrap; }

/* Mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 1.6px; background: var(--wine); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) 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.6px) rotate(-45deg); }

/* ----------------------------------------------------------- Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--ivory);
  padding: 2rem var(--gutter) 3rem;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .sub { padding-left: 1rem; display: flex; flex-direction: column; margin-top: .2rem; }
.mobile-menu .sub a { font-family: var(--sans); font-size: 1.05rem; color: var(--ink); padding: .7rem 0; display: block; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-label { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); padding-top: 1.4rem; padding-bottom: .4rem; font-weight: 700; }
.mobile-menu .btn { margin-top: 1.8rem; color: var(--ivory); border-bottom: 0; }
body.menu-open { overflow: hidden; }

/* ----------------------------------------------------------- Footer */
.site-footer { background: var(--wine); color: rgba(244,241,236,.78); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.site-footer a { transition: color .25s var(--ease); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(2rem, 4vw, 3.5rem); }
.footer-brand .brand__name { color: var(--ivory); }
.footer-brand .brand__tag { color: var(--gold-soft); }
.brand--footer { gap: 1rem; align-items: center; }
.footer-about { margin-top: 1.4rem; font-size: .92rem; line-height: 1.7; color: rgba(244,241,236,.62); max-width: 30ch; }
.footer-col h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a, .footer-col li { font-size: .94rem; color: rgba(244,241,236,.78); }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .8rem; line-height: 1.5; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold-soft); flex: none; margin-top: .2rem; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.8rem; border-top: 1px solid rgba(244,241,236,.14); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
.footer-legal { font-size: .8rem; line-height: 1.7; color: rgba(244,241,236,.55); max-width: 64ch; }
.footer-legal strong { color: rgba(244,241,236,.78); font-weight: 600; }
.footer-oab { font-size: .82rem; color: var(--gold-soft); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }

/* ----------------------------------------------------------- Cards (áreas) */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; }
.area-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
  min-height: 240px;
}
.area-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease);
}
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.area-card:hover::after { transform: scaleY(1); }
.area-card__icon { width: 38px; height: 38px; color: var(--gold-deep); margin-bottom: 1.4rem; }
.area-card__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.area-card h3 { margin-bottom: .6rem; }
.area-card p { font-size: .96rem; color: var(--muted); line-height: 1.6; flex: 1; }
.area-card .link-arrow { margin-top: 1.4rem; }
.area-card__num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--serif); font-size: 1rem; color: var(--line-strong); font-style: italic; }

/* Feature / diferenciais */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.feature { }
.feature__num { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--gold-text); margin-bottom: 1rem; display:block; }
.feature h3 { font-size: 1.35rem; margin-bottom: .65rem; }
.feature p { color: var(--muted); font-size: .98rem; }

/* ----------------------------------------------------------- Images */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--taupe); }
.media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.02) brightness(1.02); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(61,34,53,.10), rgba(61,34,53,.22)); mix-blend-mode: multiply; pointer-events: none; }
.media:hover img { filter: grayscale(70%) contrast(1.03); transform: scale(1.03); }
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 3 / 2; }
.media--tall { aspect-ratio: 3 / 4; }
.media__frame { position: relative; }
.media__frame::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(180,158,115,.55); z-index: 2; pointer-events: none; border-radius: 2px; }

/* ----------------------------------------------------------- Page hero (interior pages) */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 1.6rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--wine); }
.breadcrumb .sep { color: var(--line-strong); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1.1rem; }
.page-hero .lead { max-width: 60ch; }

/* ----------------------------------------------------------- Prose */
.prose p { color: var(--ink); margin-bottom: 1.3rem; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .8rem; color: var(--wine); }
.prose ul.checks { display: flex; flex-direction: column; gap: .9rem; margin: 1.5rem 0; }
.prose ul.checks li { display: flex; gap: .85rem; align-items: flex-start; line-height: 1.6; color: var(--ink); }
.prose ul.checks li svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; margin-top: .25rem; }

/* Situations list — accordion (native <details>/<summary>, keyboard-accessible by default) */
.situations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; align-items: start; }
.situation { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s var(--ease); }
.situation:hover, .situation[open] { border-color: var(--line-strong); }
.situation .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; margin-top: .55rem; }
.situation summary {
  list-style: none; cursor: pointer;
  padding: 1.3rem 1.4rem; font-size: .96rem; font-weight: 600; color: var(--ink);
  display: flex; gap: .8rem; align-items: flex-start;
}
.situation summary::-webkit-details-marker { display: none; }
.situation summary::marker { content: ""; }
.situation summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -2px; border-radius: var(--radius); }
.situation .summary-text { flex: 1; }
.situation .chevron { width: 17px !important; height: 17px !important; color: var(--gold-deep); flex: none; margin-top: .1rem; transition: transform .3s var(--ease); }
.situation[open] .chevron { transform: rotate(180deg); }
.situation__body { display: block; padding: 0 1.4rem 1.3rem calc(1.4rem + 15px + .8rem); }
.situation__body p { font-size: .89rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 480px) { .situation__body { padding-left: 1.4rem; } }

/* ----------------------------------------------------------- CTA band */
.cta-band { background: var(--wine); color: var(--ivory); border-radius: var(--radius-lg); padding: clamp(2.8rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% -20%, rgba(180,158,115,.18), transparent 60%); pointer-events: none; }
.cta-band h2 { color: var(--ivory); position: relative; }
.cta-band p { color: rgba(244,241,236,.78); max-width: 52ch; margin: 1rem auto 0; position: relative; text-align: center; }
.cta-band .cta-actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ----------------------------------------------------------- Profile (Sobre) */
.profile-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.profile-card { }
.profile-meta { margin-top: 1.6rem; }
.profile-meta .name { font-family: var(--serif); font-size: 1.7rem; color: var(--wine); }
.profile-meta .oab { display: inline-block; margin-top: .4rem; font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--gold-text); text-transform: uppercase; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tag { font-size: .82rem; font-weight: 500; color: var(--wine); background: var(--ivory); border: 1px solid var(--line-strong); padding: .4rem .85rem; border-radius: 100px; }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.value { border-top: 2px solid var(--gold); padding-top: 1.4rem; }
.value h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.value p { color: var(--muted); font-size: .96rem; }

/* ----------------------------------------------------------- Team (scalable) */
/* One lawyer now → featured (photo beside bio). Add .member cards later and the
   grid stays uniform — no carousel, never looks empty. */
.team { display: grid; gap: 1.6rem; }
.team-featured { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); }
.team-featured .media { aspect-ratio: 4 / 5; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.6rem; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member .media { aspect-ratio: 4 / 5; margin-bottom: 1.2rem; }
.member .name { font-family: var(--serif); font-size: 1.3rem; color: var(--wine); }
@media (max-width: 760px) { .team-featured { grid-template-columns: 1fr; } .team-featured .media { max-width: 360px; } }

/* ----------------------------------------------------------- Carousel + member cards */
.carousel { position: relative; }
.carousel__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.6rem, 2vw, 1.8rem); }
.carousel__viewport { overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; transition: transform .55s var(--ease); will-change: transform; margin: 0; padding: 0; list-style: none; }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__arrow {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--wine);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow:hover { background: var(--wine); color: var(--ivory); border-color: var(--wine); }
.carousel__arrow:active { transform: scale(.94); }
.carousel__dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.8rem; }
.carousel__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); border: 0; padding: 0; cursor: pointer; transition: background .3s var(--ease), width .3s var(--ease); }
.carousel__dot::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; }
.carousel__dot[aria-selected="true"] { background: var(--gold-deep); width: 24px; border-radius: 5px; }
.carousel:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 6px; border-radius: 4px; }

.member-feature { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.member-feature__info .role { color: var(--gold-text); font-weight: 600; font-size: .95rem; margin: .5rem 0 .2rem; }
.member-feature__info .name { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--wine); line-height: 1.1; }
.member-feature__info .oab { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 1rem; }
.member-feature__info p.bio { color: var(--muted); max-width: 50ch; margin-top: 1.1rem; }
@media (max-width: 720px) { .member-feature { grid-template-columns: 1fr; text-align: center; } .member-feature__info .oab { } .member-feature__avatar { max-width: 300px; margin-inline: auto; } }

/* Neutral placeholder avatar (no real photos) */
.member-feature__avatar { position: relative; }
.member-photo { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.03); }
.member-photo::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(180,158,115,.55); border-radius: 4px; pointer-events: none; z-index: 1; }
/* Illustrated monogram avatar in brand palette (layout placeholder, not a person) */
.avatar-mono { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--taupe-light), var(--taupe)); }
.avatar-mono::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(180,158,115,.55); border-radius: 4px; pointer-events: none; }
.avatar-mono::after { content: ""; position: absolute; left: 50%; top: 50%; width: 116px; height: 116px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 38%, rgba(244,241,236,.65), transparent 70%); }
.avatar-mono span { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 600; color: var(--wine); letter-spacing: .02em; }
.avatar-ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--taupe-light), var(--taupe)); border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.avatar-ph::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(180,158,115,.55); border-radius: 4px; pointer-events: none; }
.avatar-ph svg { width: 58%; height: auto; color: var(--gold-deep); opacity: .55; margin-bottom: -4%; }

/* ----------------------------------------------------------- Forms (Contato) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.form-field { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--wine); letter-spacing: .02em; }
.form-field label .req { color: var(--gold-deep); }
.form-control {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  width: 100%;
}
.form-control::placeholder { color: var(--muted-light); }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,158,115,.16); background: #fff; }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; line-height: 1.6; }
.form-success { display: none; padding: 1.1rem 1.3rem; background: rgba(180,158,115,.12); border: 1px solid var(--gold); border-radius: var(--radius); color: var(--wine); font-size: .94rem; margin-bottom: 1.4rem; }
.form-success.show { display: block; }

.info-block { display: flex; flex-direction: column; gap: 1.6rem; }
.info-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.info-item__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.info-item__icon svg { width: 19px; height: 19px; color: var(--wine); }
.info-item h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin-bottom: .3rem; }
.info-item p, .info-item a { font-size: 1rem; color: var(--ink); line-height: 1.55; }
.info-item a:hover { color: var(--wine); }
.map-frame { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--taupe); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(40%) contrast(1.05); }

/* ----------------------------------------------------------- Social rail (right edge) */
.social-rail {
  position: fixed; right: clamp(.5rem, 1.4vw, 1.1rem); top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: .55rem;
}
.social-rail a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--wine); background: transparent;
  transition: color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.social-rail a:hover { color: var(--gold-deep); background: rgba(180,158,115,.14); transform: translateY(-2px); }
.social-rail svg { width: 19px; height: 19px; }
@media (max-width: 980px) { .social-rail { display: none; } }

/* ----------------------------------------------------------- Vertical brand (left edge) */
.v-brand {
  position: fixed; left: clamp(-2px, .2vw, 6px); top: calc(var(--header-h) + clamp(2.5rem, 7vw, 6rem));
  z-index: 80;
  writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: center;
  font-family: var(--serif); font-size: .8rem; letter-spacing: .35em;
  color: var(--gold); opacity: .85; user-select: none; pointer-events: none;
}
@media (max-width: 1180px) { .v-brand { display: none; } }

/* WhatsApp pill (legacy float, unused) */
.wa-float { display: none; }

/* ----------------------------------------------------------- Reveal animation */
/* Robust: opacity is always 1 — content can NEVER be hidden by a stalled animation.
   The entrance is a transform-only nudge that gracefully no-ops if animations don't run. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revealUp .7s var(--ease) both; }
  .reveal[data-d="1"] { animation-delay: .09s; }
  .reveal[data-d="2"] { animation-delay: .18s; }
  .reveal[data-d="3"] { animation-delay: .27s; }
  .reveal[data-d="4"] { animation-delay: .36s; }
}
@keyframes revealUp { from { transform: translateY(16px); } to { transform: none; } }

/* ----------------------------------------------------------- Area page layout */
.area-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem; }
.aside-card + .aside-card { margin-top: 1.4rem; }
.aside-card h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin-bottom: 1rem; }
.aside-nav a { display: flex; align-items: center; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); font-weight: 500; white-space: nowrap; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.aside-nav a:last-child { border-bottom: 0; }
.aside-nav a:hover { color: var(--wine); padding-left: .3rem; }
.aside-nav a[aria-current="page"] { color: var(--wine); }
.aside-nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.aside-nav a svg { display: none; }
.aside-contact { background: var(--wine); color: var(--ivory); border: 0; }
.aside-contact h4 { color: var(--gold-soft); }
.aside-contact p { font-size: .92rem; color: rgba(244,241,236,.78); margin-bottom: 1.2rem; line-height: 1.6; }
.aside-contact .btn { width: 100%; }
@media (max-width: 920px) {
  .area-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

/* Situations — gold bookmark marker (matches brand) */
.situation .dot { width: 15px; height: 18px; border-radius: 1px; background: var(--gold); flex: none; margin-top: .22rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }

/* ----------------------------------------------------------- Skip link */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--wine); color: var(--ivory); padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; transform: translateY(-150%); transition: transform .25s var(--ease); }
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--gold-soft); outline-offset: 2px; }

/* ----------------------------------------------------------- Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.stack-sm { display: flex; flex-direction: column; gap: 1rem; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.maxw-60 { max-width: 60ch; }
.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1rem; }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
