/* Melhorias específicas para a seção de contato */

/* Seção de contato principal */
.contato {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    opacity: 0.8;
}

/* Header da seção */
.contato-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.contato-header .section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #002D72;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.contato-header .section-subtitle {
    color: #64748b;
    font-size: 1.2rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Container principal */
.contato-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards de contato */
.contato-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
}

.contato-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    min-height: 60px;
}

.contato-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contato-card:hover::before {
    transform: scaleX(1);
}

.contato-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Ícones dos cards */
.contato-card-icon {
    width: 60px;
    height: 60px;
    background: #E30613;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(227, 6, 19, 0.3);
    transition: all 0.3s ease;
}

.phone-card .contato-card-icon {
    background: #D33100;
}

.whatsapp-card .contato-card-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.location-card .contato-card-icon {
    background: #D33100;
}

.schedule-card .contato-card-icon {
    background: #D33100;
}

.email-card .contato-card-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.contato-card-icon i {
    font-size: 16px;
    color: white;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.contato-card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
}

.contato-card:hover .contato-card-icon::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Conteúdo dos cards */
.contato-card-content {
    flex: 1;
}

.contato-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.contato-value {
    margin-bottom: 6px;
    line-height: 1.4;
}

.contato-value a {
    color: #374151;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.phone-card .contato-value a:hover {
    color: #3b82f6;
}

.whatsapp-card .contato-value a:hover {
    color: #25d366;
}

.location-card .contato-value a:hover {
    color: #f59e0b;
}

.email-card .contato-value a:hover {
    color: #ef4444;
}

.contato-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
    display: block;
}

/* Botão GPS melhorado */
.btn-gps {
    background: #E30613;
    color: white;
    padding: 20px 32px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gps::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-gps:hover::before {
    left: 100%;
}

.btn-gps:hover {
    background: #B8050F;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(227, 6, 19, 0.5);
    text-decoration: none;
    color: white;
}

/* Mapa melhorado */
.contato-map {
    position: relative;
}

.map-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 700px;
    position: relative;
}

.map-header {
    padding: 20px 18px;
    background: #E30613;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    opacity: 0.8;
}

.map-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.map-header h3 i {
    color: white;
}

.map-header p {
    color: white;
    margin: 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.map-wrapper {
    height: 300px;
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(10%) contrast(1.1) brightness(0.95);
    transition: filter 0.4s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) contrast(1.2) brightness(1);
}

/* Responsividade melhorada */
@media (max-width: 1200px) {
    .contato-container {
        gap: 30px;
        grid-template-columns: 1fr 1.1fr;
    }
    
    .contato-cards {
        gap: 14px;
    }
    
    .contato-card {
        padding: 16px 14px;
        min-height: 75px;
    }
}

@media (max-width: 992px) {
    .contato-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contato-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .map-container {
        min-height: 450px;
    }
    
    .map-wrapper {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .contato {
        padding: 50px 0 80px 0;
    }
    
    .contato-header {
        margin-bottom: 30px;
    }
    
    .contato-header .section-title {
        font-size: 2rem;
    }
    
    .contato-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contato-card {
        padding: 14px 12px;
        gap: 12px;
        min-height: 70px;
    }
    
    .contato-card-icon {
        width: 44px;
        height: 44px;
    }
    
    .contato-card-icon i {
        font-size: 18px;
    }
    
    .map-container {
        min-height: 400px;
    }
    
    .map-wrapper {
        height: 330px;
    }
    
    .map-header {
        padding: 16px 14px;
    }
    
    .map-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contato {
        padding: 40px 0 60px 0;
    }
    
    .contato-header .section-title {
        font-size: 1.8rem;
    }
    
    .contato-header .section-subtitle {
        font-size: 1rem;
    }
    
    .contato-card {
        padding: 12px 10px;
        gap: 10px;
        min-height: 65px;
    }
    
    .contato-card-content h3 {
        font-size: 0.95rem;
    }
    
    .contato-value a {
        font-size: 0.85rem;
    }
    
    .contato-label {
        font-size: 0.7rem;
    }
    
    .map-container {
        min-height: 350px;
        margin-bottom: 20px;
    }
    
    .map-wrapper {
        height: 280px;
    }
}

/* Animações personalizadas */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(211, 49, 0, 0.1);
    }
    100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
}

.contato-card-icon {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Estados de foco para acessibilidade */
.contato-value a:focus,
.btn-gps:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Melhorias para impressão */
@media print {
    .contato::before {
        display: none;
    }
    
    .contato-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .map-wrapper {
        display: none;
    }
}
/* Melho
rias específicas para layout compacto */
.contato-card .contato-value {
    font-size: 0.9rem;
    line-height: 1.3;
}

.location-card .contato-value {
    font-size: 0.85rem;
    line-height: 1.4;
}

.schedule-card .contato-value {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Ajustes para cards específicos */
.location-card .btn-gps {
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Otimização do espaço vertical */
.contato-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
}

/* Melhor proporção do mapa */
@media (min-width: 993px) {
    .map-container {
        min-height: 480px;
    }
    
    .map-wrapper {
        height: 350px;
    }
}

/* Ajustes finos para desktop */
@media (min-width: 1400px) {
    .contato-container {
        max-width: 1400px;
        grid-template-columns: 1fr 1.3fr;
        gap: 50px;
    }
    
    .map-container {
        min-height: 420px;
    }
    
    .map-wrapper {
        height: 340px;
    }
}

/* Hover melhorado para cards compactos */
.contato-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Garantir que o texto não quebre em telas pequenas */
.contato-value a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 480px) {
    .contato-value a {
        white-space: normal;
        word-break: break-word;
    }
}