/* 
    Tenda de Umbanda Ogum Matinata - Design System
    Colors: Navy Blue, White, Red
*/

:root {
    --primary-navy: #0b4d95; /* New Official Logo Blue */
    --primary-red: #d3222a;  /* New Official Logo Red */
    --secondary-blue: #2a5caa;
    --accent-red: #ff333a;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --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;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--off-white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 70px;
}

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

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

header.scrolled .nav-links a {
    color: var(--primary-navy);
}

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

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--accent-red);
    color: #fff !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(193, 18, 31, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 18, 31, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px; /* Add padding for easier clicking */
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--white); /* Alterado de vermelho para branco */
    border-radius: 3px;
    transition: var(--transition);
}

header.scrolled .mobile-menu-toggle span {
    background-color: var(--primary-navy);
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        display: flex !important; /* Ensure it overrides any display: none */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.25rem;
        display: block;
        padding: 1rem 0;
        color: var(--primary-navy) !important;
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(27, 74, 142, 0.7), rgba(27, 74, 142, 0.5)), url('assets/templo_noite.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(42, 92, 170, 0.4);
    transition: var(--transition);
    cursor: default;
}

.hero-content h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 45px rgba(42, 92, 170, 0.6);
}



.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #5baad4; /* Azul um pouco mais profundo e harmonioso */
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* --- Sections Common --- */
section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-text p {
    color: var(--primary-navy) !important;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 993px) {
    .about-text p {
        font-size: 1.15rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* --- Schedule Section --- */
.schedule {
    background: linear-gradient(135deg, #0a1535 0%, var(--primary-navy) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.schedule::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(192, 38, 44, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.schedule-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
}

.schedule-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    display: block;
}

.schedule-card h3 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.schedule-day {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0;
}

.schedule-time-box {
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(192, 38, 44, 0.4);
}

.schedule-quote {
    margin-top: 3rem;
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.8;
    position: relative;
    padding: 0 2rem;
}

.schedule-quote::before, .schedule-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-red);
    position: absolute;
    top: -10px;
    opacity: 0.5;
}

.schedule-quote::before { left: 0; }
.schedule-quote::after { right: 0; }

/* --- Location Section --- */
.location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.map-placeholder {
    height: 400px;
    background: #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.address-info {
    padding: 2rem;
}

.address-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* --- Patron Section */
.patron-section {
    padding: 5rem 2rem;
    background: var(--off-white);
}

.patron-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.patron-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.patron-text p {
    color: var(--primary-navy) !important;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

@media (min-width: 993px) {
    .patron-text p {
        font-size: 1.15rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }
}

.patron-image {
    display: flex;
    justify-content: center;
}

.patron-image img {
    max-width: 450px;
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.patron-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    /* General */
    section {
        padding: 5rem 1.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* About & Patron Grids */
    .about-grid, .patron-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        max-width: 100%;
    }

    .patron-image img {
        max-width: 280px;
        aspect-ratio: auto; /* Preserve original proportions for the art */
    }

    /* Patron specific */
    .patron-image {
        order: -1;
    }

    /* Carousel */
    .carousel-slide {
        width: 85vw; /* Almost full width on mobile */
        height: 380px;
    }
    
    .carousel-track {
        padding: 0 7.5vw; /* Center the first slide */
        gap: 15px;
    }

    .carousel-slide img {
        height: 100%;
    }

    /* Agenda */
    .schedule-day {
        font-size: 2.2rem;
    }

    .agenda-card h3 {
        font-size: 1.5rem;
    }

    .agenda-card .day-name {
        font-size: 0.9rem;
    }

    /* Footer & Brasões */
    .brasaos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-logo img {
        height: 100px;
    }

    /* WhatsApp Button positioning */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

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

/* --- Carousel Section --- */
.gallery-section {
    padding: 5rem 0;
    background: #fff;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 2rem;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 350px; /* Base width for desktop */
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    user-select: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.control-btn {
    background: var(--primary-navy);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .control-btn {
        width: 40px;
        height: 40px;
    }
}

.control-btn:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

/* --- Brasões Section --- */
.bracoes-section {
    padding: 5rem 2rem;
    background: var(--off-white);
    text-align: center;
}

.bracoes-grid {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
}

.brasao-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.brasao-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.brasao-item img {
    max-width: 150px;
    height: auto;
}

.brasao-item span {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    background: #083261; /* Um pouco mais escuro que o primary-navy */
    color: var(--white);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-logo img {
    height: 120px;
    margin-bottom: 2rem;
}

.footer-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-cross {
    height: 40px;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0; /* Reset margin since row handles it */
}

@media (max-width: 768px) {
    .footer-icons-row {
        gap: 1.5rem;
    }
    .footer-cross {
        height: 30px;
    }
}

.social-links a {
    font-size: 1.5rem;
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        /* Already handled by 992px media query, but ensuring display: flex is set for the container */
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-grid, .location-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}
/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-navy);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
    opacity: 0.7;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    background: var(--primary-red);
}

.back-to-top.visible {
    display: flex;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* --- Cloud Parallax Band --- */
.cloud-parallax {
    height: 100px;
    background-image: url('assets/sky_background.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 1rem 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}
