/* ============================
   EMVIA-ME do SANTUÁRIO
   Design System & Global Styles
   ============================ */

:root {
    /* Sacred Earth Tones */
    --gold: #C5A355;
    --gold-light: #D4B96A;
    --gold-dark: #A88B3D;
    --gold-glow: rgba(197, 163, 85, 0.3);
    --sand: #E8DCC8;
    --sand-light: #F3EDE1;
    --sand-lighter: #F9F5EE;
    --warm-brown: #5C3D2E;
    --warm-brown-light: #7A5A4A;
    --burgundy: #6B1D2A;
    --burgundy-deep: #4A1220;
    --burgundy-light: #8B2D3C;
    --cream: #FDF8F0;
    --parchment: #F0E6D3;
    --stone: #B8A99A;
    --charcoal: #2C2420;
    --charcoal-soft: #3D3530;
    --white: #FFFFFF;
    --text-primary: #2C2420;
    --text-secondary: #5C4A3E;
    --text-muted: #8B7B6E;

    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-max: 1200px;
    --container-padding: clamp(1.25rem, 4vw, 2.5rem);

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================
   Typography
   ============================ */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(44, 36, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.15em;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

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

.nav-menu a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand-light);
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.nav-menu a:hover {
    color: var(--gold);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--burgundy-deep) 40%, var(--warm-brown) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(197,163,85,0.08)"/></svg>');
    opacity: 0.6;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(44, 36, 32, 0.4) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem var(--container-padding);
    max-width: 800px;
}

.hero-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: var(--sand-light);
}

.title-emvia {
    font-size: clamp(2.5rem, 7vw, 5rem);
    letter-spacing: 0.25em;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.title-divider {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold);
    opacity: 0.7;
    letter-spacing: 0.3em;
    margin: 0.5rem 0;
}

.title-santuario {
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.35em;
    color: var(--sand-light);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 2.5rem;
}

.hero-verse {
    max-width: 500px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gold-glow);
    border-bottom: 1px solid var(--gold-glow);
}

.hero-verse p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic;
    color: var(--sand);
    margin-bottom: 0.5rem;
}

.hero-verse cite {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
}

.hero-cta {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 163, 85, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.3; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.8; }
}

/* ============================
   SECTION COMMON STYLES
   ============================ */
.section {
    padding: var(--section-padding) 0;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.section-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.title-ornament {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 0.75rem;
    opacity: 0.6;
}

/* ============================
   ABOUT SECTION
   ============================ */
.section-about {
    background: var(--cream);
    position: relative;
}

.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    padding-right: 1rem;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--warm-brown);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid rgba(197, 163, 85, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(92, 61, 46, 0.08);
    border-color: var(--gold-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 0.95rem;
    color: var(--warm-brown);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.feature-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================
   GALLERY SECTION
   ============================ */
.section-gallery {
    background: var(--charcoal-soft);
}

.section-gallery .section-tag {
    color: var(--gold-light);
}

.section-gallery .section-title {
    color: var(--sand-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 36, 32, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.25rem;
}

.gallery-overlay span {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================
   LIGHTBOX
   ============================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(20, 15, 12, 0.96);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    animation: lbFadeIn 0.3s ease;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--sand);
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 2rem;
    padding: 1rem;
    transition: opacity 0.3s;
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================
   DONATIONS SECTION
   ============================ */
.section-donations {
    background: linear-gradient(180deg, var(--cream) 0%, var(--sand-lighter) 100%);
}

.donations-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.donations-lead {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--warm-brown);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.donations-message cite {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 1.5rem;
}

.donations-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.pix-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(197, 163, 85, 0.2);
    box-shadow: 0 8px 40px rgba(92, 61, 46, 0.06);
}

.pix-card h3 {
    font-size: 1.3rem;
    color: var(--warm-brown);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.pix-qr {
    max-width: 220px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pix-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pix-key-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--sand-lighter);
    border: 1px solid var(--sand);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.pix-key-box span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-primary);
    word-break: break-all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold);
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    color: var(--charcoal);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--gold-dark);
}

.copy-feedback {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #2d8a4e;
    opacity: 0;
    transition: opacity 0.3s;
    height: 1.2rem;
}

.copy-feedback.show {
    opacity: 1;
}

.pix-thanks {
    font-size: 1rem;
    color: var(--warm-brown);
    margin-top: 1rem;
    font-style: italic;
}

/* ============================
   MATERIALS SECTION
   ============================ */
.section-materials {
    background: var(--parchment);
    position: relative;
    overflow: hidden;
}

.section-materials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><path d="M30 0L60 30L30 60L0 30Z" fill="none" stroke="rgba(197,163,85,0.06)" stroke-width="0.5"/></svg>');
    pointer-events: none;
}

.materials-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.materials-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.materials-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--warm-brown);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.materials-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--charcoal);
    padding: 3rem 0 0;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(197, 163, 85, 0.15);
}

.footer-title {
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-full-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--stone);
    margin-bottom: 1rem;
}

.footer-mission {
    font-size: 1rem;
    color: var(--sand);
    font-style: italic;
    line-height: 1.7;
    max-width: 450px;
}

.footer-contact h4 {
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--sand);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding-right: 0;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item.gallery-large {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 2 / 1;
    }

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(44, 36, 32, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s var(--ease-out);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.gallery-large {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .hero-verse {
        padding: 1.25rem 1rem;
    }

    .pix-card {
        padding: 2rem 1.25rem;
    }

    .pix-key-box {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
}
