/* ============================================================
   DESIGN SYSTEM & TOKENS
============================================================ */
:root {
    /* Cores Principais (Tema Claro) */
    --color-primary:    #00c6fb;
    --color-secondary:  #005bea;
    --color-accent:     #ff9f43;
    --color-bg:         #ffffff;
    --color-bg-alt:     #f8fafd;
    --color-text:       #1a2a3a;
    --color-text-muted: #5a6a7a;
    --color-border:     #e1e8f0;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
    --gradient-dark:    linear-gradient(135deg, #0a0e1a 0%, #1a2a3a 100%);
    
    /* Efeitos */
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.05);
    --shadow-md:        0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg:        0 16px 48px rgba(0,0,0,0.15);
    --transition:       all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius:           12px;
}

[data-theme="dark"] {
    --color-bg:         #0a0e1a;
    --color-bg-alt:     #0d1220;
    --color-text:       #f0f4ff;
    --color-text-muted: rgba(240,244,255,0.6);
    --color-border:     rgba(255,255,255,0.1);
    --shadow-md:        0 8px 24px rgba(0,0,0,0.4);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, .bebas {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   TOPBAR (HEADER FIXO)
============================================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(var(--color-bg), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.topbar.scrolled {
    height: 65px;
    box-shadow: var(--shadow-md);
}

.topbar__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logos */
/* --- LOGO SEM FUNDO BRANCO --- */
.logo-img {
    display: block;
    height: auto;
    width: auto;
    max-height: 79px; /* Ajuste o tamanho aqui se precisar */
    object-fit: contain;
    
    /* Garante que não haja fundo do próprio navegador */
    background-color: transparent !important; 
    border: none !important;
    outline: none !important;
    
    /* Esta linha faz o fundo BRANCO sumir em logos JPG */
    mix-blend-mode: multiply; 
    
    transition: transform 0.3s ease;
}

/* No Modo Escuro, desativamos o efeito de mesclagem para a logo não sumir */
[data-theme="dark"]: # ".logo-img {"
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); /* Leve brilho para destacar */
}

/* Ajustes de tamanho por local */
.logo-img--header { max-height: 80px; }
.logo-img--menu   { max-height: 80px; margin: 0 auto; }
.logo-img--footer { max-height: 80px; filter: brightness(1.1); }

/* Nav Desktop */
.nav-desktop .nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after { width: 100%; }

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-desktop {
    display: flex;
    gap: 12px;
}

.social-desktop a {
    font-size: 1.4rem;
    color: var(--color-text-muted);
}

.social-desktop a:hover { color: var(--color-primary); transform: translateY(-2px); }

.theme-toggle {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
}

.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ============================================================
   HAMBÚRGUER & SIDE MENU
============================================================ */
.hamburger {
    display: none; /* Aparece no mobile */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger__bar {
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.is-active .hamburger__bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger__bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 950;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.menu-overlay.is-visible { opacity: 1; pointer-events: all; }

.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 300px;
    background: var(--color-bg);
    z-index: 960;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: var(--shadow-lg);
}

.side-menu.is-open { transform: translateX(320px); }

.side-menu__header { margin-bottom: 40px; }

.side-menu__nav ul li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
}

.side-menu.is-open .side-menu__nav ul li {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease calc(var(--i) * 0.1s);
}

.side-menu__nav a {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 0.05em;
}

.side-menu__footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.side-menu__footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.side-menu__footer .social-links a {
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 120px 24px 60px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 198, 251, 0.3);
}

.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 198, 251, 0.4); }

.btn--outline {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.btn--outline:hover { background: #fff; color: var(--color-primary); }

.hero__badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================================
   SEÇÕES GERAIS
============================================================ */
.section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.section-header h2 { font-size: 3.5rem; }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.card__icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.card h3 { font-size: 1.8rem; margin-bottom: 15px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
    background: var(--color-bg-alt);
    padding-top: 80px;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__brand p { margin: 20px 0; color: var(--color-text-muted); max-width: 300px; }

.footer__links h4, .footer__contact h4 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--color-text);
}

.footer__links ul li { margin-bottom: 12px; }
.footer__links a:hover { color: var(--color-primary); padding-left: 5px; }

.footer__contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.footer__contact ion-icon { color: var(--color-primary); font-size: 1.2rem; }

.footer__bottom {
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer__bottom a { color: var(--color-primary); font-weight: 700; }

/* ============================================================
   FLOATING ELEMENTS
============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 800;
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.8s ease forwards; }

/* ============================================================
   RESPONSIVIDADE
============================================================ */
@media (min-width: 768px) {
    .hero__actions {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
    .hero__badges {
        flex-direction: row;
        max-width: none;
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .nav-desktop, .social-desktop { display: none; }
    .hamburger { display: flex; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 3rem; }
    .section-header h2 { font-size: 2.5rem; }
    .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SEÇÃO NÍVEIS DE SURF
============================================================ */
.levels-header {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
}

.levels-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.levels-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.level-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
    cursor: default;
}

.level-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    transition: var(--transition);
}

.level-card:hover {
    transform: translateY(-5px);
}

.level-card:hover::before {
    background: linear-gradient(to top, rgba(0,91,234,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.level-card__content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: #fff;
    width: 100%;
}

.level-number {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    line-height: 1;
    color: var(--color-primary);
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.level-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.level-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    transform: translateY(10px);
    transition: var(--transition);
}

.level-card:hover p {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .levels-grid {
        grid-template-columns: 1fr;
    }
    .level-card {
        height: 300px;
    }
}
