/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== Geral ========== */
:root {
    --preto: #05070a;
    --azul-preto: #08111f;
    --azul-fundo: #0b1f3a;
    --azul-medio: #164e8a;
    --cobalto: #2563eb;
    --branco: #f5f7fa;
    --cinza: #9ca3af;
    --linha: rgba(245, 247, 250, 0.12);
    --titulo: "Cormorant Garamond", Georgia, serif;
    --texto: "Inter", Arial, sans-serif;
    --altura-menu: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--altura-menu); }
body { font-family: var(--texto); background: var(--preto); color: var(--branco); line-height: 1.75; overflow-x: hidden; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; position: relative; }
section { position: relative; padding: 130px 0; overflow: hidden; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 500; line-height: 1; }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
p { color: var(--cinza); }
strong { color: var(--branco); font-weight: 500; }
:focus-visible { outline: 2px solid var(--cobalto); outline-offset: 3px; }

/* Grain: textura sutil sobre a página inteira */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0.07;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Rótulo de seção: 02 / 04 ── Trabalhos */
.rotulo { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cinza); margin-bottom: 28px; }
.rotulo b { color: var(--cobalto); font-weight: 500; }
.rotulo i { width: 56px; height: 1px; background: var(--linha); }
.sec-cab { margin-bottom: 90px; max-width: 720px; }
.valores-intro { margin-top: 18px; }

/* Botões */
.botao, .botao-contorno, .botao-claro {
    display: inline-block; padding: 14px 30px; font-size: 0.95rem; font-weight: 500; border-radius: 2px;
    border: 1px solid var(--cobalto); transition: transform 0.25s, background 0.25s, box-shadow 0.25s, color 0.25s;
}
.botao { background: var(--cobalto); color: var(--branco); }
.botao:hover { box-shadow: 0 0 28px rgba(37, 99, 235, 0.55); transform: translateY(-2px); }
.botao-contorno { color: var(--branco); border-color: var(--linha); }
.botao-contorno:hover { border-color: var(--cobalto); background: rgba(37, 99, 235, 0.15); transform: translateY(-2px); }
.botao-claro { background: var(--branco); color: var(--azul-preto); border-color: var(--branco); }
.botao-claro:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.botao:active, .botao-contorno:active, .botao-claro:active { transform: scale(0.97); }

/* Link com seta que anda no hover */
.link-seta { display: inline-flex; align-items: center; gap: 12px; font-size: 0.95rem; border-bottom: 1px solid var(--linha); padding-bottom: 4px; transition: 0.25s; }
.link-seta::after { content: "\2192"; transition: transform 0.25s; }
.link-seta:hover { border-color: var(--cobalto); }
.link-seta:hover::after { transform: translateX(6px); }

/* Moldura de foto: borda deslocada + sombra */
.moldura { position: relative; }
.moldura::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(37, 99, 235, 0.45); z-index: 0; pointer-events: none; }
.moldura img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.legenda { position: absolute; z-index: 3; left: 16px; bottom: 16px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; background: rgba(5, 7, 10, 0.55); backdrop-filter: blur(8px); border: 1px solid var(--linha); }

