/*!
Theme Name: The Center by C12
Theme URI: https://core12.com
Author: Core Twelve
Author URI: https://core12.com
Description: Modular wordpress theme by Core Twelve
Version: 1.0.4
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: the-center
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

the-center is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
body {
    /* font-family: 'Founders Grotesk', sans-serif !important; */
    font-family: "arboria", sans-serif !important;
    position: relative;
    margin: 0;
    overflow-x: hidden;
}

body.nav-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    height: 100dvh;
}

html {
    overflow-x: hidden;
}

.mobile-logo-wrapper.secondary {
    /* background-color: #000; */
    padding-bottom: 41px;
    margin-bottom: 118px;
}

.mobile-logo-wrapper.solid {
    background: #000000;
}

.mobile-logo-wrapper.gradient {
    background: linear-gradient(to bottom, #000 2.74%, rgba(0, 0, 0, 0) 96.98%);
}

.mobile-logo-wrapper .logo-container {
    /* max-width: 1600px; */
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 3rem;
    width: 100%;
    position: relative;

}

/* .mobile-logo-wrapper.secondary .logo-container {
    justify-content: space-between !important;
} */

#header-logo svg.main {
    /* display: none; */
}

/* body:has(.mobile-logo-wrapper.secondary.solid) #page {
    padding-top: 118px;
} */

/* Dynamic page margin based on mobile wrapper height */
body:has(.mobile-logo-wrapper.secondary) #page {
    /* margin-top: 118px; */
}

body:has(.mobile-logo-wrapper:not(.secondary)) #page {
    /* margin-top: 118px; */
}

body:has(.desktop-nav.solid) #page {
    margin-top: 150px;
}

.desktop-nav {
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}


.desktop-nav.gradient {
    background: linear-gradient(to bottom, #000 2.74%, rgba(0, 0, 0, 0) 96.98%);
    border-bottom: none;
    transition: height 0.3s ease-in-out;
    height: 250px;
}

.desktop-nav.solid {
    background-color: #000;
    border-bottom: 1px solid #fff;
    transition: height 0.3s ease-in-out;
    height: 180px;
}

.desktop-nav.solid:hover {
    height: 300px;
}


body:has(.desktop-nav.solid) #page {
    margin-top: 150px;
}


.desktop-nav-content-wrapper {
    /* max-width: 1600px; */
    max-width: var(--content-max-width);
    /* padding: 12px var(--container-padding); */
    /* padding: 12px 110px; */
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.desktop-nav-content-wrapper .nav-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.nav-row.submenu a:hover {
    color: #CB3727;
}

.link-wrapper-submenu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 7rem 2rem 2rem 2rem;
    flex: 1;
    justify-content: space-between;
}

.nav-row.submenu a {
    color: white;
    text-decoration: none;
    font-family: Arboria;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    transition: color 0.2s ease-in-out;
}

.nav-row #header-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    gap: 15px;
}

#primary-menu {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: row;
    gap: 2rem;
}

#primary-menu {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#primary-menu .sub-menu {
    margin: 0;
    padding: 0;
    padding-inline-start: 0 !important;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem;
    display: none;
    z-index: 10;
    width: max-content;
    transition: display 0.2s ease-in-out;
}


.header-banner {
    background-color: #CB3727;
    width: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
}

.header-banner.mobile {
    display: none;
}

.header-banner-content {
    /* max-width: 1600px; */
    max-width: var(--content-max-width);
    padding: 12px 110px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.header-banner-content .separator {
    margin: 0 17px;
}

ul#primary-menu li:before {
    content: none
}

ul#primary-menu li {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    color: white;
    position: relative;
}

ul#primary-menu li:hover .sub-menu {
    display: block;
}

ul#primary-menu a:hover {
    color: #CB3727;
}

ul#primary-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    color: #FFF;
    font-family: Arboria;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    transition: color 0.2s ease-in-out;
}

