/* --- Variables & Core Styles --- */
:root {
    --primary-color: #0A2540; /* Deep Navy, matching Pastor's suit */
    --primary-color-dark: #07192b;
    --secondary-color: #D4AF37; /* Gold, matching Pastor's tie accent */
    --secondary-hover: #b8962c;
	--third-color: #ADD88E6; /*light blue for h3 */ 
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
h3 {
    font-family: var(--font-heading);
    color: var(--third-color);
    margin-bottom: 0.8rem;
}	
h1 { line-height: 1.2; }

p { margin-bottom: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 2rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-color-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-xl {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* --- Global Section Elements --- */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.badge {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-block;
    border: 1px solid var(--secondary-color);
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.logo-subtext {
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    color: var(--white);
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    display: block;
}

/* --- Hero Section: Background image integration (image_1.png) --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3.8rem;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Service Times Bar --- */
.service-times-bar {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 20px 0;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 50;
}

.times-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.time-item i {
    font-size: 1.4rem;
    color: rgba(10,37,64,0.7);
}

.time-slots {
    font-weight: 700;
}

.location-link a {
    font-weight: 700;
}

/* --- Pastoral Section: Pastor photo integration (image_0.png) --- */
.pastor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pastor-photo {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* --- About Section & Core Beliefs --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-card {
    border-top: 5px solid var(--secondary-color);
    text-align: center;
    padding-top: 50px;
    position: relative;
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 10px;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
}

.core-beliefs li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.core-beliefs i {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* --- Ministries Section --- */
.min-card {
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}

.min-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 30px;
}

.min-card h3 {
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.meeting-time {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Contact Section: Map & Building confirming sign photo --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
}

.info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    min-width: 50px;
    text-align: center;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    margin-bottom: 15px;
}

.contact-form textarea { resize: vertical; }

.sub-info {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: normal;
}

.map-container {
    height: 550px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

.map-confirmation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 180px;
    border: 2px solid var(--secondary-color);
}

.map-building-inset {
    border-radius: 4px;
    height: 100px;
    width: 100%;
    object-fit: cover;
}

.map-address-overlay {
    margin: 8px 0 0;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-content h3 {
    color: var(--white);
    font-size: 1.8rem;
}

.footer-brand h3, .footer-links h4 {
    color: var(--secondary-color);
}

.footer-brand p {
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.9;
}

.footer-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links li {
    margin-bottom: 12px;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icon i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
}

/* --- Responsive Adjustments (Mobile First) --- */
@media (max-width: 900px) {
    .pastor-grid, .about-grid, .contact-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 2.1rem; }
    
    .nav-container { position: relative; }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 30px 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .main-nav.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    
    .nav-list { flex-direction: column; align-items: center; width: 100%; gap: 15px; }
    
    .mobile-toggle { display: flex; }
    
    .hero-buttons { flex-direction: column; gap: 10px; width: 100%; align-items: center; }
    
    .service-times-bar .times-grid { flex-direction: column; text-align: center; gap: 15px; }
    
    .times-grid .location-link { text-align: center; width: 100%; justify-content: center; }
    
    .pastor-photo-container { max-width: 350px; margin: 0 auto 30px; }
    
    .footer-sections-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .social-icons { justify-content: center; }
    .social-icon i { font-size: 1.8rem; }
}
