/**
 * Logo Styles - GestãoApp Encomendas
 * Desenvolvido por: GESTÃOAPP (https://gestaoapp.ia.br)
 * Otimizado para performance e responsividade
 */

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.logo__image {
    height: 45px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    /* Otimização de performance */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Texto do Logo */
.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
    justify-content: center;
}

.logo__name {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D3748;
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: block;
}

.logo__subtitle {
    font-family: 'Pacifico', cursive;
    font-size: 1.375rem;
    font-weight: 400;
    color: #718096;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    white-space: nowrap;
    display: block;
    margin-left: 0.75rem;
}

/* Animação hover - efeito suave de crescimento */
.nav__logo:hover {
    transform: scale(1.02);
}

.nav__logo:hover .logo__name {
    color: var(--primary-color);
}

.nav__logo:hover .logo__subtitle {
    color: var(--secondary-color);
}

.nav__logo:active {
    transform: scale(0.98);
}

/* Transições suaves */
.nav__logo,
.logo__image,
.logo__name,
.logo__subtitle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsivo - Tablet */
@media screen and (max-width: 968px) {
    .logo__image {
        height: 45px;
        width: auto;
        max-width: 220px;
    }
}

/* Responsivo - Mobile */
@media screen and (max-width: 576px) {
    .logo__image {
        height: 45px;
        width: auto;
        max-width: 200px;
    }
    
    .logo__text {
        display: none;
    }
    
    .nav__logo {
        gap: 0;
    }
}

/* Responsivo - Mobile pequeno */
@media screen and (max-width: 360px) {
    .logo__image {
        height: 35px;
        width: auto;
        max-width: 180px;
    }
}

/* Acessibilidade - foco visível para navegação por teclado */
.nav__logo:focus {
    outline: 2px solid #667eea;
    outline-offset: 4px;
    border-radius: 4px;
}

.nav__logo:focus:not(:focus-visible) {
    outline: none;
}

/* Otimização para impressão */
@media print {
    .logo__image {
        height: 40px;
    }
}

/* ========================================
   Footer Logo Styles
   ======================================== */

.footer__logo {
    margin-bottom: 1.5rem;
}

.footer__logo-img {
    height: auto;
    width: 100%;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* Link do desenvolvedor no footer */
.footer__dev-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__dev-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Responsivo - Footer Logo */
@media screen and (max-width: 576px) {
    .footer__logo-img {
        max-width: 160px;
    }
}