.mobile-nav-sidebar .nav-content-wrapper {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
    /* position: relative; */
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    left: 100vw;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #000;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-nav-sidebar.active {
    left: 0;
}

.mobile-nav-sidebar .link-wrapper {
    padding-top: 160px;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gradient-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-logo-wrapper {
    position: absolute;
    z-index: 2;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    cursor: pointer;
}

.mobile-logo-wrapper svg,
.sidebar-close {
    margin-top: 41px;
    cursor: pointer;
    /* z-index: 1000; */
}

.sidebar-close {
    margin-right: 110px;
}

.mobile-logo-wrapper svg:hover {
    cursor: pointer;
}

.mobile-navbar__custom {
    /* margin-top: 160px; */
    color: white;
}

.mobile-navbar__custom a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease-in-out;
}

.mobile-navbar__custom a:hover {
    color: #CB3727;
}

.mobile-navbar__custom ul {
    list-style-type: none;
    padding: 0;
}

#mobile-primary-menu>li {
    font-size: 26px;
    margin-bottom: 34px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    line-height: 36px;
}

#mobile-primary-menu>li>ul>li {
    font-size: 20px;
    margin-left: 36px;
    list-style-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="14" viewBox="0 0 8 14" fill="none"><path d="M1.7323 0.507934L7.98372 6.75936L1.25142 13.4917L0.530104 12.7703C1.57201 10.7667 2.9345 6.03804 1.01098 1.22925L1.7323 0.507934Z" fill="white"/></svg>');
}

#mobile-primary-menu>li>ul>li:has(a:hover) {
    list-style-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="14" viewBox="0 0 8 14" fill="%23CB3727"><path d="M1.7323 0.507934L7.98372 6.75936L1.25142 13.4917L0.530104 12.7703C1.57201 10.7667 2.9345 6.03804 1.01098 1.22925L1.7323 0.507934Z" fill="%23CB3727"/></svg>');
}

#mobile-primary-menu>li>ul>li a {
    margin-left: 8px;
}


#footer {
    background-color: #000;
    /* background-color: #1D3B54; */
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    /* max-width: 1600px; */
    max-width: var(--content-max-width);
    /* padding: 12px var(--container-padding); */
    justify-content: space-between;
    margin: 0 auto;
    padding: 36px 0;
    z-index: 4;
    position: relative;
}

.footer-bg-wrapper {
    position: relative;
    width: var(--full-width);
}

#footer .footer-bg-graphic {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 1;
}

.footer-left {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.footer-right {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-col {
    flex: 1;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 12px;
    font-weight: 300;
    /* font-family: 'Founders Grotesk Text', sans-serif !important; */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo {
    width: 80px;
    height: 80px;
}

.center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.group-logo {
    width: auto;
    height: 35px;
}

.social-logo {
    width: 24px;
    height: 24px;
}

.mobile-social {
    display: none;
}

.footer-col-mobile {
    display: none;
}

.error-404 {
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#parking-link a {
    position: fixed;
    right: 0;
    top: 50%;
    background: white;
    color: #000;
    padding: 1.25rem 1.25rem;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    letter-spacing: calc(50/1000*1rem);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 99;
    color: #000 !important;
    text-decoration: none;
    border-radius: 30px 0 0 30px;
}

.footer-wrapper-mobile img,
.footer-wrapper-mobile svg,
.footer-wrapper img,
.footer-wrapper svg {
    z-index: 2;
    fill: black;
    background-color: black;
}

.mobile-logo-wrapper .nav-cp-branding {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    color: white;
}

.nav-cp-branding {
    /* display: none; */
}

.page-id-176 #header-logo svg.sub,
.page-id-7 #header-logo svg.sub {
    display: none;
}

.page-id-176 #header-logo svg.main,
.page-id-7 #header-logo svg.main {
    display: flex;
}

.page-id-176 .nav-cp-branding,
.page-id-7 .nav-cp-branding {
    display: flex;
}

.mobile-logo-wrapper {
    display: none;
}

#hamburger {
    display: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

#hamburger:hover {
    opacity: 0.8;
}

