/******************************************************************************
* Atherton Airport - Master Unified Stylesheet                                *
* Location: /css/default.css                                                  *
******************************************************************************/

/* --- ROOT VARIABLES --- */
:root {
    --primary: #000066;
    --accent: #FFCC00;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- BASE STYLES --- */
* { box-sizing: border-box; }

body {
    background: url('../images/atherton/Sky2.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary);
    line-height: 1.6;
    /* Prevent horizontal scroll on the whole page */
    overflow-x: hidden; 
}

/* --- NAVIGATION BAR & BLUR EFFECT --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.brand h1 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- MENU LINKS --- */
.dynamic-menu { display: flex; gap: 15px; }

.menu-button {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.3s;
}

.menu-button:hover { background: rgba(0,0,102,0.1); }
.menu-button.active { background: var(--primary); color: white; }

/* --- MAIN CONTENT LAYOUT (The Stretch Fix) --- */
.main-body {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    /* Ensure flex children don't push parent wider than 1200px */
    width: 100%; 
}

.content-area {
    flex: 1;
    background: var(--glass);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    /* CRITICAL FIX: Allows flex child to be smaller than its content */
    min-width: 0; 
    /* Safety catch for any children that try to stretch */
    overflow: hidden; 
}

.sidebar-spacer { width: 200px; flex-shrink: 0; }

.page-header {
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

/* --- WELCOME SECTION --- */
.welcome-section { max-width: 900px; margin: 0 auto; }

.drop-cap {
    float: left;
    font-size: 3.5em;
    line-height: 0.8;
    padding-right: 8px;
    color: var(--primary);
    font-weight: bold;
}

.text-block p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    text-align: justify;
}

.info-card {
    background: rgba(0, 0, 102, 0.05);
    border-left: 5px solid var(--primary);
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

/* --- PHOTO STACK (Homepage) --- */
.photo-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.photo-stack img {
    width: 100%;
    max-width: 700px;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 4px;
}

/* --- BUTTONS --- */
.map-button {
    display: inline-block;
    padding: 12px 25px;
    background: #CC0000;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.map-button:hover { background: #E60000; transform: translateY(-2px); }

.call-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #28a745;
    color: white !important;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}
.call-button:hover { background: #218838; transform: translateY(-2px); }
.call-button.blue { background: #007bff; }

/* --- SERVICE & CONTACT PAGES --- */
.service-page h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}
.service-page > p {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.contact-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 450px;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid #ddd;
}
.contact-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
}
.contact-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.contact-body {
    padding: 25px;
    text-align: center;
}
.contact-body p {
    margin-top: 0;
}

/* --- GENERIC IMAGE ROW (2-column) --- */
.image-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.image-row img {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    width: 48%; /* Fallback for non-flex browsers and initial sizing */
    object-fit: cover;
}

/* --- INDEX PAGE STATS --- */
.stats-divider {
    width: 80%;
    max-width: 400px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin: 40px 0;
}
.index-footer-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- SECURITY --- */
.hp-field { display: none !important; }

.email-protected {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: inline-block;
}
.email-protected:hover { text-decoration: underline; color: var(--accent); }
.email-protected::before { content: attr(data-user); }
.email-protected::after { content: "@" attr(data-domain); }

/* --- MOBILE RESPONSIVENESS --- */
.mobile-nav-toggle { display: none; }

@media (max-width: 992px) {
    .sidebar-spacer { display: none; }
    
    .mobile-nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger, .hamburger::before, .hamburger::after {
        content: '';
        display: block;
        background: var(--primary);
        height: 3px;
        width: 25px;
        transition: 0.3s;
    }
    .hamburger::before { transform: translateY(-8px); }
    .hamburger::after { transform: translateY(5px); }

    .nav-menu {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-menu.active { display: flex; }
    .dynamic-menu { flex-direction: column; width: 100%; }
    .menu-button { padding: 15px; border-bottom: 1px solid #eee; text-align: left; }
    .text-block p { text-align: left; }
}

/* --- FOOTER --- */
img { max-width: 100%; height: auto !important; border-radius: 8px; }

.footer {
    text-align: center;
    padding: 40px 20px;
    color: lightblue;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}