/* css/header.css - ESTILOS APENAS DO HEADER WEBER LESSA */

/* ========== HEADER INTEGRADO COMPACTO ========== */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 8px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #d4af37;
    margin: 0;
    min-height: auto;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    height: auto;
}

/* ========== DESKTOP LAYOUT INTEGRADO ========== */
.header-integrated {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 5px 0;
}

/* Lado Esquerdo: Branding */
.brand-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
}

/* Logo Compacta */
.logo {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #1a5276, #0c2d48);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 82, 118, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.logo-wl {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.7rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
}

/* Informações da Marca */
.brand-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.brand-name-compact {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.first-name-compact {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #0c2d48;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.last-name-compact {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5276;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: -3px;
    line-height: 1;
}

/* CRECI Info Compacta */
.creci-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.creci-badge-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.creci-badge-compact i {
    color: #1a5276;
    font-size: 0.9rem;
}

.creci-label-compact {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.creci-number-compact {
    font-size: 1rem;
    font-weight: 900;
    color: #0c2d48;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.certified-badge-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #d4af37;
}

.certified-badge-compact i {
    color: #d4af37;
    font-size: 0.8rem;
}

.certified-badge-compact span {
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
}

/* Especialização Compacta */
.specialty-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.specialty-compact i {
    color: #1a5276;
    font-size: 1rem;
}

.specialty-title-compact {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a5276;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specialty-subtitle-compact {
    font-size: 0.75rem;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-left: 5px;
}

/* ========== LADO DIREITO: CONTATO E ENDEREÇO ========== */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 280px;
    padding-top: 5px;
}

/* Telefone/WhatsApp Compacto */
.phone-whatsapp-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.phone-icons-compact {
    display: flex;
    gap: 5px;
}

.phone-icons-compact .fa-mobile-alt {
    color: #1a5276;
    font-size: 1.1rem;
}

.phone-icons-compact .fa-whatsapp {
    color: #25D366;
    font-size: 1.1rem;
}

.phone-number-compact {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.phone-prefix-compact {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

.phone-main-compact {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a5276;
    letter-spacing: 0.5px;
}

/* Endereço Compacto */
.address-compact {
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    align-items: flex-start;
}

.address-compact i {
    color: #d4af37;
    font-size: 1rem;
    margin-top: 2px;
}

.address-text-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.address-line-1 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a5276;
    line-height: 1.2;
}

.address-line-2 {
    font-size: 0.8rem;
    color: #495057;
    line-height: 1.2;
}

.address-line-3 {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    line-height: 1.2;
}

/* ========== MOBILE LAYOUT ULTRA COMPACTO ========== */
.mobile-header-ultimate {
    display: none;
    width: 100%;
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #d4af37;
}

/* 🔥 ADICIONE ESTE ESTILO PARA COMPENSAR O ESPAÇO DO HEADER FIXO: */
@media (max-width: 768px) {
    body {
        padding-top: 130px; /* Ajuste conforme altura do seu header mobile */
    }
    
    .header {
        padding-top: 0;
    }
}

/* Linha 1: Logo + Nome + Telefone */
.mobile-row-1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 5px 0;
    padding: 0;
    width: 100%;
}

.mobile-logo-mini {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #1a5276, #0c2d48);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(26, 82, 118, 0.2);
    flex-shrink: 0;
}

.mobile-name-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 auto;
    margin: 0 5px;
}

.mobile-first-name-mini {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #0c2d48;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
}

.mobile-last-name-mini {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a5276;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.mobile-phone-mini {
    display: flex;
    gap: 3px;
    margin-left: auto; /* Empurrar para direita */
    flex-shrink: 0;
}

.mobile-phone-mini .fa-mobile-alt {
    color: #1a5276;
    font-size: 0.9rem;
}

.mobile-phone-mini .fa-whatsapp {
    color: #25D366;
    font-size: 0.9rem;
}

/* Linha 2: CRECI + Especialização */
.mobile-row-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0;
    padding: 0;
    width: 100%;
}

.mobile-creci-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0c2d48;
}

.mobile-creci-mini i {
    color: #1a5276;
    font-size: 0.7rem;
}

.mobile-specialty-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a5276;
}

.mobile-specialty-mini i {
    color: #1a5276;
    font-size: 0.7rem;
}

/* Linha 3: Endereço + Certificado */
.mobile-row-3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 0 0;
    padding: 0;
    width: 100%;
}

.mobile-address-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #495057;
    font-weight: 600;
}

.mobile-address-mini i {
    color: #d4af37;
    font-size: 0.7rem;
}

.mobile-certified-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.6rem;
    color: white;
    font-weight: 600;
}

.mobile-certified-mini i {
    color: #d4af37;
    font-size: 0.6rem;
}

/* ========== MEDIA QUERIES DO HEADER ========== */
@media (max-width: 1024px) {
    .header-integrated {
        gap: 15px;
    }
    
    .contact-section {
        min-width: 250px;
    }
    
    .phone-main-compact {
        font-size: 1.1rem;
    }
    
    .address-line-1 {
        font-size: 0.8rem;
    }
    
    .address-line-2,
    .address-line-3 {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .header-integrated {
        display: none;
    }
    
    .mobile-header-ultimate {
        display: block;
    }
    
    .header {
        padding: 5px 0;
    }
    
    .header-content {
        padding: 0 10px;
    }
}

@media (min-width: 769px) {
    .mobile-header-ultimate {
        display: none;
    }
    
    .header-integrated {
        display: flex;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 380px) {
    .mobile-logo-mini {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .mobile-first-name-mini {
        font-size: 1rem;
    }
    
    .mobile-last-name-mini {
        font-size: 0.85rem;
    }
    
    .mobile-creci-mini,
    .mobile-specialty-mini {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .mobile-address-mini {
        font-size: 0.6rem;
    }
    
    .mobile-certified-mini {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
}

/* ========== AJUSTE: MOSTRAR NÚMERO NO HEADER MOBILE ========== */
/* ========== NÚMERO AO LADO DOS ÍCONES ========== */
@media (max-width: 768px) {
    .mobile-phone-mini {
        display: flex !important;
        align-items: center;
        gap: 5px;
        position: relative;
    }
    
    /* Adicionar o número DEPOIS dos ícones */
    .mobile-phone-mini::after {
        content: "(82) 9.9604-4513";
        font-size: 0.75rem;
        font-weight: 700;
        color: #1a5276;
        margin-left: 5px;
        white-space: nowrap;
        order: 3; /* Garantir que fique depois dos ícones */
    }
    
    /* Garantir ordem: celular → whatsapp → número */
    .mobile-phone-mini .fa-mobile-alt {
        order: 1;
    }
    
    .mobile-phone-mini .fa-whatsapp {
        order: 2;
    }
}