/* Default close icon size */
.sidebar-close {
    position: absolute;
    top: 41px;
    right: 0;
    z-index: 10000;
    cursor: pointer;
    margin: 0;
}

.sidebar-close:hover {
    opacity: 0.8;
}

@media (max-width: 590px) {

    .nav-content-wrapper {
        padding-left: 20px;
    }

    .nav-content-wrapper,
    nav {
        width: 100vw !important;
    }


    .mobile-logo-wrapper .nav-cp-branding {
        /* display: none; */
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .header-banner.desktop {
        display: none;
    }

    .header-banner.mobile {
        display: block;
    }

    #hamburger {
        display: block;
    }

    .mobile-logo-wrapper #header-logo svg {
        height: 46px;
        width: 46px;
    }

    .mobile-logo-wrapper {
        display: flex !important;
    }

    .desktop-nav {
        display: none !important;
    }

    #hamburger {
        width: 32px;
        height: 32px;
        /* margin-top: 41px; */
    }

    .sidebar-close {
        width: 32px;
        height: 32px;
        top: 41px;
        right: 0;
        margin: 0;
    }

    /* Adjust hamburger bars for smaller size */
    #hamburger rect {
        height: 5px;
    }

    #hamburger rect:nth-child(2) {
        y: 13;
    }

    #hamburger rect:nth-child(3) {
        y: 26;
    }

    body:has(.mobile-logo-wrapper) #page {
        margin-top: 0;
    }

    body:has(.desktop-nav.solid) #page {
        margin-top: 110px;
    }

    html {
        margin-top: 0 !important;
    }

    .sidebar-close {
        margin-right: 41px;
    }

    .mobile-logo-wrapper svg {
        margin-right: 0;
    }

    #parking-link a {
        padding: 0.75rem;
        font-size: 0.75rem;
        border-radius: 20px 0 0 20px;
    }

    .footer-col .social-logo {
        /* display: none; */
    }

    .footer-wrapper,
    .footer-left {
        flex-wrap: wrap;
    }

    .footer-col:first-of-type {
        flex: 100%;
    }

    .mobile-social {
        /* display: flex; */
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        /* flex: 100%; */
    }

    .footer-wrapper {
        display: none;

    }

    .footer-wrapper-mobile {
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 4;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .footer-col-mobile {
        display: flex;
        flex-direction: row;
        flex: 1;
        align-items: flex-start;
        justify-content: center;
        gap: 1rem;
        text-align: center;
        font-weight: 300;
        font-size: 12px;
        margin: 16px 0;
    }

    .center-logo {
        margin: 2rem 0;
    }

    .center-logo {
        width: 99px;
        height: auto;
    }

    .group-logo {
        width: 58px;
        height: 33px;

    }

    .social-logo {
        width: 22px;
        height: 22px;
    }

    .mobile-logo-wrapper .logo-container {
        padding: 0;
        justify-content: flex-end !important;
    }

    .mobile-navbar__custom a {
        justify-content: flex-start;
    }

    .link-wrapper {
        width: 80%;
        margin: 0 auto;
    }

    #footer .footer-bg-graphic {
        position: absolute;
        right: unset;
        top: unset;
        z-index: 1;
        bottom: 0;
        width: 100%;
        height: 70%;
    }

    .contact-info-wrapper .row>div {
        margin-top: 2rem;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .header-banner-content {
        padding: 8px var(--container-padding);
        font-size: 12px;
        flex-wrap: wrap;
        text-align: center;
        line-height: 0.3;
    }

    .header-banner-content .separator {
        margin: 0 0;
    }

    .gradient-overlay {
        display: none !important;
    }

    .mobile-nav-sidebar .nav-content-wrapper {
        padding: 0 15px;
    }

    .sidebar-close {
        top: 15px;
        right: 15px;
    }

    .link-wrapper-submenu {
        padding-top: 5rem;
        gap: 30px;
    }

    .link-wrapper-submenu a {
        font-size: 20px;
        line-height: 28px;
    }

    #hamburger {
        width: 28px;
        height: 28px;
        /* margin-top: 41px; */
    }

    .sidebar-close {
        width: 28px;
        height: 28px;
        top: 17px;
        right: 25px;
        margin: 0;
    }

    body:has(.mobile-logo-wrapper) #page {
        margin-top: 52px !important;
    }

    body:has(.mobile-logo-wrapper.gradient) #page {
        margin-top: 0 !important;
    }



    /* Adjust hamburger bars for mobile */
    #hamburger rect {
        height: 4px;
    }

    #hamburger rect:nth-child(2) {
        y: 12;
    }

    #hamburger rect:nth-child(3) {
        y: 24;
    }

    /* Scale down close icon strokes */
    .sidebar-close rect {
        height: 4px;
    }

    #hamburger,
    .sidebar-close {
        padding: 8px;
        margin: 8px 0 -8px -8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-close {
        margin: -8px -8px -8px 0;
    }

    .mobile-logo-wrapper .logo-container {
        padding: 0 !important;
    }

    .mobile-logo-wrapper.secondary {
        padding-bottom: 8px;
        margin-bottom: 0;
    }
}

