/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove global body padding - use class instead */
.page-with-header {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2e5c9a;
    white-space: nowrap;
}

/* Desktop Navigation Menu */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #2e5c9a;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2e5c9a;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
}

.phone, .email {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-label {
    color: #666;
    font-weight: 500;
}

.contact-link {
    color: #2e5c9a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1e4a7a;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Toggle Active State */
.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.mobile-nav-list {
    list-style: none;
    padding: 2rem 1.5rem 1rem;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f0f0f0;
}

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

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    color: #2e5c9a;
    padding-left: 1rem;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #2e5c9a;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 20px;
}

.mobile-contact {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.mobile-contact-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: #2e5c9a;
    text-decoration: none;
    border: 2px solid #2e5c9a;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-contact-link:hover {
    background: #2e5c9a;
    color: white;
    transform: translateY(-2px);
}

/* Scroll Effect */
.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-list {
        gap: 1.5rem;
    }
    
    .contact-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .contact-info {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.6rem 0;
    }
    
    .header .container {
        padding: 0 1rem;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 36px;
    }
    
    .mobile-toggle {
        padding: 0.3rem;
    }
    
    .hamburger-line {
        width: 22px;
        height: 2.5px;
    }
    
    .page-with-header {
        padding-top: 65px;
    }
    
    .mobile-menu-content {
        top: 65px;
        max-height: calc(100vh - 65px);
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header .container {
        padding: 0 0.8rem;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .logo {
        height: 32px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .page-with-header {
        padding-top: 60px;
    }
    
    .mobile-menu-content {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
    
    .mobile-nav-list {
        padding: 1.5rem 1rem 1rem;
    }
}

@media (max-width: 360px) {
    .header .container {
        padding: 0 0.5rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .logo {
        height: 28px;
    }
}

/* Focus styles for accessibility */
.mobile-toggle:focus,
.mobile-nav-link:focus,
.mobile-contact-link:focus,
.nav-link:focus,
.contact-link:focus {
    outline: 2px solid #2e5c9a;
    outline-offset: 2px;
}

/* Animation for mobile menu items */
.mobile-menu.active .mobile-nav-list li {
    animation: slideInLeft 0.3s ease forwards;
}

.mobile-menu.active .mobile-nav-list li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav-list li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-nav-list li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-nav-list li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.active .mobile-nav-list li:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact section animation */
.mobile-menu.active .mobile-contact {
    animation: slideInUp 0.3s ease 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}