/* ==========================================================================
   Cerqueira, Peixoto & Queiroz Advogados Associados — estilos
   Paleta da marca: dourado #CD9933 · grafite #111214 · marfim #F6F2EB
   ========================================================================== */

/* ---------- Fontes (auto-hospedadas) ---------- */
@font-face {
  font-family: "Gloock";
  src: url("../assets/fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-latin-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink-950: #0a0b0d;
  --ink-900: #111214;
  --ink-850: #16171a;
  --ink-800: #1c1d21;
  --ink-700: #2a2c31;

  --paper: #f6f2eb;
  --paper-2: #eee8de;
  --paper-3: #e2dacd;

  --text: #17181b;
  --text-2: #4e5057;
  --text-3: #6b6d73;

  --on-dark: #f2eee7;
  --on-dark-2: #b9b5ad;
  --on-dark-3: #8c8983;

  --gold: #cd9933;
  --gold-soft: #e0b866;
  --gold-deep: #8a6420;
  --silver: #949599;

  --line-dark: rgba(242, 238, 231, 0.1);
  --line-dark-2: rgba(242, 238, 231, 0.18);
  --line-gold: rgba(205, 153, 51, 0.38);
  --line-light: rgba(23, 24, 27, 0.12);
  --line-light-2: rgba(23, 24, 27, 0.2);

  --font-display: "Gloock", "Times New Roman", Georgia, serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(88px, 11vw, 160px);
  --header-h: 92px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, figure, ul, ol, dl, dd, address { margin: 0; }
ul[role="list"],
ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--gold); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.section--light :focus-visible,
.section--stone :focus-visible,
.form :focus-visible,
.contact-dialog :focus-visible,
.legal :focus-visible { outline-color: var(--gold-deep); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon use[href="#i-whatsapp"],
.icon .fill { fill: currentColor; stroke: none; }
symbol#i-whatsapp path { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important;
  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: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink-900);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-gold { color: var(--gold); }
.section--light .text-gold,
.section--stone .text-gold { color: var(--gold-deep); }

/* ---------- Seções ---------- */
.section { position: relative; padding-block: var(--section-y); }

.section--dark {
  background-color: var(--ink-900);
  color: var(--on-dark);
  isolation: isolate;
}
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.035;
  pointer-events: none;
}
.section--light { background: var(--paper); color: var(--text); }
.section--stone { background: var(--paper-2); color: var(--text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--light .eyebrow { color: var(--gold-deep); }
/* no fundo "stone", o dourado escuro precisa de mais contraste (5,3:1) */
.section--stone .eyebrow,
.section--stone .text-gold { color: #7a5818; }

.section-title {
  font-size: clamp(2.1rem, 1.1rem + 3.2vw, 3.4rem);
  line-height: 1.08;
  max-width: 17ch;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 5vw, 96px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__intro {
  max-width: 30em;
  color: var(--text-2);
  padding-bottom: 6px;
}
.section--dark .section-head__intro { color: var(--on-dark-2); }

.lead {
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Botões ---------- */
.btn {
  --btn-pad-y: 18px;
  --btn-pad-x: 30px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn .icon { width: 1.25em; height: 1.25em; }
.btn .icon--arrow { transition: transform 0.35s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--sm { --btn-pad-y: 13px; --btn-pad-x: 20px; font-size: 0.75rem; letter-spacing: 0.14em; }
.btn--block { width: 100%; }

.btn--gold { background: var(--gold); color: var(--ink-900); }
.btn--gold:hover { background: var(--gold-soft); }

.btn--ghost { border-color: var(--line-dark-2); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn--dark { background: var(--ink-900); color: var(--on-dark); }
.btn--dark:hover { background: var(--ink-700); }

.btn--outline { border-color: var(--line-light-2); color: var(--text); }
.btn--outline:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

.btn--text {
  --btn-pad-x: 8px;
  color: var(--text-2);
  letter-spacing: 0.12em;
}
.btn--text:hover { color: var(--gold-deep); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--text);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.icon-btn:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: var(--on-dark);
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
  transition: height 0.45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(14, 15, 17, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line-dark);
}
.site-header.is-scrolled .site-header__inner { height: 72px; }

.brand { display: block; flex: none; }
.brand__logo {
  height: 66px;
  width: auto;
  transition: height 0.45s var(--ease);
}
.site-header.is-scrolled .brand__logo { height: 54px; }
.site-header.is-menu-open .site-header__cta { visibility: hidden; }

.main-nav__list {
  display: flex;
  gap: clamp(20px, 2.4vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  display: block;
  padding-block: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  transition: color 0.25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current="true"] { color: var(--on-dark); }
.main-nav a:hover::after,
.main-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-dark-2);
  border-radius: 50%;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { transform: translateY(-6px); }
.menu-toggle__bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); background: var(--on-dark); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); background: var(--on-dark); }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink-950);
  color: var(--on-dark);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.mobile-menu[hidden] { display: block; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.mobile-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}
.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: m;
}
.mobile-menu__list li {
  counter-increment: m;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.mobile-menu.is-open .mobile-menu__list li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  line-height: 1.2;
}
.mobile-menu__list a::before {
  content: counter(m, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.mobile-menu__foot { display: grid; gap: 18px; }
.mobile-menu__addr { font-size: 0.85rem; letter-spacing: 0.08em; color: var(--on-dark-3); text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 100px));
  padding-bottom: clamp(40px, 5vw, 64px);
  background:
    radial-gradient(1100px 700px at 78% 18%, rgba(205, 153, 51, 0.09), transparent 60%),
    radial-gradient(900px 600px at 10% 100%, rgba(255, 255, 255, 0.03), transparent 70%),
    var(--ink-900);
}
.hero__watermark {
  position: absolute;
  z-index: -1;
  left: -8%;
  bottom: -24%;
  width: min(62vw, 760px);
  height: auto;
  opacity: 0.03;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 104px);
}
.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  max-width: 12.5ch;
}
.hero__lead {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 34em;
  font-size: clamp(1.05rem, 1.3vw, 1.175rem);
  line-height: 1.7;
  color: var(--on-dark-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}

.hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-800);
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
}
.hero__caption {
  position: absolute;
  left: clamp(-40px, -3vw, -16px);
  bottom: 36px;
  display: grid;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 18px 22px;
  background: rgba(14, 15, 17, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-left: 2px solid var(--gold);
}
.hero__caption-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__caption-names {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--on-dark);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line-dark);
}
.facts__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px 28px 8px 0;
}
.facts__item + .facts__item { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.facts__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--gold);
}
.facts__label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--on-dark-3);
  max-width: 22ch;
}

