/* Section Separator Component */
/* Reusable wave separator with full-bleed container and responsive height */

.section {
    padding-block: var(--section-py, clamp(48px, 6vw, 120px));
    position: relative;
}

.section-sep {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.section-sep svg {
    display: block;
    width: 100%;
    height: clamp(64px, 10vw, 140px);
}

.section-sep.overlap {
    margin-top: -1px; /* Remove anti-alias seam on retina displays */
}

.section-sep.overlap-bottom {
    margin-bottom: -1px;
}

/* Flip utilities for reusing the same SVG pattern */
.sep--flipX {
    transform: scaleX(-1);
}

.sep--flipY {
    transform: rotate(180deg);
}

.sep--flipXY {
    transform: scaleX(-1) rotate(180deg);
}

/* Standard wave pattern - single reusable SVG */
.section-sep .wave-pattern {
    fill: var(--fill-color, currentColor);
}

/* Section background color variables for seamless transitions */
:root {
    --bg-hero: linear-gradient(135deg, var(--rk-blue) 0%, var(--bright-yellow) 50%, var(--rk-green) 100%);
    --bg-services: #ffffff;
    --bg-about: #E8F4FD;
    --bg-why-choose: #FFF4A3;
    --bg-gallery: #F0FFF0;
    --bg-contact: #B3D9FF;

    /* Section padding standardization */
    --section-py: clamp(48px, 6vw, 120px);
}

/* Ensure separators don't interfere with content */
.section-content {
    position: relative;
    z-index: 2;
}

/* Smooth gradient fade for previous section handoff */
.section-fade-bottom {
    position: relative;
}

.section-fade-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

/* Container width normalization */
.container {
    max-width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding-inline: 2rem;
    }
}

/* Responsive adjustments for separator heights */
@media (max-width: 480px) {
    .section-sep svg {
        height: clamp(40px, 8vw, 64px);
    }
}

@media (min-width: 2560px) {
    .section-sep svg {
        height: 140px; /* Cap maximum height on ultra-wide displays */
    }
}
