/* ============================================================
   MM OBRAS — Sistema de design (site v2)
   Marca: Navy #112A40 · Azul #1E4970 · Areia #D3D1BA · Gelo #C1D9E5
   Tipografia: Sora (títulos) · Inter (corpo)
   ============================================================ */

:root {
  --navy: #112A40;
  --navy-800: #0c1f30;
  --blue: #1E4970;
  --blue-600: #24547f;
  --sand: #D3D1BA;
  --sand-soft: #e2e0d0;
  --ice: #C1D9E5;
  --charcoal: #202121;
  --paper: #FBFAF7;
  --paper-2: #f2f0ea;
  --white: #ffffff;

  --line: rgba(17, 42, 64, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1320px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(17, 42, 64, 0.06);
  --shadow: 0 18px 50px -20px rgba(17, 42, 64, 0.35);
  --shadow-lg: 0 40px 90px -30px rgba(17, 42, 64, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--navy); }
.display { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #45504f; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--blue); display: inline-block; }
.eyebrow.on-dark { color: var(--sand); }
.eyebrow.on-dark::before { background: var(--sand); }

.text-blue { color: var(--blue); }
.text-sand { color: var(--sand); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h2 { margin-top: 1rem; }
.section-head .lead { margin-top: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

.bg-navy { background: var(--navy); color: var(--sand-soft); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-paper-2 { background: var(--paper-2); }
.bg-ice { background: linear-gradient(180deg, #eef5f9, #e4eff5); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(30, 73, 112, 0.7); }
.btn-primary:hover { background: var(--navy); box-shadow: 0 18px 34px -12px rgba(17, 42, 64, 0.75); }
.btn-sand { background: var(--sand); color: var(--navy); }
.btn-sand:hover { background: var(--white); }
.btn-ghost { border: 1.5px solid var(--line-light); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s, padding 0.4s;
  padding-block: 1.15rem;
}
.header.scrolled {
  background: rgba(12, 31, 48, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-light), 0 20px 40px -30px #000;
  padding-block: 0.7rem;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.header__logo img { height: 64px; width: auto; transition: height 0.4s var(--ease); }
.header.scrolled .header__logo img { height: 52px; }
@media (max-width: 620px) { .header__logo img, .header.scrolled .header__logo img { height: 44px; } }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  position: relative; color: var(--sand-soft); font-weight: 500; font-size: 0.95rem;
  padding-block: 0.3rem; transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--sand); transition: width 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.header__cta { display: inline-flex; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--sand); position: relative; transition: 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--sand); transition: 0.3s; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.8rem;
    background: var(--navy); padding: 2rem;
    transform: translateY(-100%); transition: transform 0.5s var(--ease);
  }
  body.menu-open .nav { transform: translateY(0); }
  .nav a { font-size: 1.5rem; font-family: var(--font-display); color: #fff; }
  .nav .header__cta { margin-top: 1rem; }
  .header .header__cta.desktop { display: none; }
}
@media (min-width: 901px) { .nav .header__cta.mobile { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: kenburns 22s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,42,64,0.55) 0%, rgba(17,42,64,0.4) 40%, rgba(12,31,48,0.92) 100%),
    linear-gradient(90deg, rgba(12,31,48,0.85) 0%, rgba(12,31,48,0.15) 70%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(7rem, 16vh, 10rem) 7.5rem; max-width: 1180px; }
/* escala com a tela: em monitores grandes o título cresce e preenche o hero */
.hero .display { color: #fff; margin: 1.5rem 0 1.25rem; font-size: clamp(2.4rem, 5vw, 5.5rem); max-width: 18ch; }
.hero .display em { font-style: normal; color: var(--sand); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.5rem); color: var(--ice); max-width: 46ch; }
.hero__rotator { margin-top: 1.5rem; height: 1.6em; overflow: hidden; position: relative; }
.hero__rotator span {
  position: absolute; left: 0; top: 0; width: 100%;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 500; color: var(--sand); opacity: 0; transform: translateY(100%);
  transition: opacity 0.6s, transform 0.6s var(--ease);
}
.hero__rotator span.active { opacity: 1; transform: translateY(0); }
.hero__rotator span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero__actions .btn { padding: 1.05rem 2rem; font-size: 1rem; }
.hero__rotator span { font-size: clamp(0.95rem, 1.2vw, 1.15rem); }
.hero__scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice);
  pointer-events: none; /* nunca bloqueia cliques nos botões */
}
/* em telas baixas (notebooks 768p etc.) o indicador some — evita sobrepor os CTAs */
@media (max-height: 860px) { .hero__scroll { display: none; } }
.hero__scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--ice), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--sand); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { to { top: 100%; } }

/* trust strip below hero */
.trust { border-top: 1px solid var(--line-light); }
.trust .container { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; padding-block: 1.6rem; }
.trust p { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--ice); }
.trust svg { width: 20px; height: 20px; color: var(--sand); flex: none; }