/* notebooks comuns (1280×720, 1366×768, 1536×864): CTA principal visível sem rolar */
@media (min-width: 1024px) and (max-height: 900px) {
  .hero { padding-top: calc(var(--header-h) + clamp(20px, 4vh, 48px)); }
  .hero__title { font-size: clamp(2.6rem, min(5.4vw, 8.4vh), 5rem); }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .hero__media { max-width: min(480px, 58vh); }
}

/* ---------- Manifesto / Quem somos ---------- */
.manifesto { padding-bottom: 0; }
.manifesto__quote {
  position: relative;
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.1;
  max-width: 21ch;
}
.manifesto__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  max-width: 1040px;
  margin-top: clamp(40px, 5vw, 64px);
  margin-left: auto;
  color: var(--text-2);
}

.wide-figure {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: clamp(64px, 8vw, 112px) auto 0;
  padding-inline: var(--gutter);
}
.wide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 42%;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 104px);
  padding-block: clamp(64px, 8vw, 112px) var(--section-y);
}
.about__body { display: grid; gap: 22px; color: var(--text-2); align-content: start; }
.about .section-title { font-size: clamp(1.8rem, 1rem + 2.4vw, 2.6rem); max-width: 22ch; line-height: 1.15; }
.about__body .lead { color: var(--text); }

.pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line-light-2);
}
.pillars__item {
  padding: 32px 32px 0 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.pillars__item + .pillars__item { padding-left: 32px; border-left: 1px solid var(--line-light); }
.pillars__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}
.pillars__title { font-size: 1.45rem; }
.pillars__item p { color: var(--text-2); font-size: 1rem; }

