/*
Theme Name: Combat Fire Theme
Theme URI: https://combatfireextrema.com.br
Author: DTC
Author URI: https://dtc.com.br
Description: Tema leve e personalizado para Combat Fire Extrema, com layout exclusivo para a página inicial, suporte nativo ao Tutor LMS e WooCommerce, sem dependência do Elementor.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: combatfire-theme
*/

:root {
    --cf-red: #E50914;
    --cf-red-dark: #B20710;
    --cf-primary: #8B1E1E;
    --cf-yellow: #FFCC00;
    --cf-blue: #1B365D;
    --cf-dark: #141414;
    --cf-light: #F8F9FA;
    --cf-gray: #6C757D;
    --cf-border: #E0E0E0;
    --cf-white: #FFFFFF;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--cf-red);
}

/* Header & Topbar */
.cf-topbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 0.9rem;
}

.cf-topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cf-header-logo img {
    max-height: 70px;
    width: auto;
}

.cf-header-contact {
    text-align: right;
}

.cf-header-contact p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.cf-header-contact a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Red Navigation Bar */
.cf-navbar {
    background-color: var(--cf-red);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cf-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.cf-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

.cf-nav-menu a {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 18px 0;
    border-bottom: 3px solid transparent;
}

.cf-nav-menu a:hover,
.cf-nav-menu .current-menu-item a,
.cf-nav-menu .active a {
    border-bottom-color: #fff;
}

.cf-user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cf-user-greeting {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.btn-meu-painel {
    background-color: var(--cf-blue);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.btn-meu-painel:hover {
    background-color: #122440;
}

.cf-cart-icon {
    position: relative;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.cf-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--cf-blue);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Section */
.cf-hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.cf-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.cf-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cf-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
}

/* Yellow Banner */
.cf-yellow-bar {
    background-color: var(--cf-yellow);
    color: #000;
    font-weight: 700;
    text-align: center;
    padding: 12px 15px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Red Sections */
.cf-section-red {
    background-color: var(--cf-red);
    color: #fff;
    padding: 60px 0;
}

.cf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cf-section-red h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--cf-blue);
    line-height: 1.2;
}

.cf-section-red p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cf-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.cf-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cf-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-cf-blue {
    background-color: var(--cf-blue);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-cf-blue:hover {
    background-color: #122440;
    transform: translateY(-2px);
}

/* Light Section (Cursos) */
.cf-section-light {
    background-color: #fff;
    padding: 70px 0;
}

.cf-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.cf-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--cf-red);
    margin-bottom: 10px;
}

.cf-section-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.cf-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.cf-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid #eee;
}

.cf-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.cf-course-thumb {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.cf-course-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cf-course-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cf-blue);
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-course-action {
    background-color: #333;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.btn-course-action:hover {
    background-color: var(--cf-red);
}

/* Footer */
.cf-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 50px 0 20px 0;
    font-size: 0.9rem;
    color: #555;
}

.cf-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.cf-footer-col img,
.cf-footer-col .custom-logo,
.cf-footer-col .custom-logo-link img {
    max-height: 85px;
    width: auto;
    max-width: 220px;
    display: block;
    margin-bottom: 15px;
}

.cf-footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.cf-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cf-footer-col ul li {
    margin-bottom: 10px;
}

.cf-footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #777;
}

/* Responsividade */
@media (max-width: 768px) {
    .cf-grid-2 {
        grid-template-columns: 1fr;
    }

    .cf-footer-grid {
        grid-template-columns: 1fr;
    }

    .cf-navbar-container {
        flex-direction: column;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .cf-nav-menu {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .cf-hero h1 {
        font-size: 1.8rem;
    }
}
