/* Variables Oficiais da Home */
:root {
    --azul-principal: #0b2545;
    --azul-escuro: #050c1a;
    --azul-card: #134074;
    --ouro: #ffd700;
    --ouro-hover: #d4af37;
    --branco: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--azul-escuro);
    color: #f5f0e8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* BANNER / HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: radial-gradient(circle at center, var(--azul-card) 0%, var(--azul-escuro) 85%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(255, 215, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* CONTAINER DA LOGO COM MÁSCARA E BRILHO */
.logo-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.escudo-oficial {
    width: clamp(160px, 22vw, 220px);
    height: clamp(160px, 22vw, 220px);
    background-image: url('/assets/img/logo.jpg');
    background-size: 130%;
    background-position: center 25%;
    border-radius: 50%;
    border: 4px solid var(--ouro);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.4), 0 0 15px rgba(11, 37, 69, 0.9);
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.escudo-oficial:hover {
    transform: scale(1.04);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

/* ANIMAÇÃO DE RITMO DAS ESTRELAS */
.beat-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    align-items: center;
    z-index: 2;
}

.beat {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ouro);
    animation: pulse 1.2s ease-in-out infinite;
}

.beat:nth-child(1) { animation-delay: 0s; }
.beat:nth-child(2) { animation-delay: .2s; }
.beat:nth-child(3) { animation-delay: .4s; }
.beat:nth-child(4) { animation-delay: .6s; }
.beat:nth-child(5) { animation-delay: .8s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .3; }
    50%      { transform: scale(1.8); opacity: 1; }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 4.2rem);
    color: var(--ouro);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    z-index: 2;
    line-height: 1.1;
}

.hero h1 small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(.8rem, 2vw, 1.1rem);
    color: var(--branco);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: .6rem;
    text-shadow: none;
}

.hero .badge-fundacao {
    display: inline-block;
    margin-top: 1.2rem;
    padding: .4rem 1.6rem;
    border: 1px solid rgba(255, 215, 0, 0.5);
    background: rgba(11, 37, 69, 0.5);
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ouro);
    letter-spacing: 2px;
    z-index: 2;
}

/* BOTOES DE ACESSO AO PORTAL */
.portal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-portal {
    padding: .85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-ouro {
    background: linear-gradient(135deg, var(--ouro), var(--ouro-hover));
    color: var(--azul-escuro);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-ouro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    border: 2px solid var(--ouro);
    color: var(--ouro);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--branco);
}

/* SEÇÕES E CARDS */
section {
    padding: 4rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: rgba(19, 64, 116, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(8px);
    text-align: center;
    transition: border-color .3s, transform .3s;
}

.card:hover {
    border-color: rgba(255, 215, 0, 0.4);
}

.card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--ouro);
    margin-bottom: 1rem;
}

.card p {
    line-height: 1.7;
    color: rgba(245, 240, 238, 0.85);
    font-size: 1.05rem;
}

/* NEWSLETTER FORM */
.news-form {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.news-form input {
    flex: 1;
    min-width: 240px;
    max-width: 400px;
    padding: .85rem 1.2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    background: rgba(5, 12, 26, 0.6);
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.news-form input:focus {
    border-color: var(--ouro);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    color: rgba(245, 240, 238, 0.5);
    font-size: .9rem;
}

.htmx-indicator { opacity: 0; transition: opacity .3s; }
.htmx-request .htmx-indicator { opacity: 1; }