/* ========================================
   Go Up Treinamentos - Cursos de NR
   Safety Aesthetic
   ======================================== */

/* === Variáveis Globais === */
:root {
    --bg-dark: #050505;
    --bg-terminal: #0a0a0a;
    --bg-card: #111111;
    --bg-light: #f5f5f5;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-dark: #1a1a1a;
    --safety-yellow: #fca311;
    --safety-yellow-dim: rgba(252, 163, 17, 0.15);
    --border-color: #333333;
    --border-light: #555555;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === Typography & Utilities === */
.highlight-text {
    color: var(--safety-yellow);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--safety-yellow);
    color: #000;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* === Floating Menu === */
.floating-menu {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.floating-menu-btn {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    color: var(--safety-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.floating-menu-btn:hover {
    border-color: var(--safety-yellow);
    background: var(--safety-yellow-dim);
}

.floating-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.floating-menu-dropdown ul {
    list-style: none;
}

.floating-menu-dropdown a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.floating-menu-dropdown a:hover {
    background: var(--border-color);
    color: var(--safety-yellow);
}

.floating-menu-dropdown .menu-cta {
    background: var(--safety-yellow);
    color: #000;
    margin: 0.5rem 1rem;
    text-align: center;
    font-weight: bold;
}

.floating-menu-dropdown .menu-cta:hover {
    background: #e5930e;
    color: #000;
}

@media (hover: hover) {
    .floating-menu:hover .floating-menu-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
.floating-menu.active .floating-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === Hero Section === */
.hero-nr {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease;
}

.safety-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--safety-yellow-dim);
    color: var(--safety-yellow);
    border: 1px solid var(--safety-yellow);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Marquee (Faixa de Destaques) === */
.safety-marquee {
    background: var(--safety-yellow);
    padding: 1.2rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.safety-icon {
    font-size: 1.2rem;
    color: #000;
    margin: 0 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
}

.safety-icon i {
    font-size: 1.5rem;
}

/* === Layout Geral Seções === */
.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* === Qual Curso Escolho (Interativo) === */
.escolha-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .escolha-container {
        flex-direction: row;
    }
}

.escolha-sidebar {
    flex: 0 0 300px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-terminal);
}

@media (max-width: 767px) {
    .escolha-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.escolha-tab {
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.escolha-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.02);
}

.escolha-tab.active {
    color: var(--safety-yellow);
    background: var(--safety-yellow-dim);
    border-left: 4px solid var(--safety-yellow);
    font-weight: 700;
}

.escolha-content-area {
    flex: 1;
    padding: 3rem 2.5rem;
}

.escolha-panel {
    display: none;
    animation: fadeInTab 0.4s ease;
}

.escolha-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.panel-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.panel-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.meta-item {
    border: 1px solid var(--border-color);
    padding: 1rem;
    background: var(--bg-terminal);
    border-radius: 4px;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: var(--safety-yellow);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: bold;
}

.meta-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.panel-cta {
    margin-top: 2rem;
    width: 100%;
    justify-content: center;
}

/* === Módulos / Accordion === */
.modulos-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modulo-item {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
}

.modulo-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--bg-terminal);
}

.modulo-header:hover {
    background: #151515;
}

.modulo-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modulo-toggle {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.modulo-item.active .modulo-toggle {
    transform: rotate(180deg);
    color: var(--safety-yellow);
}

.modulo-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.modulo-item.active .modulo-content {
    max-height: 1500px;
}

.modulo-list {
    padding: 1.5rem;
    list-style: none;
    border-top: 1px solid var(--border-color);
}

.modulo-list li {
    padding: 0.6rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modulo-list li:last-child {
    border-bottom: none;
}

.modulo-list li::before {
    content: '\f14a'; /* FontAwesome check-square */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--safety-yellow);
    margin-right: 12px;
}

/* === CTA Section === */
.cta-section {
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-terminal);
    padding: 5rem 2rem;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: var(--safety-yellow);
    color: #000;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: bold;
    border: 1px solid var(--safety-yellow);
    border-radius: 4px;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
