/* ==========================================================================
   Fontes Locais
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-600.ttf') format('truetype');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfair-700.ttf') format('truetype');
}


/* ==========================================================================
   Paleta de Cores - Paróquia Nossa Senhora Aparecida
   ========================================================================== */
:root {
    --azul-aparecida: #0f1c38;
    --dourado-coroa: #C9943B;
}

/* ==========================================================================
   Scroll Padding (compensa o menu fixo nas âncoras)
   ========================================================================== */
html {
    scroll-padding-top: 120px;
    scroll-behavior: smooth;
}

@media (max-width: 991px) {
    html {
        scroll-padding-top: 70px;
    }
}

/* ==========================================================================
   Faixa Superior (Top Bar)
   ========================================================================== */
.top-bar {
    background-color: #0f1c38;
    border-bottom: 2px solid rgba(201, 148, 59, 0.5);
}

.top-bar-text {
    color: #ffffff;
}

.top-bar-church-icon {
    color: var(--dourado-coroa);
}

.top-bar-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.top-bar-icon:hover {
    color: var(--dourado-coroa);
    transform: scale(1.2);
}

.flag-btn {
    font-size: 1.1rem;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.flag-btn:hover,
.flag-btn.active {
    opacity: 1;
    transform: scale(1.15);
}

/* ==========================================================================
   Menu Mobile (Offcanvas)
   ========================================================================== */
.mob-offcanvas {
    max-width: 320px;
}

.mob-offcanvas-header {
    border-bottom: 1px solid #e9ecef;
    padding: 12px 16px;
}

.mob-close-btn {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mob-item {
    border-bottom: 1px solid #f0f0f0;
}

.mob-link {
    color: #1a1a1a;
    font-size: 1.1rem;
}

.mob-chevron {
    font-size: 0.75rem;
    color: #999;
}

.mob-sub-menu {
    background: #f8f9fa;
}

.mob-sub-link {
    color: #444;
    font-size: 1rem;
}

.mob-sub-border {
    border-bottom: 1px solid #eee;
}

.mob-doar-btn {
    background-color: #C9943B;
    color: #fff;
    border-radius: 6px;
}

/* ==========================================================================
   Menu Fixo no Topo (Sticky)
   ========================================================================== */
.navbar {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.nav-font-size {
    font-size: 0.97rem;
}

/* ==========================================================================
   Sobrescrita de Cores do Bootstrap (Primary)
   ========================================================================== */
.bg-primary {
    background-color: #0f1c38 !important;
}

.text-primary {
    color: var(--azul-aparecida) !important;
}

.btn-primary {
    background-color: var(--azul-aparecida);
    border-color: var(--azul-aparecida);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--dourado-coroa);
    border-color: var(--dourado-coroa);
    color: #ffffff;
}

/* ==========================================================================
   Classes Utilitárias Personalizadas
   ========================================================================== */
.text-dourado {
    color: var(--dourado-coroa) !important;
}

.bg-dourado {
    background-color: var(--dourado-coroa) !important;
}

/* ==========================================================================
   Estilos da Barra de Navegação (Efeito Dourado Sofisticado)
   ========================================================================== */
.navbar-invertida {
    background-color: #ffffff !important;
    border-bottom: 2px solid rgba(201, 148, 59, 0.4);
}

.navbar-invertida .navbar-nav .nav-link {
    color: #0f1c38 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.navbar-invertida .navbar-nav .nav-link:hover,
.navbar-invertida .navbar-nav .nav-link:focus,
.navbar-invertida .navbar-nav .nav-link.active {
    color: var(--dourado-coroa) !important;
}

/* Linha Dourada Animada */
.navbar-invertida .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--dourado-coroa);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-invertida .navbar-nav .nav-link:hover::after,
.navbar-invertida .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-invertida .navbar-toggler {
    border-color: rgba(15, 28, 56, 0.4);
}

.navbar-invertida .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 28, 56, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-item {
    margin: 0 15px;
}

/* ==========================================================================
   Cards de Acesso Rápido
   ========================================================================== */
.quick-card {
    transition: all 0.3s ease;
    border: none;
    border-bottom: 4px solid transparent;
    background-color: #ffffff;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--dourado-coroa);
    box-shadow: 0 10px 20px rgba(15, 28, 56, 0.1) !important;
}

.quick-card-icon {
    color: var(--dourado-coroa);
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: block;
}

.quick-card:hover .quick-card-icon {
    transform: scale(1.1);
    color: #0f1c38;
}

/* ==========================================================================
   Carrossel - Sombra nas letras
   ========================================================================== */
.carousel-caption h2,
.carousel-caption p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.8), 0 0 30px rgba(15,28,56,0.9);
}

/* ==========================================================================
   Botão Doar
   ========================================================================== */
