:root {
    --primary-color: #0F766E;
    --primary-color-transparent: #0f766dcc;
    --secondary-color: #14B8A6;
    --accent-color: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F0FDFA;
    --white: #FFFFFF;
    --teal-light: #CCFBF1;
}

html {
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

/* Ajuste para âncoras com offset para header fixo */
html {
    scroll-padding-top: 80px;
}


.navbar-brand img {
    max-height: 45px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831, 41, 55, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Adjust body padding for fixed header */
body {
    padding-top: 0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Hero Section Home */
.hero-section-home {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-attachment: fixed;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section-home > div {
    position: relative;
    z-index: 2;
}

.phone-mockup {
    max-width: 300px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.phones-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .phones-container {
        gap: 1rem;
    }

    .phone-mockup {
        max-width: 200px;
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.app-btn {
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.app-btn img {
    max-width: 200px;
    object-fit: contain;
}


.stats-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.features-section {
    padding: 80px 0;
    background: var(--white);
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.benefits-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.benefit-number {
    font-size: 10rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.9;
    margin-bottom: 1rem;
    margin-left: -1.5rem;
    position: absolute;
    top: -10px;
    text-align: center;
    z-index: -1;
}

.community-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.community-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.community-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.community-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intentions-section {
    padding: 80px 0;
    background: var(--white);
}

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

.intention-item {
    background: var(--teal-light);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.intention-item:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.intention-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
    transition: all 0.3s ease;
}

.intention-item:hover .intention-icon {
    transform: scale(1.1);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.donation-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-attachment: fixed;
    color: var(--white);
}

.donation-section .section-title {
    color: var(--white);
}

.donation-section .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.donation-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}


.qr-code-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px;
    background: var(--white);
}

.donation-divider {
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.pix-info {
    padding: 1rem;
}

.pix-key-container {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--teal-light);
}

.pix-key-display {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem;
    background: var(--white);
    border-radius: 5px;
    word-break: break-all;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 118, 110, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .donation-card {
        padding: 1.5rem;
    }
    
    .pix-key-display {
        font-size: 0.95rem;
    }
}



.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .app-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

.floating-animation {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.praying-hands-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Sponsors Carousel */
.sponsors-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.sponsors-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.sponsors-track {
    display: flex;
    animation: scroll-sponsors 30s linear infinite;
    width: calc(200px * 12); /* 6 sponsors * 2 (duplicados) * largura */
}

.sponsor-item {
    flex: 0 0 390px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.sponsor-item img {
    max-width: 390px;
    max-height: 73px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.sponsor-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll-sponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 6 - 120px)); /* Move metade da largura total */
    }
}

/* Pausar animação ao hover */
.sponsors-carousel:hover .sponsors-track {
    animation-play-state: paused;
}

/* Responsivo */
@media (max-width: 768px) {
    .sponsors-track {
        width: calc(390px * 12);
        animation: scroll-sponsors-mobile 25s linear infinite;
    }
    
    .sponsor-item {
        flex: 0 0 390px;
        margin: 0 10px;
    }
    
    .sponsor-item img {
        max-width: 390px;
        max-height: 73px;
    }
    
    @keyframes scroll-sponsors-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-390px * 4 - 120px));
        }
    }
}

/* Cookie Consent Bar */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color-transparent);
    color: white;
    padding: 15px 0;
    z-index: 1050;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

.cookie-bar p {
    font-size: 14px;
    margin: 0;
}

.cookie-bar a {
    color: #fff;
    text-decoration: underline;
}

.cookie-bar a:hover {
    color: var(--accent-color);
}

.cookie-bar .btn {
    font-size: 12px;
    padding: 6px 12px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsivo para cookie bar */
@media (max-width: 768px) {
    .cookie-bar {
        padding: 12px 0;
    }
    
    .cookie-bar .row {
        text-align: center;
    }
    
    .cookie-bar .col-lg-4 {
        margin-top: 10px;
    }
    
    .cookie-bar .btn {
        margin: 2px;
    }
}

/* Footer Legal Links */
.footer-section {
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-link {
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
}

/* Music Player Styles */
.music-player-card {
    background: linear-gradient(145deg, #0a4f49, #0d5c55);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.music-player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.music-player-header .music-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: pulse-music 2s ease-in-out infinite;
}

@keyframes pulse-music {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.music-player-header h5 {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.music-player-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.music-cover {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.music-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.music-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.7), rgba(20, 184, 166, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-cover:hover .music-cover-overlay {
    opacity: 1;
}

.music-cover:hover .music-cover-img {
    transform: scale(1.1);
}

.music-cover-overlay i {
    font-size: 2.5rem;
    color: var(--white);
}

.music-info {
    text-align: center;
}

.music-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.music-artist {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.btn-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #e88b00);
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.btn-play:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-play.playing {
    animation: pulse-play 1.5s ease-in-out infinite;
}

@keyframes pulse-play {
    0%, 100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(245, 158, 11, 0.7); }
}

.music-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.music-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.music-progress {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    overflow: visible;
}

.music-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #fbbf24);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.music-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.music-progress:hover .music-progress-handle,
.music-progress-handle:active {
    opacity: 1;
}

.music-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.music-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.btn-volume {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-volume:hover {
    background: rgba(255, 255, 255, 0.25);
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.music-volume:hover .volume-slider-container {
    width: 80px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Responsivo para Music Player */
@media (max-width: 576px) {
    .music-player-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .music-player-header h5 {
        font-size: 0.9rem;
    }
    
    .music-player-body {
        padding: 1.25rem;
    }
    
    .music-cover {
        width: 100px;
        height: 100px;
    }
    
    .music-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-play {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .music-progress-container {
        order: 3;
        width: 100%;
    }
    
    .music-volume {
        order: 2;
    }
    
    .volume-slider-container {
        display: none;
    }
}