/* ========== Header ========== */
header { position: fixed; top: 0; left: 0; width: 100%; height: var(--altura-menu); z-index: 100; background: rgba(5, 7, 10, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
.navbar {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0 clamp(20px, 3vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.title { font-family: var(--titulo); font-size: 1.5rem; font-weight: 600;  }
.title span { font-family: var(--texto); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cinza); margin-left: 10px; font-weight: 400; }

/* ========== Menu ========== */
.redirecionamento { display: flex; gap: 34px; margin-left: auto; }
.redirecionamento a { position: relative; font-size: 0.9rem; color: var(--cinza); padding: 6px 0; transition: color 0.25s; }
.redirecionamento a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--cobalto); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.so-mobile { display: none; }
.redirecionamento a:hover, .redirecionamento a.ativo { color: var(--branco); }
.redirecionamento a:hover::after, .redirecionamento a.ativo::after { transform: scaleX(1); }

.hamburguer { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; margin-left: auto; }
.hamburguer span { width: 24px; height: 1.5px; background: var(--branco); transition: 0.3s; }
.hamburguer[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburguer[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguer[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========== Dropdown ========== */
.dropdown { position: relative; }
.dropdown > button { padding: 9px 20px; border: 1px solid var(--linha); border-radius: 2px; font-size: 0.9rem; transition: 0.25s; }
.dropdown > button:hover, .dropdown > button[aria-expanded="true"] { border-color: var(--cobalto); background: rgba(37, 99, 235, 0.15); }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 14px); min-width: 170px; background: rgba(8, 17, 31, 0.92); backdrop-filter: blur(14px); border: 1px solid var(--linha); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 0.25s; }
.dropdown-menu.aberto { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 12px 20px; font-size: 0.9rem; color: var(--cinza); transition: 0.2s; }
.dropdown-menu a:hover { color: var(--branco); background: rgba(37, 99, 235, 0.18); }

/* ========== Início ========== */
#inicio { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--altura-menu) + 40px) 0 80px;
    background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(22, 78, 138, 0.55), transparent 70%),
                radial-gradient(ellipse 50% 50% at 0% 100%, rgba(37, 99, 235, 0.12), transparent 70%),
                linear-gradient(160deg, var(--azul-preto), var(--preto) 70%); }
#inicio::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 220px rgba(0, 0, 0, 0.75); }
.hero { display: grid; grid-template-columns: 1fr 0.8fr; align-items: center; gap: 40px; z-index: 2; }
.hero-rotulo { position: absolute; top: -10px; left: 0; }
.hero-texto { position: relative; z-index: 3; margin-right: -14%; }
.hero-texto h1 { font-size: clamp(5rem, 14vw, 12rem); line-height: 0.82; letter-spacing: -0.02em; }
.profissao { margin: 36px 0 12px; font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cobalto); }
.frase { font-family: var(--titulo); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.3; color: var(--branco); max-width: 420px; margin-bottom: 36px; }
.hero-foto { aspect-ratio: 4 / 5; overflow: visible; }
.hero-foto img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.explore { position: absolute; left: 0; bottom: -40px; display: flex; align-items: center; gap: 14px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cinza); }
.explore i { width: 1px; height: 46px; background: linear-gradient(var(--cobalto), transparent); animation: descer 2s ease-in-out infinite; transform-origin: top; }
@keyframes descer { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* Entrada da seção inicial (único momento de animação ao carregar) */
.hero-texto > *, .hero-foto { animation: entrar 1s ease both; }
.hero-texto h1 { animation-delay: 0.1s; }
.profissao { animation-delay: 0.3s; }
.frase { animation-delay: 0.4s; }
.hero-texto .botao { animation-delay: 0.5s; }
.hero-foto { animation-delay: 0.25s; }
@keyframes entrar { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ========== Trabalhos ========== */
#trabalhos { background: radial-gradient(ellipse 50% 30% at 100% 20%, rgba(22, 78, 138, 0.3), transparent 70%), linear-gradient(180deg, var(--preto), var(--azul-preto) 50%, var(--preto)); }
.trabalho { display: grid; grid-template-columns: 1.55fr 1fr; gap: 90px; align-items: center; margin-bottom: 140px; }
.trabalho:last-child { margin-bottom: 0; }
.trabalho.invertido { grid-template-columns: 1fr 1.55fr; }
.trabalho.invertido .carrossel { order: 2; }
.trabalho.invertido .carrossel::before { inset: 18px 18px -18px -18px; }
.trabalho-texto { position: relative; }
.numero { display: block; font-family: var(--titulo); font-size: clamp(5rem, 9vw, 8rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(37, 99, 235, 0.55); margin-bottom: 8px; }
.trabalho-texto h3 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 20px; }
.trabalho-texto p { max-width: 400px; margin-bottom: 32px; }

/* ========== Carrosséis ========== */
.carrossel { margin-bottom: 0; }
.carrossel-janela { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 7 / 5; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.carrossel-janela::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(5, 7, 10, 0.75), transparent 40%), linear-gradient(to bottom, rgba(5, 7, 10, 0.35), transparent 25%); }
.carrossel-faixa { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1); }
.carrossel-faixa img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; box-shadow: none; transition: transform 1s ease; }
.carrossel-janela:hover img { transform: scale(1.03); }

