/* Hover Card Widget — Frontend Styles v1.1 */

.hcw-wrap {
    display: flex;
    width: 100%;
}

.hcw-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    width: 320px;
    height: 420px;
    border-radius: 16px;
    flex-shrink: 0;
}

/* Image */
.hcw-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 350ms ease;
}

.hcw-card.hcw-zoom:hover .hcw-img {
    transform: scale(1.06);
}

/* Overlay */
.hcw-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.10) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Title — always visible, shifts up on hover */
.hcw-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    margin: 0;
    padding: 0 16px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    transition: bottom 350ms ease;
    z-index: 2;
}

.hcw-card:hover .hcw-title {
    bottom: 110px;
}

/* Description — hidden by default, reveals on hover */
.hcw-desc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 70px;
    margin: 0;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 350ms ease 50ms, transform 350ms ease 50ms;
    z-index: 2;
    pointer-events: none;
}

.hcw-card:hover .hcw-desc {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Button wrapper — hidden by default, reveals on hover */
.hcw-btn-wrap {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 350ms ease 80ms, transform 350ms ease 80ms;
    z-index: 3;
    pointer-events: none;
}

.hcw-card:hover .hcw-btn-wrap {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Button */
.hcw-btn {
    display: inline-block;
    width: 100%;
    background-color: #4a7c3f;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 200ms ease, color 200ms ease, transform 150ms ease;
    line-height: 1.4;
}

.hcw-btn:hover {
    background-color: #3a6230;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hcw-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ── Elementor editor: show everything so it's editable ── */
.elementor-editor-active .hcw-desc,
.elementor-editor-active .hcw-btn-wrap {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.elementor-editor-active .hcw-title {
    bottom: 110px !important;
}
