/* Custom Header Styles */
:root {
    --header-height: 100px;
    --header-bg: #ffffff;
    --nav-link-color: #131613;
    --nav-link-hover: #005E50;
    --btn-bg: #F48700;
    --btn-text: #ffffff;
}

.mc--header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.mc--header.mc--header-hidden {
    transform: translateY(-100%);
}

.mc--header-container {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc--logo img {
    height: 40px;
    width: auto;
}

.mc--nav {
    display: flex;
    align-items: center;
}

.mc--nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 2rem;
}

.mc--nav-item {
    position: relative;
}

.mc--nav-item > a {
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
   
}

.mc--nav-item > a:hover {
    color: var(--btn-bg);
}

.mc--nav-item.active > a {
    color: var(--btn-bg);
}

.mc--nav-item.has-dropdown > a {
    display: flex;
    align-items: center;
}

.mc--nav-item.has-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 0.5rem;
    transition: transform 0.3s;
    display: inline-block;
    vertical-align: middle;
}

.mc--nav-item.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Styles */
.mc--nav-item.has-dropdown:hover .mc--dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mc--dropdown {
    position: absolute;
    top: 100%;
    left: -1.5rem; /* Adjust to align with text padding */
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    border-top: 3px solid var(--btn-bg);
    margin: 5px 0 0 0;
}

.mc--dropdown li {
    border-bottom: 1px solid #f1f5f9;
}

.mc--dropdown li:last-child {
    border-bottom: none;
}

.mc--dropdown li a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--nav-link-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s;
}

.mc--dropdown li a:hover {
    background: #f8fafc;
    color: var(--btn-bg);
}

/* Contact Button */
.mc--btn-contact {
    background: var(--btn-bg) !important;
    color: var(--btn-text) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    transition: transform 0.3s, background 0.3s !important;
    margin: -8px 0 0 0;
}

.mc--btn-contact:hover {
    transform: scale(1.05);
    background: #e07a00 !important;
}

/* Mobile Toggle */
.mc--nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mc--nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--nav-link-color);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .mc--header-container {
        padding: 0 1.5rem;
        display: flex;
        justify-content: space-between; /* Restore space-between for logo and toggle */
        align-items: center;
        position: relative;
    }

    .mc--logo img {
        height: 30px; /* Slightly larger than 30px but smaller than desktop */
        margin: 10px 0 0 0;
    }

    .mc--nav-toggle {
        display: flex;
        position: static; /* Remove absolute positioning */
        transform: none;
    }

    .mc--nav-list {
        display: none; /* Hide by default on mobile */
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        padding: 2rem 1.5rem; /* Reduced padding */
        gap: 1.2rem; /* Reduced gap */
        overflow-y: auto;
        align-items: center;
        justify-content: flex-start;
    }

    .mc--nav-list.active {
        display: flex;
    }

    .mc--nav-item {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mc--nav-item > a {
        font-size: 1.25rem; /* Reduced from 1.5rem */
        font-weight: 600;
        padding: 0.8rem 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure arrow is part of the centered link */
    .mc--nav-item.has-dropdown > a::after {
        margin-left: 8px;
        position: static;
    }

    .mc--dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0.5rem 0;
        display: none;
        width: 100%;
        background: #f8fafc;
        border-top: none;
        margin-left: 0;
    }

    .mc--dropdown li a {
        font-size: 1.1rem; /* Reduced from 1.2rem */
        padding: 0.8rem;
    }

    .mc--nav-item.has-dropdown.active .mc--dropdown {
        display: block;
    }

    .mc--btn-contact {
        margin: 1rem auto 0 !important;
        display: inline-block !important;
        font-size: 1.1rem !important; /* Reduced from 1.3rem */
        width: auto;
        padding: 0.8rem 2.5rem !important;
    }
}

/* Adjust main content padding */
body {
    padding-top: var(--header-height);
}

/* Banner Header Title - align to bottom */
.mc--home-header {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.mc--home-header .l-section-h {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 1rem !important;
}

.mc--home-header .mc--header-title {
    margin-bottom: 0 !important;
}

/* Contact Header - move title down */
.mc--contact-header h1 {
    margin-top: 2rem !important;
}


