/* ===== Variáveis ===== */
:root {
    --bg-color: #F8F6F4;
    --primary-dark: #1A1A1A;
    --accent: #A37E58;          /* bronze original: detalhes e uso sobre fundo escuro */
    --accent-strong: #8B6846;   /* bronze com contraste para botão/selo com texto branco */
    --accent-hover: #755737;
    --accent-text: #7A5A38;     /* bronze legível sobre fundo claro */
    --gold-light: #F1DFC2;      /* champanhe: brilhos e reflexos */
    --text-light: #FFFFFF;
    --text-gray: #E0E0E0;

    --container: 650px;
    --gutter: 1.25rem;
}

/* Permite animar o ângulo do degradê da borda da mentoria */
@property --ang {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: clip;
}

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

a {
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    text-wrap: balance;
}

.hero-content p,
.mentoria p {
    text-wrap: balance;
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    background-color: var(--primary-dark);
    min-height: max(600px, 90vh);
    min-height: max(600px, 90svh);
    text-align: center;
}

/* Fundo em camada própria para poder dar zoom lento (efeito Ken Burns) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('img/fundo-hero-section.png') center top / cover no-repeat;
    transform-origin: 50% 25%;
    animation: kenburns 24s ease-in-out infinite alternate;
}

.hero-overlay {
    position: relative;
    flex: 1;
    background: linear-gradient(to bottom, rgba(26,26,26,0.2), rgba(26,26,26,0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.75rem 1.5rem 3.5rem;
    overflow: hidden;
}

.hero-top,
.hero-content {
    position: relative;
    z-index: 1;
}

/* Linha do topo: logo à esquerda, redes à direita */
.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 640px;
    margin-bottom: auto;
}

.logo {
    width: clamp(120px, 44vw, 210px);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    animation: drop-in 0.9s ease-out both; /* entra uma vez e fica parada */
}

.hero-social {
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
    animation: rise 0.9s ease-out 0.6s both;
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    color: var(--accent);
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    line-height: 1.3;
    max-width: 600px;
    margin: 0 auto 1rem;
    animation: rise 0.9s ease-out 0.25s both;
}

/* Título com brilho dourado passando em looping */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-content h1 {
        background: linear-gradient(90deg, #A37E58 0%, var(--gold-light) 25%, #A37E58 50%, var(--gold-light) 75%, #A37E58 100%);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        animation: rise 0.9s ease-out 0.25s both, shimmer 7s linear infinite;
    }
}

.hero-content p {
    color: var(--text-gray);
    font-weight: 300;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    animation: rise 0.9s ease-out 0.45s both;
}

/* Luzes e brilhos flutuando */
.hero-fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163,126,88,0.5), rgba(163,126,88,0) 65%);
    animation: drift 11s ease-in-out infinite alternate;
}

.orb-1 {
    width: 280px;
    height: 280px;
    top: -6%;
    left: -22%;
}

.orb-2 {
    width: 320px;
    height: 320px;
    bottom: 12%;
    right: -26%;
    background: radial-gradient(circle, rgba(241,223,194,0.32), rgba(241,223,194,0) 65%);
    animation-duration: 14s;
    animation-delay: -4s;
}

.spark {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    background: linear-gradient(135deg, var(--gold-light), var(--accent));
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    opacity: 0.5;
    animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite;
}

/* ===== Faixa em looping ===== */
.faixa {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 0.85rem 0;
    background: linear-gradient(90deg, #A37E58, #D9BE97, var(--gold-light), #D9BE97, #A37E58);
    color: var(--primary-dark);
    border-block: 1px solid rgba(26,26,26,0.25);
}

.faixa-track {
    display: flex;
    width: max-content;
    animation: marquee 34s linear infinite;
}

.faixa-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1.5rem;
    padding-right: 1.5rem; /* igual ao gap: o loop emenda sem salto */
}

.faixa-group span {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.faixa-group i {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    background: var(--primary-dark);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: spin 6s linear infinite;
}

/* ===== Colunas de conteúdo ===== */
.mentoria,
.secao-links {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    text-align: center;
}

.secao-links {
    padding-block: 3.5rem;
}

/* ===== Mentoria VIP ===== */
.mentoria {
    position: relative;
    margin-top: 3rem;
    padding: 3rem 1.5rem;
    color: var(--text-light);
    border-radius: 20px;
    border: 2px solid transparent;
    /* miolo escuro + borda com degradê dourado girando */
    background:
        linear-gradient(var(--primary-dark), var(--primary-dark)) padding-box,
        conic-gradient(from var(--ang), var(--accent), var(--gold-light), var(--accent-strong), var(--accent)) border-box;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3), 0 0 40px rgba(163,126,88,0.18);
    animation: spin-ang 8s linear infinite;
}

.badge {
    display: inline-block;
    background-color: var(--accent-strong);
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.mentoria h2 {
    color: var(--text-light);
    font-size: clamp(1.3rem, 5.5vw, 1.6rem);
    margin-bottom: 1rem;
}

.mentoria p {
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.btn-pulse {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    padding: 1.2rem 1.5rem;
    background-color: var(--accent-strong);
    color: var(--text-light);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    animation: pulse 2s infinite;
}

/* Reflexo de luz cruzando o botão */
.btn-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    animation: shine 3.6s ease-in-out 1s infinite;
    pointer-events: none;
}

.btn-pulse:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

.btn-pulse:active {
    transform: scale(0.97);
}

/* ===== Seções de links ===== */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    letter-spacing: 1px;
    color: var(--primary-dark);
}

