/* ============================================================
   HOISTS & TROLLEYS — STYLES
   Extracted verbatim from wimaccrane.eu/assets/css/style.css
   (source line range 3964-4326).
   Classes are unique (.wm-hoist*, .wm-hoists*, .wm-hoists-tag);
   no collision with existing new/ stylesheets.
   .wm-tag-logo is scoped to .wm-hoists-tag in this file so it
   coexists peacefully with the version scoped under .wm-products
   in wm-products.css.
   ============================================================ */

.wm-hoists {
    background: #fff;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.wm-hoists::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 233, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 233, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Section Header */
.wm-hoists-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.wm-hoists-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 233, 0, 0.1);
    color: #ffe900;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 233, 0, 0.2);
}

.wm-hoists-tag .wm-tag-logo {
    height: 20px;
    width: auto;
}

.wm-hoists-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #0a0a0a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.wm-hoists-header p {
    font-size: 17px;
    color: rgba(10, 10, 10, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hoists Grid - 3 + 2 Layout */
.wm-hoists-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Base Card Styles */
.wm-hoist-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    min-height: 380px;
    background: #e9ecef;
    grid-column: span 2;
}

/* Wide Card (bottom row) */
.wm-hoist-wide {
    grid-column: span 3;
    min-height: 320px;
}

/* Card Image Container */
.wm-hoist-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wm-hoist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease;
}

/* Image stays normal; a subtle zoom accompanies the yellow fill on hover */
.wm-hoist-card:hover .wm-hoist-img img {
    transform: scale(1.06);
}

/* Card Overlay */
.wm-hoist-overlay {
    position: absolute;
    inset: 0;
    background: #ffe900;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Yellow fills from the bottom up, full opacity */
.wm-hoist-card:hover .wm-hoist-overlay {
    transform: scaleY(1);
}

/* Card Content */
.wm-hoist-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffe900;
    transition: padding 0.4s ease;
}

/* At rest this is a full-width yellow bar showing only the product name;
   on hover it grows as the yellow fills the whole card. */
.wm-hoist-card:hover .wm-hoist-content {
    padding: 30px;
}

/* Card Badge — collapsed at rest, expands on hover */
.wm-hoist-badge {
    background: #0a0a0a;
    color: #ffe900;
    padding: 0 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, transform 0.35s ease;
}

.wm-hoist-card:hover .wm-hoist-badge {
    opacity: 1;
    max-height: 30px;
    margin-bottom: 12px;
    padding: 6px 14px;
    transform: translateY(0);
}

.wm-badge-dark {
    background: #0a0a0a;
    color: #fff;
}

/* Card Title — at rest it is a yellow name tag; on hover it dissolves
   into the full yellow fill and becomes plain dark text. */
.wm-hoist-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.25;
    transition: font-size 0.35s ease;
}

.wm-hoist-card:hover .wm-hoist-content h3 {
    font-size: 24px;
}

/* Card Description — hidden at rest, revealed on hover */
.wm-hoist-content p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.55;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: opacity 0.35s ease, max-height 0.4s ease, margin 0.35s ease, transform 0.35s ease;
}

.wm-hoist-card:hover .wm-hoist-content p {
    opacity: 1;
    max-height: 140px;
    margin-top: 12px;
    transform: translateY(0);
}

.wm-hoist-wide .wm-hoist-content p {
    -webkit-line-clamp: 3;
}

/* Card Button — collapsed at rest, expands on hover */
.wm-hoist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 700;
    margin-top: 0;
    padding-right: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, transform 0.35s ease;
}

.wm-hoist-card:hover .wm-hoist-btn {
    opacity: 1;
    max-height: 30px;
    margin-top: 12px;
    transform: translateY(0);
}

.wm-hoist-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.wm-hoist-card:hover .wm-hoist-btn i {
    transform: translateX(4px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .wm-hoists-header h2 {
        font-size: 36px;
    }
    
    .wm-hoist-card {
        min-height: 350px;
    }
    
    .wm-hoist-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .wm-hoists {
        padding: 80px 0 100px;
    }
    
    .wm-hoists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .wm-hoist-card {
        grid-column: span 1;
        min-height: 320px;
    }
    
    .wm-hoist-wide {
        grid-column: span 1;
        min-height: 320px;
    }
    
    /* Last card spans full width ONLY when it's alone on its row
       (odd number of cards). With an even count it stays in its column. */
    .wm-hoist-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
    
    .wm-hoists-header h2 {
        font-size: 32px;
    }
    
    .wm-hoists-header p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .wm-hoists {
        padding: 60px 0 80px;
    }
    
    .wm-hoists-header {
        margin-bottom: 40px;
    }
    
    .wm-hoists-header h2 {
        font-size: 28px;
    }
    
    /* Header tag */
.wm-hoists-tag {
    background: rgba(10, 10, 10, 0.08);
    color: #0a0a0a;
    border: 1px solid rgba(10, 10, 10, 0.1);
}
    
    .wm-hoists-grid {
        gap: 16px;
    }
    
    .wm-hoist-card {
        min-height: 280px;
    }
    
    .wm-hoist-content {
        padding: 24px;
    }
    
    .wm-hoist-content h3 {
        font-size: 20px;
    }
    
    .wm-hoist-content p {
        font-size: 13px;
    }
    
    /* Show button by default on mobile */
    .wm-hoist-btn {
        opacity: 1;
        transform: translateY(0);
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .wm-hoists-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .wm-hoist-card,
    .wm-hoist-wide,
    .wm-hoist-card:last-child {
        grid-column: span 1;
        min-height: 260px;
    }
    
    .wm-hoists-header h2 {
        font-size: 24px;
    }
    
    .wm-hoists-header p {
        font-size: 14px;
    }
    
    .wm-hoist-content {
        padding: 20px;
    }
    
    .wm-hoist-content h3 {
        font-size: 18px;
    }
    
    .wm-hoist-content p {
        -webkit-line-clamp: 2;
    }
}

/* ========================================
   Components card — uniquely, permanently
   yellow with no image (rest = hover state)
   ======================================== */
.wm-hoist-card--yellow,
.wm-hoist-card--yellow:hover {
    background: #ffe900 !important;
}

.wm-hoist-card--yellow .wm-hoist-content {
    padding: 30px;
}

.wm-hoist-card--yellow .wm-hoist-badge {
    opacity: 1;
    max-height: 30px;
    margin-bottom: 12px;
    padding: 6px 14px;
    transform: translateY(0);
}

.wm-hoist-card--yellow .wm-hoist-content h3 {
    font-size: 24px;
}

.wm-hoist-card--yellow .wm-hoist-btn {
    opacity: 1;
    max-height: 30px;
    margin-top: 12px;
    transform: translateY(0);
}
