/**
 * Header Styles
 *
 * @package De_Assis_Advocacia
 * @since 1.0.0
 */

/* Header */
.site-header {
    background-color: rgba(20, 20, 30, 0.95);
    padding: 1rem var(--container-padding);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-index-fixed);
    box-shadow: var(--shadow-header);
    transition: var(--transition-base);
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    z-index: 2;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    transition: var(--transition-base);
    text-decoration: none;
}

.logo-link:hover .logo-text {
    color: var(--color-secondary);
}

.logo-image {
    width: 340px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    line-height: 1.2;
    color: var(--color-white);
}

/* Custom Logo Support */
.custom-logo-link {
    display: flex;
    align-items: center;
}

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

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--color-secondary);
}

/* Primary Button */
.btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary) !important;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-base);
    text-decoration: none !important;
    display: inline-block;
}

.btn-primary::after {
    display: none !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Header scroll effect */
.site-header.scrolled {
    background-color: rgba(20, 20, 30, 1);
    padding: 0.5rem var(--container-padding);
}
