/* Topbar Styles */
.topbar {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-contact {
    display: flex;
    gap: 1.5rem;
}

.topbar-contact a {
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.topbar-contact a:hover {
    color: var(--accent-teal);
}

.topbar-contact i {
    margin-right: 0.3rem;
    color: var(--accent-teal);
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-social a {
    color: white;
    transition: var(--transition-fast);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

.topbar-social a:hover {
    color: var(--accent-orange);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* topbar visible but stacked on smaller screens */

/* Mobile Topbar - Email & Phone Only */
@media (max-width: 768px) {
    .topbar {
        padding: 0.3rem 0;
        font-size: 0.75rem;
    }
    
    .topbar-content {
        justify-content: center; /* Center contact info */
        gap: 1rem;
    }
    
    .topbar-social {
        display: none; /* Hide social icons completely */
    }
    
    .topbar-contact {
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .topbar-contact a {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    
    .topbar-contact i {
        margin-right: 0.3rem;
        font-size: 0.8rem;
    }
}

/* Small Mobile Optimization */
@media (max-width: 480px) {
    .topbar-contact {
        gap: 0.5rem;
    }
    
    .topbar-contact a span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
}

/* Extra Small Mobile (e.g. iPhone SE) */
@media (max-width: 375px) {
    .topbar {
        font-size: 0.65rem;
    }
    
    .topbar-contact a span {
        max-width: 100px;
    }
}

/* Extreme Small Mobile */
@media (max-width: 320px) {
    .topbar-contact a span {
        max-width: 80px;
    }
    
    /* Option: Show only icons on smallest screens */
    /*
    .topbar-contact a span {
        display: none;
    }
    */
}

/* Main Header Styles */
.main-header {
    background-color: white;
    box-shadow: var(--shadow-sm);   
    position: sticky;
    top: 0;
    z-index: 1000;  
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: 0.75rem;
}

.logo small {
    font-size: 1rem;
    color: var(--accent-teal);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 2rem;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: var(--transition-medium);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition-medium);
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition-medium);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin: 2rem 0;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .nav-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .hamburger {
        display: block;
        z-index: 1002;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 576px) {
    .topbar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .topbar-contact span {
        display: block;
        margin: 0.2rem 0;
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px; /* Increased from 40px */
    margin-right: 0.75rem;
    transition: var(--transition-medium);
}

.logo:hover img {
    transform: scale(1.05);
}

.company-name {
    font-weight: 800; /* Bold weight */
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.company-subname {
    font-weight: 700;
    color: var(--accent-teal);
    display: block;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-buttons .btn-primary {
    background-color: var(--accent-orange);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition-medium);
}

.nav-buttons .btn-primary:hover {
    background-color: #e68f1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Adjustments */
@media (max-width: 992px) {
    .nav-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .nav-buttons .btn-primary {
        padding: 0.75rem 2rem;
        border-radius: 50px;
    }
    
    .logo img {
        height: 50px; 
    }
}