/* Hide WP Admin Bar for debugging */

#wpadminbar {
    display: none !important;
}

:root {
    --header-height: 80px; /* Base header height */
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0px !important;
    height: calc(var(--header-height) + 20px);
}

/* Header container */
.header-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
    margin-left: 2rem;
    order: -1; /* Ensures logo is first */
}

.logo-link {
    display: block;
}

.mobile-logo {
    display: none;
}

.mobile-logo-size {
    height: 60px;
    width: auto;
}

.site-logo {
    height: 60px;
    width: auto;
}

/* Site title styles (if text logo is used instead of image) */
.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
}

/* Hide checkbox */
.nav-toggle {
    display: none;
}

/* Hamburger styles */
.nav-toggle-label {
    display: none;
    cursor: pointer;
    margin-left: 0;
    z-index: 1001;
    padding-left: 1rem;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: #333;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
    transition: top 0.15s ease 0.15s, opacity 0.15s ease;
}

.hamburger-inner::after {
    bottom: -10px;
    transition: bottom 0.15s ease 0.15s, transform 0.15s ease;
}

/* Hamburger Animation */
.nav-toggle:checked ~ .nav-toggle-label .hamburger-inner {
    transform: rotate(45deg);
    transition: transform 0.15s ease 0.15s;
}

.nav-toggle:checked ~ .nav-toggle-label .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.15s ease, opacity 0.15s ease 0.15s;
}

.nav-toggle:checked ~ .nav-toggle-label .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.15s ease, transform 0.15s ease 0.15s;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.primary-menu-container {
    display: flex;
    justify-content: center;
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

#primary-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#primary-menu a:hover {
    color: #0FB5B6;
}

/* Phone Number */
.phone-number {
    color: #0FB5B6;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    white-space: nowrap;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    padding-right: 1rem;
}

.header-actions .phone-number {
    display: block; /* Show in header actions on desktop */
}

.request-quote-button {
    background: #0FB5B6;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    padding-right: 2.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.request-quote-button:hover {
    background: #0ca2a3;
}

.button-arrow {
    width: 30px;
    height: 40px;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile Phone Number (hidden on desktop) */
.phone-number-mobile {
    display: none;
}

/* Responsive Design */

@media (max-width: 1400px) {
	#primary-menu {
    gap: 1rem;
	}
}
@media (max-width: 1330px) {
	
    :root {
        --header-height: 70px; /* Tablet header height */
    }
    
    .header-container {
        justify-content: space-between;
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
    }

    .site-branding {
        margin-left: 0;
        order: 3;
        flex: 0 0 auto;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .main-navigation {
        order: 1;
        flex: 0 0 auto;
        padding: 0;
        margin: 0;
        width: auto;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }

    .nav-toggle-label {
        display: block;
        margin: 0;
    }

    /* Move phone number out of header actions */
    .header-actions {
        order: 4;
        margin-right: 0;
        flex: 0 0 auto;
    }

    .header-actions .phone-number {
        display: none;
    }

    /* Create a standalone phone number */
    .phone-number-mobile {
        display: block;
        order: 2;
        color: #0FB5B6;
        text-decoration: none;
        font-weight: 600;
        font-size: 2rem;
        white-space: nowrap;
        margin: 0 1rem;
        flex: 0 0 auto;
    }

    .request-quote-button {
        order: 5;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        padding: 80px 2rem 2rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }

    .nav-toggle:checked ~ .nav-wrapper {
        left: 0;
    }

    .primary-menu-container {
        width: 100%;
    }

    #primary-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    #primary-menu li {
        width: 100%;
    }

    #primary-menu a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    .header-container {
       padding: 1rem;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    body {
        margin-top: 70px; /* Adjust based on header height at this breakpoint */
    }
}

@media (max-width: 1024px) {
    .phone-number {
        font-size: 1.1rem;
    }

    .request-quote-button {
        padding: 0.75rem 1rem;
        padding-right: 2rem;
    }

    .button-arrow {
        width: 25px;
        height: 33px;
        right: -12px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px; /* Mobile header height */
    }
    
    .header-container {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .site-logo {
        height: 35px;
    }

    .phone-number-mobile {
        font-size: 0.9rem;
        margin: 0 0.5rem;
    }

    .request-quote-button {
        padding: 0.5rem 0.75rem;
        padding-right: 1.5rem;
        font-size: 0.85rem;
    }

    .button-arrow {
        width: 18px;
        height: 24px;
        right: -9px;
    }

    body {
        margin-top: 60px; /* Adjust based on header height at this breakpoint */
    }
}


@media screen and (max-width: 768px) {
    .header-actions .quote-cta {
        height: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-logo {
        height: 60px;
    }

    .phone-number-mobile {
        font-size: 1.4rem;
    }
}



.phone-number-mobile-icon {
    display: none;
}

@media (max-width: 480px) {
/*     .quote-cta svg {
        width: 30px;
        right: -15px;
    } */

    .header-actions .quote-cta {
        width: 150px;
        font-size: 16px;
        padding: 0;
        padding-right: 10px;
    }

    .phone-number-mobile {
        font-size: 0.8rem;
        margin: 0 0.25rem;
    }

    .site-logo {
        height: 30px;
    }

    .request-quote-button {
        padding: 0.4rem 0.5rem;
        padding-right: 1.25rem;
        font-size: 0.8rem;
    }

    .button-arrow {
        width: 16px;
        height: 22px;
        right: -8px;
    }

    .mobile-logo {
        margin-right: 8px !important;
    }

    .phone-number-mobile-icon {
        display: block;
        order: 2;
    }

    .phone-number-mobile-icon i {
        color: #0FB5B6;
        fill: #0FB5B6;
        font-size: 24px;
        margin-left: 20px;
    }

    .phone-number-mobile {
        display: none !important;
    }

    .header-container {
        justify-content: space-evenly !important;
    }
    #site-navigation {
        margin: 0 !important;
    }
    .nav-toggle-label {
        padding: 0;
    }
}

.hamburger-menu {
    display: none;
}


.nav-wrapper {
    z-index: 9;
}