:root {
    /* Cores baseadas no template.html */
    --bg-dark: #1a1a1a;
    --bg-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #a3a3a3;
    --text-muted: #9ca3af;
    --border-gray: #333333;
    --border-light: #e5e7eb;
    --primary: #000000;
    --accent: #3b82f6;
    
    /* Novas variáveis para o header - ALTURAS ATUALIZADAS */
    --header-height: 90px;
    --header-height-scrolled: 70px;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-bg-scrolled: rgba(255, 255, 255, 0.98);
    
    /* Fontes */
    --font-primary: 'Roboto', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Bordas */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transições */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #333;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* Barra de contato e redes sociais */
.contact-bar {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.contact-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-info span {
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-light);
}

/* Header principal */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled .header-content {
    justify-content: space-between;
}

.logo-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-header.scrolled .logo-container {
    position: static;
    transform: none;
}

.logo-text {
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
}

.main-header.scrolled .logo-text {
    text-align: left;
}

/* Estilos para o logo de imagem */
.logo-image {
    margin-bottom: 0.2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.5));
}

.main-header.scrolled .logo-img {
    height: 35px;
    filter: none;
}

.logo-sub {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.12em;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    margin: 0;
    padding: 0;
    display: block;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.main-header.scrolled .logo-sub {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    opacity: 0.6;
    color: var(--text-dark);
    text-shadow: none;
}

.header-social {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
    position: absolute;
    right: 0;
}

.main-header.scrolled .header-social {
    opacity: 1;
    transform: translateX(0);
    position: static;
}

.header-social a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-social a:hover {
    color: var(--text-light);
    transform: translateY(-2px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.main-header.scrolled .header-social a {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

.main-header.scrolled .header-social a:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.instagram-icon {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

/* Ajuste para o conteúdo não ficar atrás do header fixo */
body {
    padding-top: 0; /* Removido para o hero ocupar toda a tela */
}

.main-header.scrolled ~ * {
    --header-offset: var(--header-height-scrolled);
}

/* Responsividade */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --header-height-scrolled: 60px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Centralização perfeita em mobile - estado inicial */
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-header.scrolled .logo-container {
        position: static;
        transform: none;
        left: auto;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .main-header.scrolled .logo-img {
        height: 30px;
    }
    
    .logo-sub {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }
    
    .main-header.scrolled .logo-sub {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }
    
    .header-social {
        gap: 0.8rem;
        right: 1rem;
    }
    
    .main-header.scrolled .header-social {
        position: static;
        right: auto;
    }
    
    .header-social a {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
    
    .instagram-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
        --header-height-scrolled: 55px;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    /* Garantir centralização perfeita em telas muito pequenas */
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: none;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .main-header.scrolled .logo-img {
        height: 25px;
    }
    
    .logo-sub {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }
    
    .main-header.scrolled .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }
    
    .header-social {
        gap: 0.6rem;
        right: 0.8rem;
    }
    
    .header-social a {
        font-size: 1.2rem;
        padding: 0.3rem;
    }
    
    .instagram-icon {
        width: 16px;
        height: 16px;
    }
}