/**
 * Sidebar — Pure CSS
 */

.sh-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 10;
}

/* ── Widget Card ── */
.sh-sidebar__widget {
    background: var(--pi-bg-card, #ffffff);
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pi-border, #e2e8f0);
    padding: 1.5rem;
}

@media (min-width: 640px) { .sh-sidebar__widget { padding: 2rem; } }

.sh-sidebar__widget-title {
    color: var(--pi-text, #1e293b);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.125rem;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sh-sidebar__title-bar {
    width: 0.625rem;
    height: 1.5rem;
    background: var(--pi-primary, #007d3d);
    border-radius: 9999px;
    flex-shrink: 0;
}

/* ── CTA List ── */
.sh-sidebar__cta-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sh-sidebar__cta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--pi-bg-alt, #f3f4f6);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--pi-border-light, #f1f5f9);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.sh-sidebar__cta-item:hover {
    background: var(--pi-bg-card, #ffffff);
    border-color: color-mix(in srgb, var(--pi-primary, #007d3d) 30%, transparent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sh-sidebar__cta-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--pi-bg-card, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pi-text-3, #94a3b8);
    border: 1px solid var(--pi-border, #e2e8f0);
    flex-shrink: 0;
    transition: all 0.3s;
}

.sh-sidebar__cta-item:hover .sh-sidebar__cta-icon {
    background: color-mix(in srgb, var(--pi-primary, #007d3d) 10%, transparent);
    color: var(--pi-primary, #007d3d);
    border-color: color-mix(in srgb, var(--pi-primary, #007d3d) 20%, transparent);
}

.sh-sidebar__cta-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sh-sidebar__cta-label {
    color: var(--pi-text-2, #475569);
    font-weight: 700;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.sh-sidebar__cta-item:hover .sh-sidebar__cta-label {
    color: var(--pi-primary, #007d3d);
}

/* ── Sticky Contact ── */
.sh-sidebar__sticky {
    position: sticky;
    top: 6rem;
    z-index: 10;
}

.sh-sidebar__contact {
    background: var(--pi-bg, #111827);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sh-sidebar__contact-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(to right, var(--pi-primary, #007d3d), var(--pi-secondary, #ffb703), var(--pi-primary, #007d3d));
}

.sh-sidebar__contact-glow {
    position: absolute;
    right: -2.5rem;
    bottom: -2.5rem;
    width: 8rem;
    height: 8rem;
    background: color-mix(in srgb, var(--pi-primary, #007d3d) 20%, transparent);
    border-radius: 50%;
    filter: blur(3rem);
    transition: background 0.5s;
}

.sh-sidebar__contact:hover .sh-sidebar__contact-glow {
    background: color-mix(in srgb, var(--pi-primary, #007d3d) 40%, transparent);
}

.sh-sidebar__contact-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.sh-sidebar__contact:hover .sh-sidebar__contact-icon-wrap {
    transform: scale(1.1);
}

.sh-sidebar__contact-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.sh-sidebar__contact-title {
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
    position: relative;
    z-index: 10;
}

.sh-sidebar__contact-desc {
    font-size: 0.875rem;
    color: var(--pi-text-muted, #9ca3af);
    margin: 0 0 2rem;
    line-height: 1.625;
    position: relative;
    z-index: 10;
}

.sh-sidebar__contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--pi-primary, #007d3d);
    color: #fff;
    font-weight: 700;
    padding: 1rem;
    border-radius: var(--pi-radius, 0.75rem);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--pi-primary, #007d3d) 30%, transparent);
    transition: all 0.2s;
}

.sh-sidebar__contact-btn:hover {
    background: var(--pi-primary-dark, #004d26);
    transform: translateY(-2px);
}

.sh-sidebar__contact-btn-icon {
    width: 1rem;
    height: 1rem;
}

/* ── Dark Mode ── */
.dark .sh-sidebar__widget { background: var(--pi-bg-card, #1e293b); border-color: var(--pi-border, #334155); }
.dark .sh-sidebar__widget-title { color: var(--pi-text, #f1f5f9); }
.dark .sh-sidebar__cta-item { background: var(--pi-bg-elevated, #334155); border-color: var(--pi-border, #334155); }
.dark .sh-sidebar__cta-item:hover { background: var(--pi-bg-card, #1e293b); }
.dark .sh-sidebar__cta-icon { background: var(--pi-bg-card, #1e293b); border-color: var(--pi-border, #334155); }
.dark .sh-sidebar__cta-label { color: var(--pi-text-2, #e2e8f0); }
