/* MAIA Investimentos — versão nova
   Cores vêm do logotipo; o corte diagonal repete a inclinação dos picos do "M". */

/* Fontes hospedadas junto com o site (sem depender do Google Fonts) */
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/readex-pro-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/readex-pro-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --azul: #213d7e;
  --noite: #0e1b3d;
  --verde: #75b62f;
  --ouro: #f9b812;
  --nevoa: #eef1f7;
  --branco: #ffffff;
  --texto: #1b2540;
  --texto-suave: #3a4460;
  --linha: #d5dbe8;

  --display: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --corpo: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --bloco: clamp(72px, 10vw, 136px);
  --slant: 0.5; /* tangente da inclinação do logo (≈26,6°) */
}

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

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

body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font-family: var(--corpo);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--noite);
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }

:focus-visible { outline: 3px solid var(--noite); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ouro); border-radius: 2px; }

.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

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

.rotulo {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.rotulo::before {
  content: "";
  width: 0.95em;
  height: 0.85em;
  background: var(--verde);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  flex: none;
}

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--noite); color: #fff; padding: 10px 16px;
  font-family: var(--display); font-size: 0.9rem; text-decoration: none;
}
.pular:focus { top: 12px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--display); font-weight: 500; font-size: 0.98rem;
  text-decoration: none; line-height: 1;
  padding: 1.05em 1.5em;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.botao svg { width: 1.2em; height: 1.2em; flex: none; }
