﻿/* ============================================================
   gcctp.css - Estilos para o site da CVCPT
   Tema: Branco e Vermelho com detalhes em Dourado
   ============================================================ */

:root {
    /* Cores principais */
    --bg-page: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-dark-surface: #1e2533;
    --text-main: #212529;
    --text-muted: #6c757d;
    --text-light: #f0ebdf;
    /* Cores da marca */
    --red: #dc3545;
    --red-dark: #a71d2a;
    --red-light: #f8d7da;
    --gold: #c9a03d;
    --gold-dark: #a07a2a;
    --gold-light: #f5ebda;
    /* Bordas e sombras */
    --line: #4a4f60;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

/* ===== RESET E BASE ===== */
body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    padding-top: 70px; /* para navbar fixa */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
}

a {
    color: var(--red);
    text-decoration: none;
}

    a:hover {
        color: var(--red-dark);
    }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--red) !important;
    font-family: 'Cinzel', serif;
}

    .navbar-brand .order-emblem {
        display: inline-block;
        position: relative;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-size: 1.5rem;
        color: var(--red);
        margin-right: 8px;
    }

.order-emblem-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--gold);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: 0.2s;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--red) !important;
    }

/* ===== HERO / CARROSSEL ===== */
.hero-carousel-bg {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.carousel-bg .carousel-inner,
.carousel-bg .carousel-item {
    height: 100%;
}

    .carousel-bg .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 1.5rem;
}

.hero-content {
    max-width: 800px;
}

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: 900;
        text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    }

    .hero-content .lead {
        font-weight: 300;
        text-shadow: 0 1px 6px rgba(0,0,0,0.2);
    }

/* ===== CARD TEMPLÁRIO ===== */
.card-templario {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: 0.3s ease;
    box-shadow: var(--shadow);
    overflow: hidden;
}

    .card-templario:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .card-templario .resource-img,
    .card-templario .noticia-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .card-templario .video-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
        overflow: hidden;
    }

        .card-templario .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

/* ===== BOTÕES ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fffdf8;
    border: none;
    border-radius: 40px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-gold:hover {
        background: linear-gradient(135deg, var(--gold-dark) 0%, #7a4d1a 100%);
        transform: scale(1.02);
        color: white;
    }

.btn-outline-gold {
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    background: transparent;
    border-radius: 40px;
    padding: 8px 20px;
    transition: all 0.3s;
}

    .btn-outline-gold:hover {
        background: var(--gold);
        color: #fff;
    }

.btn-red {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

    .btn-red:hover {
        background: var(--red-dark);
        border-color: var(--red-dark);
        color: white;
    }

/* ===== FORMULÁRIOS ===== */
.form-control-gold {
    background: #fcfaf7;
    border: 1px solid var(--line);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    transition: 0.2s;
}

    .form-control-gold:focus {
        background: #fffdfa;
        border-color: var(--gold);
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(201, 160, 61, 0.16);
    }

/* ===== MODAIS DE LOGIN ===== */
.modal-login .modal-content {
    background: linear-gradient(135deg, #fcfaf7 0%, #f5ebda 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-login .modal-header {
    border-bottom: 1px solid var(--line);
    padding: 1.5rem;
}

.modal-login .modal-body {
    padding: 2rem;
}

.modal-login .modal-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem;
}

/* ===== SEÇÕES ===== */
.section-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-main);
    border-left: 4px solid var(--red);
    padding-left: 1rem;
}

    .section-title i {
        color: var(--red);
    }

/* ===== RODAPÉ ===== */
footer {
    background: var(--bg-page);
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

    footer .order-emblem {
        display: inline-block;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-size: 1.2rem;
        color: var(--red);
        position: relative;
    }

    footer .order-emblem-cross {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 0.9rem;
        color: var(--gold);
    }

/* ===== UTILIDADES ===== */
.text-gold {
    color: var(--gold) !important;
}

.text-red {
    color: var(--red) !important;
}

.bg-gold {
    background: var(--gold) !important;
}

.bg-red {
    background: var(--red) !important;
}

.border-gold {
    border-color: var(--gold) !important;
}

.border-red {
    border-color: var(--red) !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-carousel-bg {
        height: 50vh;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-templario .resource-img,
    .card-templario .noticia-img {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-overlay {
        padding: 1rem;
    }

    .comendador-img {
        max-width: 120px;
    }

    .btn-gold, .btn-outline-gold {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
