/* 
 * Style para a Landing Page do Campeonato Brasileiro de Karatê Kenshi-Kai 2026
 * Design Premium, Brutalista, Geométrico, de Alto Impacto
 * Restricao Estrita: Sem tons de roxo ou variacoes.
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-primary: #02081a;
    --bg-secondary: #05132d;
    --bg-tertiary: #081d40;
    /* Brazilian Logo Colors */
    --brand-red: #002878; /* Navy Blue from logo */
    --brand-red-hover: #001450;
    --brand-red-dark: #00143c;
    --brand-gold: #f0c800; /* Yellow from logo */
    --brand-gold-hover: #f0b400;
    --brand-gold-light: #fce883;
    --brand-green: #005000; /* Green from logo */
    
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --border-accent: #f0c800; /* Using yellow as accent */
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

p {
    font-weight: 400;
    color: var(--text-muted);
}

/* Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    padding: 15px 30px;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 10px 30px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 0;
}

/* Logos para transição suave */
.logo-center {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
    text-decoration: none;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    animation: logoIntro 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: translate(-50%, -30px) scale(0.9);
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
        filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
    }
}

.logo-left {
    position: absolute;
    top: 0;
    left: 30px;
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
    text-decoration: none;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
}

.logo-img-small {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.header.scrolled .logo-center {
    opacity: 0;
    visibility: hidden;
}

.header.scrolled .logo-left {
    opacity: 1;
    visibility: visible;
}

/* Ações do Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* Push to the right since logo is absolute */
    margin-top: -10px; /* "suba o conjunto do nome e do menu sanduiche" */
}

/* User Badge/Button no Header */
.header-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-user-btn:hover {
    opacity: 0.8;
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--brand-red);
}

.header-user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--brand-gold-light);
}

.header-user-greeting {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Menu Toggle (Sanduiche) */
.menu-toggle {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.menu-toggle:hover {
    color: #ffffff;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

/* Drawer / Gaveta Lateral */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 2px solid var(--brand-red);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.drawer.active {
    transform: translateX(0);
}

.drawer-content {
    padding: 40px 32px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.drawer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    color: var(--brand-gold);
    transform: rotate(90deg);
}

/* User Section inside Drawer */
.drawer-user-section {
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drawer-avatar-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--brand-gold);
    padding: 3px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.drawer-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--brand-gold-light);
}

.drawer-user-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand-gold);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.drawer-user-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.2;
}

.drawer-user-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-full {
    width: 100%;
}

.btn-logout {
    border-color: rgba(220, 38, 38, 0.3);
}

.btn-logout:hover {
    border-color: #fca5a5;
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.05);
}

/* Guest section */
.drawer-guest-info {
    text-align: center;
    padding: 10px 0;
}

.drawer-guest-info h4 {
    font-size: 1.15rem;
    text-transform: uppercase;
    margin: 10px 0 6px;
    color: var(--brand-gold-light);
}

.drawer-guest-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.drawer-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 0 0 16px;
}

/* Links do Drawer */
.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-links li a {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
    padding: 6px 0;
    border-left: 0px solid transparent;
}

.drawer-links li a i {
    font-size: 1rem;
    width: 24px;
    color: var(--brand-gold);
    transition: var(--transition-smooth);
}

.drawer-links li a:hover {
    color: var(--brand-gold-light);
    padding-left: 12px;
}

.drawer-links li a:hover i {
    color: var(--brand-gold-light);
    transform: scale(1.1);
}

/* Botoes Brutalistas */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 2px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--brand-red);
    color: #white;
    color: var(--text-main);
    border-color: var(--brand-red);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--brand-red);
    box-shadow: 4px 4px 0px var(--brand-gold);
    transform: translate(-4px, -4px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-gold {
    background: var(--brand-gold);
    color: var(--brand-red); /* Navy blue text */
    border-color: var(--brand-gold);
    font-weight: 800; /* Extra contrast */
}

.btn-gold:hover {
    background: transparent;
    color: var(--brand-gold);
    border-color: var(--brand-gold);
    box-shadow: 4px 4px 0px var(--brand-red);
    transform: translate(-4px, -4px);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 4px;
}

.user-badge img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--brand-red);
}