.etiqueta { position: absolute; z-index: 3; top: 18px; left: 18px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 12px; background: rgba(5, 7, 10, 0.55); backdrop-filter: blur(8px); border: 1px solid var(--linha); }
.controles { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 16px; }
.contador { font-family: var(--titulo); font-size: 1.5rem; color: var(--branco); }
.pontos { display: flex; gap: 8px; flex: 1; }
.ponto { width: 22px; height: 2px; background: rgba(245, 247, 250, 0.3); transition: 0.3s; }
.ponto.ativo { width: 40px; background: var(--cobalto); }
.seta { width: 42px; height: 42px; border: 1px solid var(--linha); background: rgba(5, 7, 10, 0.5); backdrop-filter: blur(8px); font-size: 1.1rem; transition: 0.25s; }
.seta:hover { background: var(--cobalto); border-color: var(--cobalto); }
.seta:active { transform: scale(0.93); }

/* ========== Sobre ========== */
#sobre { background: radial-gradient(ellipse 60% 60% at 0% 50%, rgba(22, 78, 138, 0.45), transparent 70%), linear-gradient(180deg, var(--preto), var(--azul-fundo) 55%, var(--azul-preto)); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.sobre-fotos { position: relative; padding-bottom: 70px; }
.sobre-principal { width: 82%; aspect-ratio: 4 / 5; }
.sobre-principal { overflow: visible; }
.sobre-texto { border-left: 1px solid var(--linha); padding-left: 56px; }
.sobre-texto h2 { margin-bottom: 32px; }
.introducao { font-family: var(--titulo); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; color: var(--branco); margin-bottom: 28px; }
.sobre-texto p { margin-bottom: 18px; max-width: 480px; }

/* ========== Valores ========== */
#valores { background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(37, 99, 235, 0.18), transparent 70%), linear-gradient(180deg, var(--azul-preto), var(--preto)); }
.pacotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pacote { position: relative; display: flex; flex-direction: column; padding: 44px 34px; border: 1px solid var(--linha); background: linear-gradient(160deg, rgba(22, 78, 138, 0.22), rgba(8, 17, 31, 0.6) 55%); transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s; }
.pacote:hover { transform: translateY(-6px); border-color: rgba(37, 99, 235, 0.6); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); }
.pacote h3 { font-size: 2.2rem; }
.pacote-desc { font-size: 0.92rem; margin: 6px 0 28px; }
.preco { font-family: var(--titulo); font-size: 3.6rem; line-height: 1; color: var(--branco); margin-bottom: 28px; }
.pacote ul { flex: 1; margin-bottom: 32px; }
.pacote li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--linha); font-size: 0.92rem; color: var(--cinza); }
.pacote li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalto); transform: translateY(-50%); }
.pacote a { text-align: center; }
.pacote.destaque { background: linear-gradient(160deg, rgba(37, 99, 235, 0.35), rgba(11, 31, 58, 0.85) 60%); border-color: rgba(37, 99, 235, 0.7); box-shadow: 0 0 60px rgba(37, 99, 235, 0.2); transform: translateY(-14px); }
.pacote.destaque:hover { transform: translateY(-20px); }

