:root {
    --header-yellow: #f6d600;
    --text: #1a1a1a;
    --button-red: #e2392f;
    --button-red-hover: #e71d15;
    --panel-shadow: rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
}

.page {
    width: 100%;
    position: relative;
}

.footer {
    background: #1f1a1c;
    color: #ffffff;
    padding: 48px 56px 22px;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.92fr 1.2fr;
    gap: 110px;
    align-items: start;
}

.footer-title {
    margin: 0 0 22px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 500;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 54px;
}

.footer-link,
.footer-text,
.footer-location-text {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
}

    .footer-link:hover,
    .footer-address:hover,
    .footer-phone:hover {
        color: #f13e33;
        text-decoration: none;
    }

.footer-social {
    display: inline-flex;
    width: 24px;
    height: 24px;
    color: #ffffff;
    text-decoration: none;
    margin-top: -8px;
    margin-bottom: 30px;
}

    .footer-social svg {
        width: 16px;
        height: 16px;
        display: block;
    }

.hours-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hours-group,
.footer-location {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hours-label,
.footer-location-name {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 2px;
}

.footer-location-name {
    margin-bottom: 6px;
}

.footer-address,
.footer-phone {
    color: #f13e33;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
}

.footer-locations {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.footer-bottom {
    max-width: 1240px;
    margin: 90px auto 0;
    text-align: center;
}

.footer-copy {
    font-size: 10px;
    line-height: 1.4;
    opacity: 0.95;
}

.header {
    width: 100%;
    min-height: 106px;
    background: var(--header-yellow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 47px 13px 48px;
    gap: 18px;
    position: relative;
    z-index: 20;
}

.brand {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
}

    .brand svg {
        width: 120px;
        height: auto;
        display: block;
    }

    .brand img {
        width: 140px;
        max-height: 50px;
        object-fit: contain;
        display: block;
    }

.locations {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 24px;
    min-width: 0;
    padding: 0 6px;
}

.location {
    display: inline-grid;
    grid-template-columns: max-content max-content;
    grid-template-rows: auto auto;
    align-items: start;
    white-space: nowrap;
    row-gap: 2px;
}

    .location .city {
        grid-column: 1;
        grid-row: 1;
        font-size: 18px;
        font-weight: 300;
        line-height: 1;
    }

    .location .phone {
        grid-column: 2;
        grid-row: 2;
        font-size: 18px;
        font-weight: 300;
        line-height: 1;
        text-decoration: none;
        color: var(--text);
    }

.actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    white-space: nowrap;
    padding-left: 6px;
}

.contact-link {
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
}

    /* hover effect for header menu */
    .contact-link:hover {
        color: var(--button-red);
    }

.location .phone:hover {
    color: var(--button-red);
}

.social-link {
    width: 42px;
    height: 42px;
    border: 2px solid #151515;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #151515;
    text-decoration: none;
    flex: 0 0 42px;
}

    .social-link svg {
        width: 15px;
        height: 27px;
    }

.apply-btn {
    min-width: 130px;
    height: 52px;
    border-radius: 4px;
    background: var(--button-red);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0 18px;
}

    .apply-btn:hover {
        background: var(--button-red-hover);
    }

.menu-toggle,
.mobile-menu,
.mobile-backdrop {
    display: none;
}

@media (min-width: 1281px) and (max-width: 1450px) {
    .header {
        padding: 8px 22px 10px;
        gap: 8px;
    }

    .brand {
        flex: 0 0 152px;
    }

        .brand img {
            width: 116px;
            max-height: 58px;
        }

    .locations {
        gap: 10px;
        padding: 0 2px;
    }

    .location .city,
    .location .phone,
    .contact-link {
        font-size: 13px;
    }

    .location {
        row-gap: 1px;
    }

    .actions {
        gap: 6px;
        padding-left: 0;
    }

    .social-link {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

        .social-link svg {
            width: 11px;
            height: 18px;
        }

    .apply-btn {
        min-width: 88px;
        height: 36px;
        font-size: 11px;
        padding: 0 9px;
    }
}

@media (max-width: 1280px) {
    .footer {
        padding: 44px 28px 22px;
    }

    .footer-inner {
        gap: 56px;
    }

    .footer-title,
    .footer-link,
    .footer-text,
    .footer-location-text,
    .hours-label,
    .footer-location-name,
    .footer-address,
    .footer-phone {
        font-size: 15px;
    }

    .header {
        padding: 10px 20px;
        gap: 10px;
    }

    .brand {
        flex: 0 0 165px;
    }

        .brand svg {
            width: 105px;
        }

        .brand img {
            width: 118px;
            max-height: 56px;
        }

    .locations {
        gap: 12px;
        padding: 0 2px;
    }

    .location .city,
    .location .phone,
    .contact-link {
        font-size: 14px;
    }

    .actions {
        gap: 7px;
        padding-left: 0;
    }

    .social-link {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

        .social-link svg {
            width: 12px;
            height: 20px;
        }

    .apply-btn {
        min-width: 98px;
        height: 40px;
        font-size: 12px;
        padding: 0 11px;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .header {
        padding: 8px 16px;
        gap: 6px;
    }

    .brand {
        flex: 0 0 138px;
    }

        .brand img {
            width: 104px;
            max-height: 42px;
        }

    .locations {
        gap: 8px;
        padding: 0 1px;
    }

    .location .city,
    .location .phone,
    .contact-link {
        font-size: 12px;
    }

    .location {
        row-gap: 1px;
    }

    .actions {
        gap: 5px;
        padding-left: 0;
    }

    .social-link {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

        .social-link svg {
            width: 10px;
            height: 16px;
        }

    .apply-btn {
        min-width: 84px;
        height: 34px;
        font-size: 11px;
        padding: 0 8px;
    }
}

@media (max-width: 900px) {
    .footer-title {
        font-size: 20px;
    }

    .footer {
        padding: 38px 20px 18px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .footer-links {
        gap: 20px;
        margin-bottom: 36px;
    }

    .hours-block,
    .footer-locations {
        gap: 24px;
    }

    .footer-bottom {
        margin-top: 52px;
    }

    body {
        background: #ffffff;
        display: block;
    }

    .page {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        background: transparent;
    }

    .header {
        width: 100%;
        min-height: 72px;
        padding: 4px 14px;
        border-radius: 0;
        align-items: center;
    }

    .brand {
        flex: 0 0 auto;
    }

        .brand svg {
            width: 84px;
        }

    .locations,
    .actions {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        margin-left: auto;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        padding: 0;
        cursor: pointer;
        color: rgba(26,26,26,0.6);
    }

        .menu-toggle svg {
            width: 26px;
            height: 26px;
            display: block;
        }

    .mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.22);
        opacity: 0;
        visibility: hidden;
        pointer-events: none; 
        transition: opacity 0.25s ease, visibility 0.25s ease; 
        z-index: 30;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        background: var(--header-yellow);
        box-shadow: none;
        opacity: 0;
        visibility: hidden; 
        pointer-events: none; 

        transform: translateY(24px);
        transition: opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1), transform 0.82s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.82s cubic-bezier(0.22, 1, 0.36, 1); /* UPDATE */

        z-index: 40;
        padding: 10px 20px 26px;
    }

    .mobile-menu-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .mobile-menu-brand svg {
        width: 74px;
        height: auto;
        display: block;
    }

    .mobile-menu-brand img {
        width: 110px;
        height: auto;
        display: block;
    }

    .mobile-close {
        width: 32px;
        height: 32px;
        border: 0;
        background: transparent;
        padding: 0;
        color: rgba(26,26,26,0.55);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .mobile-close svg {
            width: 24px;
            height: 24px;
            display: block;
        }

    .mobile-menu-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex: 1 1 auto;
        padding-top: 125px;
    }

    .mobile-locations {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .mobile-location {
        font-size: 8.5vmin;
        font-weight: 300;
        color: var(--text);
        text-decoration: none;
        line-height: 1.15;
    }

    .mobile-contact {
        margin-top: 14px;
        font-size: 8.5vmin;
        font-weight: 300;
        color: var(--text);
        text-decoration: none;
        line-height: 1.15;
    }

    .mobile-social {
        margin-top: 84px;
        width: 42px;
        height: 42px;
        border: 2px solid #151515;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #151515;
        text-decoration: none;
    }

    .mobile-cta-group {
        margin-top: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .mobile-social svg {
        width: 14px;
        height: 22px;
    }

    .mobile-cta {
        margin-top: 0;
        min-width: 132px;
        height: 37px;
        border-radius: 4px;
        background: var(--button-red);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        padding: 0 18px;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    #nav-toggle:checked ~ .mobile-backdrop {
        opacity: 1;
        visibility: visible; 
        pointer-events: auto;
    }

    #nav-toggle:checked ~ .mobile-menu {
        opacity: 1;
        visibility: visible; 
        pointer-events: auto; 
        transform: translateY(0);
    }
}
.main-content {
    background: #f6d600;
}