/* ---------- Áreas ---------- */
.areas__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 3.6vw, 52px);
  background: linear-gradient(180deg, var(--ink-850), rgba(22, 23, 26, 0.6));
  border: 1px solid var(--line-dark);
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), background-color 0.45s;
}
.area-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: calc(100% + 2px);
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
/* só o link é clicável: o realce acompanha o link, não o card inteiro */
.area-card:has(.area-card__link:hover, .area-card__btn:hover) { border-color: var(--line-gold); }
.area-card:has(.area-card__link:hover, .area-card__btn:hover)::before,
.area-card:focus-within::before { transform: scaleX(1); }

.area-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.area-card__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--on-dark-3);
}
.area-card__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.area-card__title {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.15;
  max-width: 18ch;
}
.area-card__text {
  margin-top: 18px;
  color: var(--on-dark-2);
}
.area-card__list {
  display: grid;
  gap: 10px;
  margin-top: 26px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--line-dark);
  font-size: 0.975rem;
  color: var(--on-dark);
}
.area-card__list li {
  position: relative;
  padding-left: 26px;
}
.area-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}
.area-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-block: 14px;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.25s;
}
.area-card__link:hover { color: var(--gold-soft); }
.area-card__link .icon--arrow { transition: transform 0.35s var(--ease); }
.area-card__link:hover .icon--arrow { transform: translateX(4px); }
.area-card__list + .area-card__link { margin-top: auto; }
.area-card__list { margin-bottom: 18px !important; }

/* "Outras demandas": faixa em largura total abaixo das quatro áreas */
.area-card--alt {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(205, 153, 51, 0.1), transparent 70%),
    var(--ink-850);
}
.area-card--alt .area-card__title { max-width: none; font-size: clamp(1.45rem, 2vw, 1.75rem); }
.area-card--alt .area-card__text { margin-top: 10px; max-width: 62ch; }
.area-card__btn { align-self: center; }

/* ---------- História ---------- */
.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.history__media { position: sticky; top: 104px; }
.history__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}
.history__figure figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.history__content .section-title { margin-bottom: clamp(40px, 5vw, 64px); }

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line-light-2);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line-light-2); }
.timeline__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--gold-deep);
}
.timeline__title { font-size: 1.45rem; line-height: 1.25; margin-bottom: 10px; }
.timeline__item p { color: var(--text-2); }

/* ---------- Galeria ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: clamp(260px, 30vw, 430px) clamp(200px, 22vw, 310px);
  gap: 16px;
}
.gallery__item { position: relative; min-height: 0; }
.gallery__item--a { grid-column: 1 / 9; grid-row: 1; }
.gallery__item--b { grid-column: 9 / 13; grid-row: 1 / 3; }
.gallery__item--c { grid-column: 1 / 5; grid-row: 2; }
.gallery__item--d { grid-column: 5 / 9; grid-row: 2; }
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__item--b img { object-position: 45% 50%; }
.gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 44px 20px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
  /* degradê mais denso + sombra: legenda ≥ 4,5:1 mesmo nas fotos claras */
  background: linear-gradient(0deg, rgba(10, 11, 13, 0.88) 0%, rgba(10, 11, 13, 0.62) 55%, transparent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.gallery__cap .icon { width: 18px; height: 18px; opacity: 0.85; }

/* ---------- Valores ---------- */
.values__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.values__aside { position: sticky; top: 112px; }
.mission {
  margin-top: 32px;
  padding-left: 24px;
  border-left: 1px solid var(--gold);
  max-width: 34em;
}
.mission__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.mission__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--on-dark);
}
.mission p + p { margin-top: 14px; color: var(--on-dark-2); }
.values__intro {
  margin-top: 28px;
  max-width: 26em;
  font-size: 1.125rem;
  color: var(--on-dark-2);
}
.values__emblem {
  width: 96px;
  height: auto;
  margin-top: clamp(40px, 5vw, 72px);
  opacity: 0.9;
}
.values__list { display: grid; }
.value {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--line-dark);
}
.value:last-child { border-bottom: 1px solid var(--line-dark); }
.value__num {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--on-dark-3);
  padding-top: 0.55em;
  transition: color 0.3s;
}
.value:hover .value__num { color: var(--gold); }
.value__title { font-size: clamp(1.4rem, 2vw, 1.7rem); margin-bottom: 12px; }
.value p { color: var(--on-dark-2); }

