/* ============ Grupo Expand — acabamento corporativo/premium (Nov. 2026) ============
   Só aspecto visual: nenhum texto muda. Para reverter, basta retirar este ficheiro do <head>. */
:root {
  --ink: #08110f;
  --ink-2: #0d1a18;
  --ink-3: #14231f;
  --gold: #d8b04a;
  --gold-2: #e6c468;
  --line: #e4e7e4;
  --soft: #f5f6f3;
  --radius: 12px;
  --shadow: 0 18px 40px -18px rgba(8, 17, 15, .28);
}

body { letter-spacing: .005em; }
h1, h2, h3 { letter-spacing: -.02em; }
h2 { font-weight: 600; }
.eyebrow { letter-spacing: .28em; font-size: .72rem; }
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section__head { margin-bottom: 3.4rem; }

/* Cabeçalho: mais limpo, sombra só ao fazer scroll visual */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: rgba(8,17,15,.06); box-shadow: 0 1px 0 rgba(8,17,15,.03), 0 8px 24px -16px rgba(8,17,15,.25); }
.topbar__inner { height: 80px; }
.nav a:not(.btn) { font-size: .9rem; color: #2a3431; }
.nav a:not(.btn)::after { background: var(--gold); height: 1.5px; }

/* ---------- Herói ---------- */
.hero { background: var(--ink); min-height: min(820px, calc(100vh - 80px)); }
.hero__bg { object-position: 72% 30%; }
.hero__shade {
  background:
    radial-gradient(120% 90% at 78% 35%, rgba(8,17,15,0) 0%, rgba(8,17,15,.35) 55%, rgba(8,17,15,.8) 100%),
    linear-gradient(90deg, rgba(8,17,15,.97) 0%, rgba(8,17,15,.9) 30%, rgba(8,17,15,.55) 52%, rgba(8,17,15,.05) 78%),
    linear-gradient(0deg, rgba(8,17,15,.98) 0%, rgba(8,17,15,0) 38%);
}
/* filete dourado discreto do lado esquerdo do bloco de texto */
.hero__content { padding-left: clamp(0px, 2vw, 28px); border-left: 1px solid rgba(216,176,74,.35); }
.hero .eyebrow { color: var(--gold); display: inline-flex; align-items: center; gap: .9em; }
.hero .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 { font-weight: 300; line-height: 1.06; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 span { color: var(--gold); font-weight: 600; }
.hero__lead { color: rgba(255,255,255,.82); line-height: 1.7; max-width: 44ch; }
.hero__ctas { gap: 14px; margin-top: 2.2rem; }

.btn { border-radius: 8px; letter-spacing: .01em; }
.btn--lg { padding: 1em 1.7em; }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #0b0f0e; box-shadow: 0 10px 24px -10px rgba(216,176,74,.6); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn--teal { border-radius: 8px; }

/* números do herói num painel de vidro */
.stats { margin-top: 64px; padding: 24px 28px; gap: 0; border: 1px solid rgba(255,255,255,.1); border-bottom: 0; border-radius: 14px 14px 0 0; background: rgba(8,17,15,.55); backdrop-filter: blur(12px); }
.stats li { border-left: 1px solid rgba(255,255,255,.12); padding: 4px 22px; }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { font-weight: 600; letter-spacing: -.01em; color: #fff; }
.stats span { color: rgba(255,255,255,.6); letter-spacing: .02em; }

/* faixa da bandeira mais fina e elegante */
.flagbar { height: 4px; }

/* ---------- Cartões e blocos ---------- */
.promise > div, .card, .unit { border-radius: var(--radius); }
.promise > div { background: #fff; border: 1px solid var(--line); border-top-width: 3px; box-shadow: 0 1px 0 rgba(8,17,15,.02); }
.unit, .card { box-shadow: 0 1px 2px rgba(8,17,15,.04); }
.unit:hover, .card:hover { box-shadow: var(--shadow); }
.unit--security { background: linear-gradient(160deg, #0f1d1a, var(--ink)); }
.cta-band { border-radius: 16px; background: linear-gradient(120deg, #0a3c38, var(--teal) 70%, #12907f); box-shadow: var(--shadow); }

/* Fotografias: tratamento uniforme */
.portrait img { border-radius: 12px; filter: saturate(.95) contrast(1.02); box-shadow: 0 30px 60px -30px rgba(8,17,15,.45); }
.portrait figcaption { border-radius: 8px; }
.client { border-radius: 10px; border-color: var(--line); }
.client__logo img { filter: grayscale(100%); opacity: .8; transition: filter .2s, opacity .2s; }
.client:hover .client__logo img { filter: none; opacity: 1; }
.client--dark .client__logo img { filter: none; opacity: 1; }

.footer { background: #050908; }

@media (max-width: 860px) {
  .hero__bg { object-position: 70% 25%; }
  .hero__content { border-left: 0; padding-left: 0; }
  .hero__shade { background: linear-gradient(0deg, rgba(8,17,15,.98) 30%, rgba(8,17,15,.55) 75%, rgba(8,17,15,.35) 100%); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 20px; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ============ Animações (Nov. 2026) ============ */
/* Herói: aproximação lenta da fotografia (efeito Ken Burns) + profundidade ao fazer scroll */
.hero__bg { transform-origin: 70% 35%; translate: 0 var(--py, 0px); animation: kenburns 22s ease-in-out infinite alternate; will-change: scale, translate; }
@keyframes kenburns { from { scale: 1.02; } to { scale: 1.12; } }

/* Herói: o texto entra por partes ao abrir a página */
.hero__content > *, .stats li { animation: subir .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > :nth-child(1) { animation-delay: .15s; }
.hero__content > :nth-child(2) { animation-delay: .3s; }
.hero__content > :nth-child(3) { animation-delay: .5s; }
.hero__content > :nth-child(4) { animation-delay: .65s; }
.stats li:nth-child(1) { animation-delay: .8s; } .stats li:nth-child(2) { animation-delay: .9s; }
.stats li:nth-child(3) { animation-delay: 1s; }  .stats li:nth-child(4) { animation-delay: 1.1s; }
@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Brilho dourado que passa de vez em quando no botão principal */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: brilho 5s ease-in-out 2s infinite; }
@keyframes brilho { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Entrada suave dos blocos ao fazer scroll */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
.js-anim .unit.reveal.is-in:hover, .js-anim .card.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* Fotografia do director: aproximação ligeira ao passar o rato */
.portrait { overflow: hidden; border-radius: 12px; }
.portrait img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.portrait:hover img { transform: scale(1.04); }

/* Ícones dos cartões ganham vida ao passar o rato */
.card__icon, .unit__icon { transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s; }
.card:hover .card__icon, .unit:hover .unit__icon { transform: translateY(-3px) rotate(-6deg); }

/* Vídeos reais das operações */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.reel { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--ink-3); aspect-ratio: 9/16; max-height: 560px; box-shadow: var(--shadow); }
.reel video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.reel:hover video { transform: scale(1.04); }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; background: linear-gradient(0deg, rgba(8,17,15,.9), transparent); color: #fff; font-weight: 500; font-size: .95rem; }
.reel figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--flag-red, #d7263d); margin-right: 9px; vertical-align: middle; animation: aovivo 1.6s infinite; }
@keyframes aovivo { 0% { box-shadow: 0 0 0 0 rgba(215,38,61,.7); } 70% { box-shadow: 0 0 0 9px rgba(215,38,61,0); } 100% { box-shadow: 0 0 0 0 rgba(215,38,61,0); } }
@media (max-width: 860px) {
  .reels { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .reel { scroll-snap-align: start; }
}

/* Quem pede menos movimento no telemóvel/computador não vê animações */
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero__content > *, .stats li, .btn--gold::after, .reel figcaption::before { animation: none !important; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}
