/* Base Styles */
:root {
    --color-primary: #8a2432; /* Deep Wine / Bordeaux */
    --color-text: #2c2a29; /* Dark warm gray */
    --color-bg: #f9f6f0; /* Cream/Beige */
    --color-light: #ffffff;
    --color-accent: #d4af37; /* Warm Gold */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography styles */
h1, h2, h3 {
    font-family: var(--font-heading);
}

/* Modal Overlay Restyle (Enter Screen) */
#overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

#overlay h1 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

#overlay p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

#enter-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: background-color 0.3s, transform 0.3s;
}

#enter-btn:hover {
    background-color: #6e1c28;
    transform: scale(1.05);
}

/* Header */
header {
    position: fixed;
    top: 0; width: 100%;
    background-color: rgba(249, 246, 240, 0.95);
    padding: 1.5rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    transition: color 0.3s;
    font-variant: small-caps;
}

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

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.slideshow::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s linear;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--color-light);
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* General Layout sections */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

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

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

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0 auto;
}

/* Our Story */
.story-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.story-text {
    flex: 1;
    font-size: 1.15rem;
}

.story-text p {
    margin-bottom: 1.5rem;
}

.story-text strong {
    font-weight: 600;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Benefactors */
#benfeitores {
    background-color: #f1ebd9; /* slightly darker beige */
}

.benefactors-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.benefactors-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 3rem !important;
}

.donation-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.option {
    background: var(--color-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    flex: 1;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.option h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.option p {
    font-size: 1rem;
    color: #666;
    flex-grow: 1;
}

.donate-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.donate-btn:hover {
    background-color: #b8972e;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 3rem 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 1.5s;
}

.delay {
    animation-delay: 2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Timeline Styles */
.timeline {
    border-left: 3px solid var(--color-accent);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.65rem;
    top: 0.3rem;
    width: 20px;
    height: 20px;
    background-color: var(--color-light);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
}

.timeline-item h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.timeline-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #555;
}

.timeline-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Gallery Styles */
.timeline-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.timeline-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.timeline-gallery img:hover {
    transform: scale(1.03);
}

.construcao-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.construcao-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.construcao-gallery img:hover {
    transform: scale(1.03);
}

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

.modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--color-bg);
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--color-primary);
}

.modal-content h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input:not([type="radio"]) {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.radio-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
    font-size: 0.95rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1ebe5d;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .story-content {
        flex-direction: column;
    }
    .donation-options {
        flex-direction: column;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    #overlay h1 {
        font-size: 2.2rem;
    }
}

/* Music Toggle */
#music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-light);
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    display: none;
}

#music-toggle:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transition: color 0.3s, transform 0.2s;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--color-accent);
    background: rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        font-size: 30px;
        padding: 0.5rem;
    }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}
