:root {
    --primary: #1A2B48;
    --primary-light: #2A3F63;
    --accent: #C5A059;
    --accent-hover: #B48F48;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    color: var(--accent);
}

.logo span span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Navbar Overlay */
.nav-menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 2100;
    padding: 5rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

.nav-menu-mobile.active {
    display: flex;
    transform: translateX(0);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2050;
}

.nav-overlay.active {
    display: block;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Sombra leve para destacar texto branco no dourado */
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 43, 72, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(26, 43, 72, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 180px 5% 100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.05), transparent);
}

.badge {
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.glass-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E5E7EB;
}

.mock-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.mock-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-row {
    height: 40px;
    background: #F3F4F6;
    border-radius: 8px;
    width: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--accent);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: -20px; right: 20px; animation-delay: 0s; }
.icon-2 { bottom: 40px; left: -30px; animation-delay: 2s; }
.icon-3 { top: 50%; right: -30px; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 100px 5%;
    background: var(--white);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: rgba(197, 160, 89, 0.2);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Liturgical Bar */
.liturgical-bar {
    background: #2E7D32; /* Default Green - Tempo Comum */
    color: var(--white);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.liturgical-bar span i {
    margin-right: 0.5rem;
}

/* Update Navbar for Liturgical Bar */
.navbar {
    top: 34px; /* Space for the bar */
}

/* News Section */
.news-section {
    padding: 6rem 5%;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.5rem;
}

.news-content h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* PIX Style */
.pix-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary);
}

.pix-qr {
    width: 200px;
    height: 200px;
    background: #eee;
    margin: 0 auto 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--accent);
}

.pix-key {
    background: #f3f4f6;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    word-break: break-all;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 150px;
    }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { margin-inline: auto; }
    .hero-btns { justify-content: center; }
    .hero-visual { margin-top: 4rem; }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none; /* Seria ideal um menu mobile aqui */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Tabelas responsivas */
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Sidebar mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
        width: 280px !important;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 1.5rem;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .header-parish {
        width: 100%;
        flex-direction: column;
    }
    
    .parish-info-display {
        width: 100%;
        justify-content: space-between;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--primary);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Utilitários de Visibilidade */
.hide-mobile {
    @media (max-width: 768px) {
        display: none !important;
    }
}

.show-mobile { display: none !important; }

/* Responsive Design Global */
@media (max-width: 1024px) {
    :root { --sidebar-width: 0px; }
    .sidebar { 
        transform: translateX(-100%); 
        z-index: 1000; 
        transition: transform 0.3s ease;
        width: 280px !important;
    }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0 !important; padding: 1.5rem !important; }
    .grid-2 { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .mobile-toggle { display: flex !important; }
    .show-mobile { display: block !important; }
}

@media (min-width: 1025px) {
    .mobile-toggle { display: none !important; }
    .show-mobile { display: none !important; }
}
