/* ============================================================================
 * 🎨 UnifespIA – Design System V1.0
 * 📄 Arquivo: home.css
 * 📍 Localização: public/assets/css/home.css
 * 🎯 Objetivo: Estilos da landing page (home) com paleta oficial
 * ============================================================================ */

/* 🎨 VARIÁVEIS CSS - PALETA OFICIAL UNIFESPIA */
:root {
    /* Verde Institucional - UNIFESP */
    --verde-unifesp: #006341;
    --verde-claro: #009B63;
    --verde-profundo: #004C31;
    
    /* Cinzas Tecnológicos */
    --cinza-gelo: #F5F6F7;
    --cinza-suave: #E1E3E5;
    --cinza-medio: #B0B3B8;
    --cinza-escuro: #4A4A4A;
    --cinza-chumbo: #2E2E2E;
    
    /* Neutros */
    --branco: #FFFFFF;
    --preto-suave: #1A1A1A;
    --azul-neutro: #3A7CA5;
    
    /* Status */
    --amarelo-alerta: #FFC107;
    --vermelho-erro: #D32F2F;
    --verde-sucesso: #2E7D32;
}

/* 🎯 RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100vh;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--cinza-chumbo);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
}

/* � HEADER E NAVBAR - MESMA PALETA DO LOGIN/REGISTER/RECOVER */
.home, body[data-page="home"] {
    --app-header-height: 64px;
}

body[data-page="home"] {
    padding-top: var(--app-header-height);
}

/* Evita faixa residual entre navbar fixa e hero na home (alerta técnico de debug). */
body[data-page="home"] > .alert.alert-warning {
    display: none !important;
}

body[data-page="home"] .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
}

.navbar {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--verde-unifesp);
    transition: background 0.3s ease;
    padding: 0.75rem 0;
    margin: 0;
}

.navbar:hover {
    background: rgba(30, 30, 30, 0.98) !important;
}

body[data-page="home"] .hero { margin-top: 0; }

body[data-page="home"] section[id] {
    scroll-margin-top: calc(var(--app-header-height) + 1rem);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--branco) !important;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.navbar-brand i {
    color: var(--verde-claro);
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--verde-claro) !important;
}

.navbar-brand:hover i {
    color: var(--branco);
}

.nav-link {
    color: var(--cinza-suave) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: var(--verde-claro) !important;
    background: rgba(0, 155, 99, 0.1);
}

.nav-link.btn {
    background: var(--verde-unifesp);
    color: var(--branco) !important;
    border: none;
    font-weight: 600;
}

.nav-link.btn:hover {
    background: var(--verde-claro);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 155, 99, 0.3);
}

.navbar-toggler {
    border-color: var(--verde-unifesp);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 155, 99, 0.25);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Badge XP */
.badge.bg-warning {
    background: linear-gradient(135deg, var(--amarelo-alerta), #FFD54F) !important;
    color: var(--cinza-chumbo) !important;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
}

/* Dropdown */
.dropdown-menu {
    background: var(--cinza-chumbo);
    border: 1px solid var(--verde-unifesp);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 0.75rem;
}

.dropdown-item {
    color: var(--cinza-suave);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 155, 99, 0.15);
    color: var(--verde-claro);
}

.dropdown-item.text-danger {
    color: var(--vermelho-erro) !important;
}

.dropdown-item.text-danger:hover {
    background: rgba(211, 47, 47, 0.1);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* 👣 FOOTER - MESMA PALETA */
footer {
    margin-top: 0 !important;
    background: rgba(30, 30, 30, 0.95) !important;
    color: var(--cinza-suave);
    padding: 1.5rem 0 !important;
    border-top: 2px solid var(--verde-unifesp);
}

main, .main-content, .home-content, .hero, .about, .features, .team-container {
    flex: 1 0 auto;
    display: block;
}

footer h5, footer h6 {
    color: var(--branco);
}

footer p, footer a {
    color: var(--cinza-suave) !important;
}

footer a:hover {
    color: var(--verde-claro) !important;
}

/* �🎨 HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--verde-unifesp) 50%, var(--verde-claro) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 155, 99, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 76, 49, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--branco);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--branco);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    display: block;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--branco);
    color: var(--verde-unifesp);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--branco);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 📖 ABOUT SECTION */
.about {
    padding: 6rem 2rem;
    background: var(--branco);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--verde-unifesp);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--cinza-escuro);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--cinza-gelo);
    border-radius: 1rem;
    border-left: 4px solid var(--verde-claro);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 155, 99, 0.1);
}

