:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #007bff;
    --font-family: 'Montserrat', sans-serif;
    --header-height: 100px;
}

/* global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* header start */
.header {
    width: 100%;
    height: var(--header-height);
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.header-scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}



.header-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* logo */
.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 80px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

.header.header-scrolled .header-logo img {
    height: 60px;
    filter: none;
}

.header-logo a:hover img {
    transform: scale(1.05);
}

/* nav */
.header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    list-style: none;
    gap: 20px; /* Reduced to fit more items on desktop */
}

.menu > li {
    position: relative;
    padding: 30px 0; /* Creates seamless hover bridge */
}

.menu > li > a {
    text-decoration: none;
    color: #fff; /* White links for transparent header */
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 0px;
    transition: color 0.3s ease;
}

.header.header-scrolled .menu > li > a {
    color: #444; /* Dark links when scrolled */
}

.menu > li > a span {
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 1.2;
    color: transparent; /* Hide original text */
}

.menu > li > a span::before,
.menu > li > a span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.header.header-scrolled .menu > li > a span::before {
    color: #444;
}

.menu > li > a span::after {
    top: 100%;
    color: var(--accent-color);
}

.menu > li:hover > a {
    color: var(--accent-color);
}

.menu > li:hover > a span::before {
    transform: translateY(-100%);
}

.menu > li:hover > a span::after {
    transform: translateY(-100%);
}

/* animations */
@keyframes dropdownFlip {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(-15deg) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) translateY(0);
    }
}

.dropdown, .sub-dropdown {
    position: absolute;
    background: #ffffff;
    list-style: none;
    padding: 10px; /* Uniform internal padding to keep space around items */
    border-radius: 18px; /* More modern curves */
    min-width: 260px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    backface-visibility: hidden;
    transform-origin: top center;
}

.dropdown {
    top: 100%;
    left: 0;
}

.sub-dropdown {
    top: -10px;
    left: calc(100% + 10px); /* Small gap between menus */
    margin-left: 2px;
    transform-origin: top left;
}

.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    animation: dropdownFlip 0.65s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.has-sub-dropdown:hover > .sub-dropdown {
    opacity: 1;
    visibility: visible;
    animation: dropdownFlip 0.65s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.dropdown li {
    position: relative;
    width: 100%;
    margin-bottom: 2px; /* Small space between items */
}

.dropdown li:last-child {
    margin-bottom: 0;
}

.dropdown a, .sub-dropdown a {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

.dropdown a span, .sub-dropdown a span {
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 1.2;
    color: transparent;
}

.dropdown a span::before,
.dropdown a span::after,
.sub-dropdown a span::before,
.sub-dropdown a span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    color: #555;
    transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1);
    white-space: nowrap;
}

.dropdown a span::after,
.sub-dropdown a span::after {
    top: 100%;
    color: #fff;
}

.dropdown > li:hover > a span::before,
.sub-dropdown li:hover > a span::before {
    transform: translateY(-100%);
}

.dropdown > li:hover > a span::after,
.sub-dropdown li:hover > a span::after {
    transform: translateY(-100%);
}

.dropdown > li:hover > a {
    background: #009EE3;
    color: #fff;
    padding-left: 25px;
}

.sub-dropdown li:hover > a {
    background: #FF9600;
    color: #fff;
    padding-left: 25px;
}

/* indicators */
.has-dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: inherit;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.has-sub-dropdown > a::after {
    content: '▶';
    font-size: 8px;
    color: #999;
    transition: all 0.2s ease;
}

.has-sub-dropdown:hover > a::after {
    color: #fff;
    transform: scale(1.2);
}

/* button */
.header-btn {
    flex-shrink: 0;
}

.btn-login {
    background: #009EE3;
    color: #fff;
    padding: 6px 6px 6px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 158, 227, 0.2);
    white-space: nowrap;
}

.btn-login:hover {
    background: #FF9600;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 150, 0, 0.3);
}

.btn-login .dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.btn-login .arrow {
    width: 28px;
    height: 28px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.4s ease;
}

.btn-login:hover .arrow {
    transform: rotate(-45deg);
}

/* responsive */
.header-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align lines to the right */
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-left: 20px; /* Space from other elements */
}

.header-toggle span {
    position: relative;
    top: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: #fff; /* White hamburger for transparent header */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.header-toggle span:nth-child(3) {
    width: 14px;
}

.header.header-scrolled .header-toggle span {
    background: #000; /* Dark hamburger when scrolled */
}

