/* Aseem Header: A more robust, single-container fixed header */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    color: white;
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-color, box-shadow;
    backdrop-filter: blur(0px);
}

.site-header.scrolled {
    background-color: rgba(20, 35, 60, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
}

.top-bar {
    background-color: rgba(20, 35, 60, 0.95); /* Softer dark with transparency */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    font-size: 14px;
    height: auto;
    min-height: 40px;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    gap: 20px;
    border-bottom: 1px solid rgba(200, 164, 93, 0.2);
}
.top-bar .address, .top-bar .phone {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.top-bar .phone {
    margin-left: 16px;
}
.top-bar i {
    margin-right: 6px;
    font-size: 15px;
}
@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        gap: 2px;
        height: auto;
        padding: 4px 2%;
    }
    .top-bar .address, .top-bar .phone {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}
.top-bar.hide {
    transform: translateY(-100%);
}

.top-bar .address, .top-bar .phone {
    opacity: 0.8;
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 15px 5%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    top: 0;
    background-color: rgba(20, 35, 60, 0.9);
    backdrop-filter: blur(10px);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-bar.hide + .main-nav-container {
    top: -19px;
    height: 50px;
    padding: 0 3%;
    display: flex;
    align-items: center;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-bar.hide + .main-nav-container .logo,
.top-bar.hide + .main-nav-container .main-nav,
.top-bar.hide + .main-nav-container .main-nav > li,
.top-bar.hide + .main-nav-container .main-nav > li > a,
.top-bar.hide + .main-nav-container .appointment-btn {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 40px !important;
    line-height: 40px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-bar.hide + .main-nav-container .logo img {
    height: 80px !important;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-bar.hide + .main-nav-container .logo img {
    height: 60px;
}
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}
.appointment-btn {
    height: 40px;
    display: flex;
    align-items: center;
}

.main-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c8a45d; /* Gold color for hover/active */
    border-bottom-color: #c8a45d;
}

.main-nav .dropdown > a:after {
    content: ' ▾';
    font-size: 12px;
}

.appointment-btn {
    background-color: #c8a45d;
    color: #14233c;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(200, 164, 93, 0.3);
}

.appointment-btn:hover {
    background-color: #fff;
    color: #14233c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 164, 93, 0.4);
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    margin-top: 15px; /* Spacing from parent */
    border-radius: 4px;
    border-top: 3px solid #c8a45d;
}

.dropdown-content li {
    margin-left: 0;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #34495e;
    border-bottom: none;
}

.dropdown.open .dropdown-content {
    display: block;
}

/* Hamburger & Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 201;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 4px 0;
    background: #c8a45d;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: #14233c;
    box-shadow: -2px 0 12px rgba(0,0,0,0.2);
    z-index: 1100; /* Above header */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px 24px;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.mobile-menu li {
    margin-bottom: 24px;
    width: 100%;
}
.mobile-menu a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 500;
}
.mobile-menu .mobile-appointment-item {
    margin-top: 12px;
}
.mobile-menu .appointment-btn {
    width: 100%;
    max-width: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}
.mobile-menu .appointment-btn:hover {
    transform: none;
}
.close-mobile-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    position: absolute;
    top: 20px;
    right: 24px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .logo {
        margin-left: 0;
    }
}
