/* ========================================
   Oplossingen Overzicht Page
   Aqua+ style, SpaarElektra colors
   ======================================== */

/* ========================================
   HERO
   ======================================== */
.opl-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--primary);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.opl-hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.opl-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 140px 40px 48px;
}

.opl-hero-title {
    font-size: clamp(60px, 8vw, 140px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin: 0 0 20px;
    padding-left: 10%;
    letter-spacing: -2px;
}

.opl-hero-intro {
    max-width: 480px;
    padding-left: 10%;
}

.opl-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.opl-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.opl-breadcrumb a:hover {
    color: var(--white);
}

.opl-breadcrumb span {
    margin: 0 6px;
}

.opl-hero-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.3;
}

.opl-hero-subtitle::before {
    content: '+';
    color: var(--accent);
    margin-right: 8px;
    font-weight: 900;
}

.opl-hero-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.opl-scroll-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: opacity 0.3s;
}

.opl-scroll-link:hover {
    opacity: 0.8;
}

/* ========================================
   SOLUTION CARDS GRID
   ======================================== */
.opl-grid-wrap {
    background: var(--primary);
}

.opl-grid {
    padding: 80px 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Wide card (first one) spans full width */
.opl-card-wide {
    grid-column: 1 / -1;
}

.opl-card {
    display: flex;
    text-decoration: none;
    color: var(--white);
    overflow: hidden;
    position: relative;
    min-height: 320px;
    transition: transform 0.3s ease;
}

.opl-card:hover {
    transform: translateY(-4px);
}

.opl-card-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.opl-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.opl-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Wide card: photo on left half, content on right half */
.opl-card-wide .opl-card-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
}

.opl-card-wide .opl-card-content {
    margin-left: 50%;
    width: 50%;
    background: var(--accent);
    padding: 40px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Regular cards: overlay content on photo */
.opl-card:not(.opl-card-wide) .opl-card-content {
    position: relative;
    z-index: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.opl-card-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.opl-card-wide .opl-card-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.opl-card-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.opl-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.opl-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.opl-card:hover .opl-plus {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   SERVICE & ONDERHOUD
   ======================================== */
.opl-service {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    background: var(--white);
    max-width: 1400px;
    margin: 80px auto 80px;
}

.opl-service-photo {
    width: 50%;
    flex-shrink: 0;
}

.opl-service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.opl-service-photo .opl-card-placeholder {
    background: linear-gradient(135deg, #e8e4e5 0%, #d0cbcc 100%);
    color: #999;
}

.opl-service-content {
    width: 50%;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opl-service-content h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.14;
}

.opl-service-content p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: #403e3f;
    margin-bottom: 30px;
}

.opl-service-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.opl-service-btn:hover {
    background: var(--accent-dark, #b30000);
    border-color: var(--accent-dark, #b30000);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .opl-hero {
        min-height: 45vh;
    }

    .opl-hero-photo {
        width: 50%;
    }

    .opl-hero-title {
        font-size: clamp(50px, 7vw, 90px);
    }

    .opl-grid {
        padding: 60px 24px 30px;
        gap: 16px;
        max-width: 100%;
    }

    .opl-card {
        min-height: 280px;
    }

    .opl-card-wide .opl-card-content {
        padding: 30px;
    }

    .opl-service-content {
        padding: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .opl-hero {
        min-height: auto;
        flex-direction: column;
    }

    .opl-hero-photo {
        position: relative;
        width: 100%;
        height: 250px;
    }

    .opl-hero-content {
        padding: 30px 20px 40px;
    }

    .opl-hero-title {
        font-size: clamp(40px, 10vw, 60px);
        padding-left: 0;
    }

    .opl-hero-intro {
        padding-left: 0;
    }

    .opl-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px 20px;
        max-width: 100%;
    }

    .opl-card-wide .opl-card-photo {
        position: absolute;
        width: 100%;
    }

    .opl-card-wide .opl-card-content {
        margin-left: 0;
        width: 100%;
        background: rgba(206, 17, 38, 0.9);
    }

    .opl-card {
        min-height: 260px;
    }

    .opl-card-wide .opl-card-title {
        font-size: 24px;
    }

    .opl-service {
        flex-direction: column;
    }

    .opl-service-photo {
        width: 100%;
        height: 200px;
    }

    .opl-service-content {
        width: 100%;
        padding: 30px 20px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .opl-hero-title {
        font-size: clamp(34px, 10vw, 50px);
    }

    .opl-card {
        min-height: 220px;
    }

    .opl-card-title {
        font-size: 20px;
    }

    .opl-card-desc {
        font-size: 14px;
    }
}
