/* ============================================
   ICC-Service: Contacts + Map Section
   v1.0
   Left map + right contact cards
   ============================================ */

.icc-contacts {
    --ctc-accent: var(--icc-ctc-accent, #0097a7);
    --ctc-accent-rgb: var(--icc-ctc-accent-rgb, 0, 151, 167);
    --ctc-primary: var(--icc-ctc-primary, #0097a7);
    --ctc-primary-hover: var(--icc-ctc-primary-hover, #00838f);
    --ctc-bg: var(--icc-ctc-bg, #f8fafc);
    --ctc-font: var(--icc-ctc-font, Inter, -apple-system, BlinkMacSystemFont, sans-serif);
    --ctc-heading-weight: var(--icc-ctc-heading-weight, 700);
    --ctc-card-bg: #fff;
    --ctc-border: #e2e8f0;
    --ctc-text: #64748b;
    --ctc-title-color: #1e293b;

    background: var(--ctc-bg);
    padding: 56px 0 64px;
    font-family: var(--ctc-font);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative blob */
.icc-contacts::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ctc-accent-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Inner container ──────────────── */
.icc-contacts__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* ── Header ──────────────────────── */
.icc-contacts__header {
    text-align: center;
    margin-bottom: 40px;
}

.icc-contacts__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(var(--ctc-accent-rgb), 0.08);
    color: var(--ctc-accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.icc-contacts__tag i {
    font-size: 11px;
}

.icc-contacts__title {
    font-size: clamp(17px, 1.75vw, 24px);
    font-weight: var(--ctc-heading-weight);
    color: var(--ctc-title-color);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.icc-contacts__subtitle {
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    color: var(--ctc-text);
    margin: 0 0 16px;
    letter-spacing: 0.2px;
}

.icc-contacts__title-line {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ctc-accent), rgba(var(--ctc-accent-rgb), 0.4));
    border-radius: 3px;
    margin: 0 auto;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icc-contacts:hover .icc-contacts__title-line {
    width: 120px;
}

/* ── Grid: map left, info right ───── */
.icc-contacts__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ── Map ──────────────────────────── */
.icc-contacts__map {
    position: relative;
}

.icc-contacts__map-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.06),
        0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.icc-contacts__map-wrap:hover {
    box-shadow:
        0 8px 32px rgba(0,0,0,0.1),
        0 2px 8px rgba(0,0,0,0.06);
}

.icc-contacts__map-wrap--loaded {
    cursor: default;
}

.icc-contacts__map-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.icc-contacts__map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.icc-contacts__map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.25);
    transition: background 0.3s ease;
}

.icc-contacts__map-wrap:hover .icc-contacts__map-overlay {
    background: rgba(10, 22, 40, 0.15);
}

.icc-contacts__map-wrap--loaded .icc-contacts__map-overlay,
.icc-contacts__map-wrap--loaded .icc-contacts__map-placeholder {
    display: none;
}

.icc-contacts__map-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.95);
    color: var(--ctc-title-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icc-contacts__map-wrap:hover .icc-contacts__map-hint {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.icc-contacts__map-hint i {
    color: var(--ctc-accent);
    font-size: 16px;
    animation: icc-ctc-pulse 2s infinite;
}

@keyframes icc-ctc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* iframe inside wrap */
.icc-contacts__map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
}

/* ── Contact info cards ──────────── */
.icc-contacts__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icc-contacts__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--ctc-card-bg);
    border: 1px solid var(--ctc-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

a.icc-contacts__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--ctc-accent-rgb), 0.1);
    border-color: rgba(var(--ctc-accent-rgb), 0.3);
}

.icc-contacts__card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg,
        rgba(var(--ctc-accent-rgb), 0.12),
        rgba(var(--ctc-accent-rgb), 0.04));
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icc-contacts__card-icon i {
    font-size: 18px;
    color: var(--ctc-accent);
}

a.icc-contacts__card:hover .icc-contacts__card-icon {
    background: linear-gradient(145deg,
        rgba(var(--ctc-accent-rgb), 0.2),
        rgba(var(--ctc-accent-rgb), 0.08));
    transform: scale(1.08);
}

.icc-contacts__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.icc-contacts__card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ctc-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icc-contacts__card-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ctc-title-color);
    line-height: 1.3;
}

a.icc-contacts__card:hover .icc-contacts__card-value {
    color: var(--ctc-accent);
}

.icc-contacts__card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease;
}

.icc-contacts__card-arrow i {
    font-size: 12px;
    color: var(--ctc-text);
    transition: color 0.2s ease, transform 0.2s ease;
}

a.icc-contacts__card:hover .icc-contacts__card-arrow {
    background: rgba(var(--ctc-accent-rgb), 0.1);
}

a.icc-contacts__card:hover .icc-contacts__card-arrow i {
    color: var(--ctc-accent);
    transform: translateX(2px);
}

/* ── Socials row ─────────────────── */
.icc-contacts__socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.icc-contacts__social {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.icc-contacts__social:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.icc-contacts__social i {
    font-size: 20px;
}

/* WhatsApp */
.icc-contacts__social--wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.icc-contacts__social--wa:hover {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* Telegram */
.icc-contacts__social--tg {
    background: linear-gradient(135deg, #2aabee, #229ed9);
    color: #fff;
    box-shadow: 0 4px 16px rgba(42, 171, 238, 0.3);
}

.icc-contacts__social--tg:hover {
    box-shadow: 0 6px 24px rgba(42, 171, 238, 0.4);
    color: #fff;
}

/* ── RESPONSIVE ──────────────────── */

/* Medium desktop */
@media (max-width: 1100px) {
    .icc-contacts {
        padding: 48px 0 56px;
    }
    .icc-contacts__grid {
        gap: 24px;
    }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    .icc-contacts__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .icc-contacts {
        padding: 40px 0 48px;
    }
    .icc-contacts__header {
        margin-bottom: 28px;
    }
    .icc-contacts__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .icc-contacts__map-wrap {
        aspect-ratio: 16 / 10;
    }
    .icc-contacts__card {
        padding: 14px 16px;
        gap: 12px;
    }
    .icc-contacts__card-icon {
        width: 42px;
        height: 42px;
    }
    .icc-contacts__card-icon i {
        font-size: 16px;
    }

    /* Hide decorative blob on mobile */
    .icc-contacts::before {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 600px) {
    .icc-contacts {
        padding: 32px 0 40px;
    }
    .icc-contacts__map-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }
    .icc-contacts__map-wrap iframe {
        border-radius: 12px;
    }
    .icc-contacts__map-hint {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 10px;
    }
    .icc-contacts__card {
        padding: 12px 14px;
        border-radius: 12px;
    }
    .icc-contacts__card-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .icc-contacts__card-value {
        font-size: 14px;
    }
    .icc-contacts__card-arrow {
        display: none;
    }
    .icc-contacts__socials {
        flex-direction: column;
    }
    .icc-contacts__social {
        padding: 12px 16px;
    }
}

/* Extra small */
@media (max-width: 480px) {
    .icc-contacts__inner {
        padding: 0 12px;
    }
    .icc-contacts__map-wrap {
        aspect-ratio: 1 / 1;
    }
    .icc-contacts__card-label {
        font-size: 11px;
    }
    .icc-contacts__card-value {
        font-size: 13px;
    }
}

/* ── ACCESSIBILITY ───────────────── */
@media (prefers-reduced-motion: reduce) {
    .icc-contacts *,
    .icc-contacts *::before,
    .icc-contacts *::after {
        transition: none !important;
        animation: none !important;
        will-change: auto !important;
    }
    a.icc-contacts__card:hover {
        transform: none;
    }
}
