/**
 * Highlight Block Styles
 * Centered content with product image and gradient fade
 */

.dmn-highlight {
    position: relative;
    margin: var(--dmn-section-spacing, 80px) 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

/* Gradient Fade on Background */
.dmn-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(to top,
            #ccc 0%,
            #ccc 20%,
            rgba(204, 204, 204, 0.6) 50%,
            rgba(204, 204, 204, 0.2) 80%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.highlight-inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--dmn-container-padding, 30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--dmn-gap-large, 60px);
}

/* Content Section */
.highlight-content {
    max-width: var(--dmn-site-width, 1400px);
    text-align: center;
    padding-bottom: 50px;
}

.highlight-title {
    font-family: var(--dmn-h2-font, var(--dmn-font-heading));
    font-size: var(--dmn-h2-size, 2.5em);
    font-weight: var(--dmn-h2-weight, 700);
    color: var(--dmn-h2-color, #1a1a1a);
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.highlight-text {
    font-family: var(--dmn-text-font, inherit);
    font-size: var(--dmn-text-size, 16px);
    line-height: 1.7;
    color: var(--dmn-text-medium, #4a5568);
    margin-bottom: 30px;
}

.highlight-text p {
    margin-bottom: 15px;
}

.highlight-text p:last-child {
    margin-bottom: 0;
}

/* CTA Buttons */
.highlight-cta {
    margin-top: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.highlight-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--dmn-secondary, #000);
    color: #ffffff;
    border: 2px solid var(--dmn-secondary, #000);
    border-radius: var(--dmn-button-radius, 8px);
    font-family: var(--dmn-button-font, inherit);
    font-size: var(--dmn-button-size, 16px);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.highlight-button-secondary {
    background: transparent;
    color: var(--dmn-secondary, #000);
}

.highlight-button-secondary:hover {
    background: var(--dmn-secondary, #000);
    color: #ffffff;
    opacity: 1;
}

/* Image Section */
.highlight-image-wrapper {
    width: 100%;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}

.highlight-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Image Position Options */
.highlight-image.image-position-top {
    align-items: flex-start;
}

.highlight-image.image-position-center {
    align-items: center;
}

.highlight-image.image-position-bottom {
    align-items: flex-end;
}

.highlight-img {
    width: 100%;
    height: auto;
    min-height: 600px;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .dmn-highlight {
        padding: 60px;
    }

    .dmn-highlight::after {
        height: 500px;
    }

    .highlight-inner {
        gap: 40px;
    }

    .highlight-title {
        font-size: 2em;
    }

    .highlight-text {
        font-size: 15px;
    }

    .highlight-button {
        padding: 12px 28px;
        font-size: 15px;
    }

    .highlight-image {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .dmn-highlight {
        padding: 10px;
    }

    .dmn-highlight::after {
        height: 120px;
    }

    .highlight-inner {
        gap: 30px;
        padding: 0 16px;
    }

    .highlight-title {
        font-size: 1.75em;
        margin-bottom: 15px;
    }

    .highlight-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .highlight-cta {
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
    }

    .highlight-button {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .highlight-image {
        min-height: 250px;
    }
}

/* Wide & Full Alignment */
.alignwide .highlight-inner {
    max-width: 1600px;
}

.alignfull {
    padding-left: 0;
    padding-right: 0;
}

.alignfull .highlight-inner {
    max-width: 100%;
}