/* ==================== CRITICAL CSS - Above the Fold ==================== */

/* CSS Variables */
:root {
    --primary: #D59935;
    --primary-dark: #B8792A;
    --primary-light: #E5B05F;
    --bg-dark: #000000;
    --bg-surface: #0A0A0A;
    --bg-elevated: #121212;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --border: rgba(213, 153, 53, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(213, 153, 53, 0.3);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Topbar com Countdown */
.topbar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--spacing-sm) 0;
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.topbar-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

.topbar-countdown {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.topbar-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.topbar-countdown-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bg-dark);
}

.topbar-countdown-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(0, 0, 0, 0.7);
    margin-top: 2px;
}

@media (min-width: 768px) {
    .topbar-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .topbar-countdown-item {
        min-width: 55px;
    }
    
    .topbar-countdown-number {
        font-size: 1.5rem;
    }
    
    .topbar-countdown-label {
        font-size: 0.75rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
}

.header.visible {
    transform: translateY(0);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23D59935;stop-opacity:0.3'/%3E%3Cstop offset='100%25' style='stop-color:%23D59935;stop-opacity:0.1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23g)' width='800' height='600'/%3E%3Cpath fill='%23D59935' fill-opacity='0.1' d='M400 100L500 300L400 500L300 300Z'/%3E%3Ccircle cx='650' cy='150' r='80' fill='%23D59935' fill-opacity='0.05'/%3E%3Ccircle cx='150' cy='450' r='100' fill='%23D59935' fill-opacity='0.05'/%3E%3C/svg%3E") center/cover;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    box-shadow: var(--shadow-md);
}

/* =========================
   HERO — BASE (CRITICAL)
   ========================= */

/* Desktop: define imagem cedo (LCP mais estável) */
.hero{
  background: url("../assets/images/hero-desktop.webp") center center / cover no-repeat;
}

/* Mobile: troca imagem + desliga o overlay pesado do ::after */
@media (max-width: 767px){
  .hero{
    background: url("../assets/images/hero-mobile.webp") center top / cover no-repeat !important;
    padding: 22px 0 30px !important;
  }

  .hero::after{ display:none !important; }

  .hero::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background: linear-gradient(
      180deg,
      rgba(0,0,0,.10) 0%,
      rgba(0,0,0,.40) 45%,
      rgba(0,0,0,.88) 100%
    );
  }

  .hero .container{ position:relative; z-index:2; }
}