.user-badge span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Hero Section */
@keyframes heroOrb1 {
    0%   { transform: translate(0, 0) scale(1); }
    40%  { transform: translate(30px, -20px) scale(1.05); }
    70%  { transform: translate(-15px, 15px) scale(0.97); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes heroOrb2 {
    0%   { transform: translate(0, 0) scale(1); }
    35%  { transform: translate(-30px, 20px) scale(1.04); }
    70%  { transform: translate(20px, -10px) scale(0.96); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes heroOrb3 {
    0%   { opacity: 0.55; transform: scale(1); }
    50%  { opacity: 0.75; transform: scale(1.04); }
    100% { opacity: 0.55; transform: scale(1); }
}

.hero {
    position: relative;
    padding: 160px 0 120px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.06);

    /*
     * Gradiente base: camadas radiais que fluem pela diagonal inteira
     * — royal blue no topo-direita → cyan/light blue na base-esquerda
     */
    background:
        radial-gradient(ellipse 80% 60% at 75% 15%,
            rgba(0, 70, 180, 0.45) 0%,
            rgba(0, 40, 120, 0.15) 45%,
            transparent 70%
        ),
        radial-gradient(ellipse 70% 55% at 25% 85%,
            rgba(0, 120, 215, 0.20) 0%,
            rgba(0, 60, 140, 0.06) 45%,
            transparent 70%
        ),
        radial-gradient(ellipse 100% 80% at 50% 50%,
            rgba(2, 8, 26, 1) 0%,
            rgba(3, 12, 30, 1) 60%,
            rgba(1, 5, 15, 1) 100%
        );
}

/* Orb royal blue — posicionado DENTRO, no terço superior-direito */
.hero::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 8%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 100, 255, 0.20) 0%,
        rgba(0, 80, 200, 0.08) 40%,
        rgba(0, 40, 120, 0.02) 65%,
        transparent 80%
    );
    filter: blur(30px);
    animation: heroOrb1 16s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Orb cyan suave — posicionado DENTRO, no terço inferior-esquerdo */
.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 6%;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 150, 255, 0.15) 0%,
        rgba(0, 100, 200, 0.05) 40%,
        transparent 80%
    );
    filter: blur(28px);
    animation: heroOrb2 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}


/* Hero decoration layers */
.hero-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

/* Camada de Granulado (Noise) / Charme Premium */
.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E");
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}

/* Orb central suave — amortece a transição */
.hero-orb-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(0, 80, 200, 0.12) 0%,
        rgba(0, 40, 120, 0.08) 40%,
        transparent 68%
    );
    pointer-events: none;
    z-index: 1;
    animation: heroOrb3 24s ease-in-out infinite;
}

.hero-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 260px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-kicker {
    font-family: var(--font-heading);
    color: var(--brand-gold-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.35em;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
}

.hero-kicker::before,
.hero-kicker::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--brand-gold);
}

.hero-kicker::before {
    margin-right: 24px;
}

.hero-kicker::after {
    margin-left: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    line-height: 0.95;
    font-weight: 800;
    max-width: 1000px;
    color: var(--text-main);
}

.hero-title span.outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(249,250,251,0.5);
}

.hero-title span.red {
    background: linear-gradient(135deg, var(--brand-gold-light) 0%, var(--brand-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 16px rgba(234, 179, 8, 0.35));
    display: inline-block;
    position: relative;
}

.hero-meta {
    display: flex;
    gap: 40px;
    margin: 32px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-meta-icon {
    font-size: 1.5rem;
    color: var(--brand-gold);
}

.hero-meta-text {
    text-align: left;
}

.hero-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.hero-meta-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-actions-container {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

/* Countdown */
.countdown {
    margin-top: 48px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 520px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 8px;
}

.countdown-num {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--brand-gold-light);
    line-height: 1;
    letter-spacing: -0.02em;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    margin-top: 6px;
    font-weight: 500;
}

.countdown-divider {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: rgba(255,255,255,0.15);
    line-height: 1;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 4px;
}

/* Sections */
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-dark {
    background-color: var(--bg-secondary);
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-kicker {
    font-family: var(--font-body);
    color: var(--brand-gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    text-transform: none;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-main);
}

.section-title span {
    color: var(--brand-gold);
}

/* Marketing Section */
.marketing-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.marketing-text h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--brand-gold-light);
    line-height: 1.2;
}

.marketing-text p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.75;
}

.marketing-text p.lead {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-main);
    border-left: 3px solid var(--brand-red);
    padding-left: 16px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.marketing-highlight {
    background: linear-gradient(135deg, var(--brand-red-dark) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--brand-red);
    padding: 40px;
    position: relative;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.5);
}

.marketing-highlight::before {
    content: "KENSHI-KAI";
    position: absolute;
    bottom: -10px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.highlight-stat {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-gold-light);
    line-height: 1;
    margin-bottom: 10px;
}

.highlight-stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.highlight-bullets {
    list-style: none;
}

.highlight-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.highlight-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-gold-light);
    font-weight: 700;
}

/* Regras / Regulamento */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.rule-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    padding: 32px;
    transition: var(--transition-smooth);
}

.rule-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-4px);
    box-shadow: 6px 6px 0px rgba(220, 38, 38, 0.15);
}

.rule-icon {
    font-size: 2.25rem;
    color: var(--brand-red);
    margin-bottom: 20px;
}

.rule-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.rule-card ul {
    list-style: none;
    margin-top: 16px;
}

.rule-card ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.rule-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-red);
}

