/* ============================================================
   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;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    grid-column: span 2;
}

.wm-hoist-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
}

/* 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;
    filter: grayscale(100%) brightness(0.7);
    transform: scale(1);
    transition: filter 0.5s ease, transform 0.7s ease;
}

/* Hover Effect - Grayscale to Color + Zoom */
.wm-hoist-card:hover .wm-hoist-img img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Card Overlay */
.wm-hoist-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    transition: background 0.4s ease;
}

.wm-hoist-card:hover .wm-hoist-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* Card Content */
.wm-hoist-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Card Badge */
.wm-hoist-badge {
    background: #ffe900;
    color: #0a0a0a;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wm-badge-dark {
    background: #fff;
    color: #0a0a0a;
}

/* Card Title */
.wm-hoist-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.wm-hoist-card:hover .wm-hoist-content h3 {
    transform: translateY(-3px);
}

/* Card Description */
.wm-hoist-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wm-hoist-wide .wm-hoist-content p {
    -webkit-line-clamp: 3;
}

/* Card Button */
.wm-hoist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffe900;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, gap 0.3s ease;
}

.wm-hoist-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.wm-hoist-card:hover .wm-hoist-btn {
    opacity: 1;
    transform: translateY(0);
}

.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 (Ex-proof) spans full width */
    .wm-hoist-card:last-child {
        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;
    }
}
