/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar {
    height: 5rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-start {
    margin-right: auto;
}

.navbar-center {
    margin-left: auto;
    margin-right: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: #DC2626;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #DC2626;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 16rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 50;
    border: 1px solid #F3F4F6;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    color: #374151;
    padding: 0.625rem 1rem;
    display: block;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nav-dropdown-content a:hover {
    color: #DC2626;
    background-color: #FEF2F2;
}

.btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    background-color: #DC2626;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-quote:hover {
    background-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

/* Navigation Styles */
.navbar {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}

.navbar-start {
    flex: 0 1 auto;
}

.navbar-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #DC2626;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 16rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 50;
    border: 1px solid #F3F4F6;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    background-color: #DC2626;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-quote:hover {
    background-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

/* Mobile Drawer */
.drawer-side {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.drawer-side.active {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #111827;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #DC2626;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: #DC2626;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #111827;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-menu a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    padding-left: 2rem;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 0;
    height: 2px;
    background: #DC2626;
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.dropdown-menu a:hover::before {
    width: 0.5rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Mobile Navigation */
@media (max-width: 1023px) {
    .drawer-side .nav-link {
        font-size: 1.125rem;
        padding: 1rem 0;
    }

    .drawer-side .nav-link::after {
        display: none;
    }

    .drawer-side .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .drawer-side .dropdown-menu::before {
        display: none;
    }

    .drawer-side .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        color: #4b5563;
    }

    .drawer-side .dropdown-menu a:hover {
        background: none;
        color: #DC2626;
        padding-left: 1.5rem;
    }

    .drawer-side .cta-button {
        margin-top: 1rem;
    }
}

@media (max-width: 1023px) {
    .navbar-center,
    .navbar-end {
        display: none;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #E5E7EB;
}

.mobile-menu-container {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu-item {
    color: #111827;
    font-weight: 500;
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.mobile-menu-item:hover {
    color: #DC2626;
    background-color: #FEF2F2;
}

.mobile-submenu {
    padding-left: 1rem;
    margin: 0.25rem 0;
    border-left: 2px solid #DC2626;
    background-color: #F9FAFB;
}

.mobile-submenu-item {
    color: #4B5563;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: block;
}

.mobile-submenu-item:hover {
    color: #DC2626;
    background-color: #FEF2F2;
}

.mobile-menu-button {
    color: #374151;
    transition: all 0.2s ease;
}

.mobile-menu-button:hover {
    color: #DC2626;
}

.mobile-menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

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

.mobile-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-menu-item:hover {
    color: #DC2626;
    background-color: #FEF2F2;
}

.mobile-submenu {
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid #F3F4F6;
}

.mobile-submenu-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #6B7280;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.mobile-submenu-item:hover {
    color: #DC2626;
}

/* Footer Styles */
.footer-link {
    position: relative;
    display: inline-block;
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #DC2626;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #DC2626;
    transition: width 0.2s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    color: #9CA3AF;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-social-icon:hover {
    color: #DC2626;
    background-color: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.footer-logo {
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.footer-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(220, 38, 38, 0.5));
}
