/* AHEC Wix Replicated Stylesheet */
:root {
    --gold: #f0b540;
    --dark-bg: #0c0d0f;
    --light-bg: #f5f6f8;
    --text-dark: #222222;
    --text-light: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
.main-header {
    background: var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}
.header-logo-img {
    height: 60px;
    width: auto;
    border-radius: 4px;
}
.logo-text-group {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.1;
    text-transform: uppercase;
}
.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark-bg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}
.nav-link:hover {
    color: var(--dark-bg);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}
.hero-overlay-content {
    max-width: 900px;
    padding: 24px;
    z-index: 10;
}
.hero-title-large {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 8px;
}
.hero-subtitle-large {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 4px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}
.down-pointer-container {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-top: 30px solid var(--dark-bg);
    z-index: 20;
}

/* Gallery Band */
.gallery-band-section {
    background-color: var(--dark-bg);
    overflow: hidden;
    padding: 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}
.gallery-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Wavy / Jagged Clip borders */
.border-jagged-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 97% 96%, 94% 92%, 91% 96%, 88% 92%, 85% 96%, 82% 92%, 79% 96%, 76% 92%, 73% 96%, 70% 92%, 67% 96%, 64% 92%, 61% 96%, 58% 92%, 55% 96%, 52% 92%, 49% 96%, 46% 92%, 43% 96%, 40% 92%, 37% 96%, 34% 92%, 31% 96%, 28% 92%, 25% 96%, 22% 92%, 19% 96%, 16% 92%, 13% 96%, 10% 92%, 7% 96%, 4% 92%, 0 96%);
}
.border-jagged-top {
    clip-path: polygon(0 8%, 4% 4%, 7% 8%, 10% 4%, 13% 8%, 16% 4%, 19% 8%, 22% 4%, 25% 8%, 28% 4%, 31% 8%, 34% 4%, 37% 8%, 40% 4%, 43% 8%, 46% 4%, 49% 8%, 52% 4%, 55% 8%, 58% 4%, 61% 8%, 64% 4%, 67% 8%, 70% 4%, 73% 8%, 76% 4%, 79% 8%, 82% 4%, 85% 8%, 88% 4%, 91% 8%, 94% 4%, 97% 8%, 100% 4%, 100% 100%, 0 100%);
}

/* Section Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Preface Section (Gold BG) */
.preface-section {
    background-color: var(--gold);
    color: var(--dark-bg);
}
.preface-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}
.preface-title-col {
    flex: 1;
}
.preface-heading {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
}
.preface-citation {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-top: 8px;
    letter-spacing: 1px;
}
.preface-text-col {
    flex: 1.6;
}
.bible-quote {
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--dark-bg);
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--text-light);
}

/* History Section */
.history-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
}
.history-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}
.history-title-col {
    flex: 1;
}
.history-heading {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 0.95;
}
.heading-sub {
    color: var(--text-light);
}
.history-text-col {
    flex: 1.6;
}
.history-p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* Mission Section */
.mission-section {
    background-color: var(--light-bg);
}
.mission-flex {
    display: flex;
    gap: 60px;
}
.mission-title-col {
    flex: 1;
}
.mission-heading {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.mission-subheading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin-top: 8px;
}
.mission-text-col {
    flex: 1.6;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mission-item {
    background: var(--text-light);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-left: 5px solid var(--gold);
}
.mission-p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Churches Banner (Gold BG) */
.churches-banner-section {
    background-color: var(--gold);
    padding: 60px 24px;
}
.banner-heading {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
}
.banner-subheading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--dark-bg);
    margin-top: 4px;
}

/* Churches Directory Grid */
.churches-list-section {
    background-color: var(--text-light);
}
.churches-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}
.church-dir-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.church-dir-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--gold);
}
.church-dir-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 8px;
}
.church-loc {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.church-domain {
    font-size: 0.9rem;
    color: #666;
}

/* Contact Section */
.contact-section {
    background-color: var(--gold);
}
.contact-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}
.contact-form-side {
    flex: 1.4;
}
.contact-form-side form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-bg);
}
.form-group input, .form-group textarea {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: var(--text-dark);
    transition: all 0.25s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--dark-bg);
    background: #ffffff;
}
.contact-send-btn {
    align-self: flex-start;
    background: var(--dark-bg);
    color: var(--text-light);
    border: none;
    padding: 12px 48px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
}
.contact-send-btn:hover {
    background: var(--text-light);
    color: var(--dark-bg);
}

.contact-logo-side {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-logo-large {
    height: 160px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.contact-logo-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-light);
    line-height: 1;
}
.contact-logo-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-top: 8px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: rgba(255,255,255,0.6);
    padding-top: 60px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px 24px;
}
.footer-cols h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.footer-cols h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.org-sub {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
}
.footer-email-large {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 6px;
}
.footer-email-large a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-email-large a:hover {
    color: var(--text-light);
}
.policy-links {
    margin-top: 16px;
    display: flex;
    gap: 16px;
}
.policy-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.85rem;
}
.policy-links a:hover {
    color: var(--text-light);
}
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 24px;
    font-size: 0.8rem;
    text-align: center;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.success-message-modal, .policy-modal {
    background: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.8rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #999;
}
.close-modal-btn:hover {
    color: var(--dark-bg);
}
.success-icon {
    font-size: 3.5rem;
    color: #2ecc71;
    margin-bottom: 16px;
}
.cta-button {
    background: var(--gold);
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}
.close-success-cta-btn {
    background: var(--dark-bg);
    margin-top: 20px;
}
.policy-scroll-content {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 16px;
    padding-right: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media(max-width: 992px) {
    .preface-flex, .history-flex, .mission-flex, .contact-flex {
        flex-direction: column;
        gap: 32px;
    }
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-title-large {
        font-size: 4rem;
    }
    .hero-subtitle-large {
        font-size: 2.2rem;
    }
    .preface-heading, .history-heading, .mission-heading {
        font-size: 3.5rem;
    }
    .main-header .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
