/* ========================================
   CONTACT PAGE STYLES
   Clean and modern contact page design
   ======================================== */

.contact-page {
    font-family: 'Quattrocento Sans', sans-serif;
}

/* Hero Section */
.contact-hero {
    position: relative;
    height: 400px;
    padding-top: 80px;
    background: linear-gradient(135deg, #295490 0%, #4a90a4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('../images/hero/banner-home.jpg') center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.8;
    z-index: 1;
    transform: scale(1.05);
}

/* WebP support for modern browsers */
.webp .contact-hero::before {
    background-image: url('../images/hero/banner-home.webp');
}

/* Overlay removido conforme solicitado */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: heroFadeIn 1s ease-out;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.contact-hero p {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Contact Information Section */
.contact-info-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    min-height: 600px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-left h2 {
    font-size: 2.5rem;
    color: #295490;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Contact Team */
.contact-team {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
}

.contact-member {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 120px;
}

.contact-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Engineer Photo */
.member-photo {
    flex-shrink: 0;
}

.engineer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4a90a4;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-member:hover .engineer-photo {
    transform: scale(1.05);
    border-color: #295490;
}

.member-info {
    flex: 1;
}

.member-info h3 {
    font-size: 1.4rem;
    color: #295490;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #333;
}

.contact-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item .fab.fa-whatsapp {
    color: #25D366;
}

.contact-item .fas.fa-envelope {
    color: #4a90a4;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: #295490;
}

/* Email contact styling */
.email-contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #4a90a4;
}

.email-contact .member-info {
    text-align: left;
}

.email-contact .contact-item {
    justify-content: flex-start;
}

/* Map Section */
.map-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-header {
    padding: 2rem 2rem 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.map-header h3 {
    font-size: 1.8rem;
    color: #295490;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.map-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.map-container {
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.map-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex: 1;
    min-height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.address-info {
    padding: 2rem;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.address-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-info h4 {
    font-size: 1.4rem;
    color: #295490;
    margin-bottom: 1rem;
    font-weight: 600;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.location-item i {
    font-size: 1rem;
    color: #4a90a4;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.location-item:last-child {
    color: #4a90a4;
    font-weight: 500;
}

/* Additional Info Section */
.contact-additional-info {
    padding: 80px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.info-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    background: white;
}

.info-item i {
    font-size: 3rem;
    color: #4a90a4;
    margin-bottom: 1.5rem;
}

.info-item h3 {
    font-size: 1.4rem;
    color: #295490;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        gap: 40px;
    }
    
    .info-grid {
        gap: 2rem;
    }
    
    .engineer-photo {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        margin-top: 70px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    }
    
    .contact-hero p {
        font-size: 1rem;
        color: white;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }
    
    .contact-left {
        height: auto;
    }
    
    .contact-team {
        justify-content: flex-start;
    }
    
    .contact-left h2 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-section,
    .contact-additional-info {
        padding: 60px 0;
    }
    
    /* Mobile layout for contact members */
    .contact-member {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        min-height: auto;
    }
    
    .engineer-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Map responsive adjustments */
    .map-section {
        height: auto;
    }
    
    .map-container {
        flex: none;
    }
    
    .map-wrapper {
        min-height: 350px;
    }
    
    .map-header {
        padding: 1.5rem;
    }
    
    .map-header h3 {
        font-size: 1.5rem;
    }
    
    .address-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        height: 300px;
        margin-top: 60px;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    }
    
    .contact-hero p {
        color: white;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    }
    
    .contact-left h2 {
        font-size: 1.8rem;
    }
    
    .contact-member,
    .info-item {
        padding: 1.5rem;
    }
    
    .engineer-photo {
        width: 80px;
        height: 80px;
    }
    
    .map-wrapper {
        min-height: 300px;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
    
    .map-header {
        padding: 1rem;
    }
    
    .map-header h3 {
        font-size: 1.3rem;
    }
    
    .address-info {
        padding: 1rem;
    }
    
    .location-item {
        font-size: 0.9rem;
    }
    
    .contact-info-section,
    .contact-additional-info {
        padding: 40px 0;
    }
    
    /* Stack contact items vertically on very small screens */
    .contact-member {
        gap: 0.8rem;
    }
    
    .member-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
}

/* Animation for smooth loading */
.contact-member,
.info-item,
.map-section {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.contact-member:nth-child(1) { animation-delay: 0.1s; }
.contact-member:nth-child(2) { animation-delay: 0.2s; }
.contact-member:nth-child(3) { animation-delay: 0.3s; }

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }

.map-section { animation-delay: 0.4s; }

/* Enhanced hover effects */
.contact-member:hover .member-info h3 {
    color: #4a90a4;
    transition: color 0.3s ease;
}

.map-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

/* Loading state for map */
.map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.map-wrapper iframe {
    position: relative;
    z-index: 2;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}