/* Traço dourado que se abre quando a seção aparece */
.section-header::after {
    content: '';
    display: block;
    width: 90px;
    height: 2px;
    margin: 1.1rem auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 1s ease-out 0.3s;
}

.js .fade-in:not(.visible) .section-header::after {
    width: 0;
}

.subtitle {
    margin-top: 0.25rem;
    color: var(--accent-text);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.card-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--primary-dark);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-link img {
    width: 100%;
    transition: transform 0.8s ease;
}

/* Reflexo de luz passando por cada card, um depois do outro */
.card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
    transform: translateX(-130%);
    animation: sweep 6s ease-in-out calc(var(--i, 0) * 1.3s + 1s) infinite;
    pointer-events: none;
}

.card-link:nth-child(1) { --i: 0; }
.card-link:nth-child(2) { --i: 1; }
.card-link:nth-child(3) { --i: 2; }
.card-link:nth-child(4) { --i: 3; }

/* Cards entram em sequência quando a seção aparece */
.js .fade-in:not(.visible) .card-link {
    opacity: 0;
}

.fade-in.visible .card-link {
    animation: card-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 0.14s + 0.2s) backwards;
}

.card-link:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .card-link:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }
    .card-link:hover img {
        transform: scale(1.02);
    }
}

@media (min-width: 900px) {
    .secao-links--grade {
        width: min(100% - 2 * var(--gutter), 980px);
    }
    .secao-links--grade .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Redes sociais (topo e rodapé) ===== */
.social-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--text-gray);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-icon:active {
    transform: scale(0.92);
}

/* Ícones em SVG: centralizados pela geometria, sem depender da fonte */
.icon {
    display: block;
    width: 0.875em;
    height: 1em;
    fill: currentColor;
}

/* No topo: botões redondos com anel pulsando */
.hero-social .social-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    color: var(--gold-light);
    background: rgba(26,26,26,0.45);
    border: 1px solid rgba(241,223,194,0.55);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-social .social-icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(241,223,194,0.7);
    animation: ring 2.8s ease-out infinite;
    pointer-events: none;
}

.hero-social .social-icon:nth-child(2)::after {
    animation-delay: 1.4s;
}

/* ===== Botão flutuante do WhatsApp ===== */
.fab-whatsapp {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 50;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-strong), var(--accent-hover));
    color: var(--text-light);
    font-size: 1.9rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    animation: fab-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 2s both, bob 3.2s ease-in-out 2.7s infinite;
}

.fab-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: ring 2.4s ease-out 2.7s infinite;
    pointer-events: none;
}

.fab-whatsapp:active {
    filter: brightness(0.9);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-gray);
    padding: 4rem 1.5rem 5.5rem; /* folga embaixo para o botão flutuante não cobrir o crédito */
    text-align: center;
    border-top: 4px solid var(--accent);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    width: min(180px, 60%);
    opacity: 0.8;
    filter: grayscale(100%) brightness(200%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    filter: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-text {
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

.footer-text p {
    margin-bottom: 0.5rem;
}

.credit {
    color: rgba(255, 255, 255, 0.5); /* branco translúcido, efeito marca d'água */
    font-weight: 300;
}

.credit a,
.credit a:hover,
.credit a:focus-visible {
    color: inherit;
    text-decoration: none;
}

.credit strong {
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== Entrada das seções (só com JS) ===== */
.js .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js .fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ===== Animações ===== */
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.12) translateY(-1.5%); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@keyframes drop-in {
    from { opacity: 0; transform: translateY(-20px) scale(0.92); }
    to   { opacity: 1; transform: none; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes shimmer {
    from { background-position: 0 0; }
    to   { background-position: -200% 0; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.12; transform: translateY(0) scale(0.7) rotate(0deg); }
    50%      { opacity: 1;    transform: translateY(-16px) scale(1.05) rotate(45deg); }
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(34px, -44px) scale(1.18); }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-ang {
    to { --ang: 360deg; }
}

@keyframes shine {
    0%        { left: -60%; }
    55%, 100% { left: 130%; }
}

@keyframes sweep {
    0%, 55%  { transform: translateX(-130%); }
    100%     { transform: translateX(130%); }
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(40px) scale(0.94); }
}

@keyframes ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes fab-in {
    from { opacity: 0; transform: scale(0.3); }
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(163, 126, 88, 0.6); }
    70%  { box-shadow: 0 0 0 15px rgba(163, 126, 88, 0); }
    100% { box-shadow: 0 0 0 0 rgba(163, 126, 88, 0); }
}

/* Quem pede "reduzir movimento" no aparelho vê tudo parado e visível */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .js .fade-in,
    .js .fade-in:not(.visible) .card-link {
        opacity: 1;
        transform: none;
    }
    .js .fade-in:not(.visible) .section-header::after {
        width: 90px;
    }
}
