/* Critical CSS - Above the Fold Styles */
/* This CSS is inlined in the head for faster initial render */

:root {
    --midnight-blue: #0f172a;
    --electric-cyan: #0ea5e9;
    --neon-teal: #14b8a6;
    --slate-50: #f8fafc;
    --slate-800: #1e293b;
    --whatsapp-green: #25d366;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.5;
    overflow-x: hidden;
}

.container-premium {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Preloader */
.preloader-premium {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader-premium.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    animation: pulse 1.5s ease-in-out infinite;
    line-height: 0;
}

.loader-logo img {
    width: min(340px, 82vw);
    height: auto;
    display: block;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Header */
.header-premium {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #0f172a !important;
    /* Garantir fundo escuro imediato */
    transition: box-shadow 0.25s ease;
}

.header-top-premium {
    background: #0f172a;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    overflow: hidden;
    max-height: 100px;
    opacity: 1;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
}

.header-main-premium {
    background: transparent !important;
    padding: 1rem 0;
    transition: padding 0.25s ease;
}

.logo-premium {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 0;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.22);
    transition: padding 0.25s ease, border-radius 0.25s ease;
}

.logo-premium img {
    width: clamp(170px, 26vw, 290px);
    height: auto;
    display: block;
    transition: width 0.25s ease;
}

@media (min-width: 993px) {
    .header-main-premium .container-premium {
        gap: 0.9rem;
    }

    .main-navigation ul {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: center;
    }

    .main-navigation ul li {
        flex: 0 0 auto;
    }

    .main-navigation .nav-link-premium {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        line-height: 1.2;
        gap: 0.35rem;
    }

    .main-navigation .nav-link-premium i {
        margin-right: 0;
    }
}

.header-premium.scrolled {
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
}

.header-premium.scrolled .header-top-premium {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.header-premium.scrolled .header-main-premium {
    padding: 0.5rem 0;
}

.header-premium.scrolled .logo-premium {
    padding: 6px 10px;
    border-radius: 10px;
}

.header-premium.scrolled .logo-premium img {
    width: clamp(150px, 22vw, 250px);
}

/* Hero Section */
.hero-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero-content-premium {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title-premium {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title-premium .highlight {
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-premium {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons-premium {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp-premium {
    background: #25d366;
    color: white;
}

.btn-whatsapp-premium:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-outline-premium {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Notification Bar */
.notification-bar-premium {
    background: #0f172a;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Scroll Progress */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    z-index: 99999;
    width: 0%;
    transition: width 0.1s;
}

/* Mobile */
@media (max-width: 768px) {
    .container-premium {
        padding: 0 1.5rem;
    }

    .hero-title-premium {
        font-size: 2rem;
    }

    .hero-subtitle-premium {
        font-size: 1rem;
    }

    .btn-premium {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .logo-premium img {
        width: clamp(145px, 48vw, 220px);
    }

    .header-premium.scrolled .header-top-premium {
        max-height: 100px;
        opacity: 1;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .header-premium.scrolled .header-main-premium {
        padding: 0.875rem 0;
    }

    .loader-logo img {
        width: min(260px, 78vw);
    }
}
