/* ============================================
   PANACEIA - Estilos Globais
   Sustentabilidade e Comunicação
   ============================================ */

/* -----------------------------------------
   VARIÁVEIS E CONFIGURAÇÕES BASE
   ----------------------------------------- */
:root {
    --color-dark: #333340;
    --color-green: #78bf4a;
    --color-yellow: #ffc23d;
    --color-orange: #f5a623;
    --color-teal: #3db5ab;
    --color-blue: #1c7a99;
    --color-red: #eb4233;
    --color-purple: #8f057d;
    --color-gray: #dbd9d9;
    --color-gray-light: #f4f4f4;

    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Nunito', 'Open Sans', sans-serif;
}

/* -----------------------------------------
   RESET E BASE
   ----------------------------------------- */
body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fonte secundária (Nunito) para títulos e destaques */
.font-secondary {
    font-family: var(--font-secondary);
}

/* -----------------------------------------
   VÍDEO DE FUNDO (HERO)
   ----------------------------------------- */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* -----------------------------------------
   NAVEGAÇÃO
   ----------------------------------------- */
#navbar {
    transition: all 0.3s ease-in-out;
}

.nav-scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.nav-scrolled .nav-link {
    color: var(--color-dark) !important;
}

.nav-scrolled .logo-text {
    color: var(--color-dark) !important;
}

.nav-scrolled .logo-icon {
    color: var(--color-teal) !important;
}

/* -----------------------------------------
   LOGO PANACEIA
   ----------------------------------------- */
.panaceia-logo {
    transition: all 0.3s ease;
}

.panaceia-logo:hover path {
    stroke: var(--color-teal);
}

/* -----------------------------------------
   MENU MOBILE
   ----------------------------------------- */
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    transform: translateX(100%);
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
}

/* -----------------------------------------
   ANIMAÇÕES
   ----------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* -----------------------------------------
   BOTÕES
   ----------------------------------------- */
.btn-primary {
    display: inline-block;
    background-color: var(--color-teal);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-green);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-dark);
}

.btn-outline-teal {
    display: inline-block;
    border: 2px solid var(--color-teal);
    color: var(--color-teal);
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-outline-teal:hover {
    background-color: var(--color-teal);
    color: white;
}

/* -----------------------------------------
   CARDS
   ----------------------------------------- */
.card {
    background-color: white;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

/* -----------------------------------------
   SEÇÕES
   ----------------------------------------- */
.section-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* -----------------------------------------
   FORMULÁRIOS
   ----------------------------------------- */
input[type="email"],
input[type="text"],
textarea {
    font-family: var(--font-primary);
}

input:focus,
textarea:focus {
    outline: none;
    ring: 2px solid var(--color-teal);
}

/* -----------------------------------------
   SCROLL SUAVE
   ----------------------------------------- */
html {
    scroll-behavior: smooth;
}

/* -----------------------------------------
   UTILITÁRIOS
   ----------------------------------------- */
.text-balance {
    text-wrap: balance;
}

/* Links sublinhados ao hover */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-teal);
    transition: width 0.3s ease;
}

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

/* -----------------------------------------
   RESPONSIVIDADE
   ----------------------------------------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
