/* ==========================================
Custom Font Declaration
========================================== */
@font-face {
    font-family: 'MarkerFelt'; /* Give your font a name to use in CSS */
    src: url('/fonts/markerFelt.ttf') format('truetype'); /* Path to your .ttf file */
    font-weight: normal;
    font-style: normal;
}

/* ==========================================
Base & Body Styles
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #212529;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
Typography
========================================== */
h1 {
    color: #0d6efd;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ==========================================
Navigation
========================================== */
nav {
    display: flex;                    /* Enable flexbox inside nav */
    justify-content: space-evenly;   /* Distributes nav links evenly */
    align-items: center;            /* Centers links vertically inside nav */
    width: 100%;                      /* Forces nav to span full width of right container */
    padding: 15px;
    margin: 0;
}

nav a {
    color: #50ADCE;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Barlow Condensed', sans-serif;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-right: 0;                 /* Removed margin-right so spacing is handled by flexbox */
    font-size: 22pt;
    white-space: nowrap;             /* Prevents words within links from breaking onto multiple lines */
}

/* ==========================================
Hamburger Button Styles (Desktop Default: Hidden)
========================================== */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* Simple CSS Hamburger Icon */
.hamburger, 
.hamburger::before, 
.hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #50ADCE;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before, 
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ==========================================
Base Button Behavior (Placed BEFORE specific color variants)
========================================== */
.custom-button {
    display: inline-flex;         /* Flexbox for easy text/icon alignment */
    align-items: center;
    justify-content: center;

    /* Interactive affordance */
    cursor: pointer;              /* Changes mouse arrow to a pointer hand */
    user-select: none;            /* Prevents double-click text highlighting */
    -webkit-user-select: none;

    /* Base Visual Design */
    background-color: #D76A39;     /* Default Orange */
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    padding: 10px 24px;
    border-radius: 40px;

    /* Smooth hover effect transition */
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* Hover state */
.custom-button:hover {
    background-color: #c2592b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Active state (when user clicks down on it) */
.custom-button:active {
    transform: scale(0.98);       /* Subtle shrink effect when clicked */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Focus state (important for accessibility/keyboard navigation) */
.custom-button:focus-visible {
    outline: 3px solid #50ADCE;
    outline-offset: 2px;
}

/* ==========================================
Flexbox Layout (Desktop Default)
========================================== */
.parent-container {
    display: flex;
    width: 100%;
    min-height: 200px;
    justify-content: center;
    align-items: stretch;
}

.parent-container-section-2 {
    display: flex;
    width: 100%;
    min-height: 500px;
    justify-content: center;
    align-items: stretch;
    background-color: #ffffff;
}

.parent-container-section-3 {
    display: flex;
    width: 100%;
    min-height: 300px;
    justify-content: center;
    background-color: #9DBF34;
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
}

.parent-container-section-4 {
    display: flex;
    width: 100%;
    min-height: 300px;
    justify-content: center;
    align-items: center;
    background-color: #4D9AB6;
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
}

.parent-container-section-5 {
    display: flex;
    width: 100%;
    min-height: 300px;
    background-color: #16335F;
    padding-left: 10px;
    padding-right: 10px;
    flex-direction: column;
    align-items: center;
}

.child-container-section-5 {
    display: flex;
    width: 100%;
    max-width: 800px;
    min-height: 150px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;                       /* Even spacing between side-by-side buttons */
    color: #ffffff;
}

.child-container-section-2-left {
    flex: 0 0 50%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background-image: url('/images/heroImage-upscaled.png');
    background-size: contain;   /* Ensures the entire image fits inside without cropping */
    background-repeat: no-repeat; /* Prevents the image from tiling if the div is larger */
    background-position: center center;  /* Centers image horizontally & vertically */
}

.child-container-section-2-right {
    flex: 0 0 50%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    flex-direction: column;
    margin-top: 20px;
}

.child-container-left {
    flex: 0 0 20%;
    height: 200px;
    background-color: #114076;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.child-container-right {
    flex: 0 0 80%;
    height: 200px;
    background-color: #114076;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    width: 180px;
}

.section-2-head {
    font-family: 'MarkerFelt', sans-serif;
    font-size: 50pt;
    color: #D76A39;
    margin: 0;
}

.section-2-subtitle {
    font-family: 'Barlow Condensed', sans-serif;  
    font-size: 30pt;
    color: #9DBF34;
    margin: 0;
}

/* Orange Hero Button Styling */
.hero-button {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24pt;
    color: #ffffff;
    background-color: #D76A39;
    padding: 10px 30px;
    border: 1px solid #D76A39;
    border-radius: 40px;
    text-align: center;
    margin-bottom:10px;
    margin-top:10px;
}

.hero-button:hover {
    background-color: #c2592b;
}

/* Black Hero Button Variant (Overrides default background/border) */
.hero-button-black {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24pt;
    color: #000000;
    background-color: #9DBF34;
    padding: 10px 30px;
    border: 1px solid #000000;
    border-radius: 40px;
    text-align: center;
}

.hero-button-black:hover {
    background-color: #9DBF34;
}

.section-header {
    text-align: center;    
    font-size: 25pt;
    color: #000000;
    font-family: 'Barlow Condensed', sans-serif;
    margin-bottom: 0;
}

.section-header-white {
    text-align: center;
    font-size: 25pt;
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    margin-bottom: 0;
}

.about-image {
    width: 300px;
    margin-bottom: 10px;
}

/* ==========================================
Mobile Responsive Layout (768px and down)
========================================== */
@media (max-width: 768px) {
    .parent-container,
    .parent-container-section-2 {
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Top Bar: Center logo & anchor absolute hamburger button */
    .child-container-left {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        padding: 15px 20px;
        display: flex;
        justify-content: center !important;
        align-items: center !important;
        position: relative;
    }

    /* Hamburger Button in top right */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Anchor container for the floating overlay menu */
    .child-container-right {
        flex: 0 0 100%;
        width: 100%;
        height: 0;                /* Set height to 0 on mobile so it doesn't take up page layout space */
        padding: 0;
        position: relative;       /* Anchor point for floating nav */
        z-index: 1000;            /* Ensures container stays on top */
    }

    .child-container-section-2-left,
    .child-container-section-2-right {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-top: 0;
    }

    .child-container-section-2-left {
        min-height: 300px;
        background-position: center center !important;
    }

    .child-container-section-5 {
        flex-direction: column;    /* Stack buttons vertically on small mobile screens */
        width: 100%;
        gap: 15px;
    }

    .section-2-head {
        font-size: 8vw;
        text-align: center;
    }

    .section-2-subtitle {
        font-size: 6vw;
        text-align: center;
    }

    .hero-button,
    .hero-button-black {
        font-size: 6vw;
        width: 90%;
    }

    /* Floating Overlay Mobile Nav */
    nav,
    nav.nav-menu {
        display: none !important;
        position: absolute !important;  /* Floats the menu over content below */
        top: 0;
        left: 0;
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px 0;
        gap: 15px;
        background-color: #114076;      /* Matches top bar background */
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3); /* Optional: adds subtle drop shadow */
        z-index: 1001;                 /* Floats above everything else on page */
    }

    /* Nav link styles */
    nav a,
    nav.nav-menu a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        white-space: nowrap !important;
        font-size: 18pt !important;
    }

    /* Expand floating menu when active */
    nav.active,
    nav.nav-menu.active {
        display: flex !important;
    }
}
