/**
 * IBA Instituto - CSS Customizado
 * Mobile First - Responsivo
 * Otimizado para carregar apenas uma vez
 */

/* Reset básico para evitar conflitos */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Fontes - usar Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

/* Scroll suave */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* Efeitos parallax */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile: parallax desabilitado para performance */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

/* Animações fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero slider */
.hero-slider {
    animation: slideText 12s infinite;
}

@keyframes slideText {
    0%, 33% { opacity: 1; }
    36%, 66% { opacity: 0; }
    69%, 100% { opacity: 1; }
}

/* Cards com hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Mobile: reduzir efeito hover */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }
}

/* Backgrounds gradientes */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botões primários */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Mobile: reduzir transform */
@media (max-width: 768px) {
    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    }
}

/* Animação floating */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Cards da equipe */
.team-card {
    overflow: hidden;
    position: relative;
}

.team-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.team-card:hover .overlay {
    opacity: 1;
}

/* Header fixo - conforme HTML original */
header {
    min-height: 100px;
}

header nav > div {
    min-height: 100px;
    display: flex;
    align-items: center;
}

/* Ajustes para ícones no header conforme HTML original */
.w-12.h-12 {
    width: 56px !important;
    height: 56px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo do header - agora dinâmica via Customizer */
.logo-iba-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
}

/* Classe para a logo customizada */
.custom-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Header com largura limitada */
header nav {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Barra superior com largura limitada */
.top-bar-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Footer com largura limitada */
.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Responsivo para telas menores */
@media (max-width: 1280px) {
    header nav,
    .top-bar-container,
    .footer-container {
        max-width: 95% !important;
    }
}

@media (max-width: 768px) {
    header nav,
    .top-bar-container,
    .footer-container {
        max-width: 98% !important;
    }
}

/* Menu principal - aumenta fonte em 5px conforme HTML original */
.menu-link {
    font-size: 21px !important;
    font-weight: 700 !important;
}

/* Mobile: menu ajustes */
@media (max-width: 767px) {
    .menu-link {
        font-size: 18px !important;
        font-weight: 600 !important;
    }
    
    .logo-iba-header {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
    }
}

/* Hero section responsivo */
.hero-section {
    min-height: 60vh;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 67vh;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 67vh;
    }
}

/* Container responsivo */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

/* Spacing responsivo */
.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Typography responsiva */
.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
}

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

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

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

/* Menu mobile */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Otimizações para touch */
@media (hover: none) and (pointer: coarse) {
    .card-hover:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus styles para acessibilidade */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .parallax {
        background-attachment: scroll !important;
    }
}

/* Ajustes adicionais para corresponder ao HTML original */

/* Garantir que os gradientes funcionem corretamente */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Garantir que os links funcionem corretamente */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

/* Ajustar espaçamento das seções */
section {
    width: 100%;
}

/* Garantir que as animações funcionem */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ajustar a barra superior */
.fixed.top-0 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

/* Ajustes finais para corresponder exatamente ao HTML original */

/* Tabs do template de Curso */
.sidebar-tab {
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-tab:hover {
    background-color: #f1f5f9;
    border-left-color: #6366f1;
}

.sidebar-tab.active {
    background-color: #6366f1;
    color: #ffffff;
    border-left-color: #4f46e5;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
body {
    font-family: 'Poppins', sans-serif;
}

/* Garantir que os botões tenham o estilo correto */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Garantir que os ícones tenham espaçamento correto */
.fa-graduation-cap,
.fa-building,
.fa-briefcase {
    margin-right: 0.5rem;
}

/* Ajustar as seções de vídeo para largura total como no HTML original */
.parallax-section {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating {
        animation: none;
    }
    
    .hero-slider {
        animation: none;
    }
} 