/* Header & Navigation matching Gonzalez Driving School reference */
.gds-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    width: 100%;
    z-index: 1030;
    transition: box-shadow 0.2s ease;
}

.gds-header.is-sticky-compact {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.gds-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: height 0.2s ease;
}

.gds-header.is-sticky-compact .gds-header-inner {
    height: 55px;
}

.gds-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.gds-logo-img {
    height: 90px;
    width: auto;
    max-width: 215px;
    object-fit: contain;
    transition: height 0.2s ease;
}

.gds-header.is-sticky-compact .gds-logo-img {
    height: 52px;
}

/* Desktop Navigation */
.gds-desktop-nav {
    display: flex;
    align-items: center;
}

.gds-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.gds-nav-item {
    position: relative;
}

.gds-nav-link {
    display: inline-flex;
    align-items: center;
    height: 51px;
    padding: 0 20px;
    margin: 0 2px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #444444;
    border: 2px solid transparent;
    border-radius: 5px;
    white-space: nowrap;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, height 0.2s ease;
}

.gds-header.is-sticky-compact .gds-nav-link {
    height: 40px;
    padding: 0 16px;
}

.gds-nav-link:hover,
.gds-nav-link:focus {
    border-color: var(--gds-navy);
    color: #444444;
}

.gds-nav-link.is-active,
.gds-nav-link.is-active:hover {
    background-color: var(--gds-navy);
    border-color: var(--gds-navy);
    color: #ffffff;
}

/* Dropdown Submenu */
.gds-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 2px;
    min-width: 230px;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-top: 2px solid var(--gds-navy);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    z-index: 1050;
}

.gds-nav-item:last-child .gds-dropdown-menu {
    left: auto;
    right: 2px;
}

.gds-has-dropdown:hover > .gds-dropdown-menu,
.gds-has-dropdown:focus-within > .gds-dropdown-menu,
.gds-has-dropdown.is-open > .gds-dropdown-menu {
    display: block;
}

.gds-dropdown-link {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #444444;
    border-bottom: 1px solid #f4f4f4;
}

.gds-dropdown-menu li:last-child .gds-dropdown-link {
    border-bottom: 0;
}

.gds-dropdown-link:hover,
.gds-dropdown-link:focus {
    background-color: #f7f9fc;
    color: var(--gds-navy);
}

/* Mobile Toggle & Drawer */
.gds-mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.gds-hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
}

.gds-hamburger-lines span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #444444;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gds-mobile-toggle.is-open .gds-hamburger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.gds-mobile-toggle.is-open .gds-hamburger-lines span:nth-child(2) {
    opacity: 0;
}

.gds-mobile-toggle.is-open .gds-hamburger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.gds-mobile-drawer {
    background-color: #ffffff;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.gds-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gds-mobile-nav-item {
    border-bottom: 1px solid #efefef;
}

.gds-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gds-mobile-link {
    display: block;
    flex: 1;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #444444;
}

.gds-mobile-link.is-active {
    color: var(--gds-navy);
    background-color: #f5f7fc;
}

.gds-mobile-subtoggle {
    background: transparent;
    border: 0;
    border-left: 1px solid #efefef;
    padding: 13px 18px;
    color: #555555;
    cursor: pointer;
}

.gds-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    border-top: 1px solid #efefef;
}

.gds-mobile-sublink {
    display: block;
    padding: 10px 20px 10px 34px;
    font-size: 13px;
    color: #555555;
    border-bottom: 1px solid #f0f0f0;
}

.gds-mobile-sublink:hover {
    color: var(--gds-navy);
}
