/* css/main.css */
html {
    height: 100%;               /* Allow full height inheritance */
}

body {
    min-height: 100vh;          /* At least full viewport height */
    margin: 0;
    display: flex;
    flex-direction: column;     /* Stack header → main → footer vertically */
}
/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* ── FIXED HEADER ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Top row: Logo left + Contact right */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 750px;
    margin: 0 auto;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    max-height: 80px;           /* Adjust based on your logo size */
    width: auto;
}

.contact-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.church-info {
    margin: 0;
    font-size: 0.6rem;
    color: #555;
    font-style: italic;
    text-align: left;
    max-width: 340px;
}

.contact-button {
    display: inline-block;
    background-color: #003366;
    color: white;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.5rem;
    transition: background-color 0.2s;
}

.contact-button:hover {
    background-color: #660000;
}

/* ── MENU BAR with background color ── */
nav.main-nav {
    background-color: #e9e8ef;          /* ← MENU BACKGROUND COLOR HERE */
    /* You can change it to: */
    /* #e8ecef     → light cool gray */
    /* #f8f1e9     → warm beige */
    /* #003366     → dark blue */
    /* #8B0000     → dark red (very bold) */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 1px 0;
}

/* Horizontal menu – this is the critical part */
.main-menu {
    list-style: none;                /* removes bullets */
    margin: 0 auto;
    padding: 0;
    display: flex;                   /* makes items horizontal */
    flex-wrap: wrap;                 /* allows wrapping on small screens */
    justify-content: center;         /* centers the whole menu */
    gap: 2rem;                       /* space between items */
    max-width: 1200px;
}

.main-nav .submenu ul,
.visit-left ul {
    list-style: none;          /* removes bullets / numbers */
    padding-left: 0;           /* removes default left indentation */
    margin-left: 0;
}

/* Individual menu items */
.main-menu > li {
    position: relative;              /* needed for dropdown positioning */
}

.main-menu > li > a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 5px 5px;
    display: block;
    white-space: nowrap;
    transition: color 0.2s;
}

.main-menu > li > a:hover {
    color: #8B0000;
}

/* Submenu (dropdown) */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 5px;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 10;
    list-style: none;
}

.main-menu > li:hover > .submenu,
.main-menu > li:focus-within > .submenu {
    display: block;
}

.submenu h3 {
    font-size: 0.8em;
    margin-left: 5px;
}

.submenu li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.8em;
}

.submenu li a:hover {
    background-color: #f8f8f8;
    color: #003366;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #003366;
    font-weight: bold;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* ── FOOTER ── */

/* Footer with three columns */
footer {
    background-color: #000; /* dark black background */
    color: #fff;
    padding: 15px 15px;
    text-align: center;
    font-size: 0.70rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 750px;
    margin: 0 auto 10px;
    gap: 20px;
}

.footer-column {
    flex: 1;
    text-align: left;
}

.footer-column h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ccc; /* light gray for headers */
}

.service-times {
    list-style: none;
    padding: 0;
}

.service-times li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time {
    background-color: #003366; /* dark red badge */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.footer-column p {
    margin-bottom: 10px;
}

.directions-link,
.email-link {
    color: #8B0000; /* red links */
    text-decoration: none;
}

.directions-link:hover,
.email-link:hover {
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #999;
}

/* Responsive – stack columns on smaller screens */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .service-times li {
        justify-content: center;
    }
    
    .footer-column p {
        text-align: center;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .contact-area {
        align-items: flex-start;
        margin-top: 10px;
    }

    .main-menu {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .hero-section {
        flex-direction: column;
        height: auto;
    }

    .blue-left, .blue-right {
        height: 60px;
    }

  .slideshow-wrapper {
        flex: none;
        height: 300px;
    }
}
