/**
 * ACF Contacts List Styles
 * Main Color: #5e1f78
 * Accent Color: #f39200
 * Font: Neris (headings semibold)
 */

/* Wrapper */
.acf-contacts-wrapper {
    font-family: 'Neris', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Empty state */
.acf-contacts-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Category Section */
.acf-contacts-category {
    margin-bottom: 60px;
}

.acf-contacts-category:last-child {
    margin-bottom: 0;
}

.acf-contacts-category-title {
    font-family: 'Neris', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #5e1f78;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #5e1f78;
    position: relative;
}

.acf-contacts-category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    
}

/* Grid Layout */
.acf-contacts-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.acf-contacts-grid-1 {
    grid-template-columns: 1fr;
}

.acf-contacts-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.acf-contacts-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.acf-contacts-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .acf-contacts-grid-3,
    .acf-contacts-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .acf-contacts-grid-2,
    .acf-contacts-grid-3,
    .acf-contacts-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Contact Card */
.acf-contact-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(94, 31, 120, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.acf-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(94, 31, 120, 0.15);
    border-color: #f39200;
}

/* Contact Image */
.acf-contact-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #5e1f78 0%, #7a2f99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.acf-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.acf-contact-card:hover .acf-contact-image img {
    transform: scale(1.05);
}

.acf-contact-image-placeholder {
    background: linear-gradient(135deg, #5e1f78 0%, #7a2f99 100%);
}

.acf-contact-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Info */
.acf-contact-info {
    padding: 24px;
}

.acf-contact-name {
    font-family: 'Neris', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #5e1f78;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

/* Contact Details */
.acf-contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acf-contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
}

.acf-contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #f39200;
}

.acf-contact-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.acf-contact-link:hover {
    color: #5e1f78;
}

/* Accessibility */
.acf-contact-link:focus {
    outline: 2px solid #f39200;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Print Styles */
@media print {
    .acf-contact-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .acf-contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .acf-contacts-wrapper {
        padding: 15px;
    }
    
    .acf-contacts-category-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .acf-contact-image {
        height: 220px;
    }
    
    .acf-contact-info {
        padding: 20px;
    }
    
    .acf-contact-name {
        font-size: 20px;
    }
}