/* Cronograma / Event Schedule */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 28px;
    top: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--brand-red);
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-marker {
    background: var(--brand-gold-light);
    border-color: var(--brand-gold);
    transform: scale(1.2);
}

.timeline-time {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-gold-light);
    margin-bottom: 6px;
}

.timeline-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 2px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Localizacao */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.location-info h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: var(--brand-gold-light);
}

.location-address {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.location-details {
    list-style: none;
}

.location-details li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.location-details li:last-child {
    border-bottom: none;
}

.location-details-icon {
    font-size: 1.25rem;
    color: var(--brand-red);
}

.location-map-wrapper {
    position: relative;
    border: 3px solid var(--border-color);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.4);
    height: 350px;
    background: var(--bg-primary);
}

.location-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* Patrocinadores */
.sponsors-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 16px;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 36px;
    position: relative;
    text-decoration: none;
    /* No card, no background — bare logos */
}

.sponsor-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.sponsor-item:last-child::after {
    display: none;
}

.sponsor-item img {
    max-width: 140px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: transform 0.4s ease;
}

.sponsor-item:hover img {
    transform: scale(1.07);
}

/* Legacy sponsor-card and sponsor-grid kept for admin compatibility */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sponsor-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.sponsor-card:hover img {
    transform: scale(1.08);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--brand-red);
}

.faq-question {
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--brand-red);
    transition: var(--transition-smooth);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--brand-gold-light);
}

/* Call To Action */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    border-bottom: 2px solid var(--brand-red);
}

.cta-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* Footer */
.footer {
    background: #06090f;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
}

.footer-links-col h4 {
    margin-bottom: 16px;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--brand-gold-light);
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links-col ul li a:hover {
    color: var(--brand-red);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modal Login */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--brand-gold);
    width: calc(100% - 32px);
    max-width: 440px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--brand-red);
}

.modal-title {
    font-size: 1.75rem;
    text-transform: uppercase;
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.25);
}

.form-feedback {
    font-size: 0.85rem;
    margin-top: 12px;
    padding: 10px;
    border-radius: 2px;
    display: none;
}

.form-feedback.error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--brand-red);
    color: #fca5a5;
    display: block;
}

.form-feedback.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #a7f3d0;
    display: block;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 992px) {
    .marketing-grid, .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }
    .header-user-greeting {
        display: none; /* Oculta saudacao textual no mobile */
    }
    .header-user-btn {
        padding: 4px;
        background: transparent;
        border: none;
    }
    .header-actions {
        gap: 10px;
    }
    .hero {
        padding-top: 130px;
    }
    .countdown {
        padding: 16px 20px;
    }
    .countdown-unit {
        min-width: 60px;
    }
    .countdown-num {
        font-size: 2rem;
    }
    .countdown-divider {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    /* Countdown: stays single row, just smaller */
    .countdown {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 16px 12px;
        gap: 0;
        max-width: 100%;
    }
    .countdown-unit {
        padding: 0 4px;
    }
    .sponsor-item {
        padding: 16px 20px;
    }
    .sponsor-item img {
        max-width: 100px;
        max-height: 52px;
    }
    .sponsors-strip {
        gap: 0;
    }
    .hero-meta {
        gap: 16px;
    }
    .section {
        padding: 60px 0;
    }
    .modal-content {
        padding: 24px;
    }
}

/* Pricing / Investimento Section */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
.pricing-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 35px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pricing-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.pricing-card.highlighted {
    border-color: var(--brand-gold);
}
.pricing-card.highlighted:hover {
    border-color: var(--brand-gold-light);
}
.pricing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
}
.badge-active {
    background: var(--brand-gold-light);
    color: #000;
}
.badge-next {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.badge-external {
    background: var(--brand-red);
    color: #fff;
}
.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lote-wrapper {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
.lote-wrapper:last-child {
    margin-bottom: 0;
}
.lote-wrapper.active-lote {
    background: rgba(217, 119, 6, 0.04);
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.05);
}
.lote-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.lote-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-main);
}
.lote-date {
    font-size: 0.8rem;
    color: var(--brand-gold-light);
    font-weight: 700;
    text-transform: uppercase;
}
.lote-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
.price-label {
    color: var(--text-muted);
}
.price-value {
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.15rem;
}
.active-lote .price-value {
    color: var(--brand-gold-light);
}
.pricing-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    line-height: 1.4;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 100px; /* slightly smaller logo on mobile */
    }
    .header.scrolled .logo-img {
        height: 60px;
    }
    
    /* Espaço maior entre a logo centralizada e os textos nas seções hero (brasileiro/index.php e inscritos.php) */
    .hero {
        padding-top: 160px; /* was 120px */
    }
    .inscritos-hero {
        padding-top: 140px; /* logo takes space at the top */
    }
    
    /* Quando rolar a tela, o logo vai pro canto esquerdo */
    .logo-left {
        left: 20px;
        padding-top: 5px;
    }
}
