:root {
    --primary-color: #A30000;
}

/* Estilo do campo de busca na barra superior */
.bg-primary input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.bg-primary input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.bg-primary input {
    transition: all 0.3s ease;
}

.bg-primary form button {
    transition: all 0.3s ease;
}

.bg-primary form button:hover {
    transform: scale(1.1);
}

/* Estilos para o menu de navegação */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #FCD34D; /* Amarelo mais suave */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Animações hover suaves */
.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-1px);
}

/* Menu Mobile */
.mobile-menu-button {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu .flex {
    background-color: var(--primary-color);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(163, 0, 0, 0.1);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu .nav-link {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-menu .nav-link:hover {
    background-color: rgba(163, 0, 0, 0.05);
}

/* Responsividade */
@media (max-width: 768px) {
    nav .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu-button {
        display: block;
    }

    /* Logo */
    .container .flex-shrink-0 img {
        height: 3rem;
    }

    /* Ajustes do header mobile */
    .bg-primary .container {
        padding: 0.5rem 1rem;
    }

    .mobile-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Ajustes de espaçamento no mobile */
    .mobile-header .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Campo de busca mobile */
    .mobile-header .max-w-md {
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }

    .mobile-header {
        display: none;
    }

    .bg-primary .container {
        padding: 0.35rem 1rem;
    }
}

/* Estilos gerais do header */
.bg-primary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-primary .container {
    text-align: center;
}
