* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lato", sans-serif;
}

/* =============== HEADER =============== */

header {
    background: #1f8ed3;
    color: #ffffff;
    padding-bottom: 10px;
}

/* ================= DESKTOP (EXACTLY YOURS) ================== */

.desktop-header {
    max-width: 940px;
    margin: 0 auto;
    padding: 22px 0px 0px; /* match screenshot spacing */
    display: block;
}

.row-d {
    display: flex;
    width: 100%;
    align-items: center;
}

/* Row 1 — centered title, logo right */
.row-d-1 {
    position: relative;
    margin-bottom: 9px;
}

    .row-d-1 .site-title {
        font-size: 24px;
        font-weight: 600;
        font-family: 'Open Sans', sans-serif;
    }

    .row-d-1 .logo-icon {
        position: absolute;
        right: 101px;
        top: -10px;
        width: 55px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Row 2 – centered nav */
.row-d-2 {
    justify-content: center;
    margin-bottom: 16px;
}

.desktop-nav {
    display: flex;
    gap: 67px;
    margin-left: -42px;
}

    .desktop-nav a {
        color: #ffffff;
        font-size: 20px;
        text-decoration: none;
        font-family: "Open Sans";
    }

        .desktop-nav a.active::before {
            content: "• ";
        }

/* Row 3 – buttons right */
.row-d-3 {
    justify-content: flex-end;
}

.desktop-buttons {
    display: flex;
    gap: 18px;
}

.btn-pill {
    padding: 5px 55px;
    background: #4ba03c;
    border: 1px solid #ffffff;
    border-radius: 50px;
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    font-family: "Lato", sans-serif;
    line-height: 1.2;
    letter-spacing: -1px;
}

.btn-pill-2 {
    margin-right: 91px;
    padding: 5px 73px;
}

.btn-pill:hover {
    background: #728192;
}

/* ================= MOBILE (UPDATED LAYOUT ONLY) ================== */

.mobile-header {
    display: none;
    padding: 12px 16px 18px;
    flex-direction: column; /* rows stacked */
    gap: 8px;
}

.mobile-row {
    width: 100%;
}

/* Row 1: logo left, hamburger right */
.mobile-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo-wrap {
    display: flex;
    align-items: center;
    margin-left: 19px;
}

.mobile-logo-img {
    width: 50px;
    height: auto;
    display: block;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    margin-right: 25px;
}

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 5px;
        background: #46505b;
        margin: 7px 0;
    }

/* Row 2: centered title */
.mobile-row-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mobile-site-title {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

/* Row 3: buttons – left & right */
.mobile-row-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

    .mobile-row-buttons .btn-pill {
        padding: 8px 18px;
        font-size: 20px;
        letter-spacing: -0.5px;
        margin: 0; /* no big right margin like desktop */
    }

    .mobile-row-buttons .btn-pill-apply {
        margin-left: 23px;
    }

    .mobile-row-buttons .btn-pill-login {
        margin-right: 20px;
    }

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 65%;
    max-width: 260px;
    background: #87d95b;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding-top: 40px;
}

    .mobile-menu.open {
        transform: translateX(0);
    }

.mobile-menu-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.mobile-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

    .menu-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .footer-quick-cols {
        flex-direction: column;
    }

    .footer-brand-row {
        flex-direction: column-reverse;
        gap: 23px !important;
    }
}

@media (min-width: 768px) {
    .footer {
        padding-left: 20% !important;
    }
}

/* ===================== FOOTER (AACE STYLE) ===================== */

.footer {
    background: #f0f0f0;
    padding: 40px 20px 30px;
    color: #4a4a4a;
    font-family: "Lato", sans-serif;
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Top center link */
.footer-top-link {
    text-align: left;
    margin-bottom: 32px;
    margin-left: 12%;
}

    .footer-top-link a {
        font-size: 16px;
        text-decoration: underline;
        color: #46505b;
        font-family: "Lato", sans-serif;
    }

/* Middle row: quick links + locations + brand */
.footer-main-row {
    display: flex;
    align-items: flex-start;
    justify-content: left;
    column-gap: 95px;
    row-gap: 30px;
    flex-wrap: wrap;
}

/* Quick links block */
.footer-quick {
    text-align: left;
}

    .footer-quick h4 {
        font-size: 20px;
        font-weight: 300;
        text-decoration: underline;
        margin-bottom: 12px;
        margin-right: 20%;
        text-align: center;
        color: #46505b;
    }

.footer-quick-cols {
    display: flex;
    column-gap: 41px;
}

    .footer-quick-cols ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .footer-quick-cols li {
        font-size: 18px;
        font-weight: 300;
        line-height: 1.6;
        color: #46505b !important;
    }
        .footer-quick-cols li a {
            color: #46505b !important;
            text-decoration:none;
        }
        /* Locations block */
        .footer-locations {
            text-align: left;
            min-width: 160px;
        }

    .footer-locations h4 {
        font-size: 20px;
        font-weight: 300;
        text-decoration: underline;
        margin-bottom: 12px;
        color: #46505b;
    }

    .footer-locations p {
        font-size: 18px;
        font-weight: 300;
        margin: 0;
        color: #46505b;
    }
            .footer-locations p a {
                color: #46505b;
                text-decoration:none;
            }

/* Brand + social on the right */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 22%;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.footer-brand-logo {
    width: 64px;
    height: auto;
}

.footer-brand-text {
    font-size: 20px;
    font-weight: 600;
    color: #126193;
    font-family: 'Open Sans', sans-serif;
}

/* Social icons row */
.footer-social {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
}

.footer-social-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e8ad5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.2) 3px 3px 6px 0px;
    border-width: 4px;
    border-radius: 90px;
    border-color: rgb(255, 255, 255);
    border-style: solid;
}

    .footer-social-circle:hover {
        background: #575757;
    }

.footer-fb img {
    width: 30px;
    height: 37px !important;
}

.footer-social-circle img {
    width: 30px;
    height: 30px;
}

/* Bottom copyright */
.footer-bottom {
    margin-top: 52px;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    color: #777;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .footer-main-row {
        flex-direction: column;
        align-items: center;
    }

    .footer-quick,
    .footer-locations {
        text-align: center;
    }

    .footer-quick-cols {
        justify-content: center;
    }

    .footer-brand {
        margin-left: 0;
        text-align: center;
    }

    .footer-brand-row {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}