.mobile-login {
    display: none; /* Hidden on desktop */
}

@media (max-width: 4000px) {
    .header-container {
        justify-content: space-between; /* Ensures logo left, toggle right */
        width: 100%;
    }

    .header-nav {
        display: none; 
        position: fixed;
        top: var(--header-height); /* Dynamic alignment */
        height: calc(100vh - var(--header-height)); /* Calculate height manually */
        right: -100%;
        width: 320px;
        max-width: 100%; /* Prevent overflow on small mobile screens */
        background: #fff;
        padding: 0px 15px 20px; /* Reduced top padding */
        box-shadow: -15px 0 40px rgba(0,0,0,0.06);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid #f0f0f0;
    }

    .header.header-scrolled .header-nav {
        top: 80px; /* Match the scrolled header height */
        height: calc(100vh - 80px);
    }

    .header-nav.active {
        display: block;
        right: 0;
    }

    .menu {
        flex-direction: column;
        gap: 0; /* Removing gap to use borders/padding for spacing */
        align-items: stretch;
    }

    .menu > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #eaeaea; /* Thin border */
    }

    .menu > li:last-child,
    .menu > li:nth-last-child(2) {
        border-bottom: none; /* Remove line above mobile login button */
    }

    .menu > li.menu-label {
        font-size: 13px;
        letter-spacing: 2px;
        color: #999;
        text-transform: uppercase;
        padding: 10px 0 20px;
        border-bottom: 1px solid #eaeaea;
    }

    .menu > li:not(.mobile-login):not(.menu-label) > a {
        font-family: 'Cormorant Garamond', serif;
        font-size: 26px;
        font-weight: 400;
        padding: 15px 0;
        color: #111;
        width: 100%;
        justify-content: space-between;
    }

    .mobile-login .btn-login .dot {
        display: block !important;
        width: 6px !important;
        height: 6px !important;
        background: #00ff88 !important;
        border-radius: 50% !important;
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.8) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-login .btn-login .arrow {
        display: flex !important;
        width: 28px !important;
        height: 28px !important;
        background: #fff !important;
        color: #000 !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        margin-left: 5px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* dropdowns in mobile - clean borderless style */
    .dropdown, .sub-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 10px 20px !important; /* Keep indentation */
        animation: none !important;
        transform: none !important;
        width: 100% !important;
        min-width: unset !important;
        background: transparent !important;
        display: none;
        margin: 0;
    }

    .has-dropdown.active > .dropdown,
    .has-sub-dropdown.active > .sub-dropdown {
        display: block;
    }

    .dropdown a, .sub-dropdown a {
        padding: 10px 15px !important;
        background: transparent !important;
        color: #444 !important; 
        font-size: 13.5px;
        font-weight: 500;
        border-radius: 10px !important; /* Restored curves */
        text-transform: capitalize;
        transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 2px;
    }

    /* main mobile highlight - Blue */
    .dropdown li:hover > a {
        background: #009EE3 !important;
        color: #fff !important;
    }

    /* sub-mobile highlight - Orange */
    .sub-dropdown li:hover > a {
        background: #FF9600 !important;
        color: #fff !important;
    }

    /* Refine the arrows only for items that have further sub-menus */
    .has-sub-dropdown > a::after {
        content: '▶' !important;
        font-size: 8px !important;
        margin-left: auto !important;
        padding-left: 10px !important;
        opacity: 0.4 !important;
        transition: transform 0.3s ease !important;
        display: block !important;
    }

    /* Remove arrows from final items */
    .sub-dropdown a::after {
        display: none !important;
    }

    .has-sub-dropdown li:hover > a::after {
        opacity: 1 !important;
        transform: translateX(-3px) !important;
    }

    .has-dropdown.active > a {
        color: #009EE3;
    }

    .has-sub-dropdown.active > a {
        color: #FF9600;
    }

    /* Disable rolling text for mobile */
    .dropdown a span, .sub-dropdown a span, .menu > li > a span {
        color: inherit !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .dropdown a span::before, .dropdown a span::after,
    .sub-dropdown a span::before, .sub-dropdown a span::after,
    .menu > li > a span::before, .menu > li > a span::after {
        display: none !important;
    }

    .header-toggle {
        display: flex;
        order: 3;
    }

    @media (max-width: 991px) {
        .header-wrapper {
            padding: 0 25px; /* Reduce padding on tablet */
        }
        .header-logo img {
            height: 60px; /* Slightly smaller logo on tablet */
        }
    }

    @media (max-width: 480px) {
        .header-wrapper {
            padding: 0 15px; /* Reduce padding on mobile */
        }
        .header-logo img {
            height: 50px; /* Smaller logo on mobile */
        }
        .header.header-scrolled .header-logo img {
            height: 45px;
        }
    }

    @media (max-width: 768px) {
        .header-btn {
            display: none;
        }

        .mobile-login {
            display: flex !important;
            width: 100% !important;
            margin: 10px 0 0 !important; /* Reduced gap */
            padding: 0 !important;
            border-top: none;
            justify-content: flex-start;
        }

        .mobile-login .btn-login {
            display: inline-flex !important;
            width: fit-content !important;
            min-width: unset !important;
            height: 40px !important;
            padding: 0 15px !important;
            font-size: 11px !important;
            font-weight: 500 !important;
            color: #fff !important;
            background: #009EE3 !important;
            border-radius: 100px !important;
            box-shadow: 0 6px 20px rgba(0, 158, 227, 0.3) !important;
            align-items: center !important;
            gap: 12px !important;
            text-transform: uppercase !important;
        }
    }
}