.btn-doar {
    background-color: var(--dourado-coroa) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 4px 14px !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

.btn-doar:hover {
    background-color: #ffffff !important;
    color: var(--dourado-coroa) !important;
}

.btn-doar::after {
    display: none !important;
}

/* ==========================================================================
   Dropdown do Menu (padrão)
   ========================================================================== */
.navbar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(201, 148, 59, 0.3);
    border-radius: 0 0 6px 6px;
    margin-top: 0;
    min-width: 180px;
}

.navbar .dropdown-item {
    font-family: 'Inter', sans-serif;
    color: #0f1c38;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: rgba(201, 148, 59, 0.08);
    color: var(--dourado-coroa);
}

/* ==========================================================================
   Mega Menu (estilo TP-Link / Ubiquiti)
   ========================================================================== */
.nav-item.mega-menu {
    position: static !important;
}

.mega-menu-panel {
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 0 12px 12px;
    border-top: 2px solid var(--dourado-coroa);
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1.5rem 0 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.09);
    margin-top: 0 !important;
    min-width: unset;
}

.mega-menu-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbb;
    padding: 0 16px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
    color: #0f1c38;
}

.mega-menu-item:hover {
    background: rgba(201, 148, 59, 0.07);
    color: #0f1c38;
    text-decoration: none;
}

.mega-menu-item:hover .mega-menu-text h6 {
    color: var(--dourado-coroa);
}

.mega-menu-icon {
    font-size: 1.15rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f4f6f8;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.mega-menu-item:hover .mega-menu-icon {
    background: rgba(201, 148, 59, 0.12);
}

.mega-menu-text h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f1c38;
    margin: 0 0 2px 0;
    transition: color 0.2s ease;
}

.mega-menu-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Brasão Central (Logo Dividindo o Menu)
   ========================================================================== */
.relative-nav {
    position: relative;
}

.brasao-container {
    width: 143px;
    flex-shrink: 0;
    text-align: center;
    position: relative;
    z-index: 1040;
}

.brasao-img-real {
    width: 147px;
    height: auto;
    margin-top: -14px;
    margin-bottom: -42px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.brasao-img-real:hover {
    transform: scale(1.06);
}

.brasao-placeholder {
    width: 100px;
    height: 120px;
    border-radius: 0 0 50px 50px;
    margin: -10px auto -40px auto;
    border: 3px solid #ffffff;
    background-color: var(--dourado-coroa);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.brasao-placeholder:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Cards de Pastorais
   ========================================================================== */
.pastoral-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.4s ease;
    background-color: #fff;
    text-decoration: none;
    display: block;
}

.pastoral-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(15, 28, 56, 0.08);
    border-color: var(--dourado-coroa);
}

.pastoral-icon-wrapper {
    width: 65px;
    height: 65px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dourado-coroa);
    font-size: 1.8rem;
    transition: all 0.4s ease;
    margin: 0 auto 1.5rem auto;
}

.pastoral-card:hover .pastoral-icon-wrapper {
    background-color: var(--azul-aparecida);
    color: #fff;
    transform: scale(1.1);
}

.pastoral-title {
    color: var(--azul-aparecida);
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.pastoral-card:hover .pastoral-title {
    color: var(--dourado-coroa);
}

/* ==========================================================================
   Cards de Notícias
   ========================================================================== */
.news-card {
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent !important;
    background-color: #fff;
}

.news-card:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid var(--dourado-coroa) !important;
    box-shadow: 0 15px 30px rgba(15, 28, 56, 0.1) !important;
}

.news-image-wrapper {
    overflow: hidden;
}

.news-image {
    transition: transform 0.5s ease;
}

.news-card:hover .news-image,
.news-image-wrapper:hover .news-image {
    transform: scale(1.08);
}