/* ---------- Sócios ---------- */
.partners__banner { margin-bottom: 20px; }
.partners__banner img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: 50% 0; /* preserva a cabeça do sócio em pé; o corte vai para a mesa */
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.partner {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--line-light);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.partner:hover { border-color: rgba(138, 100, 32, 0.4); box-shadow: 0 24px 48px -32px rgba(17, 18, 20, 0.35); }
.partner__head { display: flex; gap: 20px; align-items: center; }
.partner__mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 68px;
  height: 68px;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold-deep);
  background: radial-gradient(circle at 30% 25%, rgba(205, 153, 51, 0.14), transparent 70%);
}
.partner__name { font-size: 1.55rem; line-height: 1.15; }
.partner__role {
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.partner__oab { margin-top: 2px; font-size: 0.9rem; color: var(--text-3); }
.partner__bio { margin-top: 24px; flex: 1 1 auto; } /* empurra os contatos para a base: alinhados entre os cards */
.partner__bio-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.partner__bio ul { display: grid; gap: 8px; }
.partner__bio li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-2);
}
.partner__bio li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1px;
  background: var(--gold-deep);
}
.partner__area { margin-top: 14px; font-size: 0.9rem; color: var(--text-2); }
.partner__area span {
  margin-right: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.partner__contacts { margin-top: auto !important; }
.partner__bio + .partner__contacts { margin-top: 24px !important; }
.partner__contacts {
  display: grid;
  gap: 4px;
  margin-top: 28px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--line-light);
}
.partner__contacts a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.975rem;
  color: var(--text-2);
  overflow-wrap: anywhere;
  transition: color 0.25s;
}
.partner__contacts a .icon { width: 18px; height: 18px; color: var(--gold-deep); }
.partner__contacts a:hover { color: var(--text); }
.partner__contacts a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }

/* ---------- Unidades ---------- */
.units__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.unit {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-light);
}
.unit__map {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-850);
}
.unit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.unit__map-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.unit__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 11, 13, 0.55), transparent 55%);
  pointer-events: none;
}
.unit__map.is-loaded::after { display: none; }
.unit__map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(205, 153, 51, 0.35);
  stroke-width: 1.4;
}
.unit__map-art .thin { stroke: rgba(242, 238, 231, 0.06); stroke-width: 1; }
.unit__pin {
  position: absolute;
  left: 50%;
  top: 44%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(205, 153, 51, 0.12);
  color: var(--gold);
  box-shadow: 0 0 0 10px rgba(205, 153, 51, 0.06);
}
.unit__pin .icon { width: 26px; height: 26px; }
.unit__pin-label {
  position: absolute;
  left: 50%;
  top: calc(44% + 44px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.unit__map-btn {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--paper);
  border-radius: var(--radius);
  transition: background-color 0.25s;
}
.unit__map-btn:hover { background: #fff; }
.section--stone .unit__map-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink-900); }
.unit__body { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; flex: 1; }
.unit__kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.unit__kicker .tbc { margin-left: 6px; text-transform: none; letter-spacing: 0.02em; font-weight: 400; }
.unit__city { margin-top: 8px; font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.unit__addr { margin-top: 14px; color: var(--text-2); line-height: 1.65; }
.unit__extra { margin-top: 10px; font-size: 0.88rem; line-height: 1.6; color: var(--text-2); }
.nowrap { white-space: nowrap; }
.unit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
.units__note { margin-top: 20px; font-size: 0.8rem; color: var(--text-2); }

/* ---------- Contato ---------- */
/* ordem no HTML: introdução → formulário → canais (no celular o formulário vem logo após a introdução);
   no desktop, introdução e canais ficam à esquerda e o formulário ocupa a coluna direita */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 104px);
  align-items: start;
}
.contact__intro { grid-column: 1; grid-row: 1; }
.contact__more { grid-column: 1; grid-row: 2; }
.contact__form-wrap { grid-column: 2; grid-row: 1 / span 2; }
.contact__lead { margin-top: 26px; max-width: 30em; color: var(--on-dark-2); }

