/* Animations: base state */
[data-animate] {
    opacity: 0;
    animation-fill-mode: both;
}

/* Estado inicial específico para elementos com delay */
.hero-description[data-animate] {
    opacity: 0;
    animation-fill-mode: both;
}

/* Keyframes */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        transition: transform 0.3s ease-in !important;
    }
}

/* Active states */
.in-view[data-animate="fade-down"] {
    animation: fadeDown 0.8s ease-out forwards;
}

.in-view[data-animate="fade-up"] {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Parar animação após terminar e permitir transições */
.sacramento-card.in-view {
    animation: fadeUp 0.8s ease-out forwards;
}

.sacramento-card.in-view.animation-complete {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Delays específicos para o hero */
.hero-title[data-animate] {
    animation-delay: 0s;
}

.hero-description[data-animate] {
    animation-delay: 0.3s;
}

/* Animações para Sacramentos Section (baseado no TypeScript correto) */
.sacramentos .section-header[data-animate] {
    animation-delay: 0.5s;
}

.sacramentos .section-description[data-animate] {
    animation-delay: 0.7s;
}

.sacramento-card[data-delay="0.6"] {
    animation-delay: 0.6s;
}

.sacramento-card[data-delay="0.7"] {
    animation-delay: 0.7s;
}

.sacramento-card[data-delay="0.8"] {
    animation-delay: 0.8s;
}

/* Hover effects para cards (baseado no TypeScript) */
.sacramento-card.animation-complete:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animação do divider (baseado no TypeScript) */
.section-divider {
    transition: width 0.5s ease;
    width: 0;
    margin: 0 auto;
}

.in-view .section-divider {
    width: 130px;
}

/* Animações para Pedidos de Oração Section (baseado no TypeScript) */
.pedidos-oracao .section-header[data-animate] {
    animation-delay: 0.2s;
}

.pedidos-text[data-animate] {
    animation-delay: 0.3s;
}

.quote-box-section[data-animate] {
    animation-delay: 0.5s;
}

.pedidos-image[data-animate] {
    animation-delay: 0.6s;
}

.pedidos-form[data-animate] {
    animation-delay: 0.2s;
}

.form-group[data-delay="0.2"] {
    animation-delay: 0.2s;
}

.form-group[data-delay="0.3"] {
    animation-delay: 0.3s;
}

.form-group[data-delay="0.4"] {
    animation-delay: 0.4s;
}

.form-group[data-delay="0.5"] {
    animation-delay: 0.5s;
}

.form-button[data-animate] {
    animation-delay: 0.6s;
}

/* Parar animação e permitir transições (Pedidos de Oração) */
.pedidos-image.in-view.animation-complete {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: transform 0.3s ease;
}

.pedidos-image.in-view.animation-complete:hover {
    transform: scale(1.05) !important;
}

.form-input.in-view.animation-complete {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input.in-view.animation-complete:hover {
    border-color: #233b63 !important;
    box-shadow: 0 0 0 1px #233b63 !important;
}

.form-textarea.in-view.animation-complete {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea.in-view.animation-complete:hover {
    border-color: #233b63 !important;
    box-shadow: 0 0 0 1px #233b63 !important;
}

.form-button.in-view.animation-complete {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-button.in-view.animation-complete:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}

/* Animações para Eventos Section (baseado no TypeScript) */
.eventos .section-header[data-animate] {
    animation-delay: 0.3s;
}

.evento-card[data-delay="0.3"] {
    animation-delay: 0.3s;
}

.evento-card[data-delay="0.4"] {
    animation-delay: 0.4s;
}

.evento-card[data-delay="0.5"] {
    animation-delay: 0.5s;
}

.eventos-button[data-animate] {
    animation-delay: 0.6s;
}

/* Parar animação e permitir transições (Eventos) */
.evento-card.in-view.animation-complete {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: transform 0.3s ease;
}

.evento-card.in-view.animation-complete:hover {
    transform: translateY(-5px) !important;
}

.eventos-button.in-view.animation-complete {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eventos-button.in-view.animation-complete:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}

/* Animação do botão "Saiba mais" (baseado no TypeScript) */
.card-button {
    transition: transform 0.2s ease;
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Responsive Variables */
:root {
    --header-height: 143px;
    --container-padding: 20px;
    --section-padding: 60px 20px;
    --card-gap: 20px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --container-padding: 15px;
        --section-padding: 40px 15px;
        --card-gap: 15px;
    }
}

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

.logo {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #364153;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    background: #233b63;
    color: white;
}

.nav .contact-btn {
    background: #233b63;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #364153;
    cursor: pointer;
}

@media (max-width: 1100px) {

    .logo {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 10px;
        z-index: 1000;
    }

    .nav.active {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .nav a {
        padding: 12px 20px;
        text-align: center;
        width: 100%;
    }

    .pedidos-container::before,
    .pedidos-container::after {
        display: none;
    }
}

/* Main Content */
.main-content {
    margin-top: var(--header-height);
    padding-top: 0;
    padding-bottom: 0 !important;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7));
    z-index: 2;
}

.hero-content {
    text-align: start;
    color: white;
    max-width: 600px;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(16px, 5vw, 36px);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 60px;
}

.hero-divider {
    width: 130px;
    height: 5px;
    background: white;
    margin: 30px 0;
    border-radius: 3px;
}

.hero-description {
    font-size: clamp(12px, 3vw, 18px);
    line-height: 1.5;
    opacity: 0.9;
}

/* Hero Video Controls (progress bar + play/pause) */
.hero-video-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
}

.hero-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0%;
    background: #f5c518; /* amarelo */
    border-radius: 3px;
    transition: width 0.2s linear;
}

.hero-play-pause {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.hero-play-pause:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-play-pause .hidden {
    display: none;
}

@media (max-width: 768px) {
    .hero {
        min-height: 40vh;
    }

    .hero-video {
        object-position: 50% 30%;
    }
    
    .hero-content {
        padding: 0 15px;
    }

    .hero-video-controls {
        max-width: 100%;
    }

    .hero-play-pause {
        width: 38px;
        height: 38px;
    }
}

/* Sacramentos Section */
.sacramentos {
    background: linear-gradient(to bottom, #eef2f7, #dce7f5);
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(28px, 4vw, 41px);
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-divider {
    width: 130px;
    height: 5px;
    background: #FBBC04;
    margin: 0 auto 30px;
    border-radius: 3px;
}

.section-description {
    font-size: clamp(16px, 2.5vw, 22px);
    color: #4a5565;
    max-width: 1040px;
    margin: 0 auto;
}

.sacramentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-gap);
    max-width: 1200px;
    margin: 0 auto;
}

.sacramento-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 14px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border: none;
    outline: none;
    overflow: hidden;
}

.sacramento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    border: none;
    outline: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: clamp(20px, 3vw, 27px);
    font-weight: bold;
    color: #233b63;
    margin-bottom: 15px;
}