.highlight-item .icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.highlight-item h3 {
    font-size: 1.25rem;
    color: var(--verde-unifesp);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight-item p {
    font-size: 0.9375rem;
    color: var(--cinza-escuro);
    margin: 0;
}

/* 📊 STATS SECTION */
.stats {
    background: linear-gradient(135deg, var(--verde-unifesp), var(--verde-claro));
    padding: 4rem 2rem;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--branco);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ✨ FEATURES SECTION */
.features {
    padding: 6rem 2rem;
    background: var(--cinza-gelo);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--verde-unifesp);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--cinza-escuro);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--branco);
    padding: 2.5rem;
    border-radius: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 99, 65, 0.15);
    border-color: var(--verde-claro);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.375rem;
    color: var(--verde-unifesp);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem;
    color: var(--cinza-escuro);
    line-height: 1.7;
}

/* 🎓 COURSES SECTION */
.courses {
    padding: 6rem 2rem;
    background: var(--branco);
}

.courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--cinza-gelo);
    padding: 2rem;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--verde-unifesp);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 99, 65, 0.12);
    border-left-width: 6px;
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-card h3 {
    font-size: 1.25rem;
    color: var(--verde-profundo);
    margin-bottom: 1rem;
    font-weight: 700;
}

.course-card p {
    font-size: 0.9375rem;
    color: var(--cinza-escuro);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-feature {
    background: var(--branco);
    color: var(--verde-unifesp);
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* 👥 TEAM SECTION */
.team {
    padding: 6rem 2rem;
    background: var(--cinza-gelo);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.team-member {
    background: var(--branco);
    border-radius: 1.25rem;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.member-photo {
    width: 200px;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--verde-claro), var(--verde-unifesp));
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    font-size: 6rem;
}

.member-info h3 {
    font-size: 1.75rem;
    color: var(--verde-profundo);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.member-role {
    font-size: 1.125rem;
    color: var(--verde-claro);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-description {
    font-size: 1rem;
    color: var(--cinza-escuro);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item strong {
    color: var(--verde-unifesp);
    display: block;
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 0.9375rem;
    color: var(--cinza-escuro);
    margin: 0;
}

.member-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.member-link {
    padding: 0.5rem 1rem;
    background: var(--cinza-gelo);
    color: var(--verde-unifesp);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.member-link:hover {
    background: var(--verde-unifesp);
    color: var(--branco);
}

.program-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--branco);
    padding: 2.5rem;
    border-radius: 1.25rem;
    text-align: center;
    border: 2px solid var(--verde-claro);
}

.program-info h3 {
    font-size: 1.5rem;
    color: var(--verde-unifesp);
    margin-bottom: 1rem;
}

.program-info p {
    font-size: 1rem;
    color: var(--cinza-escuro);
    margin-bottom: 0.5rem;
}

.program-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.program-link {
    padding: 0.75rem 1.5rem;
    background: var(--verde-unifesp);
    color: var(--branco);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.program-link:hover {
    background: var(--verde-claro);
    transform: translateY(-2px);
}

/* ============================================================================
 * 📱 RESPONSIVE DESIGN - MOBILE FIRST (360×640px base)
 * Breakpoints: SM ≥576px | MD ≥768px | LG ≥992px | XL ≥1200px | XXL ≥1400px
 * ============================================================================ */

/* 📱 BASE MOBILE (360×640px - default) já aplicado nos estilos principais */

/* 📱 SM - Celulares maiores (≥576px) */
@media (min-width: 576px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 160px;
    }
}

/* 📱 MD - Tablets (≥768px) */
@media (min-width: 768px) {
    .hero {
        padding: 5rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    /* Grids de 2 colunas */
    .features-grid,
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .team-member {
        grid-template-columns: 200px 1fr;
        text-align: left;
    }
    
    .member-photo {
        margin: 0;
    }
    
    .member-links {
        justify-content: flex-start;
    }
}

/* 💻 LG - Laptops (≥992px) */
@media (min-width: 992px) {
    .hero {
        padding: 6rem 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    /* Grids de 3 colunas */
    .features-grid,
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 🖥️ XL - Monitores (≥1200px) */
@media (min-width: 1200px) {
    .hero {
        padding: 7rem 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

/* Antigas media queries max-width (substituídas pela abordagem mobile-first) */
@media (max-width: 767.98px) {
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .team-member {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .member-photo {
        margin: 0 auto;
    }
    
    .member-links {
        justify-content: center;
    }
}

/* 🌗 THEME TOGGLE BUTTON */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--verde-unifesp);
    border: 2px solid var(--verde-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    background: var(--verde-claro);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 155, 99, 0.4);
}

.theme-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ⬆️ SCROLL TO TOP BUTTON */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--verde-unifesp);
    border: 2px solid var(--verde-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--verde-claro);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 155, 99, 0.4);
}

/* 🌗 DARK MODE STYLES (PADRÃO) + LIGHT MODE */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--preto-suave);
    color: var(--cinza-suave);
}

/* LIGHT MODE (quando ativado) */
body.light-mode {
    background-color: var(--branco) !important;
    color: var(--cinza-chumbo) !important;
}

body.light-mode .hero {
    background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--verde-unifesp) 50%, var(--verde-claro) 100%) !important;
}

body.light-mode .about {
    background: var(--branco) !important;
}

body.light-mode .about-text h2,
body.light-mode .section-title {
    color: var(--verde-unifesp) !important;
}

body.light-mode .about-text p,
body.light-mode .section-subtitle {
    color: var(--cinza-escuro) !important;
}

body.light-mode .highlight-item {
    background: var(--cinza-gelo) !important;
    border-left-color: var(--verde-claro) !important;
}

body.light-mode .highlight-item h3 {
    color: var(--verde-unifesp) !important;
}

body.light-mode .highlight-item p {
    color: var(--cinza-escuro) !important;
}

body.light-mode .features {
    background: var(--cinza-gelo) !important;
}

body.light-mode .feature-card {
    background: var(--branco) !important;
    border-color: transparent !important;
}

body.light-mode .feature-card:hover {
    border-color: var(--verde-claro) !important;
}

body.light-mode .feature-card h3 {
    color: var(--verde-unifesp) !important;
}

body.light-mode .feature-card p {
    color: var(--cinza-escuro) !important;
}

body.light-mode .courses {
    background: var(--branco) !important;
}

body.light-mode .course-card {
    background: var(--cinza-gelo) !important;
}

body.light-mode .course-card h3 {
    color: var(--verde-profundo) !important;
}

body.light-mode .course-card p {
    color: var(--cinza-escuro) !important;
}

body.light-mode .course-feature {
    background: var(--branco) !important;
    color: var(--verde-unifesp) !important;
}

body.light-mode .team {
    background: var(--cinza-gelo) !important;
}

body.light-mode .team-member {
    background: var(--branco) !important;
}

body.light-mode .member-info h3 {
    color: var(--verde-profundo) !important;
}

body.light-mode .member-role {
    color: var(--verde-claro) !important;
}

body.light-mode .member-description,
body.light-mode .detail-item p {
    color: var(--cinza-escuro) !important;
}

body.light-mode .detail-item strong {
    color: var(--verde-unifesp) !important;
}

body.light-mode .member-link {
    background: var(--cinza-gelo) !important;
    color: var(--verde-unifesp) !important;
}

body.light-mode .member-link:hover {
    background: var(--verde-unifesp) !important;
    color: var(--branco) !important;
}

body.light-mode .program-info {
    background: var(--branco) !important;
    border-color: var(--verde-claro) !important;
}

body.light-mode .program-info h3 {
    color: var(--verde-unifesp) !important;
}

body.light-mode .program-info p {
    color: var(--cinza-escuro) !important;
}

/* DARK MODE (PADRÃO - sem classe) */
.hero {
    background: linear-gradient(135deg, #001a12 0%, #002d1f 50%, #004C31 100%);
}

.about {
    background: var(--cinza-chumbo);
}

.about-text h2,
.section-title {
    color: var(--verde-claro);
}

.about-text p,
.section-subtitle {
    color: var(--cinza-suave);
}

.highlight-item {
    background: rgba(30, 30, 30, 0.8);
    border-left-color: var(--verde-claro);
}

.highlight-item h3 {
    color: var(--verde-claro);
}

.highlight-item p {
    color: var(--cinza-suave);
}

.features {
    background: var(--preto-suave);
}

.feature-card {
    background: var(--cinza-chumbo);
    border-color: rgba(0, 155, 99, 0.2);
}

.feature-card:hover {
    border-color: var(--verde-claro);
}

.feature-card h3 {
    color: var(--verde-claro);
}

.feature-card p {
    color: var(--cinza-suave);
}

.courses {
    background: var(--cinza-chumbo);
}

.course-card {
    background: rgba(30, 30, 30, 0.8);
}

.course-card h3 {
    color: var(--verde-claro);
}

.course-card p {
    color: var(--cinza-suave);
}

.course-feature {
    background: var(--cinza-chumbo);
    color: var(--verde-claro);
}

.team {
    background: var(--preto-suave);
}

.team-member {
    background: var(--cinza-chumbo);
}

.member-info h3 {
    color: var(--verde-claro);
}

.member-role {
    color: var(--verde-claro);
}

.member-description,
.detail-item p {
    color: var(--cinza-suave);
}

.detail-item strong {
    color: var(--verde-claro);
}

.member-link {
    background: rgba(30, 30, 30, 0.8);
    color: var(--verde-claro);
}

.member-link:hover {
    background: var(--verde-unifesp);
    color: var(--branco);
}

.program-info {
    background: var(--cinza-chumbo);
    border-color: var(--verde-claro);
}

.program-info h3 {
    color: var(--verde-claro);
}

.program-info p {
    color: var(--cinza-suave);
}

/* Transições suaves para elementos */
.hero, .about, .features, .courses, .team,
.feature-card, .course-card, .team-member,
.highlight-item, .member-link, .program-info {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

h2, h3, p {
    transition: color 0.3s ease;
}

/* 📱 RESPONSIVIDADE PARA BOTÕES */
@media (max-width: 767.98px) {
    .theme-toggle,
    .scroll-top {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .theme-toggle {
        bottom: 85px;
        right: 1.5rem;
    }
    
    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .theme-icon {
        font-size: 1.5rem;
    }
}

/* ============================================================================
 * 📱 OFF-CANVAS MENU (MOBILE-FIRST)
 * 🎯 Abordagem: Mobile 360×640px → Tablet 768px → Desktop 992px+
 * ============================================================================ */

/* Overlay de fundo (mobile) */
.mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 1998 !important;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Off-canvas Menu (mobile) */
.mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100% !important;
    background: rgba(30, 30, 30, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 1999 !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

.mobile-menu.active {
    right: 0 !important;
}

/* Header do off-canvas */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--verde-unifesp);
    background: rgba(0, 99, 65, 0.1);
    flex-shrink: 0;
}

.mobile-menu-header .navbar-brand {
    font-size: 1.25rem;
    margin: 0;
}

/* Botão de tema mobile (dentro do off-canvas) */
.theme-toggle-mobile {
    background: var(--verde-unifesp);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 99, 65, 0.3);
}

.theme-toggle-mobile:hover {
    background: var(--verde-claro);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 155, 99, 0.4);
}

.theme-toggle-mobile .theme-icon {
    font-size: 1.2rem;
}

/* Botão de fechar - X VERDE */
.close-btn {
    background: transparent;
    border: none;
    color: var(--verde-unifesp);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    padding: 0;
}

.close-btn:hover {
    color: var(--verde-profundo);
    transform: scale(1.1);
}

/* Links do off-canvas */
.mobile-menu-links {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
    flex-grow: 1;
}

.mobile-menu-links .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-links .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--cinza-suave) !important;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    background: transparent;
}