.channels { margin-top: clamp(40px, 5vw, 56px); }
.channels__title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: 8px;
}
.channels__list { display: grid; }
.channels__list li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}
.channels__name { font-family: var(--font-display); font-size: 1.3rem; color: var(--on-dark); }
.channels__name small {
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: middle;
}
.channels__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 0.975rem;
  color: var(--on-dark-2);
  overflow-wrap: anywhere;
  transition: color 0.25s;
}
.channels__list a .icon { width: 17px; height: 17px; color: var(--gold); }
.channels__list a:hover { color: var(--gold-soft); }

.contact__form-wrap { position: relative; }
.form {
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.form__head { margin-bottom: 28px; }
.form__title { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.form__sub { margin-top: 6px; font-size: 0.875rem; color: var(--text-3); }
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-3); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
  /* 3,5:1 contra o campo branco e 3,1:1 contra o marfim (WCAG 1.4.11) */
  border: 1px solid #87898f;
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 124px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field select:invalid { color: var(--text-3); }
.field select option { color: var(--text); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold-deep); /* 4,8:1 sobre o marfim: foco bem perceptível */
  outline-offset: 2px;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(205, 153, 51, 0.22);
}
.field [aria-invalid="true"] { border-color: #a3362c !important; }
.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 44px; cursor: pointer; }
.field__hint { font-size: 0.8rem; color: var(--text-3); }
.field__error { font-size: 0.82rem; color: #a3362c; min-height: 0; }
.field__error:empty { display: none; }

.field__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.field__count { flex: none; font-size: 0.78rem; font-variant-numeric: tabular-nums; color: var(--text-3); }
.field__count.is-near { color: #8a4b12; }

.form__privacy {
  margin-top: 18px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-3);
}
.form__privacy a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Aviso de canais oficiais */
.notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding: 22px 24px;
  border: 1px solid var(--line-gold);
  background: rgba(205, 153, 51, 0.05);
}
.notice__icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notice__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.notice p { font-size: 0.92rem; line-height: 1.65; color: var(--on-dark-2); }
.notice a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.notice a:hover { color: var(--gold-soft); }

/* Dado pendente de confirmação pelo cliente (protótipo) */
.tbc {
  display: inline-block;
  padding: 0 8px;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-size: 0.92em;
  line-height: 1.5;
  color: var(--gold);
}
.section--light .tbc,
.legal .tbc { color: var(--gold-deep); }
.section--stone .tbc { color: #7a5818; }

/* flex (não grid): o botão principal nunca encolhe abaixo do próprio conteúdo */
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}
.form__submit { flex: 1 1 260px; }
.form__actions .btn--text { flex: 0 1 auto; margin-inline: auto; }
.form__status { margin-top: 16px; font-size: 0.9rem; color: var(--text-2); }
/* a região de status fica sempre na árvore de acessibilidade (anúncio confiável) */
.form__status:empty { margin: 0; padding: 0; border: 0; }
.form__status a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.form__status.is-success {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(205, 153, 51, 0.12);
  border-left: 2px solid var(--gold);
  color: var(--text);
}