.botao-ouro { background: var(--ouro); color: var(--noite); }
.botao-ouro:hover { background: var(--noite); color: #fff; }
.botao-azul { background: var(--noite); color: #fff; }
.botao-azul:hover { background: var(--azul); }
.botao-linha { border-color: var(--noite); color: var(--noite); }
.botao-linha:hover { background: var(--noite); color: #fff; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--linha);
}
.topo-linha { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-height: 72px; }
.topo .marca { margin-right: auto; }
.marca img { width: 132px; }
.menu { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.6vw, 38px); }
.menu a:not(.botao) {
  font-family: var(--display); font-size: 0.95rem; font-weight: 400;
  text-decoration: none; color: var(--noite);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.menu a:not(.botao):hover { border-bottom-color: var(--linha); }
.menu a:not(.botao)[aria-current] { border-bottom-color: var(--ouro); }
.menu .botao { padding: 0.85em 1.2em; font-size: 0.95rem; }
.abre-menu { display: none; }

/* Seletor de idioma */
.idiomas { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; font-family: var(--display); font-size: 0.9rem; font-weight: 500; flex: none; }
.idiomas li + li { border-left: 1px solid var(--linha); }
.idiomas a { display: grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 10px; text-decoration: none; color: #4d5772; letter-spacing: 0.06em; }
.idiomas a:hover { color: var(--azul); }
.idiomas a[aria-current] { color: var(--noite); box-shadow: inset 0 -2px 0 var(--ouro); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--nevoa); overflow: hidden; }
.hero-grade {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(560px, 78vh, 760px);
}
.hero-texto {
  padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 8vw, 112px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.7vw, 4.5rem);
  white-space: nowrap;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
}
.hero h1 span { font-style: normal; color: var(--azul); display: block; }
.hero-lead { font-size: clamp(1.08rem, 1.4vw, 1.2rem); max-width: min(34em, 92%); color: var(--texto); margin-bottom: 2.2rem; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 961px) and (max-width: 1239px) {
  .hero-acoes { flex-direction: column; align-items: flex-start; }
}

.hero-arte {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: calc(50% + 40px);
  container-type: size;
}
.hero-arte .faixa, .hero-arte .foto {
  position: absolute; inset: 0;
  clip-path: polygon(calc(100cqh * var(--slant)) 0, 100% 0, 100% 100%, 0 100%);
}
.hero-arte .faixa-verde { background: var(--verde); transform: translateX(-44px); }
.hero-arte .faixa-ouro { background: var(--ouro); transform: translateX(-22px); }
.hero-arte .foto { background: var(--noite); }
.hero-arte .slide {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-arte .slide.ativo { opacity: 1; }
/* A torre (no meio da foto) fica centrada na área visível, que no desktop é deslocada para a direita pela diagonal */
.hero-arte .slide-skyline {
  background-image: url("../img/hero-emirados.jpg");
  background-image: image-set(url("../img/hero-emirados.avif") type("image/avif"), url("../img/hero-emirados.jpg") type("image/jpeg"));
  background-size: max(180cqh, 136cqw) auto;
  background-position: calc(68cqw - max(90cqh, 68cqw)) 0;
}
.hero-arte .foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 61, 0) 58%, rgba(14, 27, 61, .72) 100%);
  z-index: 1;
}
.hero-legenda {
  position: absolute; right: calc(var(--gutter) + 72px); bottom: 28px; z-index: 3;
  font-family: var(--display); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; text-align: right; line-height: 1.7;
}
.hero-legenda b { font-weight: 500; color: var(--ouro); display: block; }
.hero-regioes { display: block; }
.hero-legenda { background: rgba(14, 27, 61, .82); padding: 9px 14px 9px 40px; clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Faixa de frentes (passa devagar, em laço) ---------- */
.frentes { background: var(--noite); color: #fff; overflow: hidden; }
.frentes-trilho { display: flex; width: max-content; will-change: transform; }
.frentes ul {
  list-style: none; margin: 0; padding: 20px 0;
  display: flex; flex-wrap: nowrap; flex: none; white-space: nowrap;
  font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.02em;
}
.frentes li { display: flex; align-items: center; gap: 0.65em; padding-right: 44px; }
.frentes li::before {
  content: ""; width: 0.6em; height: 0.55em; flex: none;
  clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--ouro);
}
.frentes li:nth-child(3n+1)::before { background: var(--verde); }
.frentes li:nth-child(3n)::before { background: #fff; }
@keyframes passa { to { transform: translateX(-25%); } }

/* ---------- Blocos ---------- */
.bloco { padding-block: var(--bloco); }

/* Sobre */
.sobre-grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sobre-titulo { position: sticky; top: 112px; }
.sobre-texto .destaque {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: var(--noite);
  margin-bottom: 1.6em;
}
.sobre-texto p:not(.destaque) { color: var(--texto-suave); max-width: 40em; }

/* Serviços */
.servicos { background: var(--nevoa); }
.servicos-cabeca { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.servicos-cabeca p:not(.rotulo) { color: var(--texto-suave); max-width: 36em; }
.setores { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.setores-lista { display: flex; flex-direction: column; border-top: 1px solid var(--linha); }
.setores-lista button {
  appearance: none; background: none; border: 0; border-bottom: 1px solid var(--linha);
  text-align: left; cursor: pointer;
  font-family: var(--display); font-weight: 500; letter-spacing: -0.025em;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.15;
  color: #5a6480;
  padding: 0.72em 0 0.72em 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color .18s, padding-left .25s;
}
.setores-lista button::after {
  content: ""; width: 0.55em; height: 0.5em; flex: none;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--ouro); opacity: 0; transform: translateX(-8px);
  transition: opacity .18s, transform .25s;
}
.setores-lista button:hover { color: var(--azul); }
.setores-lista button[aria-selected="true"] { color: var(--noite); padding-left: 0.5em; }
.setores-lista button[aria-selected="true"]::after { opacity: 1; transform: none; }

.setor figure { margin: 0 0 1.8rem; position: relative; }
.setor figure::before {
  content: ""; position: absolute; inset: 0; background: var(--verde);
  clip-path: polygon(0 0, calc(100% - 66px) 0, 100% 100%, 0 100%);
  transform: translate(14px, 14px);
}
.setor img {
  position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 66px) 0, 100% 100%, 0 100%);
}
.setor h3 { margin-bottom: 0.7rem; }
.setor p { color: var(--texto-suave); max-width: 38em; }
.setor-arueira { margin-top: 1.8rem; padding: 22px 24px; background: #0d3f3c; color: #e8f1ea; max-width: 38em; }
.setor .setor-arueira p { color: inherit; }
.setor .setor-arueira-titulo { font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; color: #fff; margin-bottom: 0.5em; display: flex; align-items: center; gap: 0.6em; }
.setor-arueira-titulo::before { content: ""; width: 0.75em; height: 0.68em; flex: none; background: var(--verde); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.setor-arueira a { display: inline-block; margin-top: 1em; font-family: var(--display); font-weight: 500; font-size: 0.98rem; color: #fff; text-decoration: underline; text-decoration-color: var(--ouro); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.setor-arueira a:hover { color: var(--ouro); }
html:not(.js) .setores-lista { display: none; }
.setor + .setor { margin-top: 56px; }
@media (min-width: 961px) { .js .setor + .setor { margin-top: 0; } }
.js .setor[hidden] { display: none; }
.js .setor h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.js .setor:not([hidden]) { animation: surge .35s ease both; }

/* Arueira Farm */
.arueira { background: #0d3f3c; color: #e8f1ea; }
.arueira h2, .arueira h3 { color: #fff; }
.arueira .rotulo { color: #cfe6b4; }
.arueira-cabeca { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: end; }
.arueira-cabeca > p { max-width: 40em; }
.arueira-sub { font-family: var(--display); font-weight: 300; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.3; letter-spacing: -0.01em; color: #cfe6b4; margin-top: 0.9rem; max-width: 18em; }

.arueira-numeros {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  margin: clamp(40px, 6vw, 72px) 0; padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .24); border-bottom: 1px solid rgba(255, 255, 255, .24);
}
.arueira-numeros div { padding: 26px 20px 26px 0; }
.arueira-numeros div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .24); }
.arueira-numeros dt { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.05; letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
.arueira-numeros dd { margin: 0.55rem 0 0; font-family: var(--display); font-size: 0.9rem; line-height: 1.35; color: #cfe6b4; }

.arueira-grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }

.arueira-foto {
  aspect-ratio: 3 / 2; display: grid; place-items: center;
  background: linear-gradient(rgba(13, 63, 60, .72), rgba(8, 43, 41, .86)), #082b29 url("../video/arueira-galpoes.jpg") center / cover no-repeat;
  background-image: linear-gradient(rgba(13, 63, 60, .72), rgba(8, 43, 41, .86)), image-set(url("../video/arueira-galpoes.avif") type("image/avif"), url("../video/arueira-galpoes.jpg") type("image/jpeg"));
  clip-path: polygon(66px 0, 100% 0, 100% 100%, 0 100%);
}
.arueira-foto { position: sticky; top: 112px; }
/* A logo fica à direita do quadro para o selo ter espaço livre à esquerda */
.arueira-foto { justify-items: end; padding-right: 6%; }
.arueira-foto img { width: min(50%, 280px); height: auto; }
.arueira-selo {
  position: absolute; left: 18px; bottom: 16px; margin: 0;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 0.875rem; line-height: 1.2; color: #fff;
}
.arueira-selo svg { width: 36px; height: 36px; flex: none; }
.arueira-selo b { font-weight: 600; letter-spacing: 0.02em; }
.arueira-estrutura h3 { margin-bottom: 0.5rem; }
.arueira-dica { font-family: var(--display); font-size: 0.95rem; color: #cfe6b4; margin-bottom: 1.2rem; }
.dica-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .dica-toque { display: none; } .dica-mouse { display: inline; } }
.arueira details { border-top: 1px solid rgba(255, 255, 255, .24); transition: background-color .2s ease; }
.arueira details:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .24); }
.arueira details[open] { background: rgba(255, 255, 255, .07); }
.arueira summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 14px; min-height: 64px;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -0.015em; color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.arueira summary::-webkit-details-marker { display: none; }
.arueira summary svg { width: 26px; height: 26px; flex: none; color: #cfe6b4; }
.arueira summary span { flex: 1; }
/* Sinal de + (abrir) que vira − (fechar) */
.arueira summary::after {
  content: ""; width: 36px; height: 36px; flex: none; border-radius: 50%;
  border: 2px solid var(--ouro);
  background:
    linear-gradient(var(--ouro), var(--ouro)) center / 14px 2px no-repeat,
    linear-gradient(var(--ouro), var(--ouro)) center / 2px 14px no-repeat;
  transition: background-color .2s ease;
}
.arueira details[open] summary::after {
  background: linear-gradient(var(--noite), var(--noite)) center / 14px 2px no-repeat, var(--ouro);
}
.arueira summary:hover::after { background-color: rgba(249, 184, 18, .18); }
.arueira details[open] summary:hover::after { background-color: var(--ouro); }
.arueira summary:active { background: rgba(255, 255, 255, .08); }
.arueira details p { padding: 0 14px 22px 54px; max-width: 42em; }
/* Faixa mais escura que separa os vídeos e o fecho do restante da seção */
.arueira.bloco { padding-bottom: 0; }
.arueira-faixa { background: #072926; margin-top: var(--bloco); padding-block: clamp(56px, 8vw, 104px); }
.arueira-videos { margin-top: 0; }
.arueira-videos h3 { margin-bottom: 1.4rem; }
.videos-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.video { margin: 0; }
.video-quadro { position: relative; aspect-ratio: 848 / 478; background: #041b19; overflow: hidden; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Capa do vídeo: só carrega quando chega perto da tela */
.video-capa { position: absolute; inset: 0; }
.video-capa img { width: 100%; height: 100%; object-fit: cover; }
html:not(.js) .video-capa { display: none; }
.video-tocar {
  position: absolute; inset: 0; width: 100%; appearance: none; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(8, 43, 41, 0) 45%, rgba(8, 43, 41, .55) 100%);
}
.video-tocar::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  background: var(--ouro); border-radius: 50%; transition: transform .18s ease;
}
.video-tocar::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 24px; transform: translate(-36%, -50%);
  background: var(--noite); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.video-tocar:hover::before { transform: translate(-50%, -50%) scale(1.08); }
.video-tocar:focus-visible { outline-offset: -6px; box-shadow: none; }
.video figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 12px; font-family: var(--display); font-size: 1rem; color: #fff; }
.video-tempo { font-size: 0.9rem; color: #cfe6b4; white-space: nowrap; }

.arueira-fecho {
  margin-top: clamp(40px, 6vw, 72px); max-width: 46em;
  font-family: var(--display); font-weight: 300; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; letter-spacing: -0.01em; color: #fff;
  padding-left: 22px; border-left: 3px solid var(--verde);
}

/* Chamada */
.chamada { background: var(--ouro); padding-block: clamp(48px, 6vw, 80px); }
.chamada-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.chamada h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); text-wrap: wrap; }
.chamada h2 span { display: block; }

/* Diretrizes */
.diretrizes {
  color: #dfe5f3;
  background: linear-gradient(rgba(14, 27, 61, .9), rgba(14, 27, 61, .94)), var(--noite) url("../img/bg-diretrizes.jpg") center / cover no-repeat;
  background-image: linear-gradient(rgba(14, 27, 61, .9), rgba(14, 27, 61, .94)), image-set(url("../img/bg-diretrizes.avif") type("image/avif"), url("../img/bg-diretrizes.jpg") type("image/jpeg"));
}
.diretrizes h2, .diretrizes h3 { color: #fff; }
.diretrizes .rotulo { color: var(--ouro); }
.diretrizes-cabeca { max-width: 46em; margin-bottom: clamp(48px, 7vw, 88px); }
.diretrizes-cabeca h2 { margin-bottom: 1.4rem; }
.principios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.principio { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 28px; }
.principio::before {
  content: ""; display: block; width: 44px; height: 40px; margin-bottom: 22px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--verde);
}
.principio:nth-child(2)::before { background: var(--ouro); }
.principio:nth-child(3)::before { background: #fff; }
.principio h3 { margin-bottom: 0.7rem; }

/* Contato */
.contato-grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.contato h2 { margin-bottom: 1.2rem; }
.contato-intro { color: var(--texto-suave); max-width: 30em; }
.canais { list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 1px solid var(--linha); }
.canais li { border-bottom: 1px solid var(--linha); }
.canais a, .canais .canal { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 1.1em 0; text-decoration: none; align-items: baseline; }
.canais .tipo { font-family: var(--display); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azul); }
.canais .valor { font-family: var(--display); font-size: 1.08rem; color: var(--noite); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.canais a .valor { text-decoration: underline; text-decoration-color: var(--ouro); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.canais a:hover .valor { color: var(--azul); text-decoration-color: var(--azul); }
.canais address { font-style: normal; }
.mapa { min-height: 420px; background: var(--nevoa); }
.mapa iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Rodapé */
.rodape { background: var(--noite); color: #b9c2d9; font-family: var(--display); font-size: 0.9375rem; }
.rodape-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px; }
.rodape img { width: 104px; filter: brightness(0) invert(1); opacity: .92; }
.rodape a { color: #fff; }

/* WhatsApp fixo */
.zap {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: #128a43; color: #fff; border-radius: 50%;
  box-shadow: 0 8px 24px rgba(14, 27, 61, .28);
  transition: transform .18s;
}
.zap:hover { transform: translateY(-3px); }
.zap svg { width: 28px; height: 28px; }

/* Barra inferior (só no celular e tablet em pé) */
.barra { display: none; }

/* ---------- Movimento ---------- */
@keyframes surge { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes entra { from { transform: translateX(110%); } }

@media (prefers-reduced-motion: no-preference) {
  .frentes-trilho { animation: passa 48s linear infinite; }
  .frentes:hover .frentes-trilho, .frentes.fora-da-tela .frentes-trilho { animation-play-state: paused; }
  .hero-arte .foto { animation: entra .9s cubic-bezier(.2, .7, .1, 1) both; }
  .hero-arte .faixa-ouro { animation: entra-ouro 1s cubic-bezier(.2, .7, .1, 1) .12s both; }
  .hero-arte .faixa-verde { animation: entra-verde 1.1s cubic-bezier(.2, .7, .1, 1) .22s both; }
  @keyframes entra-ouro { from { transform: translateX(110%); } to { transform: translateX(-22px); } }
  @keyframes entra-verde { from { transform: translateX(110%); } to { transform: translateX(-44px); } }
  .js .revela { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .revela.visivel { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* Sem movimento: a faixa vira uma lista parada, que quebra linha */
  .frentes-trilho { width: auto; display: block; padding-inline: var(--gutter); }
  .frentes ul { flex-wrap: wrap; white-space: normal; row-gap: 10px; }
  .frentes ul[aria-hidden] { display: none; }
  html { scroll-behavior: auto; }
  .js .setor:not([hidden]) { animation: none; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 960px) {
  /* A barra inferior substitui o menu do topo e o botão flutuante */
  .topo .topo-linha .abre-menu, .topo .topo-linha .menu, a.zap { display: none; }
  .topo-linha { min-height: 60px; }
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

  .barra {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fff;
    border-top: 1px solid var(--linha);
    box-shadow: 0 -6px 24px rgba(14, 27, 61, .08);
    padding: 0 max(4px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-right, 0px));
  }
  .barra a {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 66px; padding: 8px 2px 7px;
    font-family: var(--display); font-size: 0.75rem; font-weight: 500; line-height: 1.1; letter-spacing: 0;
    color: #4d5772; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .barra svg { width: 24px; height: 24px; flex: none; }
  .barra a::before {
    content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px;
    background: var(--ouro); transform: translateX(-50%) scaleX(0); transition: transform .2s ease;
  }
  .barra a[aria-current] { color: var(--noite); }
  .barra a[aria-current]::before { transform: translateX(-50%) scaleX(1); }
  .barra a[aria-current] svg { stroke-width: 2.1; }
  .barra a:active { background: var(--nevoa); }
  .barra a:focus-visible { outline-offset: -4px; box-shadow: none; }

  .abre-menu {
    display: inline-flex; align-items: center; gap: 10px;
    appearance: none; background: none; border: 2px solid var(--noite); color: var(--noite);
    font-family: var(--display); font-size: 0.9rem; font-weight: 500; padding: 0.6em 0.9em; cursor: pointer;
  }
  .abre-menu span { width: 16px; height: 10px; border-block: 2px solid currentColor; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linha);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .menu.aberto { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a:not(.botao) { display: block; padding: 14px 0; border-bottom: 1px solid var(--linha); font-size: 1.1rem; }
  .menu .botao { margin-top: 18px; justify-content: center; padding: 1.05em 1.2em; }

  .hero-grade { grid-template-columns: 1fr; min-height: 0; }
  .hero-texto { padding: 44px 0 56px; order: 2; }
  .hero-arte { position: relative; width: 100%; height: clamp(220px, 46vw, 360px); order: 1; }
  .hero-arte .faixa, .hero-arte .foto { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100cqw * 0.12), 0 100%); }
  .hero-arte .faixa-verde { transform: translateY(20px); animation: none; }
  .hero-arte .faixa-ouro { transform: translateY(10px); animation: none; }
  .hero-arte .foto { animation: none; }
  .hero-arte .slide-skyline {
    background-image: url("../img/hero-emirados-900.jpg");
    background-image: image-set(url("../img/hero-emirados-900.avif") type("image/avif"), url("../img/hero-emirados-900.jpg") type("image/jpeg"));
    background-size: cover; background-position: 50% 8%;
  }
  .hero-legenda { position: absolute; top: 18px; bottom: auto; right: var(--gutter); }
  .hero-legenda { max-width: calc(100% - var(--gutter) * 2); padding: 7px 12px 7px 30px; clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%); }
  .hero h1 { white-space: normal; font-size: clamp(1.75rem, 9vw, 2.6rem); }
  .hero { display: flex; flex-direction: column; }
  .hero > .wrap { order: 2; }

  .sobre-grade, .servicos-cabeca, .setores, .arueira-grade, .arueira-cabeca, .contato-grade { grid-template-columns: 1fr; }
  .arueira-foto { position: relative; top: auto; }
  .videos-grade { grid-template-columns: 1fr; gap: 28px; }
  .arueira-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arueira-numeros div, .arueira-numeros div + div { padding: 20px 14px 20px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .24); }
  .arueira-numeros div:nth-child(-n+2) { border-top: 0; }
  .arueira-numeros div:nth-child(3) { grid-column: 1 / -1; }
  .arueira-numeros div:nth-child(2), .arueira-numeros div:nth-child(5) { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .24); }
  .arueira details p { padding-left: 14px; }
  .sobre-titulo { position: static; }
  .principios { grid-template-columns: 1fr; }

  /* Sem abas no celular: todos os setores ficam visíveis, um abaixo do outro */
  .setores-lista { display: none; }
  .js .setor h3 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .js .setor:not([hidden]) { animation: none; }
  .setor figure::before, .setor img { clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 0 100%); }
  .setor figure::before { transform: translate(8px, 8px); }
  .arueira-foto { clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%); }
  .canais a, .canais .canal { grid-template-columns: 1fr; gap: 4px; }
  .mapa, .mapa iframe { min-height: 320px; }
}

@media (max-width: 350px) {
  .barra a { font-size: 0.6875rem; }
}

@media (max-width: 520px) {
  .hero-regioes { display: none; }
}

@media (max-width: 360px) {
  .arueira-foto img { width: 46%; }
  .arueira-selo { left: 12px; bottom: 12px; }
  .arueira-selo svg { width: 30px; height: 30px; }
}