.card-description {
    font-size: clamp(14px, 2vw, 18px);
    color: #4a5565;
    line-height: 1.4;
    margin-bottom: 20px;
}

.card-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #233b63;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-button:hover {
    color: #1a5084;
    /* text-decoration: underline; */
}

.card-button::after {
    content: '→';
    transition: transform 0.3s ease;
}

.card-button:hover::after {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .sacramentos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Pedidos de Oração Section */
.pedidos-oracao {
    background: white;
    padding: var(--section-padding);
    position: relative;
}

.pedidos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Quadrados decorativos azuis com bordas arredondadas */
.pedidos-container::before,
.pedidos-container::after {
    content: '';
    position: absolute;
    width: 20vw;
    height: 20vw;
    background: #233b63;
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* Animar quadrados junto com os elementos da seção */
.pedidos-container.decorations-visible::before,
.pedidos-container.decorations-visible::after {
    opacity: 1;
}

/* Quadrado canto superior direito */
.pedidos-container::before {
    top: -20px;
    right: -20px;
}

/* Quadrado canto inferior esquerdo */
.pedidos-container::after {
    bottom: -20px;
    left: -20px;
}

.pedidos-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pedidos-text {
    font-size: clamp(12px, 1.8vw, 14px);
    color: #4a5565;
    line-height: 1.4;
}

.quote-box-section {
    padding: 27.074px 27.074px 0 32.489px;

    border-radius: 13.537px;
    border-left: 5.415px solid #233B63;
    background: #EFF6FF;
}

.quote-text-section {
    color: #364153;
    font-family: Arial;
    font-size: clamp(12px, 1.8vw, 14px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 15px;
}

.pedidos-image {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    box-shadow: 0 5px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 4px solid #fff;
}

.pedidos-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.pedidos-form {
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 14px 20px rgba(0,0,0,0.1);
    border: 1.354px solid #DBEAFE;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFF 100%);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: clamp(14px, 2vw, 18px);
    color: #364153;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5dc;
    border-radius: 9px;
    font-size: clamp(14px, 2vw, 16px);
    color: #333;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #233b63;
    box-shadow: 0 0 0 3px rgba(35,59,99,0.1);
}

.form-textarea {
    height: 120px;
    resize: none;
}

.form-button {
    width: 100%;
    background: linear-gradient(to bottom, #233b63, #1a5084);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 9px;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.form-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pedidos-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pedidos-image {
        height: 250px;
    }
}

/* Eventos Section */
.eventos-jesus-wrapper {
    position: relative;
}

.eventos-jesus-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.35;
    z-index: 0;
}

.eventos-jesus-wrapper > * {
    position: relative;
    z-index: 1;
}

.eventos {
    padding: var(--section-padding);
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-gap);
    max-width: 1200px;
    margin: 0 auto 40px;
}

.evento-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 13.537px 20.306px -4.061px rgba(0, 0, 0, 0.10), 0 5.415px 8.122px -5.415px rgba(0, 0, 0, 0.10);
    padding: 25px;
    border-top: 5px solid #233b63;
    transition: transform 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
}

.evento-date {
    font-size: 14px;
    color: white;
    background: linear-gradient(135deg, #233b63, #4a6fa5);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(35, 59, 99, 0.3);
}

.evento-title {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.evento-description {
    font-size: clamp(14px, 2vw, 18px);
    color: #4a5565;
    line-height: 1.4;
    margin-bottom: 20px;
}

.evento-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 2vw, 18px);
    color: #6a7282;
}

.evento-time::before {
    content: '🕒';
    font-size: 16px;
}

.eventos-button {
    display: block;
    margin: 0 auto;
    background: #233b63;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: bold;
    text-align: center;
    box-shadow: 0 5px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: 250px;
}

.eventos-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .eventos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, #15223a, #091220);
    color: #d2d2d2;
    padding: 30px 0;
}

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

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

.mb-4 {
    margin-bottom: 20px;
}

.mb-6 {
    margin-bottom: 30px;
}

/* Jesus Image Section */
.jesus-section {
    padding: 0 10px;
    text-align: center;
}

.jesus-container {
    max-width: 1200px;
    margin: 0 auto;
}

.jesus-image {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .jesus-section {
        padding: 40px 15px;
    }
}