/* active state for toggle */
.header-toggle.active span {
    background: #fff;
}

.header.header-scrolled .header-toggle.active span,
.header.header-scrolled .header-toggle span {
    background: #000 !important;
}
.header-toggle.active span:nth-child(1) {
    transform-origin: 75% center;
    transform: translateY(8px) rotate(45deg);
    top: 0;
}

.header-toggle.active span:nth-child(2) {
    opacity: 0;
    top: 0;
}

.header-toggle.active span:nth-child(3) {
    width: 28px;
    transform-origin: 75% center;
    transform: translateY(-8px) rotate(-45deg);
    opacity: 1;
}

/* header end */



/* footer start */

.footer {
    background: #fff;
    color: #444;
    font-family: var(--font-family);
    border-top: 1px solid #eaeaea;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr 1.2fr;
    gap: 40px;
}

/* branding column */
.col-branding {
    align-self: center;
}

.col-branding .footer-logo {
    height: 75px;
    width: auto;
}

.branding-text {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #666;
}

.mt-4 {
    margin-top: 1.2rem !important;
}

/* link items (addresses) */
.footer-link-item {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.footer-link-item::before {
    content: '\f178'; /* Classic long arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -22px;
    top: 2px;
    opacity: 0;
    color: #009EE3;
    transition: all 0.3s ease;
}

.footer-link-item:hover {
    transform: translateX(20px);
}

.footer-link-item:hover::before {
    opacity: 1;
}

.footer-link-item:hover .address-text,
.footer-link-item:hover .branch-item {
    opacity: 1;
    color: #009EE3;
}

/* headings */
.footer-heading {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #009EE3;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #FF9600; /* Orange underline */
}

/* links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0; /* Fix alignment */
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links li a::before {
    content: '\f178'; /* Classic long arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    color: #009EE3;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #009EE3;
    transform: translateX(20px);
}

.footer-links li a:hover::before {
    opacity: 1;
}

/* items */
.address-text {
    font-size: 13px;
    line-height: 1.8;
    color: #888;
    margin: 0; /* Fix alignment */
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #009EE3;
}

.contact-item .icon {
    font-size: 16px;
    color: #009EE3;
}

/* social icons */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border: 1px solid #009EE3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #009EE3;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #009EE3;
    color: #fff;
}

/* bottom section */
.footer-divider {
    height: 1px;
    background: #3d3429;
    opacity: 0.1;
    margin: 5px 0;
}

/* bottom section */
.footer-bottom {
    background: #fff;
    width: 100%;
    border-top: 1px solid #eaeaea;
}

.bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.copyright {
    color: #666;
    font-size: 14px;
}

.developer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.developer-logo {
    height: 25px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.developer a:hover .developer-logo {
    transform: scale(1.1);
}

/* responsive */
@media (max-width: 1300px) {
    .footer-container {
        gap: 20px;
    }
}

@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .col-branding {
        grid-column: span 2;
        max-width: 500px;
        margin-bottom: 0px;
    }
}

@media (max-width: 768px) {
    .footer-wrapper {
        padding: 10px 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .col-branding {
        grid-column: span 1;
    }
    .bottom-wrapper {
        flex-direction: column;
        gap: 1px;
        text-align: center;
    }
}

/* footer end */
