/* ========================================
   HERO LAYOUTS COMPONENT
   Used by: handyman.html, produkter.html
   ======================================== */

/* Hero with Skewed Overlay Background */
.hero-layout {
    position: relative;
    overflow: hidden;
    background: white;
}

.hero-layout::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--bg-gradient-charcoal);
    transform: skewX(-15deg);
    transform-origin: top right;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Grid Layout Variant */
.hero-grid {
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Hero Feature Badges */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-feature {
    background: var(--color--gray);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--color-border);
    font-weight: 600;
    color: var(--color-charcoal);
    font-size: 0.9rem;
    transition: all 0.3s;
}

/* Service Cards */
.card--service {
    min-width: 320px;
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.card--service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transition: left 0.3s;
}

.card--service:hover::before {
    left: 0;
}

/* Before/After Image Container */
.before-after-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark-gray);
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Image Label Overlay */
.image-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1.3rem;
    color: var(--color-charcoal);
    line-height: 1.6;
    margin-bottom: 3rem;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Category Content Card */
.category-content {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: sticky;
    top: 2rem;
}

.category-features i {
    color: var(--color-primary);
    font-size: 0.8rem;
    width: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-layout::before {
        transform: skewX(-10deg);
        width: 60%;
    }

    .hero-grid-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-features {
        gap: 0.5rem;
    }

    .hero-feature {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .card--service {
        min-width: 100%;
    }

    .before-after-image {
        height: 200px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .category-content {
        padding: 2rem;
    }
}
