/* Global reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-y: scroll; /* Always show scrollbar to prevent horizontal shift between pages */
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Root variables for consistent theming */
:root {
    --primary: #ed8936;
    --primary-hover: #dd6b20;
    --primary-light: #f6ad55;
    --navy: #1a202c;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

/* Navigation styling for 100% content width */
.custom-header {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    display: block;
    margin-bottom: 0 !important;
    line-height: 0;
}

.custom-header::after {
    content: '';
    display: block;
    clear: both;
    height: 0;
    margin: 0;
    padding: 0;
}

.custom-header *:focus {
    outline: none !important;
    box-shadow: none !important;
}

.custom-header a {
    outline: none;
}

.custom-header a:focus {
    outline: none;
    box-shadow: none;
}

.custom-header a:focus-visible {
    outline: none;
    box-shadow: none;
}

.custom-header a::-moz-focus-inner {
    border: 0;
}

.custom-header button,
.custom-header [role="button"] {
    outline: none;
}

.custom-header button:focus,
.custom-header [role="button"]:focus {
    outline: none;
    box-shadow: none;
}

.header-top {
    background: white;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-dark);
    width: 100%;
    border-bottom: 1px solid rgba(237, 137, 54, 0.1);
    margin: 0;
    line-height: normal;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-top-left {
    display: flex;
    gap: 30px;
}

.header-top-right {
    display: flex;
    gap: 30px;
}

.header {
    background: white;
    padding: 15px 0;
    width: 100%;
    box-shadow: none;
    position: relative;
    margin: 0;
    margin-bottom: 0 !important;
    line-height: normal;
}

.header > * {
    margin-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    margin-bottom: 0 !important;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    outline: none;
}

.logo:focus {
    outline: none;
    box-shadow: none;
}

.logo img {
    height: 85px;
    width: auto;
}

.nav {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0 30px 0 0;
    padding: 0;
    align-items: center;
}

.nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    outline: none;
}

.nav a:focus {
    outline: none;
    box-shadow: none;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.login-btn {
    background: transparent;
    color: var(--text-medium);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(74, 85, 104, 0.2);
    outline: none;
}

.login-btn:focus {
    outline: none;
    box-shadow: none;
}

.login-btn:hover {
    background: rgba(237, 137, 54, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.login-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.book-appointment-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.2);
    outline: none;
}

.book-appointment-btn:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.2);
}

.book-appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
    background: var(--primary-hover);
    color: #ffffff;
}

.hamburger-menu {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
    border: none;
    z-index: 1001;
}

.hamburger-menu.active {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 1002;
}

.hamburger-menu:focus {
    outline: none;
    box-shadow: none;
}

.hamburger-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

.hamburger-icon {
    width: 20px;
    height: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    display: block;
    transition: all 0.3s;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh;
    background: white;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    display: none;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-drawer.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 120px 20px 40px 20px;
    min-height: 100vh;
    min-height: 100dvh;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav > li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(22, 37, 80, 0.1);
}

.mobile-nav > li:last-child {
    border-bottom: none;
}

.mobile-nav > li > a {
    display: block;
    padding: 20px 0;
    color: var(--navy);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.mobile-nav > li > a:hover,
.mobile-nav > li > a.active {
    color: var(--primary);
}

.mobile-nav > li > a.has-dropdown {
    position: relative;
    padding-right: 40px;
}

.mobile-nav > li > a.has-dropdown::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    transition: transform 0.3s;
}

.mobile-nav > li > a.has-dropdown.expanded::after {
    transform: translateY(-50%) rotate(45deg);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(22, 37, 80, 0.05);
    margin: 0 -20px;
}

.mobile-dropdown.expanded {
    max-height: 500px;
}

.mobile-dropdown a {
    display: block;
    padding: 15px 40px;
    color: var(--navy);
    text-decoration: none;
    font-size: 16px;
    font-weight: 450;
    border-bottom: 1px solid rgba(22, 37, 80, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

.mobile-dropdown a:last-child {
    border-bottom: none;
}

.mobile-dropdown a:hover {
    background: rgba(237, 137, 54, 0.1);
    color: var(--primary);
}

.mobile-cta {
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}

.mobile-cta .login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-medium);
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 2px solid rgba(74, 85, 104, 0.2);
}

.mobile-cta .login-btn:hover {
    background: rgba(237, 137, 54, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-cta .login-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mobile-cta .book-appointment-btn {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.2);
}

.mobile-cta .book-appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.3);
    background: var(--primary-hover);
    color: #ffffff;
}

.mobile-contact {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(22, 37, 80, 0.1);
}

.mobile-contact p {
    margin: 10px 0;
    color: var(--navy);
    font-size: 16px;
}

.nav li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(22, 37, 80, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid rgba(22, 37, 80, 0.1);
}

.nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(22, 37, 80, 0.08);
    font-size: 15px;
    font-weight: 450;
    color: var(--navy);
    outline: none;
}

.dropdown a:focus {
    outline: none;
    box-shadow: none;
}

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

.dropdown a:hover {
    background: rgba(237, 137, 54, 0.1);
    color: var(--primary);
}

@media (min-width: 1600px) {
    .header-content,
    .header-top-content {
        max-width: 1560px;
    }

    .nav {
        gap: 45px;
    }
}

@media (max-width: 1024px) {
    .nav {
        gap: 30px;
        margin: 0 25px 0 0;
    }

    .nav a {
        font-size: 17px;
    }

    .header-top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-top-left,
    .header-top-right {
        gap: 20px;
    }

    .book-appointment-btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .header-top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-top-left,
    .header-top-right {
        flex-direction: column;
        gap: 10px;
    }

    .header-top-left span:nth-child(2) {
        display: none;
    }

    .header-top-left {
        justify-content: center;
        align-items: center;
    }

    .header-right .book-appointment-btn,
    .header-right .login-btn {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .mobile-menu-drawer {
        display: block;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .login-btn {
        padding: 10px 16px;
    }
}