/* ---------- Rodapé ---------- */
.site-footer {
  position: relative;
  background: var(--ink-950);
  color: var(--on-dark-2);
  padding-top: clamp(64px, 8vw, 104px);
  font-size: 0.95rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.site-footer__brand img { height: 84px; width: auto; }
.site-footer__brand p {
  margin-top: 24px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--on-dark);
}
.site-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--on-dark);
  transition: border-color 0.25s, color 0.25s;
}
.site-footer__phone:hover { border-color: var(--gold); color: var(--gold-soft); }
.site-footer__phone .icon { width: 18px; height: 18px; color: var(--gold); }
.site-footer__phone-label {
  margin-right: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer__title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { transition: color 0.2s; }
.site-footer__col a:hover { color: var(--on-dark); }
.site-footer__people li { display: grid; color: var(--on-dark); }
.site-footer__people span { font-size: 0.85rem; color: var(--on-dark-3); }
.site-footer address { line-height: 1.6; }
.site-footer address + address { margin-top: 16px; }
.site-footer address strong { font-weight: 500; color: var(--on-dark); }
.site-footer__legal {
  display: grid;
  gap: 6px;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--on-dark-3);
}
.site-footer__legal a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal a:hover { color: var(--on-dark); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding-block: 24px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: var(--on-dark-3);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.site-footer__links a:hover { color: var(--on-dark); }
.site-footer__links .icon { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Botão flutuante ---------- */
.fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink-900);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translateY(24px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease), background-color 0.25s, gap 0.35s var(--ease);
}
.fab.is-visible { transform: none; opacity: 1; pointer-events: auto; }
/* anel de duas cores: legível sobre fundos claros e escuros */
.fab:focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff, 0 18px 40px -12px rgba(0, 0, 0, 0.55);
}
.fab:hover { background: var(--gold-soft); }
.fab .icon { width: 26px; height: 26px; }
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: max-width 0.45s var(--ease-out);
}
@media (hover: hover) {
  .fab:hover,
  .fab:focus-visible { gap: 12px; }
  .fab:hover .fab__label,
  .fab:focus-visible .fab__label { max-width: 160px; }
}

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(8, 9, 10, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.contact-dialog {
  width: min(440px, calc(100vw - 32px));
  /* a margem inferior entra no limite de altura: o topo nunca sai da tela */
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  margin: auto 24px 96px auto;
  padding: 28px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6);
}
/* aberto pelo hero ou pelo menu (e não pelo botão flutuante): centralizado */
.contact-dialog.is-centered { margin: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
@media (max-height: 560px) and (min-width: 640px) {
  .contact-dialog { margin: auto; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
}
.contact-dialog[open] { animation: dialog-in 0.4s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.contact-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.contact-dialog__kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-dialog__title { margin-top: 6px; font-size: 1.6rem; line-height: 1.15; }
.contact-dialog__list { display: grid; gap: 10px; }
.wa-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line-light);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.wa-option:hover { border-color: var(--gold-deep); transform: translateX(2px); }
.wa-option__mono {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-deep);
}
.wa-option__mono .icon { width: 22px; height: 22px; }
.wa-option__mono img { width: 20px; height: auto; }
.wa-option--main { border-color: rgba(138, 100, 32, 0.45); background: #fffdf8; }
.wa-option--main .wa-option__mono { background: var(--gold); border-color: var(--gold); color: var(--ink-900); }
.contact-dialog__sep {
  padding: 8px 2px 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.wa-option__txt { display: grid; gap: 2px; }
.wa-option__txt strong { font-weight: 500; font-size: 1.02rem; }
.wa-option__txt small { font-size: 0.8rem; color: var(--text-3); }
.wa-option__ic { width: 24px; height: 24px; color: var(--gold-deep); }
.contact-dialog__alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-light-2);
  text-underline-offset: 4px;
}
.contact-dialog__alt:hover { color: var(--gold-deep); }

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  background: rgba(8, 9, 10, 0.96);
  color: var(--on-dark);
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in 0.3s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox::backdrop { background: transparent; backdrop-filter: none; }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; padding: 72px 72px 40px; max-width: 100%; }
.lightbox__figure img { max-width: min(1200px, 100%); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-2); }
.lightbox .icon-btn { border-color: var(--line-dark-2); color: var(--on-dark); position: absolute; }
.lightbox .icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; margin-top: -22px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ---------- Páginas institucionais (privacidade, acessibilidade) ---------- */
.page-header {
  background: var(--ink-900);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.page-header .brand__logo { height: 50px; }
.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  transition: color 0.2s;
}
.page-header__back:hover { color: var(--gold); }
.page-header__back .icon { transform: rotate(180deg); }

.legal { background: var(--paper); color: var(--text); padding-block: clamp(56px, 8vw, 112px); }
.legal__inner { max-width: 820px; }
.legal__title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.legal__meta { color: var(--text-3); font-size: 0.9rem; margin-bottom: clamp(40px, 5vw, 56px); }
.legal__summary {
  padding: 24px 28px;
  margin-bottom: 48px;
  background: #fff;
  border-left: 2px solid var(--gold);
  color: var(--text-2);
}
.legal__summary strong { color: var(--text); font-weight: 500; }
.legal h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p,
.legal li { color: var(--text-2); }
.legal p + p { margin-top: 14px; }
.legal ul,
.legal ol { padding-left: 1.3em; margin: 14px 0 0; display: grid; gap: 8px; }
.legal li::marker { color: var(--gold-deep); }
.legal a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal .eyebrow { color: var(--gold-deep); }
.legal kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: var(--font-sans);
  font-size: 0.85em;
  border: 1px solid var(--line-light-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}

