:root {
    --navy: #0B1727;
    --navy-light: #1A2E4C;
    --gold: #C5A059;
    --gold-light: #DBC38C;
    --bg-color: #F8FAFC;
    --surface: #FFFFFF;
    --text-main: #334155;
    --text-light: #64748B;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -3px rgba(11, 23, 39, 0.08);
    --shadow-lg: 0 20px 40px -5px rgba(11, 23, 39, 0.12);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-top: 0;
}

/* Glassmorphic Sticky Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 23, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.nav-brand {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-brand span {
    color: var(--gold);
    }

.nav-cta {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-decoration: none;
    padding: 7px 19px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(7, 14, 23, 0.65) 0%, rgba(11, 23, 39, 0.75) 100%), url('assets/rosaries.jpg') center/cover no-repeat;
    padding: 220px 24px 160px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 1s ease-out forwards;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Container & Grid Adjustments */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 24px 80px; /* Reduced top padding */
}

section { 
    margin-bottom: 80px; /* Reduced from 100px */
}

.text-center { text-align: center; }
.section-title { font-size: 2.75rem; margin-bottom: 24px; }
.section-subtitle { font-size: 1.2rem; color: var(--text-light); max-width: 700px; margin: 0 auto 60px; }

/* The Mission Statement */
.mission-statement {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    margin-top: -80px; /* Keeps the overlap with hero */
    z-index: 20;
    border-top: 6px solid var(--gold);
    margin-bottom: 60px; /* Specifically tighter gap after this section */
}

.mission-statement p {
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--text-main);
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.mission-statement strong {
    color: var(--navy);
    font-weight: 700;
    border-bottom: 2px solid rgba(197, 160, 89, 0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--navy);
}

.feature-card p { margin: 0; color: var(--text-light); font-size: 1rem; }

.package-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

/* Message Cards */
.card-showcase {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card-img-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-img-wrapper:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery */
.gallery-wrap {
    position: relative;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.gallery-nav:hover { background: var(--gold); border-color: var(--gold); }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

/* Sponsorship Form Area */
.form-section {
    background: var(--surface);
    padding: 70px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: span 2; }

label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

input, select, textarea {
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: #f8fafc;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: white;
    box-shadow: 0 0 0 4px rgba(11, 23, 39, 0.05);
}

.total-box {
    background: #fdfaf3;
    border: 1px dashed var(--gold);
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-box span:first-child { color: var(--text-light); font-weight: 500; }
.total-box span:last-child { color: var(--navy); font-size: 1.5rem; font-weight: 700; }

.btn-submit {
    background: var(--navy);
    color: white;
    border: none;
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 32px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: var(--navy-light);
    box-shadow: 0 10px 20px rgba(11, 23, 39, 0.2);
}

/* Payment Area */
#payment-area { margin-bottom: 60px; padding-bottom: 40px; border-bottom: 2px dashed #e2e8f0; text-align: center; }

.payment-banner {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--navy);
    margin: 20px 0;
    font-weight: 700;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.payment-methods.single-column {
    display: block;
    max-width: 450px;
    margin: 0 auto;
}

.payment-methods.single-column .pay-card {
    height: auto;
}

.payment-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pay-tab {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: transparent;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.pay-tab:hover {
    border-color: #cbd5e1;
    color: var(--navy);
}

.pay-tab.active {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.pay-card {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}



.pay-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 20px 0;
    transition: var(--transition);
    min-height: 100px;
    box-sizing: border-box;
}

@keyframes shimmerWave {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.paypal-bg { 
    background: linear-gradient(110deg, #003087 35%, #0050d6 50%, #003087 65%);
    background-size: 200% 100%;
    animation: shimmerWave 6s linear infinite;
}
.paypal-bg:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0, 48, 135, 0.2); }

.zelle-tag-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 100px;
    box-sizing: border-box;
}

.zelle-tag-text {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px dashed #741bdf;
    user-select: all;
    cursor: text;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.qr-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.qr-wrapper img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    background: white;
}

footer {
    background: var(--navy);
    color: #94a3b8;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s all ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@keyframes subtleGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 196, 57, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(255, 196, 57, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 196, 57, 0); }
}

.breathing-btn {
    animation: subtleGlow 2.5s infinite;
    border-radius: 4px; /* Matches PayPal button default */
}

.breathing-btn:hover {
    animation: none;
    box-shadow: 0 4px 12px rgba(255, 196, 57, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Nav Fixes */
    .nav-content { padding: 0 12px; }
    .nav-brand { font-size: 1.15rem; letter-spacing: 1px; white-space: nowrap; }
    .nav-content > div { gap: 10px !important; }
    .nav-content a[href="about.html"] { font-size: 0.85rem !important; }
    .nav-cta { padding: 8px 14px; font-size: 0.85rem; white-space: nowrap; }

    /* About Page Mobile Fixes */
    .about-page-content { padding: 30px 20px; }
    .about-image, .about-text { min-width: 100%; }

    /* Zelle Tag Mobile Fix */
    .zelle-tag-text { font-size: 1.1rem; letter-spacing: 0px; word-break: break-all; }

    .hero { padding: 140px 20px 80px; }
    .hero h1 { font-size: 2.8rem; }
    .mission-statement { padding: 40px 24px; margin-top: -40px; margin-bottom: 40px; }
    .mission-statement p { font-size: 1.1rem; line-height: 1.7; }
    .form-section { padding: 40px 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 16px; }
    .form-group.full { grid-column: span 1; }
    .gallery-wrap { height: 400px; }
    
    /* Payment Flow Mobile Enhancements */
    .payment-tabs { flex-direction: column; gap: 12px; margin-bottom: 24px; }
    .pay-tab { width: 100%; padding: 14px; font-size: 1rem; }
    #fee-cover-label { white-space: normal !important; text-align: left; line-height: 1.5; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 23, 39, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    animation: slideUpModal 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounceIcon 0.6s 0.2s both;
}

@keyframes fadeInModal {
    to { opacity: 1; }
}

@keyframes slideUpModal {
    to { transform: translateY(0); }
}

@keyframes bounceIcon {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
