﻿/* ==========================================================
   gm-navbar.css — LEDC header + LMJ/LTJ/LHJ hero (clean final)
   ========================================================== */

/* --------------------- */
/*  Global tuneables     */
/* --------------------- */
:root {
    /* How far the LEDC logo should hang into the hero.
     Percentage of the logo's own height, so it scales with screen size. */
    --ledc-overlap: 28%;
}

/* --------------------- */
/*  Tabs (unchanged)     */
/* --------------------- */
.gm-tab {
    background-color: white;
    overflow: hidden;
    border-bottom: 1px solid #dee2e6;
    margin-top: 20px;
    display: flex;
    justify-content: center; /* centers the group as one unit */
    align-items: center;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    gap: 0; /* removes any flex gap if one exists */
    padding-left: 8px;
}


    .gm-tab button {
        background: #fff;
        cursor: pointer;
        margin-right: 4px; /* space between buttons (reduce as needed) */
        padding: 14px 16px;
        transition: .3s;
        font-size: 17px;
        border-top-left-radius: 4px !important;
        border-top-right-radius: 4px !important;
        flex: 0 0 auto; /* make buttons only as wide as their content */
        margin: 0 6px; /* small space between them */
        padding: 10px 16px; /* comfortable click area */
    }

        .gm-tab button:hover {
            background: #f1f1f1
        }

        .gm-tab button.active {
            font-weight: 600;
            border: 1px solid transparent;
            border-color: #dee2e6 #dee2e6 #fff;
            margin-bottom: -1px;
        }

.gm-tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

/* --------------------- */
/*  Fix tab text colors  */
/* --------------------- */
.gm-tab,
.gm-tab button,
.gm-tabcontent {
    color: #212529; /* same dark gray as nav links */
}

    .gm-tab button:hover {
        color: #212529; /* dark grey hover color */
    }

.gm-tabcontent {
    background-color: #ffffff; /* white background, readable text */
}

/* --------------------- */
/*  Header / Navbar      */
/* --------------------- */
.gm-nav {
    width: 100%;
    background: #fff !important;
    padding: 8px 12px;
    position: relative; /* positioning context for the logo */
    z-index: 10;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.gm-nav-div {
    display: flex;
    justify-content: flex-end !important; /* Always push to right */
    align-items: center;
    height: 116px; /* height of the white header bar */
    overflow: visible;
    padding-left: 12px;
    padding-right: 12px;
}

/* Remove the media query override that was causing issues */

/* Desktop: show the menu; Mobile: default collapsed */
.gm-navbar-collapse {
    display: none;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    flex-direction: column;
    background-color: white;
    padding: 12px 0;
}

    /* More specific selector to override Bootstrap's .show class */
    .gm-navbar-collapse.show {
        display: flex !important;
    }

@media (min-width: 992px) {
    .gm-navbar-collapse {
        align-items: center;
        width: 100%;
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
        padding: 0;
    }

    .gm-mobile-button {
        display: none !important;
    }

    .gm-nav {
        flex-direction: row;
    }
}

/* Hamburger button (mobile) */
.gm-mobile-button {
    width: 56px;
    height: 40px;
    background: #212529;
    border: 1px solid #ffffff6c;
    border-radius: 5px !important;
    padding: 12px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    transition: box-shadow .15s ease-in-out;
}

/* --------------------- */
/*  LEDC Logo            */
/* --------------------- */
/* The LEDC logo is a block placed as a sibling under .gm-nav-div.
   We anchor it to the bottom of the white bar and slide it down
   by a percentage of its own height, so the BLUE bar sits on the
   hero's top edge regardless of viewport width. */
.gm-header-logo {
    position: absolute;
    left: 0;
    bottom: 0; /* lock to bottom of white header */
    transform: translateY(var(--ledc-overlap));
    z-index: 9000;
    width: clamp(240px, 28vw, 480px);
    aspect-ratio: 577 / 423; /* keep correct proportions */
    background: url("/assets/images/ledclogo.png") left top / contain no-repeat;
    line-height: normal;
}

/* --------------------- */
/*  Menu links           */
/* --------------------- */
.gm-navbar-ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin: 0;
    gap: 0;
}

.gm-navbar-a {
    color: #212529 !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px;
    display: block;
    text-decoration: none;
}

    .gm-navbar-a:hover {
        color: #0d6f6d;
        transition: all .3s ease
    }

/* Dropdowns (optional) */
.gm-dropdown {
    position: relative
}

.gm-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 10rem;
    padding: 8px 0;
    margin: .25rem 0 0;
    font-size: 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    z-index: 1000;
}

.gm-dropdown-menu-a {
    display: block;
    width: 100%;
    padding: 6px 16px;
    color: #212529;
    text-decoration: none;
}

    .gm-dropdown-menu-a:hover {
        background: #f8f9fa
    }

.show {
    display: block;
}

/* --------------------- */
/*  Search UI            */
/* --------------------- */
.gm-form-control {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 16px;
    color: #212529;
    background: #D9F5F3;
    border: 1px solid #b5dedd;
    border-radius: 4px;
    margin-right: 8px;
}

.gm-btn-form-submit {
    width: 56px;
    height: 40px;
    background: #D9F5F3;
    border: 1px solid #b5dedd;
    border-radius: 5px !important;
    padding: 12px 4px;
    justify-content: center;
    display: flex;
    align-items: center;
    transition: box-shadow 0.15s ease-in-out;
}

