/* ============================================================
   OVERHEAD CRANES — STYLES
   Extracted verbatim from wimaccrane.eu/assets/css/style.css
   (source line range 3541-3963). Includes .wm-cranes-section,
   .wm-cranes-header, .wm-cranes-tag, .wm-grid-3, .wm-grid-4,
   .wm-crane-card and supporting rules + responsive breakpoints.
   No selector collision with existing new/ CSS — all .wm-crane*
   and .wm-cranes* are unique to this design.
   .wm-tag-logo is also scoped to .wm-cranes-tag inside this block,
   coexists with the version scoped under .wm-products and the
   version scoped under .wm-hoists-tag in other stylesheets.
   ============================================================ */
.wm-cranes-section {
    background: #f8f9fa;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.wm-cranes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 233, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 233, 0, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

/* Dark variant for alternating sections */
.wm-cranes-section.wm-cranes-dark {
    background: #0a0a0a;
}

.wm-cranes-section.wm-cranes-dark::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 233, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 233, 0, 0.02) 0%, transparent 40%);
}

/* Section Header */
.wm-cranes-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.wm-cranes-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 10, 0.08);
    color: #0a0a0a;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(10, 10, 10, 0.1);
}

.wm-cranes-dark .wm-cranes-tag {
    background: rgba(255, 233, 0, 0.1);
    color: #ffe900;
    border: 1px solid rgba(255, 233, 0, 0.2);
}

.wm-cranes-tag .wm-tag-logo {
    height: 16px;
    width: auto;
}

.wm-cranes-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #0a0a0a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.wm-cranes-dark .wm-cranes-header h2 {
    color: #ffffff;
}

.wm-cranes-header p {
    font-size: 17px;
    color: rgba(10, 10, 10, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.wm-cranes-dark .wm-cranes-header p {
    color: rgba(255, 255, 255, 0.6);
}

/* Cranes Grid Layouts */
.wm-cranes-grid {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* 3-Column Grid (Overhead Cranes) */
.wm-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4-Column Grid (Gantry Cranes) */
.wm-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Crane Card */
.wm-crane-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    min-height: 420px;
    background: #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.wm-cranes-dark .wm-crane-card {
    background: #111;
    box-shadow: none;
}

.wm-crane-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px);
}

.wm-cranes-dark .wm-crane-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Card Image Container */
.wm-crane-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wm-crane-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.85);
    transform: scale(1);
    transition: filter 0.5s ease, transform 0.7s ease;
}

/* Hover Effect - Grayscale to Color + Zoom */
.wm-crane-card:hover .wm-crane-img img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.wm-crane-img2 {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wm-crane-img2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: filter 0.5s ease, transform 0.7s ease;
}

/* Hover Effect - Grayscale to Color + Zoom */
.wm-crane-card:hover .wm-crane-img2 img {
    transform: scale(1.1);
}

/* Card Number */
.wm-crane-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
    font-weight: 800;
    color: #0a0a0a;
    background: #ffe900;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 3;
    letter-spacing: 1px;
}

/* Card Overlay */
.wm-crane-overlay {
    position: absolute;
    inset: 0;
    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%
    );
    transition: background 0.4s ease;
}

.wm-crane-card:hover .wm-crane-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

/* Card Content */
.wm-crane-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wm-crane-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    transition: transform 0.3s ease;
}

.wm-crane-card:hover .wm-crane-content h3 {
    transform: translateY(-3px);
}

.wm-crane-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Link */
.wm-crane-link {
    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;
}

.wm-crane-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.wm-crane-card:hover .wm-crane-link {
    opacity: 1;
    transform: translateY(0);
}

.wm-crane-card:hover .wm-crane-link i {
    transform: translateX(4px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .wm-cranes-header h2 {
        font-size: 36px;
    }
    
    .wm-crane-card {
        min-height: 380px;
    }
    
    .wm-crane-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .wm-cranes-section {
        padding: 80px 0 100px;
    }
    
    /* 3-grid becomes 2+1 on tablet */
    .wm-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wm-grid-3 .wm-crane-card:last-child {
        grid-column: span 2;
    }
    
    /* 4-grid becomes 2x2 on tablet */
    .wm-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wm-crane-card {
        min-height: 350px;
    }
    
    .wm-cranes-header h2 {
        font-size: 32px;
    }
    
    .wm-cranes-header p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .wm-cranes-section {
        padding: 60px 0 80px;
    }
    
    .wm-cranes-header {
        margin-bottom: 40px;
    }
    
    .wm-cranes-header h2 {
        font-size: 28px;
    }
    
    .wm-cranes-tag {
        font-size: 11px;
        padding: 8px 18px;
    }
    
    .wm-cranes-grid {
        gap: 16px;
    }
    
    .wm-crane-card {
        min-height: 320px;
    }
    
    .wm-crane-content {
        padding: 24px;
    }
    
    .wm-crane-content h3 {
        font-size: 18px;
    }
    
    .wm-crane-content p {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .wm-crane-number {
        top: 15px;
        left: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Show link by default on mobile */
    .wm-crane-link {
        opacity: 1;
        transform: translateY(0);
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    /* Both grids become single column on mobile */
    .wm-grid-3,
    .wm-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .wm-grid-3 .wm-crane-card:last-child {
        grid-column: span 1;
    }
    
    .wm-crane-card {
        min-height: 280px;
    }
    
    .wm-cranes-header h2 {
        font-size: 24px;
    }
    
    .wm-cranes-header p {
        font-size: 14px;
    }
    
    .wm-crane-content {
        padding: 20px;
    }
    
    .wm-crane-content h3 {
        font-size: 18px;
    }
}



/* ========================================
   WIMAC HOISTS SECTION
   5-Grid Layout: 3 top + 2 wide bottom
   ======================================== */

/* Section Container */
