/*
 * Contact Icons — Hello Elementor Child
 * Shared styling for icon clusters in header, footer, and archive hero.
 */

/* Inline SVG sizing baseline — inherits color via currentColor */
.hec-site-header__contact svg,
.hec-site-footer__contact-item svg,
.hec-archive__contact-link svg,
.hec-btn svg,
.hec-cta-banner__btn svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ========================================================================
   HEADER CONTACT ICONS — inline next to brand
   ======================================================================== */
.hec-site-header__brand-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.hec-site-header__contact {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--hec-border);
}

html body .hec-site-header__contact-link,
html body .hec-site-header__contact-link:link,
html body .hec-site-header__contact-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--hec-text) !important;
    opacity: 0.65;
    text-decoration: none !important;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    background: transparent !important;
    border: none !important;
}

html body .hec-site-header__contact-link:hover,
html body .hec-site-header__contact-link:focus {
    color: var(--hec-accent) !important;
    opacity: 1;
    transform: translateY(-1px);
    background: transparent !important;
}

/* ========================================================================
   FOOTER CONTACT ROW
   ======================================================================== */
.hec-site-footer__contact-row {
    border-bottom: 1px solid var(--hec-border);
}

.hec-site-footer__contact-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 1.5rem var(--hec-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-family: var(--hec-font-body);
    font-size: 0.85rem;
    color: var(--hec-text);
}

html body .hec-site-footer__contact-item,
html body .hec-site-footer__contact-item:link,
html body .hec-site-footer__contact-item:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--hec-text) !important;
    -webkit-text-fill-color: var(--hec-text) !important;
    text-decoration: none !important;
    opacity: 0.8;
    transition: color 0.25s ease, opacity 0.25s ease;
}

html body a.hec-site-footer__contact-item:hover,
html body a.hec-site-footer__contact-item:focus {
    color: var(--hec-accent) !important;
    -webkit-text-fill-color: var(--hec-accent) !important;
    opacity: 1;
}

.hec-site-footer__contact-item--static {
    opacity: 0.65;
}

/* ========================================================================
   ARCHIVE HERO CONTACT ICONS — sits inside .hec-archive__headline directly
   under the title + intro, regardless of whether hero has a bg image.
   ======================================================================== */
.hec-archive__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0 0;
}

html body .hec-archive__contact-link,
html body .hec-archive__contact-link:link,
html body .hec-archive__contact-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #aaaaaa !important;
    opacity: 1;
    text-decoration: none !important;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background: transparent !important;
}

html body .hec-archive__contact-link:hover,
html body .hec-archive__contact-link:focus {
    color: #ffffff !important;
    background: var(--hec-accent) !important;
    border-color: var(--hec-accent);
    transform: translateY(-2px);
}

/* When hero has bg image: light grey on dark overlay, pure white on hover */
.hec-archive__hero--image .hec-archive__contact-link {
    color: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.25);
}

.hec-archive__hero--image .hec-archive__contact-link:hover,
.hec-archive__hero--image .hec-archive__contact-link:focus {
    color: #ffffff !important;
    background: transparent !important;
    border-color: #ffffff;
}

/* ========================================================================
   CTA BUTTON ICON — align nicely with text
   ======================================================================== */
.hec-btn svg,
.hec-cta-banner__btn svg {
    margin-right: 0.15rem;
    opacity: 0.95;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 768px) {
    .hec-site-header__contact {
        gap: 0;
        padding-left: 0.5rem;
    }

    html body .hec-site-header__contact-link {
        width: 28px;
        height: 28px;
    }

    .hec-site-footer__contact-inner {
        gap: 1rem;
        padding: 1.25rem 1.25rem;
        font-size: 0.8rem;
    }

    html body .hec-site-footer__contact-item {
        flex-basis: 100%;
        justify-content: center;
    }

    .hec-archive__contact {
        gap: 0.4rem;
    }

    html body .hec-archive__contact-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    /* Hide header contact icons on very narrow screens to preserve hamburger space */
    .hec-site-header__contact {
        display: none;
    }
}