/* --------------------- */
/*  Hero (LMJ)           */
/* --------------------- */
.gm-header-image-lmj {
    background: url("/assets/images/lmj_background.jpg") center / cover no-repeat;
    color: #fff;
    height: 440px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: visible;
    filter: brightness(.85);
}

    .gm-header-image-lmj::after {
        content: "";
        position: absolute;
        inset: 0;
        background: transparent; /* removed overlay for cleaner look */
        z-index: 0;
    }

/* LMJ500.png placement (left/center vertically) */
header .gm-header-image-lmj .gm-header-image-text {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    margin: 0;
    z-index: 1;
}

    header .gm-header-image-lmj .gm-header-image-text img {
        max-width: 100%;
        width: 180px;
        height: auto;
    }

/* --------------------- */
/*  Hero (LHJ)           */
/* --------------------- */
.gm-header-image-lhj {
    background: url("/assets/images/lhj_background.jpg") center / cover no-repeat;
    color: #fff;
    height: 440px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

    .gm-header-image-lhj::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(95, 94, 94, 0.5);
        z-index: 0;
    }

/* LHJ500.png placement (left/center vertically) */
header .gm-header-image-lhj .gm-header-image-text {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    margin: 0;
    z-index: 1;
}

    header .gm-header-image-lhj .gm-header-image-text img {
        max-width: 100%;
        width: 180px;
        height: auto;
    }

/* --------------------- */
/*  Hero (LTJ)           */
/* --------------------- */
.gm-header-image-ltj {
    background: url("/assets/images/ltj_background.jpg") center / cover no-repeat;
    color: #fff;
    height: 440px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

    .gm-header-image-ltj::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(95, 94, 94, 0.5);
        z-index: 0;
    }

/* LTJ500.png placement (left/center vertically) */
header .gm-header-image-ltj .gm-header-image-text {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    margin: 0;
    z-index: 1;
}

    header .gm-header-image-ltj .gm-header-image-text img {
        max-width: 100%;
        width: 180px;
        height: auto;
    }

.gm-header-image {
    background: url("/assets/images/iconect-resized.png") center / cover no-repeat;
    color: #fff;
    height: 440px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

    .gm-header-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(95, 94, 94, 0.5);
        z-index: 0;
    }

.gm-header-image-text {
    z-index: 1;
    font-family: "libre_franklinXL", sans-serif;
    font-size: 17px;
}

    .gm-header-image-text h1 {
        font-family: Oswald, sans-serif;
        font-size: 44px;
        font-weight: 700;
        text-transform: uppercase;
    }

.gm-header-list a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
}

    .gm-header-list a:hover {
        color: #0d6f6d;
        transition: all 0.3s ease;
    }

.gm-spacer {
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.gm-header-img {
    max-width: 100%;
}

/* --------------------- */
/*  Responsive tweaks    */
/* --------------------- */
@media (max-width: 1200px) {
    :root {
        --ledc-overlap: 32%;
    }
}

@media (max-width: 992px) {
    :root {
        --ledc-overlap: 28%;
    }

    .gm-header-image-lmj,
    .gm-header-image-lhj,
    .gm-header-image-ltj,
    .gm-header-image {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .gm-header-image-lmj,
    .gm-header-image-lhj,
    .gm-header-image-ltj,
    .gm-header-image {
        height: 280px;
    }

    header .gm-header-image-lmj .gm-header-image-text {
        left: 5%;
    }

        header .gm-header-image-lmj .gm-header-image-text img {
            width: 140px;
        }

    header .gm-header-image-lhj .gm-header-image-text {
        left: 5%;
    }

        header .gm-header-image-lhj .gm-header-image-text img {
            width: 140px;
        }

    header .gm-header-image-ltj .gm-header-image-text {
        left: 5%;
    }

        header .gm-header-image-ltj .gm-header-image-text img {
            width: 140px;
        }
}

@media (max-width: 600px) {
    /* Reduce nav height on mobile to minimize whitespace */
    .gm-nav-div {
        height: 60px; /* Further reduced from 80px */
        padding: 4px 8px; /* Tighter padding */
    }

    .gm-mobile-button {
        margin: 8px; /* Reduce button margin */
    }

    /* On small screens, position logo absolutely to minimize whitespace */
    .gm-header-logo {
        position: absolute;
        left: 8px;
        top: 8px; /* Small gap from top */
        transform: none;
        width: 140px; /* Smaller on mobile */
        margin: 0;
        display: block;
        z-index: 9000;
    }

    /* Add padding to nav to make room for logo */
    .gm-nav {
        padding-top: 100px; /* Make room for logo above */
    }

    .gm-header-image-lmj,
    .gm-header-image-lhj,
    .gm-header-image-ltj,
    .gm-header-image {
        height: 260px;
    }

    .gm-navbar-ul {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Keep LMJ500 logo positioned on left, not centered */
    header .gm-header-image-lmj .gm-header-image-text {
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        text-align: left;
    }

        header .gm-header-image-lmj .gm-header-image-text img {
            width: 120px;
        }
    /* Keep LTJ500 logo positioned on left, not centered */
    header .gm-header-image-ltj .gm-header-image-text {
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        text-align: left;
    }

        header .gm-header-image-ltj .gm-header-image-text img {
            width: 120px;
        }

    /* Keep LHJ500 logo positioned on left, not centered */
    header .gm-header-image-lhj .gm-header-image-text {
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        text-align: left;
    }

        header .gm-header-image-lhj .gm-header-image-text img {
            width: 120px;
        }

}
