/* --- 1. Core Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600&display=swap');

:root {
    --brand-red: #890600; 
    --brand-gold: #B2965A;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --dropdown-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    margin: 1rem;
}

/* --- 2. Header & Branding --- */
header {
    background-color: var(--bg-white);
    padding: 1.5rem 1rem;
    border-top: 4px solid var(--brand-red);
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}

.header-logo {
    height: 128px;
    width: auto;
}

.header-text h1 {
    margin: 0;
    color: var(--brand-red);
    font-size: 1.8rem;
    line-height: 1.2;
}

/* --- 3. Sticky Navigation --- */
.main-nav {
    background: var(--bg-white);
    position: sticky; /* Makes navigation stay at top */
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--brand-red);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* --- 4. Main Menu Items --- */
.main-nav a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--brand-red);
}

.main-nav > ul > li {
    position: relative; /* CRITICAL: Anchor for the submenu */
	display: inline-block;
	align-items: center;
}

/* --- 5. Submenu Indicator (The Arrow) --- */
.arrow {
    display: inline-block;
    width: 0; 
    height: 0; 
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-dark);
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.has-submenu:hover .arrow {
    border-top-color: var(--brand-red);
    transform: rotate(180deg); /* Flips arrow on hover */
}

/* --- 6. The Centered Dropdown --- */
.submenu {
    /* Hidden State */
    display: none; 
    visibility: hidden;
    opacity: 0;   
    position: absolute;
    top: 100%; /* Sits directly under the header */
    min-width: 220px;
    background: var(--bg-white);
    box-shadow: var(--dropdown-shadow);
    border-top: 3px solid var(--brand-red);
    z-index: 9999;
	flex-direction: column;
    transition: opacity 0.3s ease;
}

/* Show Submenu on Hover */
.main-nav > ul > li:hover > .submenu {
    display: flex;
}

.has-submenu:hover .submenu {
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
}

.submenu li a:hover {
    background: #fffafa; /* Subtle red hover tint */
}

/* --- 7. Responsive Utilities --- */
.responsive-box, .responsive-map {
    width: 100%;
    max-width: 800px;
    margin: 1.5rem auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #eee;
}

.responsive-box { aspect-ratio: 800 / 410; }
.responsive-map { aspect-ratio: 800 / 650; }

.responsive-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

footer {
    background: var(--bg-white);
    text-align: center;
    border: 3px solid var(--brand-red);
    padding: 0.5rem;
    position: sticky;
    top: 0;
    border-radius: 8px; /* Matches the clean, modern look */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    align-items: center; /* Vertically centers logo and text */
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px; /* Space between logo and text */
}

.footer-logo {
    height: 100px; /* Adjust this to your preference */
    width: auto;
    display: block;
}

.footer-text p {
    margin: 0;
    color: #555;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* --- 7. Hide Toggle Elements on Desktop --- */
.menu-toggle, .hamburger {
    display: none;
}

/* --- 8. Mobile Responsive Logic --- */
@media (max-width: 768px) {
    .header-content, .footer-content { flex-direction: column; text-align: center; }

    /* Show the hamburger icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 1rem;
        cursor: pointer;
        width: 50px;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--brand-red);
        border-radius: 3px;
    }

    /* Hide the actual menu initially */
    .main-nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-white);
        border-top: 1px solid #eee;
    }

    /* THE MAGIC: When checkbox is checked, show the menu */
    .menu-toggle:checked ~ ul {
        display: flex;
    }

    /* Ensure menu items take full width on mobile */
    .main-nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f4f4f4;
    }

    /* Adjust submenus for mobile (Stacking) */
    .submenu {
        position: static; /* Removes the "floating" behavior */
        transform: none;
        width: 100%;
        box-shadow: none;
        display: none; /* Submenus stay hidden until parent is clicked/hovered */
        background-color: #fcfcfc;
    }

    .has-submenu:hover .submenu {
        display: block;
    }

    /* Hide the checkbox itself */
    .menu-toggle {
        display: none;
    }
}

    
