/* ===========================
   CONTACT INFO CARDS SECTION
   =========================== */

/* Note: This widget uses CSS variables defined in the main theme style.css
   Key variables used:
   --primary-color: #1e40af (Main brand blue)
   --primary-light: #60a5fa (Light blue)
   --primary-dark: #1e40af (Dark blue)
   --primary-green: #2e8f33 (Legacy green for compatibility)
   --dark-text: #1a1a1a
   --light-text: #333333
   --white: #ffffff
*/

.contact-info-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.contact-info-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

.contact-info-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info-header p {
    font-size: 16px;
    color: var(--light-text);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.contact-info-card {
    background: white;
    padding: 48px 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 143, 51, 0.08);
    animation: fadeInUp 0.8s ease backwards;
}

.contact-info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-info-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.contact-info-card:hover {
    /* transform: translateY(-12px); */
    box-shadow: 0 16px 48px rgba(46, 143, 51, 0.15);
    border-color: var(--primary-color);
}

.card-icon-wrapper {
    position: relative;
    margin-bottom: 28px;
    display: inline-block;
}

.icon-bg {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(46, 143, 51, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.contact-info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(46, 143, 51, 0.25);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(46, 143, 51, 0.35);
}

.contact-info-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.contact-info-card p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.contact-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.contact-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: translateX(4px);
}

.contact-time {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    font-weight: 500;
}

/* Office Locations Styling */
.office-locations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    width: 100%;
}

.office-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.office-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.office-flag {
    flex-shrink: 0;
    width: 25px;
    height: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    margin-top: 4px;
}

/* .office-card:hover .office-flag {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(46, 143, 51, 0.2);
} */

.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.office-details {
    flex: 1;
    text-align: left;
}

.office-country {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-address {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.office-address i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 14px;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .contact-info-header h2 {
        font-size: 28px;
    }

    .contact-info-grid {
        gap: 24px;
    }

    .contact-info-card {
        padding: 36px 28px;
    }

    .contact-info-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    /* Office Cards Tablet Responsive */
    .office-locations {
        gap: 18px;
        margin-top: 22px;
    }

    .office-card {
        padding: 18px;
        gap: 14px;
    }

    .office-flag {
        width: 52px;
        height: 52px;
    }

    .office-country {
        font-size: 15px;
    }

    .office-address {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .contact-info-header h2 {
        font-size: 22px;
    }

    .contact-info-header p {
        font-size: 14px;
    }

    .contact-info-grid {
        gap: 16px;
    }

    .contact-info-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .contact-info-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .contact-info-card h3 {
        font-size: 18px;
    }

    .contact-info-card p {
        font-size: 13px;
    }

    /* Office Cards Responsive */
    .office-locations {
        gap: 16px;
        margin-top: 20px;
    }

    .office-card {
        padding: 16px;
        gap: 12px;
    }

    .office-flag {
        width: 48px;
        height: 27px;
        border-radius: 0px;
        border-width: 2px;
        box-shadow: none;
    }

    .office-country {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .office-address {
        font-size: 13px;
    }

    .office-address i {
        font-size: 12px;
    }
}

