/*
Theme Name: Cho-Golf-Theme
Theme URI: https://test.cho.golf/
Description: A Twenty Sixteen inspired child theme for Cho Golf with an additional bottom menu.
Author: Cho Golf
Template: twentysixteen
Version: 1.0.0
Text Domain: cho-golf-theme
*/

/* Keep Twenty Sixteen's readable editorial layout, but give Cho Golf a softer, sport-focused finish. */
body {
    background: #f4f1e8;
}

.site {
    background: #fffdf7;
}

.site-header {
    border-top: 6px solid #376b3d;
}

.site-branding .site-title a {
    color: #173f24;
}

.site-description {
    color: #5f6f58;
}

.top-navigation {
    border-bottom: 1px solid #ded7c7;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
}

.top-menu-toggle {
    display: none;
}

.top-navigation ul,
.bottom-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
}

.top-navigation li,
.bottom-navigation li {
    list-style: none;
    margin: 0;
}

.top-navigation a {
    color: #173f24;
    display: inline-block;
    font-family: Montserrat, "Helvetica Neue", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0;
    text-transform: uppercase;
}

.top-navigation a:hover,
.top-navigation a:focus {
    color: #7c6126;
}

a {
    color: #376b3d;
}

a:hover,
a:focus {
    color: #1f4c27;
}

.bottom-navigation {
    border-top: 1px solid #ded7c7;
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.bottom-navigation .bottom-menu,
.bottom-navigation .page_item {
    list-style: none;
}

.bottom-navigation a {
    color: #173f24;
    display: inline-block;
    font-family: Montserrat, "Helvetica Neue", sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0;
    text-transform: uppercase;
}

.bottom-navigation a:hover,
.bottom-navigation a:focus {
    color: #7c6126;
}

@media screen and (max-width: 56.875em) {
    .site-branding {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .site-branding .site-title {
        line-height: 1.15;
        margin-top: 0;
    }

    .top-menu-toggle {
        align-items: center;
        background: #173f24;
        border: 0;
        border-radius: 999px;
        color: #fffdf7;
        display: inline-flex;
        float: right;
        font-family: Montserrat, "Helvetica Neue", sans-serif;
        font-size: 0.875rem;
        font-weight: 700;
        gap: 0.65rem;
        letter-spacing: 0.08em;
        margin-bottom: 1rem;
        margin-left: 1rem;
        margin-right: 0;
        min-height: 44px;
        padding: 0.75rem 1rem;
        transform: translateY(-0.4rem);
        text-transform: uppercase;
        width: fit-content;
    }

    .top-menu-toggle-icon,
    .top-menu-toggle-icon::before,
    .top-menu-toggle-icon::after {
        background: currentColor;
        border-radius: 999px;
        content: "";
        display: block;
        height: 2px;
        transition: transform 160ms ease, opacity 160ms ease;
        width: 20px;
    }

    .top-menu-toggle-icon {
        position: relative;
    }

    .top-menu-toggle-icon::before,
    .top-menu-toggle-icon::after {
        left: 0;
        position: absolute;
    }

    .top-menu-toggle-icon::before {
        top: -6px;
    }

    .top-menu-toggle-icon::after {
        top: 6px;
    }

    .top-menu-toggle[aria-expanded="true"] .top-menu-toggle-icon {
        background: transparent;
    }

    .top-menu-toggle[aria-expanded="true"] .top-menu-toggle-icon::before {
        transform: translateY(6px) rotate(45deg);
    }

    .top-menu-toggle[aria-expanded="true"] .top-menu-toggle-icon::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    .top-navigation {
        border-bottom: 0;
        clear: both;
        display: none;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        text-align: right;
    }

    .top-navigation:has(#top-menu-panel.is-open),
    .top-navigation.is-open {
        display: block;
    }

    #top-menu-panel:not(.is-open) {
        display: none;
    }

    #top-menu-panel.is-open {
        display: flex;
        justify-content: flex-end;
    }

    .top-navigation ul,
    .bottom-navigation ul {
        gap: 0.5rem;
    }

    .top-navigation li,
    .bottom-navigation li {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .top-navigation li {
        flex-grow: 0;
        min-width: min(100%, 16rem);
    }

    .top-navigation a,
    .bottom-navigation a {
        background: #f4f1e8;
        border: 1px solid #ded7c7;
        border-radius: 999px;
        display: block;
        min-height: 44px;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .top-navigation ul {
        justify-content: flex-end;
        margin-left: auto;
        width: min(100%, 34rem);
    }
}

@media screen and (max-width: 30em) {
    .top-menu-toggle-label {
        display: none;
    }

    .top-navigation li,
    .bottom-navigation li {
        flex-basis: 100%;
    }
}