/* ---------- Página 404 ---------- */
.not-found { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; }
.not-found__inner { display: grid; justify-items: start; gap: 24px; }
.not-found__logo { height: 72px; width: auto; margin-bottom: clamp(24px, 5vw, 56px); }
.not-found .eyebrow { margin-bottom: 0; }
.not-found__text { max-width: 34em; color: var(--on-dark-2); margin-bottom: 12px; }

/* ---------- Animações de entrada ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Imagens: uma "cortina" na cor do fundo da seção se recolhe e revela a foto.
   Não usar clip-path/opacidade no elemento observado: o Chrome desconta o
   recorte no IntersectionObserver e a imagem nunca seria revelada nem carregada. */
.section--light { --reveal-bg: var(--paper); }
.section--stone { --reveal-bg: var(--paper-2); }
.section--dark { --reveal-bg: var(--ink-900); }
.js [data-reveal="media"]:not(.hero__media) {
  position: relative;
  opacity: 1;
  transform: none;
}
.js [data-reveal="media"]:not(.hero__media)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--reveal-bg, var(--paper));
  transform-origin: 50% 100%;
  pointer-events: none;
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="media"]:not(.hero__media).is-in::after { transform: scaleY(0); }
.js [data-reveal="media"]:not(.hero__media) img {
  transform: scale(1.08);
  transition: transform 1.6s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="media"]:not(.hero__media).is-in img { transform: none; }
.js .gallery__btn:hover img { transform: scale(1.04); transition-delay: 0ms; }

@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;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal="media"]::after { display: none; }
  .js [data-reveal="media"] img { transform: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
/* desktop: canais à esquerda, formulário à direita e o aviso "Canais oficiais" em largura total abaixo */
@media (min-width: 1024px) {
  .contact__grid { grid-template-rows: auto 1fr auto; }
  .contact__more { display: contents; }
  .channels { grid-column: 1; grid-row: 2; }
  .notice { grid-column: 1 / -1; grid-row: 3; margin-top: 48px; }
  .contact__form-wrap { grid-row: 1 / span 2; }
}

/* notebooks com a barra do navegador (ex.: 1280×607): hero mais compacto */
@media (min-width: 1024px) and (max-height: 640px) {
  .hero__title { font-size: clamp(2.4rem, min(5vw, 7.4vh), 4rem); }
  .hero__lead { font-size: 1rem; margin-top: 16px; }
  .hero__actions { margin-top: 22px; }
}
@media (max-width: 1099px) {
  :root { --header-h: 80px; }
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .brand__logo { height: 58px; }
  .site-header.is-scrolled .brand__logo { height: 48px; }
  .site-header.is-scrolled .site-header__inner { height: 68px; }
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .mobile-menu { scroll-padding-block: 16px; }
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 14ch; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 3.8rem); }
  .hero__media { justify-self: start; max-width: 560px; margin-top: 16px; margin-right: 22px; }
  .hero__frame { aspect-ratio: 5 / 4; }
  .hero__frame img { object-position: 50% 25%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__item:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }

  .section-title { max-width: 20ch; }
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
  .manifesto__cols { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-left: 0; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars__item,
  .pillars__item + .pillars__item { padding: 26px 0; border-left: 0; }
  .pillars__item + .pillars__item { border-top: 1px solid var(--line-light); }

  .history__grid { grid-template-columns: minmax(0, 1fr); }
  .history__media { position: static; max-width: 460px; order: 2; }

  .values__grid { grid-template-columns: minmax(0, 1fr); }
  .values__aside { position: static; }
  .values__emblem { display: none; }

  .partners__grid { grid-template-columns: minmax(0, 1fr); }

  .contact__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .contact__intro,
  .contact__form-wrap,
  .contact__more { grid-column: 1; grid-row: auto; }
  .contact__form-wrap { margin-top: 36px; }
  .contact__more { margin-top: 8px; }

  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* tablet: cards de sócio em duas colunas internas (dados à esquerda, contatos à direita) */
@media (min-width: 760px) and (max-width: 1023px) {
  .partner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 32px;
  }
  .partner__bio { grid-column: 1; }
  .partner__contacts,
  .partner__bio + .partner__contacts {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0 !important;
    padding: 0 0 0 32px !important;
    border-top: 0;
    border-left: 1px solid var(--line-light);
  }
}

