/* Custom Theme Variables for Aloha Ke Akua Church */
:root {
    --primary-color: #15803d;
    --secondary-color: #f97316;
    --dark-color: #14532d;
    --light-bg: #fefdfb;
    --card-bg: #ffffff;
    --gradient-bg: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    --hero-btn-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    opacity: 0.8;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Badges & Accents */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0,0,0,0.05);
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--gradient-bg);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    font-weight: 700;
}

.section-title {
    font-size: 2.25rem;
    margin-top: 8px;
    font-weight: 800;
}

.section-header {
    margin-bottom: 50px;
}

/* Sticky Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    background: var(--white);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    transition: var(--transition-smooth);
}

.logo-text {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 550;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-bg);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.cta-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.donate-btn {
    background: var(--gradient-bg);
    color: var(--white);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.primary-cta {
    background: var(--hero-btn-gradient);
    color: var(--white);
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.outline-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.outline-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    background-color: var(--light-bg);
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-actions-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.secondary-link {
    font-weight: 600;
    color: var(--primary-color);
}

.secondary-link:hover {
    color: var(--dark-color);
    transform: translateX(4px);
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-img:hover {
    transform: scale(1.03);
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 14px;
}

.card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--gradient-bg);
    border-radius: 2px;
}

.about-paragraph {
    color: var(--text-light);
}

/* Events Section */
.events-section {
    background-color: var(--light-bg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.event-img-wrapper {
    position: relative;
    overflow: hidden;
}

.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--gradient-bg);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.event-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.event-info h3 {
    font-size: 1.25rem;
    font-weight: 750;
}

.event-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    flex-grow: 1;
}

.event-action-btn {
    padding: 10px;
    border-radius: 6px;
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.event-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Involvement Grid */
.involvement-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 50px;
}

.involvement-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.involvement-box h3 {
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.involvement-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 40px;
    background: var(--primary-color);
    border-radius: 2px;
}

.involvement-box p {
    color: var(--text-light);
}

.bank-info-container {
    background-color: var(--light-bg);
    padding: 18px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.bank-details-text {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--dark-color) !important;
    margin-top: 6px;
}

/* Footer Section */
.main-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    border-top: 4px solid var(--secondary-color);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.footer-heading {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    font-weight: 700;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-address p, .footer-rep p {
    margin-top: 4px;
}

/* Large Email Requirement */
.footer-email-large {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 6px;
    word-break: break-all;
    transition: var(--transition-smooth);
}

.footer-email-large a:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.legal-badge-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.heart-icon-svg {
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.ein-display {
    margin-top: 10px;
    color: var(--white);
    font-size: 1.1rem;
}

.policies-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.policy-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: inline-block;
    padding: 6px 0;
}

.policy-link:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    font-size: 0.85rem;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.scroll-top-btn {
    background: var(--gradient-bg);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.scroll-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.15);
}

/* MODAL WINDOWS SYSTEM */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contact Form Modal */
.contact-form-modal {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .contact-form-modal {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    background: #e2e8f0;
    color: var(--secondary-color);
}

.modal-body {
    padding: 40px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-family: var(--body-font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.15);
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: var(--gradient-bg);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.form-submit-btn:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-md);
}

/* Success Message Modal */
.success-message-modal {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .success-message-modal {
    transform: scale(1);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-message-modal h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.success-message-modal p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.close-success-cta-btn {
    background: var(--gradient-bg);
    color: var(--white);
    width: 100%;
}

/* Policy Modal Styling */
.policy-modal {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .policy-modal {
    transform: scale(1);
}

.policy-modal-body {
    padding: 40px;
}

.policy-modal-body h3 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.policy-scroll-content {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.policy-scroll-content h4 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.policy-scroll-content p {
    margin-bottom: 12px;
}

/* Mobile Navigation Modal */
.mobile-menu-modal {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: var(--white);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.active .mobile-menu-modal {
    transform: translateX(0);
}

.mobile-menu-logo {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.mobile-links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.mobile-link:hover {
    color: var(--primary-color);
}

.mobile-donate-btn {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-img {
        height: 380px;
    }
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .policies-column {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 50px 20px;
    }
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-text-content {
        text-align: center;
    }
    .hero-actions-container {
        justify-content: center;
    }
    .hero-img {
        height: 300px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .involvement-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .policies-column {
        grid-column: span 1;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 16px;
    }
    .modal-body {
        padding: 30px 20px;
    }
}
