/* Contact Page Styles */

/* Contact Header */
.contact-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 150px 0 100px;
    margin-top: 75px;
    overflow: hidden;
    text-align: center;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.contact-header .header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.contact-header .header-content {
    position: relative;
    z-index: 2;
    color: white;
}

.contact-header .page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-header .page-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Location Section */
.location-section {
    padding: 80px 0;
    background: white;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.office-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(37, 115, 150, 0.2);
}

.office-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.office-card:hover .office-image img {
    transform: scale(1.1);
}

.office-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.office-badge.branch {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.office-info {
    padding: 35px;
}

.office-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.office-info h3 i {
    font-size: 1.5rem;
}

.address {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.address i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.address-text p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 5px;
}

/* Office Gallery */
.office-gallery {
    padding: 80px 0;
    background: var(--light-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 115, 150, 0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 25px 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to top, var(--primary-color), transparent);
}

/* Contact Info Section - REDESIGNED */
.contact-info-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, white 50%, var(--light-blue) 100%);
}

/* Primary Contacts */
.primary-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 80px;
}

.primary-contact-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.primary-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.primary-contact-card:hover::before {
    transform: scaleX(1);
}

.primary-contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(37, 115, 150, 0.2);
}

.whatsapp-card:hover {
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.3);
}

.email-card:hover {
    box-shadow: 0 20px 60px rgba(234, 67, 53, 0.3);
}

.primary-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 30px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(37, 115, 150, 0.3);
}

.whatsapp-card .primary-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.email-card .primary-icon {
    background: linear-gradient(135deg, #EA4335, #FBBC05);
}

.primary-contact-card:hover .primary-icon {
    transform: scale(1.15) rotate(10deg);
}

.primary-contact-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.primary-contact-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 115, 150, 0.3);
}

.whatsapp-card .contact-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.email-card .contact-btn {
    background: linear-gradient(135deg, #EA4335, #FBBC05);
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 115, 150, 0.4);
}

.contact-btn i {
    font-size: 1.3rem;
}

/* Social Media Section */
.social-media-section {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.social-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--light-blue);
    padding: 25px 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.social-card:hover::before {
    transform: translateX(0);
}

.social-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.social-card.linkedin {
    border-left: 5px solid #0077B5;
}

.social-card.linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
}

.social-card.instagram {
    border-left: 5px solid #E1306C;
}

.social-card.instagram:hover {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    border-color: #E1306C;
}

.social-card.tiktok {
    border-left: 5px solid #000000;
}

.social-card.tiktok:hover {
    background: #000000;
    border-color: #000000;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-card.linkedin .social-icon {
    color: #0077B5;
}

.social-card.instagram .social-icon {
    color: #E1306C;
}

.social-card.tiktok .social-icon {
    color: #000000;
}

.social-card:hover .social-icon {
    transform: scale(1.1) rotate(360deg);
    background: white;
}

.social-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-platform {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.social-card:hover .social-platform {
    color: white;
}

.social-handle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.social-card:hover .social-handle {
    color: white;
}

.social-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.social-card:hover .social-arrow {
    color: white;
    opacity: 1;
    transform: translateX(5px);
}

/* Remove old styles */
.contact-methods,
.contact-item,
.contact-icon,
.contact-details {
    display: none;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: var(--light-blue);
}

.map-container {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 500px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--light-blue);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: white;
    box-shadow: 0 5px 20px rgba(37, 115, 150, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(37, 115, 150, 0.05);
}

.faq-question h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

.faq-answer ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.faq-answer ul li {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .offices-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .primary-contacts {
        grid-template-columns: 1fr;
    }

    .social-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-header {
        padding: 120px 0 80px;
    }

    .contact-header .page-title {
        font-size: 2.5rem;
    }

    .contact-header .page-subtitle {
        font-size: 1.1rem;
    }

    .offices-grid {
        gap: 30px;
    }

    .office-image {
        height: 250px;
    }

    .office-info {
        padding: 25px;
    }

    .office-info h3 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 250px;
    }

    /* New Contact Responsive */
    .primary-contact-card {
        padding: 40px 30px;
    }

    .primary-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .primary-contact-card h3 {
        font-size: 1.5rem;
    }

    .social-media-section {
        padding: 40px 30px;
    }

    .social-title {
        font-size: 1.7rem;
    }

    .map-container iframe {
        min-height: 400px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .contact-header {
        padding: 100px 0 60px;
    }

    .contact-header .page-title {
        font-size: 2rem;
    }

    .offices-grid {
        grid-template-columns: 1fr;
    }

    .office-card {
        margin: 0 10px;
    }

    .office-image {
        height: 220px;
    }

    .office-info {
        padding: 20px;
    }

    .gallery-image {
        height: 220px;
    }

    /* New Contact Mobile Responsive */
    .primary-contacts {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .primary-contact-card {
        padding: 35px 25px;
    }

    .primary-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .primary-contact-card h3 {
        font-size: 1.3rem;
    }

    .contact-btn {
        font-size: 1rem;
        padding: 12px 25px;
        width: 100%;
        justify-content: center;
    }

    .social-media-section {
        padding: 35px 20px;
    }

    .social-title {
        font-size: 1.5rem;
    }

    .social-cards {
        gap: 15px;
    }

    .social-card {
        padding: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .social-handle {
        font-size: 1rem;
    }

    .map-container iframe {
        min-height: 350px;
    }

    .faq-question {
        padding: 18px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .faq-question h4 {
        padding-right: 0;
    }

    .faq-question i {
        align-self: flex-end;
    }
}
