/* ============================================
   CSS VARIABLES & BASE STYLES
   ============================================ */

:root {
    --white: #ffffff;
    --soft-blue: #e8f1f8;
    --medium-blue: #6ba3d4;
    --navy: #1e3a5f;
    --dark-navy: #0f1f3c;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --text-dark: #333333;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
}

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

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 2000;
    background-color: var(--navy);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   LAYOUT WRAPPER
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.navbar {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-shrink: 0;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    white-space: nowrap;
}

.nav-location {
    font-size: 0.9rem;
    color: var(--dark-gray);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--medium-blue);
    background-color: var(--soft-blue);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-sm);
        width: 100%;
        position: relative;
    }

    .logo-block {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 0.5rem;
    }

    .logo {
        font-size: 1.05rem;
        white-space: normal;
        line-height: 1.25;
    }

    .nav-location {
        font-size: 0.72rem;
        white-space: normal;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.28rem;
        width: 46px;
        height: 46px;
        border: 2px solid var(--navy);
        border-radius: 10px;
        background: var(--white);
        cursor: pointer;
        padding: 0.5rem;
        flex-shrink: 0;
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 3px;
        border-radius: 999px;
        background-color: var(--navy);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

        .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        background-color: var(--white);
        border-top: 1px solid var(--medium-gray);
        padding-top: 0.75rem;
        margin-top: 0.25rem;
        list-style: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
        white-space: normal;
        padding: 0.75rem 0.85rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding-inline: 0.75rem;
    }

    .logo {
        font-size: 0.95rem;
    }

    .nav-location {
        font-size: 0.68rem;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-container {
        gap: 0.75rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 500px;
    height: clamp(420px, 60vh, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 31, 60, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: var(--spacing-lg);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--soft-blue);
    margin-bottom: var(--spacing-2xl);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero {
        height: 350px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        gap: var(--spacing-sm);
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    min-height: 44px;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.95rem;
    }
}

/* ============================================
   HEADINGS
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.5rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    
}

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

h4 {
    font-size: 1.2rem;
    color: var(--navy);
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background-color: var(--soft-blue);
    padding: var(--spacing-2xl) 0;
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    font-size: clamp(1.05rem, 2vw, 1.8rem);
    line-height: 1.8;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .about-text {
        font-size: 1rem;
    }
}


.worship-times {
    padding: var(--spacing-2xl) 0;
    background-color: var(--white);
}

.worship-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.worship-card {
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--white) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--light-gray);
}


.worship-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--navy);
}

.worship-card .time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--medium-blue);
    margin-bottom: var(--spacing-md);
}

.worship-card .description {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.worship-description {
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--white) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--light-gray);
    font-size: 1.2rem;
}

.worship-description ul {
    display: block;
    text-align: left;
    margin: 0 auto;
    padding-left: 1.5rem;
    max-width: 100%;
}

.worship-description-title {
    font-size: 2.5rem;
    color: var(--navy);
    text-align: center;
    padding: 75px 0 0 0;
}


.more-info {
    padding: var(--spacing-2xl) 0;
    background-color: var(--soft-blue);
}

.more-info-content {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-2xl);
}

.column {
    flex: 1;
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    font-size: 1.2rem;
}

.column ul {
    display: block;
    text-align: left;
    margin: 0;
    padding-left: 1.25rem;
    max-width: 100%;
}

.column li {
    margin-bottom: var(--spacing-xs);
    padding-left: 0.25rem;
}

@media (max-width: 768px) {
    .more-info-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .column {
        width: 100%;
        font-size: 1rem;
    }
}

/* ============================================
   LEADERSHIP SECTION
   ============================================ */

.pastors {
    background-color: var(--light-gray);
    padding: var(--spacing-2xl) 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: 68% 27%;
    gap: 5%;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}



.What-We-Believe {
    background-color: var(--white);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.65;
}

.What-We-Believe h3 {
    text-align: center;
    color: var(--navy);
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
}

.What-We-Believe p {
    margin: 0 0 var(--spacing-md);
}

.What-We-Believe p:last-child {
    margin-bottom: 0;
}



.staff-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    padding: 3rem 1rem 3.5rem;
    height: auto;
}

.staff-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.staff-card h3 {
    padding: var(--spacing-md) 0 var(--spacing-xs);
    margin: 0;
    color: var(--navy);
}

.staff-card .position {
    color: var(--medium-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.staff-card .bio {
    padding: 0;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}


@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: 1fr;
        align-items: center;
        max-width: 750px;
        gap: var(--spacing-xl);
    }

    .staff-card {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .pastors {
        padding: var(--spacing-xl) 0;
    }

    .pastors > .container > h2 {
        font-size: 2.25rem;
    }

    .worship-description-title {
        font-size: 1.5rem;
        padding-top: 2.5rem;
    }

    .worship-description {
        font-size: 0.95rem;
    }

    .What-We-Believe {
        padding: 1.5rem;
        font-size: 0.95rem;
    }

    .staff-photo {
        width: 160px;
        height: 160px;
    }
}


.events {
    padding: var(--spacing-2xl) 0;
    background-color: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.event-card {
    background-color: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--navy);
}

.event-card h3 {
    margin-top: 0;
    color: var(--navy);
}

.event-card .event-date {
    color: var(--medium-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.event-card .event-time {
    color: var(--medium-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.event-card .event-description {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}


.watch-live {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 100%);
    padding: var(--spacing-2xl) 0;
    color: var(--white);
}

.watch-live h2 {
    color: var(--white);
}

.watch-live-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.watch-live-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}


.contact {
    padding: var(--spacing-2xl) 0;
    background-color: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-info {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    color: var(--navy);
}

.contact-details {
    margin-bottom: var(--spacing-2xl);
}

.contact-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--medium-gray);
}

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

.contact-item h4 {
    color: var(--navy);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--dark-gray);
    margin: 0;
}

.contact-item a {
    color: var(--medium-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.contact-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-direction: column;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 50%;
}

.map-container iframe {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    min-height: 300px;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
}


.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    margin: 0;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--soft-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }

    .container {
        padding: var(--spacing-md);
    }

    h2 {
        font-size: 2rem;
        margin-bottom: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

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

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

    .contact-buttons .btn {
        width: 100%;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--medium-blue);
    outline-offset: 3px;
}

img, iframe {
    max-width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .navbar, .footer {
        display: none;
    }
    
    body {
        font-size: 12px;
    }
}