.mobile-menu-links .nav-link i {
    font-size: 1.25rem;
    width: 30px;
    color: var(--verde-claro);
    transition: color 0.3s ease;
}

.mobile-menu-links .nav-link:hover {
    background: rgba(0, 155, 99, 0.15);
    color: var(--verde-claro) !important;
    padding-left: 2rem;
}

.mobile-menu-links .nav-link:hover i {
    color: var(--branco);
}

/* Botão especial (Cadastrar) - IGUAL DO MENU NORMAL */
.mobile-menu-links .nav-link.btn {
    margin: 1rem 1.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--verde-unifesp);
    color: var(--branco) !important;
    border-radius: 0.5rem;
    text-align: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.3);
    border: 2px solid var(--verde-unifesp);
}

.mobile-menu-links .nav-link.btn:hover {
    background: var(--verde-claro);
    border-color: var(--verde-claro);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 155, 99, 0.4);
    padding-left: 1.5rem;
}

/* Prevenir scroll do body quando off-canvas está aberto */
body.mobile-menu-open {
    overflow: hidden;
}

/* ============================================================================
 * 🎨 LIGHT MODE - MOBILE MENU
 * ============================================================================ */
body.light-mode .mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .mobile-menu-header {
    background: rgba(0, 99, 65, 0.05) !important;
    border-bottom-color: var(--verde-unifesp) !important;
}

