/* Ministry Website - Main Stylesheet */
/* Warm, earthy color palette with professional design */

:root {
    /* Modern Color Palette - Cool & Professional */
    --primary-blue: #2563eb;
    --secondary-slate: #475569;
    --accent-indigo: #6366f1;
    --success-emerald: #059669;
    --warm-amber: #d97706;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-900: #0f172a;
    --border-light: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);

    /* Typography */
    --font-heading: "Georgia", serif;
    --font-body: "Source Sans Pro", sans-serif;

    /* Spacing */
    --section-padding: 4rem 0;
    --container-padding: 0 1rem;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--deep-brown);
}

h2 {
    font-size: 2rem;
    color: var(--primary-blue);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-indigo);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    overflow: visible;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    position: relative;
    gap: 1rem;
    overflow: visible;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 44px;
    line-height: 1;
}

nav a:hover,
nav a.active {
    background-color: var(--warm-beige);
    color: var(--deep-brown);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Main Content */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero {
    background: transparent;
    padding: var(--section-padding);
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.02) 0%,
        rgba(99, 102, 241, 0.03) 50%,
        rgba(37, 99, 235, 0.02) 100%
    );
    pointer-events: none;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    position: relative;
    z-index: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px -5px rgba(37, 99, 235, 0.3);
    color: var(--white) !important;
}

.btn-secondary {
    background: var(--warm-amber);
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2);
}

.btn-secondary:hover {
    background: #c2670b;
    box-shadow: 0 8px 25px -5px rgba(217, 119, 6, 0.3);
    color: var(--white) !important;
}

.btn-outline {
    background: none;
    background-image: none;
    background-color: transparent;
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--gradient-subtle);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
}

/* Team Member Cards */
.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h3 {
    color: var(--primary-blue);
}

.team-member .role {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member .contact-info {
    color: var(--text-dark);
}

.team-member .contact-info a {
    color: var(--primary-blue);
    font-weight: 500;
}

.team-member .contact-info a:hover {
    color: var(--accent-indigo);
}

/* Schedule Section */
.schedule {
    background-color: var(--warm-beige);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.schedule h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 600;
    color: var(--primary-brown);
}

/* Events */
.event-card {
    border-left: 4px solid var(--accent-indigo);
}

.event-date {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Messages/Media */
.message-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.message-item:last-child {
    border-bottom: none;
}

.message-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.audio-player {
    margin: 1rem 0;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Payment Buttons */
.payment-section {
    background-color: var(--soft-cream);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem 0;
}

.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.paypal-btn {
    background-color: #0070ba;
    color: white;
}

.paypal-btn:hover {
    background-color: #005ea6;
    color: white;
}

.cashapp-info {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    border: 2px solid var(--accent-gold);
}

.cashapp-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d632;
    margin: 0.5rem 0;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-blue);
    font-weight: 500;
}

/* Social Media */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #3b5998;
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 60px;
    text-align: center;
    vertical-align: middle;
}

.social-link:hover {
    background-color: #2d4373;
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: linear-gradient(
        135deg,
        var(--secondary-slate) 0%,
        var(--gray-900) 100%
    );
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--warm-beige);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--soft-cream);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-section a {
    color: var(--soft-cream);
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--warm-beige);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 245, 220, 0.2);
    color: var(--soft-cream);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        height: 60px;
    }

    .header-content {
        padding: 0.5rem 0;
        height: 60px;
        align-items: center;
    }

    main {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }

    .logo {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 1001;
        border-top: 1px solid var(--border-light);
        width: 100%;
        width: 100vw;
        max-width: 100%;
        max-width: 100vw;
        margin: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        width: 100%;
        margin: 0;
    }

    nav a {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        border-radius: 0;
        margin: 0;
        display: block;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
        font-weight: 500;
        transition: all 0.3s ease;
    }

    nav a:hover,
    nav a.active {
        background-color: var(--primary-blue);
        color: var(--white);
        transform: translateX(5px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .schedule-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .payment-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Ensure body doesn't have horizontal scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .section {
        padding: 2rem 0;
    }

    .card {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Enhanced mobile menu for very small screens */
    nav ul {
        padding: 0;
        max-height: calc(100vh - 60px);
    }

    nav a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .header-content {
        padding: 0.25rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mb-3 {
    margin-bottom: 3rem;
}

.mt-0 {
    margin-top: 0;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Calendar Styles */
.calendar {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.calendar-header {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calendar-nav button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.calendar-nav button:hover {
    background-color: var(--deep-brown);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--border-light);
}

.calendar-day {
    background-color: var(--white);
    padding: 1rem;
    text-align: center;
    min-height: 80px;
    position: relative;
}

.calendar-day.other-month {
    color: var(--text-light);
    background-color: var(--light-gray);
}

.calendar-day.has-event {
    background-color: var(--soft-cream);
}

.calendar-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

/* Search Styles */
.search-container {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-brown);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