/* ============================================================
   SOLUÇÕES (cards)
   ============================================================ */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.sol-card {
  position: relative; padding: 2rem 1.6rem 1.8rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
  display: flex; flex-direction: column; min-height: 260px;
}
.sol-card::before {
  content: ""; position: absolute; inset: 0; background: var(--navy); z-index: 0;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.sol-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.sol-card:hover::before { transform: translateY(0); }
.sol-card > * { position: relative; z-index: 1; transition: color 0.4s; }
.sol-card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--blue); margin-bottom: auto;
  transition: background 0.4s, color 0.4s;
}
.sol-card__icon svg { width: 26px; height: 26px; }
.sol-card h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.sol-card p { font-size: 0.9rem; color: #5c6564; margin-top: 0.5rem; }
.sol-card__no { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--font-display); font-size: 0.85rem; color: var(--line); z-index: 1; }
.sol-card:hover h3, .sol-card:hover .sol-card__no { color: #fff; }
.sol-card:hover p { color: var(--ice); }
.sol-card:hover .sol-card__icon { background: var(--blue); color: #fff; }

/* ============================================================
   SOBRE (split)
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media .frame { position: absolute; inset: -16px -16px auto auto; width: 60%; height: 60%; border: 1px solid var(--blue); border-radius: var(--radius); z-index: -1; }
.floating-stat {
  position: absolute; left: -1.5rem; bottom: -1.5rem; background: var(--navy); color: #fff;
  padding: 1.3rem 1.6rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-width: 210px;
}
.floating-stat b { font-family: var(--font-display); font-size: 2rem; display: block; color: var(--sand); }
.floating-stat span { font-size: 0.82rem; color: var(--ice); }
.split p + p { margin-top: 1rem; }
.split .btn { margin-top: 1.8rem; }

/* ============================================================
   NÚMEROS (counters)
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.stat { padding: 1rem; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--line-light); }
.stat b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); color: #fff; line-height: 1; display: block; }
.stat b .plus { color: var(--sand); }
/* ">" é essencial: sem ele a regra pega também os spans DENTRO do <b> (número/+) e encolhe tudo */
.stat > span { display: block; margin-top: 0.7rem; font-size: 0.9rem; color: var(--ice); letter-spacing: 0.02em; }

/* ============================================================
   PORTFÓLIO (grid)
   ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.proj {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy);
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.6s; filter: saturate(0.9); }
.proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,42,64,0) 35%, rgba(12,31,48,0.92) 100%); transition: opacity 0.5s; }
.proj:hover img { transform: scale(1.08); filter: saturate(1.1); }
.proj__body { position: relative; z-index: 2; padding: 1.5rem; color: #fff; width: 100%; }
.proj__tag { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice); }
.proj h3 { color: #fff; font-size: 1.15rem; margin-top: 0.35rem; }
.proj__meta { display: flex; gap: 1.2rem; margin-top: 0.8rem; font-size: 0.82rem; color: var(--sand-soft); opacity: 0; max-height: 0; transition: opacity 0.4s, max-height 0.4s, margin 0.4s; }
.proj__meta b { color: #fff; font-weight: 600; }
.proj:hover .proj__meta { opacity: 1; max-height: 60px; }
.proj--wide { grid-column: span 2; }
.pf-page .proj__meta { opacity: 1; max-height: 80px; }
.pf-page .proj { aspect-ratio: 3 / 2; }

/* filtros portfólio */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filters button {
  padding: 0.55rem 1.1rem; border-radius: 100px; border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 500; color: #5c6564; background: #fff; transition: 0.3s;
}
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   POR QUE NÓS (reasons)
   ============================================================ */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
.reason { display: flex; gap: 1.1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.reason__num { font-family: var(--font-display); font-size: 0.9rem; color: var(--blue); flex: none; padding-top: 0.2rem; }
.reason h3 { font-size: 1.15rem; }
.reason p { font-size: 0.92rem; color: #5c6564; margin-top: 0.4rem; }

/* ============================================================
   CTA arquiteto
   ============================================================ */
.cta-arch { position: relative; overflow: hidden; }
.cta-arch .container { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.cta-arch__text { padding-block: clamp(3.5rem, 6vw, 5.5rem); max-width: 560px; }
.cta-arch__img { align-self: end; }
.cta-arch__img img { height: clamp(400px, 42vw, 580px); width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.4)); }
@media (max-width: 820px) { .cta-arch__img { display: none; } }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.45rem; color: var(--ice); text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-light); color: #fff;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sand); background: rgba(255,255,255,0.1); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ice); margin-top: 0.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-info a.info-row, .contact-info .info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row svg { width: 22px; height: 22px; color: var(--sand); flex: none; margin-top: 2px; }
.info-row b { display: block; color: #fff; font-weight: 600; font-family: var(--font-display); }
.info-row span { font-size: 0.92rem; color: var(--ice); }
.socials { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: 0.3s; }
.socials a:hover { background: var(--sand); color: var(--navy); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-800); color: var(--ice); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer__brand img { height: 44px; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 320px; font-size: 0.92rem; }
.footer h4 { color: var(--sand); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 1.1rem; }
.footer__col a, .footer__col span { display: block; font-size: 0.92rem; margin-bottom: 0.7rem; transition: color 0.3s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; font-size: 0.82rem; color: rgba(193,217,229,0.6); }

/* ============================================================
   MARQUEE (clientes / frases)
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--navy); opacity: 0.35; white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee__track span::after { content: "•"; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* marquee de LOGOS de clientes (imagens reais, nas cores originais) */
.marquee--logos .marquee__track { gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.marquee--logos img {
  height: clamp(44px, 5.5vw, 64px); width: auto; flex: none;
  transition: transform 0.35s var(--ease);
}
.marquee--logos img:hover { transform: scale(1.08); }

/* ============================================================
   ANIMAÇÕES DE REVELAÇÃO (scroll)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].in { opacity: 1; transform: none; }

/* barra de progresso de rolagem */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--sand)); z-index: 200; transition: width 0.1s linear; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .floating-stat { left: 1rem; bottom: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-arch .container { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:not(:last-child)::after { display: none; }
  .reasons { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .proj--wide { grid-column: span 1; }
  .footer__top { grid-template-columns: 1fr; }
  .trust .container { justify-content: flex-start; }
}

/* ============================================================
   PÁGINAS INTERNAS (helpers)
   ============================================================ */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(8.5rem, 15vh, 12rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero::before { content: ""; position: absolute; right: -8%; top: -20%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(30,73,112,0.55), transparent 68%); z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .display { color: #fff; margin: 1.2rem 0 1rem; font-size: clamp(2.4rem, 5.5vw, 4rem); }
.page-hero .lead { color: var(--ice); max-width: 620px; }
.breadcrumb { font-size: 0.8rem; color: rgba(193,217,229,0.7); margin-bottom: 0.4rem; }
.breadcrumb a:hover { color: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: var(--paper-2); color: var(--blue); margin-bottom: 1.2rem; }
.card__icon svg { width: 25px; height: 25px; }
.card .k { font-family: var(--font-display); color: var(--blue); font-size: 0.85rem; font-weight: 600; }
.card h3 { margin: 0.7rem 0 0.5rem; font-size: 1.2rem; }
.card p { color: #5c6564; font-size: 0.94rem; }

.num-panel { aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(150deg, var(--blue), var(--navy)); display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem; color: #fff; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.num-panel::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 260px; height: 260px; border-radius: 50%; background: rgba(193,217,229,0.12); }
.num-panel .big { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; color: var(--sand); line-height: 1; position: relative; z-index: 1; }
.num-panel svg { width: 42px; height: 42px; color: var(--ice); position: relative; z-index: 1; }
.split.rev { direction: rtl; }
.split.rev > * { direction: ltr; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__bg img { transform: none; }
}

/* ---------- Seletor de idioma (PT/EN/ES) ---------- */
.lang-switch {
  display: flex; gap: 2px; padding: 3px; margin-left: 0.5rem;
  border: 1px solid rgba(211, 209, 186, 0.35); border-radius: 999px; flex: none;
}
.lang-switch a {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem; border-radius: 999px; color: var(--ice);
  transition: color 0.25s, background 0.25s;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--sand); color: var(--navy); }
@media (max-width: 620px) {
  .lang-switch { margin-left: auto; margin-right: 0.6rem; }
  .lang-switch a { padding: 0.24rem 0.45rem; }
}