@media (max-width: 899px) {
  .areas__grid { grid-template-columns: minmax(0, 1fr); }
  .units__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
  }
  .gallery__item--a { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .gallery__item--b { grid-column: 1; grid-row: span 2; }
  .gallery__item--c,
  .gallery__item--d { grid-column: 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .wide-figure img { aspect-ratio: 16 / 10; }
  .partners__banner img { aspect-ratio: 16 / 10; }
}

/* a foto retrato (recepção) não impõe altura: as linhas vêm das fotos 4:3 ao lado */
@media (min-width: 640px) and (max-width: 899px) {
  .gallery__item--b { aspect-ratio: auto; }
  .gallery__item--b .gallery__btn { position: absolute; inset: 0; height: auto; }
}

@media (max-width: 799px) {
  .area-card--alt { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
  .area-card--alt .area-card__btn { justify-self: start; }
}

@media (min-width: 800px) and (max-width: 899px) {
  .areas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-card { padding: 28px; }
}

@media (max-width: 639px) {
  body { font-size: 1rem; }
  .btn { --btn-pad-x: 24px; }
  .site-header__cta { display: none; }
  .brand__logo { height: 52px; }
  .site-header.is-scrolled .brand__logo { height: 44px; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero__watermark { display: none; }
  .eyebrow { letter-spacing: 0.2em; gap: 12px; }
  .eyebrow::before { width: 24px; }
  .hero__actions .btn { width: 100%; }
  .hero__media { margin-right: 14px; }
  .hero__media::before { inset: 14px -14px -14px 14px; }
  .hero__caption {
    position: static;
    max-width: none;
    margin-top: 0;
    padding: 14px 16px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ink-850);
  }
  .hero__caption-names { font-size: 0.95rem; }
  .notice { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px; }
  .site-footer__bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts__item,
  .facts__item + .facts__item { padding: 22px 12px 4px 0; }
  .facts__item:nth-child(2n) { padding-left: 16px; }
  .facts__label { font-size: 0.8rem; }

  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 26px 0; }
  /* no celular, a marca vira um rótulo (e não um segundo título serifado) */
  .timeline__mark {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .value { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 28px 0; }
  .value__num { padding-top: 0; }

  .gallery__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gallery__item--a,
  .gallery__item--b,
  .gallery__item--c,
  .gallery__item--d { grid-column: 1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__item--b { aspect-ratio: 4 / 5; }

  .partner__head { gap: 16px; }
  .partner__mono { width: 56px; height: 56px; font-size: 1.6rem; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .form__submit { flex-basis: 100%; }
  .unit__actions .btn { flex: 1 1 auto; }

  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__top > :last-child { grid-column: 1 / -1; }
  .site-footer__brand img { height: 68px; }

  .contact-dialog,
  .contact-dialog.is-centered {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }
  .fab { height: 56px; padding: 0 15px; }
  .lightbox__figure { padding: 64px 12px 104px; }
  .lightbox__figure img { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
  .lightbox__nav { top: auto; bottom: 20px; margin-top: 0; }
  .lightbox__nav--prev { left: calc(50% - 56px); }
  .lightbox__nav--next { right: calc(50% - 56px); }
}

@media (max-width: 479px) {
  .unit__map { aspect-ratio: 4 / 3; }
  .unit__pin-label { top: calc(44% - 58px); }
}

@media (max-width: 379px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts__item,
  .facts__item + .facts__item,
  .facts__item:nth-child(2n) { padding: 20px 0 4px; border-left: 0; }
  .facts__item + .facts__item { border-top: 1px solid var(--line-dark); }
  /* 320px: botões sem transbordar */
  .btn { --btn-pad-x: 16px; letter-spacing: 0.1em; gap: 10px; }
  .btn--text { white-space: normal; text-align: center; line-height: 1.3; }
  .form { padding: 24px 20px; }
}

@media print {
  .site-header, .fab, .mobile-menu, dialog { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js [data-reveal]::after { display: none !important; }
  body { background: #fff; }
}