.orcamento { position: relative; overflow: hidden; margin-top: 80px; padding: 56px 52px; display: flex; align-items: center; justify-content: space-between; gap: 40px; background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(96, 165, 250, 0.45), transparent 70%), linear-gradient(160deg, rgba(22, 78, 138, 0.22), rgba(8, 17, 31, 0.6) 55%); transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s; }
.orcamento h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 12px; }
.orcamento p { color: #cfd9e8; max-width: 560px; }
.orcamento .botao-claro { flex-shrink: 0; }

/* ========== Rodapé ========== */
footer { background: linear-gradient(180deg, var(--preto), #020304); border-top: 1px solid var(--linha); padding: 64px 0 24px; font-size: 0.92rem; color: var(--cinza); }
.rodape { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.rodape-nome { font-family: var(--titulo); font-size: 1.8rem; color: var(--branco); }
.rodape-links { display: flex; flex-direction: column; gap: 6px; }
.rodape-links a { transition: color 0.25s; }
.rodape-links a:hover { color: var(--branco); }
.copyright { width: min(1180px, 100% - 48px); margin-inline: auto; padding-top: 24px; border-top: 1px solid var(--linha); text-align: center; font-size: 0.8rem; }

/* Aparecer ao rolar (ativado pelo JS) */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.revelar.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .revelar { opacity: 1; transform: none; }
}

/* ========== Responsividade ========== */
/* Notebook */
@media (max-width: 1100px) {
    .trabalho, .trabalho.invertido { gap: 56px; }
    .sobre-grid { gap: 70px; }
    .sobre-texto { padding-left: 40px; }
    .pacote { padding: 36px 26px; }
}

/* Tablet */
@media (max-width: 900px) {
    section { padding: 100px 0; }
    .hero { grid-template-columns: 1fr; gap: 70px; }
    .hero-texto { margin-right: 0; }
    .hero-foto { width: 70%; margin-left: auto; margin-right: 18px; }
    .explore { display: none; }
    .trabalho, .trabalho.invertido { grid-template-columns: 1fr; gap: 56px; margin-bottom: 100px; }
    .trabalho.invertido .carrossel { order: 0; }
    .trabalho.invertido .carrossel::before { inset: 18px -18px -18px 18px; }
    .sobre-grid { grid-template-columns: 1fr; gap: 64px; }
    .sobre-fotos { max-width: 480px; }
    .sobre-texto { border-left: none; padding-left: 0; }
    .pacotes { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 28px; }
    .pacote.destaque, .pacote.destaque:hover { transform: none; }
    .orcamento { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
}

/* Celular */
@media (max-width: 768px) {
    .hamburguer { display: flex; }
    .title span { display: none; }
    .dropdown { display: none; }
    .redirecionamento { position: absolute; top: var(--altura-menu); left: 0; width: 100%; margin: 0; display: none; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: rgba(5, 7, 10, 0.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
    .redirecionamento.aberto { display: flex; }
    .redirecionamento a { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--linha); }
    .redirecionamento a::after { display: none; }
    .so-mobile { display: block; }
    .redirecionamento a.ativo { color: var(--cobalto); }
}

@media (max-width: 600px) {
    section { padding: 80px 0; }
    .sec-cab { margin-bottom: 56px; }
    .hero-rotulo { position: static; margin-bottom: 20px; }
    #inicio { align-items: flex-start; }
    .hero { gap: 52px; }
    .hero-foto { width: 86%; }
    .moldura::before, .trabalho.invertido .carrossel::before { inset: 12px -10px -12px 10px; }
    .carrossel-janela { aspect-ratio: 4 / 5; }
    .contador { font-size: 1.2rem; }
    .seta { width: 40px; height: 40px; }
    .botao, .botao-contorno, .botao-claro { padding: 16px 28px; }
    .orcamento .botao-claro { width: 100%; text-align: center; }
    .sobre-principal { width: 86%; }
    .rodape { flex-direction: column; gap: 28px; }
}

/* ========== Proporções dos carrosséis ========== */

/* Esportes: quadrado 1:1 */
.trabalho:nth-of-type(1) .carrossel-janela { aspect-ratio: 1 / 1; }

/* Ensaios: vertical 2:3 */
.trabalho:nth-of-type(2) .carrossel-janela { aspect-ratio: 2 / 3; }

/* Eventos: continua como está (7:5) */

/* Celular e tablet: limita a largura para as fotos não ficarem gigantes */
.trabalho:nth-of-type(1) .carrossel,
.trabalho:nth-of-type(2) .carrossel { max-width: 440px; }

/* Desktop: ajusta as colunas para as três peças terem alturas parecidas */
@media (min-width: 901px) {
    .trabalho:nth-of-type(1) { grid-template-columns: minmax(0, 560px) 1fr; }
    .trabalho:nth-of-type(2) { grid-template-columns: 1fr minmax(0, 400px); }
    .trabalho:nth-of-type(1) .carrossel,
    .trabalho:nth-of-type(2) .carrossel { max-width: none; }
}
/* Eventos: sempre horizontal, inclusive no celular */
.trabalho:nth-of-type(3) .carrossel-janela { aspect-ratio: 7 / 5; }