.news-link {
    color: var(--dourado-coroa);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.news-card:hover .news-link {
    color: var(--azul-aparecida);
}

.news-card-featured {
    transition: box-shadow 0.4s ease;
}

.news-card-featured:hover {
    box-shadow: 0 20px 40px rgba(15, 28, 56, 0.12) !important;
}

/* ==========================================================================
   Página de Doações
   ========================================================================== */
.doacao-tabs {
    border-bottom: 2px solid #e9ecef;
    gap: 0.5rem;
}
.doacao-tabs .nav-link {
    color: #4a4a4a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
}
.doacao-tabs .nav-link:hover { color: #C9943B; }
.doacao-tabs .nav-link.active {
    color: #0f1c38;
    border-bottom: 3px solid #C9943B;
    background-color: transparent;
}
.pix-box {
    background-color: #f8f9fa;
    border: 2px dashed #C9943B;
    border-radius: 8px;
    padding: 20px;
}

.news-date-badge {
    background-color: rgba(15, 28, 56, 0.95);
    padding: 8px 12px;
    border-left: 3px solid var(--dourado-coroa);
    backdrop-filter: blur(4px);
}

.card-text-limit {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}

/* ==========================================================================
   Rodapé (Footer)
   ========================================================================== */
.footer-dark {
    background-color: #0f1c38;
    color: #fff;
}

.footer-logo-img {
    width: 254px;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(201, 148, 59, 0.6));
}

.footer-heading {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #C9943B;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: #C9943B;
    padding-left: 5px;
}

.social-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-icon:hover .social-icon-circle {
    background-color: #C9943B;
}

.footer-bottom-border {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.footer-bottom-text {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-subtext {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.footer-privacy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: #C9943B;
}

.footer-criador-link {
    text-decoration: none;
    font-weight: 700;
}

.footer-criador-green {
    color: #39b54a;
}

.footer-criador-blue {
    color: #4a9eff;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        text-align: center;
        margin-top: 15px;
        background-color: #ffffff;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid rgba(15, 28, 56, 0.1);
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-invertida .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ==========================================================================
   Capela Virtual — Abas
   ========================================================================== */
.capela-tabs {
    border-bottom: 2px solid #e9ecef;
    gap: 1rem;
}

.capela-tabs .nav-link {
    color: #4a4a4a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.capela-tabs .nav-link:hover {
    color: var(--dourado-coroa);
}

.capela-tabs .nav-link.active {
    color: var(--azul-aparecida);
    border-bottom: 3px solid var(--dourado-coroa);
    background-color: transparent;
}

.tab-pane {
    transition: opacity 0.4s ease-in-out;
}

/* Abas secundárias da Novena */
.novena-tabs {
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.novena-tabs .nav-link {
    color: #0f1c38;
    font-weight: 600;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #fff;
}
.novena-tabs .nav-link:hover {
    border-color: #C9943B;
    color: #C9943B;
}
.novena-tabs .nav-link.active {
    background-color: #0f1c38;
    color: #fff;
    border-color: #0f1c38;
}

/* ==========================================================================
   Variáveis das Sub-páginas (aliases globais)
   ========================================================================== */
:root {
    --azul-escuro: #0f1c38;
    --dourado: #C9943B;
    --fundo-claro: #f8f9fa;
}

/* ==========================================================================
   Container e Espaçamento das Sub-páginas
   ========================================================================== */
.container-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-section {
    margin-bottom: 5rem;
    margin-top: 3rem;
}

/* ==========================================================================
   Cabeçalho Padrão das Sub-páginas (.page-header)
   ========================================================================== */
.page-header {
    background: var(--azul-escuro);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('../img/paroquia-altar.webp') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dourado);
}

.page-header__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Botão de Envio de Formulários (.btn-submit)
   ========================================================================== */
.btn-submit {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--dourado);
    color: #fff;
    padding: 15px 24px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #b38230;
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(201, 148, 59, 0.4);
}

/* ==========================================================================
   Blocos de Conteúdo Intercalados (.content-block) — movimentos + pastorais
   ========================================================================== */
.content-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #eaeaea;
    scroll-margin-top: 100px;
}

.content-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.content-block--reverse {
    flex-direction: row-reverse;
}

.content-block__info {
    flex: 1.2;
}

.content-block__title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-block__icon {
    font-size: 2.2rem;
    color: var(--dourado);
}

.content-block__title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--azul-escuro);
    margin: 0;
}

.content-block__text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 2rem;
}

.content-block__image-wrapper {
    flex: 1;
    position: relative;
}

.content-block__image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px;
    width: 100%; height: 100%;
    border: 3px solid var(--dourado);
    border-radius: 20px;
    z-index: 0;
}

.content-block--reverse .content-block__image-wrapper::before {
    left: auto;
    right: -15px;
}

.content-block__image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    object-fit: cover;
    max-height: 350px;
}

/* ==========================================================================
   Caixa de Informações (.info-box) — movimentos + pastorais
   ========================================================================== */
.info-box {
    background: var(--fundo-claro);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--dourado);
}

.info-box i {
    color: var(--azul-escuro);
}

/* ==========================================================================
   Seção CTA Final (.cta-section) — pastorais
   ========================================================================== */
.cta-section {
    background-color: var(--fundo-claro);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-top: 5rem;
    border: 1px solid #eaeaea;
}

.cta-section__title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--azul-escuro);
    margin-bottom: 1rem;
}

.cta-section__text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

/* ==========================================================================
   Responsivo das Sub-páginas
   ========================================================================== */
@media (max-width: 992px) {
    .content-block,
    .content-block--reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .content-block__text {
        text-align: center;
    }

    .content-block__title-wrapper {
        justify-content: center;
    }

    .content-block__image-wrapper::before {
        display: none;
    }
}
