/* CSS Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables (Design System) */
:root {
    /* Cores */
    --primary: #003a92;
    --primary-hover: #002968;
    --primary-light: #1a5bb8;
    --accent: #ffc107;
    --accent-dark: #ffb300;
    --background: #fafafa;
    --surface: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;

    /* Cores específicas dos cursos */
    --card-cipa: #4891ff;
    --card-epi: #0066ff;
    --card-transport: #003a92;
    --card-machines: #003a92;
    --card-flammable: #003a92;
    --card-height: #001f4e;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 58, 146, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 58, 146, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 58, 146, 0.16);
    --shadow-xl: 0 12px 32px rgba(0, 58, 146, 0.2);

    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Espaçamentos */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Raios de borda */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transições */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar Style */
header {
    background: #002357;
    width: 100%;
    height: 85px;
    color: #eee;
    position: fixed;
    z-index: 9999;
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    margin: 10px;
    width: 220px;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 30px;
}

.navbar ul {
    display: flex;
    align-items: center;
}

.navbar ul li {
    margin: 0 15px;
    list-style: none;
}

.navbar ul li a {
    position: relative;
    padding: 8px 0;
    color: #eee;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s linear;
}

.navbar ul li a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    width: 0;
    height: 5px;
    border-radius: 10px;
    background-color: #00a5b1;
    transition: all 0.3s cubic-bezier(1, 1, 1, 1);
}

.nav-link {
    padding: 15px;
    margin: 0.6rem;
}

.login:hover {
    background: #003a92;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: #007fc9;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
    right: auto;
    left: 0;
}

