/* Base header styles */
.header {
    background-color: white;
    color: #636463;
    padding: 1rem 2rem;
    top: 0;
    width: 100%;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-inner {
 /*   max-width: 1200px;*/
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo styles */
.logo {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

/* Main navigation menu */
.header-menu {
    flex: 1;
    margin: 0 2rem;
}

.header-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.header-menu ul li a {
    font-size: 1rem;
    font-family: 'Lato-Black', sans-serif;
    color: #636463;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.header-menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #636463;
    transition: width 0.3s ease, left 0.3s ease;
}

.header-menu ul li a:hover::after,
.header-menu ul li a:focus::after {
    width: 100%;
    left: 0;
}

/* Social media section */
.top-socialmedia {
    flex: 0 0 auto;
}

.top-socialmedia ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.top-socialmedia ul li a {
    background-image: url(../images/social-media.png?2);
    display: block;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-socialmedia ul li a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Social media icon positions */
.top-socialmedia ul li a.sm1 { background-position: 0 0; }
.top-socialmedia ul li a.sm2 { background-position: -20px 0; }
.top-socialmedia ul li a.sm3 { background-position: -40px 0; }
.top-socialmedia ul li a.sm4 { background-position: -60px 0; }
.top-socialmedia ul li a.sm6 { background-position: -82px 0; }

/* Burger menu */
.burger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    transition: transform 0.3s ease;
}

.burger-menu:hover {
    transform: scale(1.1);
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo {
        flex: 1 0 100%;
        text-align: center;
    }

    .header-menu {
        flex: 1 1 auto;
        margin: 0;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .header {
        position: fixed;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 1rem; /* Reduced padding */
    }

    .header-inner {
        padding: 0.5rem; /* Reduced padding */
    }

    .logo img {
        width: 115px; /* Slightly smaller logo for mobile */
    }

    .burger-menu {
        display: block;
        z-index: 1002;
    }

    .burger-menu svg {
        width: 24px; /* Slightly smaller burger menu */
        height: 24px;
        stroke: #636463;
        transition: transform 0.3s ease;
    }

    .burger-menu.active svg {
        transform: rotate(90deg);
    }

    /* Mobile menu */
    .header-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1001;
        margin: 0;
        padding: 4rem 1.5rem; /* Reduced padding */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .header-menu ul {
        flex-direction: column;
        gap: 1.5rem; /* Reduced gap */
    }

    .header-menu ul li {
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .header-menu.active ul li {
        transform: translateY(0);
        opacity: 1;
    }

    .header-menu ul li a {
        font-size: 1.25rem; /* Slightly smaller font size */
        padding: 0.25rem 0.75rem; /* Reduced padding */
    }

    .top-socialmedia {
        display: none;
    }
}