/**
 * Gradient aside panels: shared by Contact Hub (contact.php) and
 * Inquiry aside (inquiry.php). Loaded whenever either page is shown.
 *
 * Fixes default browser link colours on dark gradients and styles
 * channel icons so they read as polished UI chrome, not raw FA glyphs.
 */

/* -----------------------------------------------------------------
   Channel list (contact hub left column + inquiry sticky aside)
   ----------------------------------------------------------------- */
.contact-hub-channels {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.inquiry-aside-channels {
    margin-bottom: 0;
}

.contact-hub-channels > li,
.inquiry-aside .contact-hub-channels > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ch-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
    list-style: none;
}

.ch-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 6px 16px rgba(0, 24, 64, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.05rem;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ch-icon i,
.ch-icon svg {
    font-size: 1.08rem;
    line-height: 1;
    color: inherit;
    filter: drop-shadow(0 2px 3px rgba(0, 12, 40, 0.45));
    -webkit-font-smoothing: antialiased;
}

.ch-item:hover .ch-icon {
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 22px rgba(0, 24, 64, 0.35);
}

.ch-icon-whatsapp {
    background:
        linear-gradient(165deg, rgba(37, 211, 102, 0.45) 0%, rgba(18, 140, 126, 0.35) 100%);
    border-color: rgba(145, 236, 188, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 6px 18px rgba(18, 140, 126, 0.45);
}

.ch-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ch-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- Text links on gradient (kill UA blue / purple) ---------- */
.ch-value {
    font-size: 0.98rem;
    font-weight: 500;
    word-break: break-word;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Anchors must beat :link / :visited specificity */
.contact-hub-info a.ch-value:link,
.contact-hub-info a.ch-value:visited,
.inquiry-aside a.ch-value:link,
.inquiry-aside a.ch-value:visited {
    color: #f4f9ff !important;
    text-decoration: none !important;
    text-decoration-color: transparent;
}

.contact-hub-info a.ch-value:hover,
.inquiry-aside a.ch-value:hover {
    color: #ffd07a !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.contact-hub-info a.ch-value:focus-visible,
.inquiry-aside a.ch-value:focus-visible {
    outline: 2px solid #ffd07a;
    outline-offset: 3px;
    border-radius: 4px;
    color: #ffffff !important;
}

/* Non-anchor .ch-value (if any) */
span.ch-value {
    color: rgba(255, 255, 255, 0.96);
}

.ch-value-muted {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.92rem;
    font-weight: 400;
}

.ch-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.58);
    font-style: italic;
}

/* WhatsApp pill */
.ch-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 22px -8px rgba(18, 140, 126, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ch-pill i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.ch-pill:link,
.ch-pill:visited {
    color: #ffffff !important;
}

.ch-pill:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 14px 28px -8px rgba(18, 140, 126, 0.75);
}

.ch-pill:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Social row under contact hub info */
.contact-hub-socials {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    gap: 10px;
}

.contact-hub-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(0, 24, 64, 0.2);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-hub-socials a:link,
.contact-hub-socials a:visited {
    color: #ffffff !important;
}

.contact-hub-socials a:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 8px 20px rgba(0, 24, 64, 0.35);
}

.contact-hub-socials a:focus-visible {
    outline: 2px solid #ffd07a;
    outline-offset: 3px;
}
