/* Header Specific Styles */

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(46, 142, 145, 0.1);
}

/* Header scroll effect */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(46, 142, 145, 0.15);
}

/* Top Header */
.top-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-left,
.contact-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-left span,
.contact-right span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-left a,
.contact-right a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-left a:hover,
.contact-right a:hover {
    opacity: 0.8;
}

.contact-left i,
.contact-right i {
    font-size: 0.9rem;
}

/* Main Header */
.main-header {
    background: var(--white);
    padding: 0.5rem 0;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 2rem;
}

.logo {
    justify-self: start;
    padding: 0.5rem 0;
}

.main-nav,
.header-cta {
    padding: 1rem 0;
}

.site-logo {
    height: 60px;
    width: auto;
}

/* Navigation */
.main-nav {
    justify-self: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: flex-start;
}

.main-nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Header CTA */
.header-cta {
    justify-self: end;
}

.btn-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e06a02 100%);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-header:hover {
    background: linear-gradient(135deg, #e06a02 0%, var(--secondary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 123, 3, 0.3);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Hide mobile menu elements on desktop */
.menu-close {
    display: none !important;
}

.mobile-contact-info {
    display: none;
}

/* Tablet Header */
@media (max-width: 1200px) and (min-width: 769px) {
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        padding: 0 10px;
    }

    .main-nav ul {
        gap: 1.2rem;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }

    .top-header-content {
        justify-content: space-between;
        padding: 0 10px;
    }

    .contact-left,
    .contact-right {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .btn-header {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Top Header responsive */
@media (max-width: 768px) {
    .top-header-content {
        justify-content: flex-start;
        text-align: left;
    }

    .contact-left {
        display: flex;
        justify-content: flex-start;
    }

    .contact-left .email,
    .contact-right {
        display: none;
    }

    /* Mobile header layout - logo left, hamburger right */
    .header-content {
        grid-template-columns: 1fr auto !important;
        text-align: left !important;
        gap: 1rem;
    }

    .logo {
        justify-self: start !important;
    }

    .main-nav {
        justify-self: end !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(46, 142, 145, 0.1);
        transition: all 0.4s ease;
        flex-direction: column;
        padding: 1rem 0;
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-menu.mobile-menu-open {
        right: 0;
    }

    .menu-close {
        display: flex !important;
        justify-content: flex-end;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(46, 142, 145, 0.1) !important;
    }

    .menu-close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-close-btn:hover {
        background: rgba(46, 142, 145, 0.1);
        color: var(--secondary-color);
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(46, 142, 145, 0.1);
    }

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

    .nav-menu a {
        padding: 0.8rem 1.5rem;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(46, 142, 145, 0.05);
        color: var(--secondary-color);
    }

    /* Mobile contact info in offcanvas menu */
    .mobile-contact-info {
        display: block !important;
        background: rgba(46, 142, 145, 0.05);
        margin: 0 1rem 1rem 1rem;
        border-radius: 8px;
        padding: 1rem;
        border-bottom: none !important;
    }

    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.4rem 0;
        color: var(--dark-gray);
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .mobile-contact-item:first-child {
        padding-top: 0;
    }

    .mobile-contact-item:last-child {
        padding-bottom: 0;
    }

    .mobile-contact-item i {
        color: var(--primary-color);
        font-size: 1rem;
        width: 18px;
        flex-shrink: 0;
    }

    .mobile-contact-item a {
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.3s ease;
        padding: 0 !important;
        display: inline !important;
        background: none !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .mobile-contact-item a:hover {
        color: var(--secondary-color);
        background: none !important;
    }

    .header-cta {
        display: none;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    main {
        margin-top: 110px;
    }
}