
/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   TOP BLUE HEADER
========================= */
.site-header {
    background-color: #00539B;
    width: 100%;
}

.flag-row {
margin-left:20px;
margin-right:20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.flag-row img {
    max-height: auto;
    width: 70px;
}

/* Hide flags on smaller screens */
@media (max-width: 700px) {
    .flag-row {
        display: none;
    }
}

/* =========================
   GOLD TITLE BAR
========================= */
.title-bar {
    background-color: #CFAC52;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
	
	border-radius: 30px 30px;

  	overflow: hidden; /* ensures child elements respect rounding */

}

.title-bar img {
    height: 120px;
    width: auto;
    flex-shrink: 0;
}

/* Base AMVETS logo styling */
.amvets-logo {
    height: 120px;
    width: 120px;              /* enforce circle */
    object-fit: contain;

    background-color: #ffffff;
    border-radius: 50%;
    padding: 1px;

}

/* Left logo tweaks */
.left-logo {
    margin-right: 10px;       /* space away from title */
}

/* Right logo tweaks */
.right-logo {
    margin-left: 10px;        /* space away from title */
}

.title-text {
    text-align: center;
    color: #C6011F;
    font-weight: bold;
    flex-grow: 1;
}

.title-text .main-title {
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 6px; /* spacing between title lines */
}


/* Smaller logos and scaled text on mobile */
@media (max-width: 600px) {
    .title-bar {
        padding: 10px 12px;
    }

    .title-bar img {
        height: 40px;
    }

    .title-text .main-title {
        font-size: 20px;
    }

    .title-text .sub-title {
        font-size: 12px;
    }
}

/* =========================
   NAVIGATION BAR
========================= */
.navbar {
    background-color: #00539B;
    width: 100%;
    position: relative;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #00539B;
    color: #FFFFFF;
    border: none;
    width: 100%;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.nav-toggle:hover {
    background-color: #C6011F;
    color: #000000;
}

/* Hamburger bars */
.nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle-icon span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
}

/* Desktop menu */
.nav-menu {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    width: 100%;
}

.nav-menu > li {
    position: relative;
    flex: 1;
    text-align: center;
}

/* Top-level links and buttons */
.nav-menu > li > a,
.dropbtn {
    display: block;
    width: 100%;
    padding: 14px 10px;
    color: #FFFFFF;
    background-color: #00539B;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

/* Hover/focus styles */
.nav-menu > li > a:hover,
.nav-menu > li > a:focus,
.nav-menu > li:hover > .dropbtn,
.nav-menu > li:focus-within > .dropbtn,
.dropbtn:hover,
.dropbtn:focus {
    background-color: #C6011F;
    color: #000000;
    outline: none;
}

/* Dropdown panel */
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 100%;
    background-color: #CFAC52;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown-content a,
.dropdown-content p {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: #000000;
    background-color: #CFAC52;
    text-align: left;
    font-size: 14px;
    font-weight: normal;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: #C6011F;
    color: #000000;
    outline: none;
}

/* Desktop hover dropdown */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 800px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
        flex: none;
        text-align: left;
        border-top: 1px solid rgba(255,255,255,0.10);
    }

    .nav-menu > li > a,
    .dropbtn {
        text-align: left;
        padding: 14px 16px;
    }

    /* Mobile dropdowns become stacked sections */
    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        display: none;
    }

    /* Disable hover-only behavior on mobile; JS adds .open */
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }
}
/*END HEADER CSS */


/*START FOOTER CSS */

/* =========================
   FOOTER
========================= */
.site-footer {
    background-color: #00539B; /* same blue as header/nav */
    color: #FFFFFF;
    width: 100%;
    margin-top: 30px;
}

/* Container layout */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #CFAC52; /* gold strip like title bar */
    padding: 15px 20px;
    gap: 10px;	
border-radius: 0px 0px 30px 30px
  	overflow: hidden; /* ensures child elements respect rounding */
}

/* Columns */
.footer-col {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

/* Links */
.footer-link {
    color: #C6011F;
    text-decoration: none;
    font-size: 16px;
}

.footer-link:hover {
    color: #000000;
    text-decoration: underline;
}

/* Creed text styling */
#creed {
    color: #000000;
    font-size: 14px;
    white-space: pre-line; /* allows line break from \n */
}

/* MOBILE */
@media (max-width: 800px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 10px;
    }
}

#creed {
    color: #000000;
    font-size: 14px;
    white-space: pre-line;

    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#creed.show {
    opacity: 1;
}