/* Logo UnifespIA - Texto cinza escuro no light mode */
body.light-mode .mobile-menu-header .navbar-brand {
    color: var(--cinza-escuro) !important;
}

/* Ícone mantém verde */
body.light-mode .mobile-menu-header .navbar-brand i {
    color: var(--verde-unifesp) !important;
}

body.light-mode .mobile-menu-links .nav-item {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .mobile-menu-links .nav-link {
    color: var(--cinza-escuro) !important;
}

/* Início e Entrar - Hover verde escuro no fundo */
body.light-mode .mobile-menu-links .nav-link:hover {
    background: var(--verde-profundo) !important;
    color: var(--branco) !important;
}

body.light-mode .mobile-menu-links .nav-link:hover i {
    color: var(--branco) !important;
}

/* Botão Cadastrar - SEMPRE branco (texto e ícone) */
body.light-mode .mobile-menu-links .nav-link.btn {
    background: var(--verde-unifesp) !important;
    color: var(--branco) !important;
    border-color: var(--verde-unifesp) !important;
}

body.light-mode .mobile-menu-links .nav-link.btn i {
    color: var(--branco) !important;
}

body.light-mode .mobile-menu-links .nav-link.btn:hover {
    background: var(--verde-claro) !important;
    border-color: var(--verde-claro) !important;
    color: var(--branco) !important;
}

body.light-mode .mobile-menu-links .nav-link.btn:hover i {
    color: var(--branco) !important;
}

/* ============================================================================
 * 📐 RESPONSIVE BREAKPOINTS (BOOTSTRAP 5 / MOBILE-FIRST)
 * xs: <576px → Mobile (base)
 * sm: ≥576px → Celulares maiores
 * md: ≥768px → Tablets
 * lg: ≥992px → Laptops
 * xl: ≥1200px → Monitores
 * xxl: ≥1400px → Telas grandes
 * ============================================================================ */

/* 📱 Mobile Base (360×640px - default) - Já aplicado acima */

/* 📱 SM - Celulares maiores (≥576px) */
@media (min-width: 576px) {
    .mobile-menu {
        max-width: 360px;
    }
    
    .mobile-menu-links .nav-link {
        font-size: 1.05rem;
        padding: 1.125rem 1.75rem;
    }
    
    .theme-toggle-mobile {
        width: 44px;
        height: 44px;
    }
    
    .close-btn {
        font-size: 2.2rem;
    }
}

/* 📱 MD - Tablets (≥768px) */
@media (min-width: 768px) {
    .mobile-menu {
        max-width: 380px;
    }
    
    .mobile-menu-links .nav-link {
        font-size: 1.1rem;
        padding: 1.25rem 2rem;
    }
    
    .mobile-menu-links .nav-link i {
        font-size: 1.5rem;
    }
}

/* 💻 LG - Laptops (≥992px) - Off-canvas pode ser escondido se houver navbar desktop */
@media (min-width: 992px) {
    /* Esconder off-canvas e overlay em desktop */
    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }
    
    /* Garantir que o menu desktop esteja visível */
    .navbar-collapse {
        display: flex !important;
    }
    
    /* Esconder botão hamburger em desktop */
    .navbar-toggler {
        display: none !important;
    }
}

/* 🖥️ XL - Monitores (≥1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 🖥️ XXL - Telas grandes (≥1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content,
    .features-grid,
    .courses-grid,
    .team-content {
        max-width: 1280px;
        margin: 0 auto;
    }
}