.hamburger {
    display: none;
    position: relative;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.hamburger span {
    display: inline-block;
    width: 100%;
    height: 3px;
    background-color: #007fc9;
    position: absolute;
    top: calc(50% - 1.5px);
    left: 0;
    transition: all 0.2s;
}

.hamburger span:first-child {
    transform: translateY(-300%);
    transform-origin: right top;
}

.hamburger span:last-child {
    transform: translateY(300%);
    transform-origin: right bottom;
}

.hamburger.active span:first-child {
    transform: rotate(45deg) scaleX(0.5) translateX(4px);
}

.hamburger.active span:last-child {
    transform: rotate(-45deg) scaleX(0.5) translateX(4px);
}

/* Navbar media query */
@media (max-width: 992px) {
    header {
        padding: 1px;
        background-color: #fff;
    }

    .navbar-container {
        max-width: 940px;
    }

    .hamburger {
        display: block;
    }

    .navbar ul {
        position: fixed;
        top: 80px;
        right: 0;
        width: 220px;
        height: 100%;
        padding: 40px 0;
        background-color: #f7f7f7;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        box-shadow: -8px 2px 10px rgba(0, 0, 0, 0.082);
        transform: translateX(100%);
        text-align: center;
        border-radius: 15px;
        transition: all 0.3s;
    }

    .navbar ul.active {
        transform: translateX(0);
    }

    .navbar ul li {
        margin: 0;
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 15px;
        color: #0052cc;
    }

    .navbar ul li a::after {
        display: none;
    }

    .navbar ul li a:hover {
        color: #080808;
        background-color: #f0f0f0;
    }

    .navbar ul li a.active {
        color: #ffffff;
        background-color: #4761ff;
        border-radius: 10px;
    }

}

@media (max-width: 768px) {
    header {
        padding: 1px;
        height: 80px;
    }

    .navbar-container {
        max-width: 650px;
    }

    .navbar .logo {
        height: 100%;
    }
}

@media (max-width: 992px) {
    .navbar .logo {
        width: 200px;
    }
}

@media (max-width: 375px) {
    .navbar .logo {
        width: 200px;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero-content {
    max-width: 67rem;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.accent-text {
    color: var(--accent);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-12);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--accent);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin: 0 auto var(--space-4);
}

.stat-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.stat-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
}

/* Courses Section */
.courses {
    padding: var(--space-20) 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.section-divider {
    width: 96px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto var(--space-6);
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

.section-subtitle strong {
    color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

/* Course Cards */
.course-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.course-card-header {
    height: 8px;
}

.course-card-content {
    padding: var(--space-6);
}

.course-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.course-icon {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon img {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
}

.course-arrow {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: all var(--transition-normal);
}

.course-card:hover .course-arrow {
    opacity: 1;
    background: var(--primary);
    color: white;
}

.course-arrow i {
    width: 16px;
    height: 16px;
}

.course-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    transition: color var(--transition-fast);
}

.course-card:hover .course-title {
    color: var(--primary);
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.meta-item i {
    width: 16px;
    height: 16px;
}

.course-button {
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    transition: all var(--transition-normal);
}

.course-card:hover .course-button {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.course-button i {
    width: 16px;
    height: 16px;
}

/* Cores específicas dos cursos */
.course-cipa .course-card-header {
    background: var(--card-cipa);
}

.course-cipa .course-icon {
    background: rgba(34, 197, 94, 0.1);
}

.course-cipa .course-icon i {
    color: var(--card-cipa);
}

.course-epi .course-card-header {
    background: var(--card-epi);
}

.course-epi .course-icon {
    background: rgba(245, 158, 11, 0.1);
}

.course-epi .course-icon i {
    color: var(--card-epi);
}

.course-transport .course-card-header {
    background: var(--card-transport);
}

.course-transport .course-icon {
    background: rgba(255, 193, 7, 0.1);
}

.course-transport .course-icon i {
    color: var(--card-transport);
}

.course-machines .course-card-header {
    background: var(--card-machines);
}

.course-machines .course-icon {
    background: rgba(255, 107, 53, 0.1);
}

.course-machines .course-icon i {
    color: var(--card-machines);
}

.course-flammable .course-card-header {
    background: var(--card-flammable);
}

.course-flammable .course-icon {
    background: rgba(239, 68, 68, 0.1);
}

.course-flammable .course-icon i {
    color: var(--card-flammable);
}

.course-height .course-card-header {
    background: var(--card-height);
}

.course-height .course-icon {
    background: rgba(139, 92, 246, 0.1);
}

.course-height .course-icon i {
    color: var(--card-height);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

.animate-delay-600 {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-2xl);
    }
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav {
        display: flex;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        animation: slideIn 0.3s ease-out;
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-header h2 {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 767px) {
    .nav .nav-link {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: var(--space-16) 0;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .courses {
        padding: var(--space-16) 0;
    }

    .section-header h2 {
        font-size: var(--font-size-2xl);
    }

    .section-subtitle {
        font-size: var(--font-size-lg);
    }
}

/* Footer Style */
.site-footer {
    background-color: #111;
    color: #ecf0f1;
    padding: 40px 0 20px;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    color: #007fc9;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 1px;
    background: #007fc9;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #003a92;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #f7f7f7;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #003a92;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    /*     border-top: 1px solid #34495e; */
    font-size: 1rem;
}

@media (max-width: 768px) {
    .footer-section {
        flex: 100%;
        margin-bottom: 30px;
    }
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 12px;
    /* Largura da barra de rolagem */
}

/* Estilizando a parte interna da barra de rolagem */
::-webkit-scrollbar-track {
    background: #303030;
    /* Cor do fundo da barra de rolagem */
}

/* Estilizando o polegar da barra de rolagem */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to top, #003a92, #00a2ff);
    /* Cor do polegar da barra de rolagem */
    border-radius: 15px;
    /* Bordas arredondadas no polegar */
}

/* Cor do polegar ao passar o mouse */
::-webkit-scrollbar-thumb:hover {
    background: #00415f;
    /* Cor do polegar ao passar o mouse */
}

::selection {
    background-color: #001824;
    color: #fff;
}

/* Whatsapp Style */
#whats {
    position: fixed;
    bottom: 3rem;
    right: 2.5rem;
    z-index: 9999;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#whats:hover {
    filter: brightness(150%);
}

.whats-img {
    width: 55px;
    transition: all 0.3s ease;
}

.whats-api {
    position: fixed;
    bottom: 3rem;
    right: 2.5rem;
    z-index: 9999;
    border-radius: 50px;
    cursor: pointer;
}