﻿/* =============================================
   VARIABLES & GLOBALS (Cinematic / Bento Theme)
   ============================================= */
:root {
    --navy: #1B2A47;
    --navy-dark: #0D1629;
    --gold: #D4AF37;
    --bg-page: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-subtle: #E2E8F0;
    --text-navy: #1B2A47;
}

body {
    background-color: var(--bg-page);
    font-family: 'Inter', system-ui, sans-serif;
    color: #334155;
}

.text-navy {
    color: var(--navy) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.bg-navy-soft {
    background-color: rgba(27, 42, 71, 0.05) !important;
}

.bg-gold-soft {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

.font-serif {
    font-family: "Lora", "Playfair Display", Georgia, serif;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

/* Global Buttons */
.btn-navy {
    background-color: var(--navy);
    color: white;
    border: none;
    transition: all 0.3s;
}

    .btn-navy:hover:not(:disabled) {
        background-color: var(--navy-dark);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(27, 42, 71, 0.2);
    }

.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    transition: all 0.3s;
}

    .btn-gold:hover:not(:disabled) {
        background-color: #F5D365;
        color: var(--navy);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    }

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    transition: all 0.3s;
}

    .btn-outline-navy:hover {
        background: var(--navy);
        color: white;
    }

/* =============================================
   1. CINEMATIC HERO SECTION
   ============================================= */
.cinematic-hero {
    height: 90vh;
    min-height: 700px;
    background: url('/images/church-bg-placeholder.jpg') center center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--gold);
}

    .cinematic-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
        z-index: 0;
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 22, 41, 0.95) 0%, rgba(27, 42, 71, 0.8) 100%);
    z-index: 1;
}

.hero-emblem {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.hero-display {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-family: "Lora", serif;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    max-width: 700px;
}

@media (max-width: 991px) {
    .hero-subtitle {
        margin: 0 auto;
        border-left: none;
        padding-left: 0;
    }
}

.btn-cinematic-gold {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.3rem;
    transition: all 0.3s;
}

    .btn-cinematic-gold:hover {
        color: #FFFFFF;
        border-bottom-color: var(--gold);
    }

/* Floating Action Bar */
.floating-access-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background: var(--navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
    width: 90%;
    max-width: 1000px;
    display: flex;
}

.access-item {
    flex: 1;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

    .access-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

/* =============================================
   2. REDESIGNED STORY SECTION (Rectangular Canvas)
   ============================================= */
.story-section {
    padding: 6rem 0 5rem 0;
    background: #FFFFFF;
}

.section-title {
    font-family: "Lora", Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* The Elegant Blended Frame - Rectangular Mounted Canvas */
.elegant-emblem-wrapper {
    position: relative;
    max-width: 420px;
    padding: 2rem;
    margin: 0 auto;
}

.elegant-emblem-frame {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px; /* Perfect soft rectangle shape */
    padding: 2.5rem;
    /* Delicate double-frame effect using box-shadow */
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3), /* Inner gold line */
    0 0 0 10px rgba(255, 255, 255, 0.9), /* White spacer */
    0 0 0 11px rgba(11, 27, 61, 0.1), /* Outer subtle navy line */
    0 25px 50px rgba(11, 27, 61, 0.08); /* Soft drop shadow blending into page */

    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.frame-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    /* Elliptical glow works better for rectangles than a circle */
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.08) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.6s ease;
    border-radius: 30px;
}

.emblem-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px; /* Softly rounded inside the frame */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.elegant-emblem-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5), /* Thicker gold hover */
    0 0 0 10px rgba(255, 255, 255, 0.95), 0 0 0 12px rgba(11, 27, 61, 0.15), 0 30px 60px rgba(11, 27, 61, 0.12);
}

    .elegant-emblem-frame:hover .frame-glow {
        opacity: 0.8;
    }

    .elegant-emblem-frame:hover .emblem-img {
        transform: scale(1.03);
    }

/* =============================================
   3. BENTO GRID (SERVICES)
   ============================================= */
.bento-section {
    background: var(--bg-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.bento-card {
    border-radius: 24px;
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

    .bento-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 20px 40px rgba(27, 42, 71, 0.1);
    }

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.bento-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.bento-card:hover .bento-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row !important;
    align-items: center;
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-card {
        min-height: 200px;
    }
}

/* =============================================
   4. TIMELINE ANNOUNCEMENTS
   ============================================= */
.timeline-section {
    background: #FFFFFF;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    background: var(--bg-light);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .timeline-item:hover {
        background: #FFFFFF;
        box-shadow: 0 15px 30px rgba(27, 42, 71, 0.05);
        border-color: var(--gold);
        transform: translateX(10px);
    }

.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

    .timeline-date .month {
        color: var(--gold);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.8rem;
    }

    .timeline-date .day {
        color: var(--navy);
        font-size: 2.5rem;
        font-weight: 800;
        line-height: 1;
        margin: 0.2rem 0;
        font-family: "Lora", serif;
    }

    .timeline-date .year {
        color: #94A3B8;
        font-weight: 600;
        font-size: 0.85rem;
    }

.timeline-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* =============================================
   5. REDESIGNED NEWSLETTER SECTION
   ============================================= */
.newsletter-showcase {
    position: relative;
    z-index: 2;
}

.newsletter-glass-card {
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.bg-shape-1, .bg-shape-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.bg-shape-1 {
    top: -50px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(212, 175, 55, 0.2);
}

.bg-shape-2 {
    bottom: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: rgba(41, 98, 255, 0.15);
}

/* =============================================
   6. FLOATING BENTO MODALS
   ============================================= */
.bento-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.bento-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--navy);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

    .bento-close:hover {
        background: var(--navy);
        color: white;
        transform: rotate(90deg);
    }

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}
