/* ===== COMBINED HERO SECTION STYLES ===== */

.hero-combined {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-combined .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-combined .hero-bg img,
.hero-combined .hero-bg picture {
    width: 100%;
    height: 100%;
}

.hero-combined .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Desktop: show image in bottom half, centered */
@media (min-width: 769px) {
    .hero-combined .hero-bg img {
        object-position: center 75%;
    }
}

/* Mobile: use bathroom image as background */
@media (max-width: 768px) {
    .hero-combined {
        background: linear-gradient(rgba(26, 26, 26, 0.05), rgba(26, 26, 26, 0.1)),
                    url('../images/mydrain-bathroom-3.1.webp');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .hero-combined .hero-bg {
        display: none;
    }
    
    .hero-color-matrix {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.18);
        border: 2px solid rgba(255, 255, 255, 0.25);
    }
}

.hero-content-combined {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    padding-top: calc(80px + var(--spacing-xl));
    width: 100%;
}

/* Hero title - no underline for cleaner look */
.hero-title-main {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: none;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

.hero-brand-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.hero-text {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: #3a3a3a;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.hero-text-highlight {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-primary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.hero-color-matrix {
    background: rgba(174, 157, 146, 0.45);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    padding: var(--spacing-xl);
    border-radius: 16px;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 80px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 48px rgb(0 0 0 / 26%);
}

.hero-color-matrix h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-color-matrix p {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-color-matrix .btn-primary {
    margin-top: var(--spacing-sm);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    padding: 14px 32px;
}

/* Matrix druppels: zelfde rand als homepage */
.hero-color-matrix .color-droplet .droplet-fill {
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2;
    -webkit-stroke: rgba(255, 255, 255, 0.85);
    -webkit-stroke-width: 2;
    paint-order: stroke fill;
}

/* Witte druppel in matrix: zwarte rand */
.hero-color-matrix .color-ball[onclick*="white"] .color-droplet .droplet-fill {
    stroke: rgb(0 0 0 / 70%);
    stroke-width: 2;
    -webkit-stroke: rgb(0 0 0 / 70%);
    -webkit-stroke-width: 2;
}

.hero-color-preview {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    justify-content: center;
    align-items: flex-end;
    margin-top: var(--spacing-md);
    max-width: 100%;
}

.hero-color-preview .color-ball {
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hero-color-preview .color-ball:hover {
    transform: translateY(-4px);
}

.hero-color-preview .color-ball .color-droplet {
    width: clamp(36px, 4.5vw, 56px);
    height: auto;
    display: block;
    overflow: visible;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-color-preview .color-ball .color-droplet .droplet-fill {
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2;
    -webkit-stroke: rgba(255, 255, 255, 0.85);
    -webkit-stroke-width: 2;
    paint-order: stroke fill;
}

/* Witte druppel krijgt zwarte rand */
.hero-color-preview .color-ball[onclick*="white"] .color-droplet .droplet-fill {
    stroke: rgb(0 0 0 / 70%);
    stroke-width: 2;
    -webkit-stroke: rgb(0 0 0 / 70%);
    -webkit-stroke-width: 2;
}

/* Cluster: standaard verborgen, zichtbaar op mobiel */
.hero-color-cluster {
    display: none;
}

/* Cluster druppels: witte rand */
.hero-color-cluster .droplet-fill {
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2;
    -webkit-stroke: rgba(255, 255, 255, 0.85);
    -webkit-stroke-width: 2;
    paint-order: stroke fill;
}

/* Witte druppel in cluster: zwarte rand */
.hero-color-cluster path[onclick*="white"] {
    stroke: rgb(0 0 0 / 70%) !important;
    stroke-width: 2;
    -webkit-stroke: rgb(0 0 0 / 70%);
    -webkit-stroke-width: 2;
    paint-order: stroke fill;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    display: block;
    width: 26px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    position: relative;
}

.hero-scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* Laptop screens - smaller hero content */
@media (min-width: 1025px) and (max-width: 1366px) {
    .hero-content-combined {
        max-width: 600px;
    }
    
    .hero-title-main {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-color-matrix {
        max-width: 480px;
        padding: var(--spacing-lg);
    }
    
    .hero-color-matrix h3 {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }
    
    .hero-color-matrix p {
        font-size: clamp(0.9rem, 1.4vw, 1.05rem);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-color-matrix .btn-primary {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .hero-color-preview {
        gap: 10px;
        margin-top: var(--spacing-sm);
    }
}

/* Small laptops - even smaller */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content-combined {
        max-width: 500px;
    }
    
    .hero-title-main {
        font-size: clamp(1.4rem, 3vw, 2rem);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-color-matrix {
        max-width: 400px;
        padding: var(--spacing-md);
    }
    
    .hero-color-matrix h3 {
        font-size: clamp(1.2rem, 2.2vw, 1.5rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-color-matrix p {
        font-size: clamp(0.85rem, 1.3vw, 0.95rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-color-matrix .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .hero-color-preview {
        gap: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-combined {
        min-height: 100vh;
    }
    
    .hero-combined .hero-bg img {
        object-position: center center;
    }
    
    .hero-title-main {
        margin-bottom: var(--spacing-lg);
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: 0.5px;
    }
    
    .hero-color-matrix {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm) 50px;
    }
    
    .hero-color-matrix h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        text-shadow: 0 1px 6px rgba(0,0,0,0.4);
        margin-bottom: 8px;
    }
    
    .hero-color-matrix p {
        font-size: clamp(1.4rem, 4.5vw, 1.7rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-color-matrix .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Rij druppels verbergen op mobiel */
    .hero-color-preview {
        display: none;
    }
    
    /* Cluster tonen op mobiel */
    .hero-color-cluster {
        display: block;
        width: 180px;
        height: auto;
        margin: var(--spacing-sm) auto 0;
    }
    
    /* Mobiele cluster druppels: witte rand */
    .hero-color-cluster .droplet-fill {
        stroke: rgba(255, 255, 255, 0.85);
        stroke-width: 1.5;
        -webkit-stroke: rgba(255, 255, 255, 0.85);
        -webkit-stroke-width: 1.5;
        paint-order: stroke fill;
    }
    
    /* Witte druppel in mobiele cluster: zwarte rand */
    .hero-color-cluster path[onclick*="white"] {
        stroke: rgb(0 0 0 / 70%) !important;
        stroke-width: 1.5;
        -webkit-stroke: rgb(0 0 0 / 70%);
        -webkit-stroke-width: 1.5;
        paint-order: stroke fill;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
}

/* Grotere schermen: nog dikkere rand */
@media (min-width: 1200px) {
    .hero-color-matrix .color-droplet .droplet-fill,
    .hero-color-preview .color-ball .color-droplet .droplet-fill,
    .hero-color-cluster .droplet-fill {
        stroke-width: 2.5;
        -webkit-stroke-width: 2.5;
    }
    
    .hero-color-matrix .color-ball[onclick*="white"] .color-droplet .droplet-fill,
    .hero-color-preview .color-ball[onclick*="white"] .color-droplet .droplet-fill,
    .hero-color-cluster path[onclick*="white"] {
        stroke-width: 2.5;
        -webkit-stroke-width: 2.5;
    }
}
