/* ============================================
   Paróquia Nossa Senhora do Perpétuo Socorro - Ipixuna
   Identidade Visual e Estilos Globais
   ============================================ */

/* Variáveis de Cores */
:root {
    --primary-blue: #1565C0;
    --secondary-yellow: #F9A825;
    --light-blue: #42A5F5;
    --dark-blue: #0D47A1;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #424242;
    --text-color: #333333;
    --success-green: #4CAF50;
    --error-red: #F44336;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header e Navegação */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--dark-blue);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-yellow);
}

.main-header {
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 70px;
    width: auto;
}

.site-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.site-title p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navegação Principal */
.main-nav {
    background-color: var(--primary-blue);
    box-shadow: 0 2px 5px var(--shadow);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: var(--secondary-yellow);
    color: var(--dark-blue);
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 10px var(--shadow);
    min-width: 220px;
    z-index: 1001;
}

.nav-menu > li:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.3s, padding-left 0.3s;
}

.submenu li a:hover {
    background-color: var(--light-gray);
    padding-left: 25px;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Principal */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/brasao-paroquia.png') center/contain no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 5px;
    background-color: var(--secondary-yellow);
    color: var(--dark-blue);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Seções */
.section {
    padding: 50px 0;
    background-color: var(--white);
}

.section:nth-child(even) {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-yellow);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-top: 20px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px var(--shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group .checkbox-group input {
    width: auto;
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
}

table thead {
    background-color: var(--primary-blue);
    color: var(--white);
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

table tbody tr:hover {
    background-color: var(--light-gray);
}

/* Calendário */
.calendar {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    color: var(--primary-blue);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-day:hover {
    background-color: var(--light-gray);
}

.calendar-day.has-event {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-yellow);
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--secondary-yellow);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-yellow);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Notificações */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: var(--success-green);
    color: var(--white);
}

.notification.error {
    background-color: var(--error-red);
    color: var(--white);
}

.notification.info {
    background-color: var(--primary-blue);
    color: var(--white);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--error-red);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.badge-yellow {
    background-color: var(--secondary-yellow);
    color: var(--dark-blue);
}

.badge-success {
    background-color: var(--success-green);
    color: var(--white);
}

/* Lista de Eventos */
.event-list {
    list-style: none;
}

.event-item {
    background-color: var(--white);
    border-left: 4px solid var(--primary-blue);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--shadow);
}

.event-item h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.event-item .event-date {
    color: var(--secondary-yellow);
    font-weight: 600;
    font-size: 0.9rem;
}

.event-item .event-location {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Acesso Rápido */
.quick-access {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.quick-link {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-blue);
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 150px;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px var(--shadow);
}

.quick-link-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-yellow);
}

.quick-link span {
    display: block;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-blue);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--dark-blue);
    }

    .nav-menu > li.active .submenu {
        display: block;
    }

    .submenu li a {
        color: var(--white);
        padding-left: 40px;
    }

    .hero-banner h2 {
        font-size: 1.8rem;
    }

    .hero-banner p {
        font-size: 1rem;
    }

    .logo-section img {
        height: 50px;
    }

    .site-title h1 {
        font-size: 1.2rem;
    }

    .site-title p {
        font-size: 0.8rem;
    }

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

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden {
    display: none;
}

.loading {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