/* Stack items vertically if needed on very small screens */
@media (max-width: 480px) {
    .header-banner-content {
        flex-direction: row;
        gap: 8px;
        padding: 8px var(--container-padding);
    }

    .header-banner-content .separator {
        /* display: none; */
        /* Hide separators when stacked */
    }

    .mobile-nav-sidebar .nav-content-wrapper {
        padding: 0 10px;
    }

    .link-wrapper-submenu {
        padding-top: 4rem;
        gap: 25px;
    }

    .link-wrapper-submenu a {
        font-size: 18px;
        line-height: 26px;
    }

    #hamburger {
        width: 24px;
        height: 24px;
        /* min-width: 24px;
        min-height: 24px; */
        /* margin-top: 41px; */
    }

    .sidebar-close {
        width: 24px;
        height: 24px;
        /* margin-top: 41px; */
    }

    /* Adjust hamburger bars for small mobile */
    #hamburger rect {
        height: 3px;
        width: 24px;
    }

    #hamburger rect:nth-child(2) {
        y: 10;
    }

    #hamburger rect:nth-child(3) {
        y: 20;
    }

    /* Scale down close icon for small mobile */
    .sidebar-close rect {
        height: 3px;
    }

    body:has(.mobile-logo-wrapper) #page {
        margin-top: 75px;
    }

    .mobile-logo-wrapper .logo-container {
        padding: 0 !important;
    }
}

/* Very small screens - 320px and under */
@media (max-width: 320px) {
    #hamburger {
        width: 22px;
        height: 22px;
        /* min-width: 22px;
        min-height: 22px; */
    }

    .sidebar-close {
        width: 22px;
        height: 22px;
        /* min-width: 22px;
        min-height: 22px; */
        top: 10px;
        right: 10px;
    }

    /* Adjust hamburger bars for very small screens */
    #hamburger rect {
        height: 3px;
        width: 22px;
    }

    #hamburger rect:nth-child(2) {
        y: 9;
    }

    #hamburger rect:nth-child(3) {
        y: 18;
    }
}

/* Ensure banner doesn't interfere with mobile navigation */
@media (max-width: 1220px) {
    .header-banner {
        position: relative;
        z-index: 999;
        /* Just below desktop nav */
    }

    /* Adjust body margin if needed when banner is present */
    body:has(.header-banner) .mobile-logo-wrapper {
        /* top: 40px; */
        /* Adjust based on banner height */
    }

    /* body:has(.desktop-nav.solid) #page {
        margin-top: 110px;
    } */
}