h2.h5 {
    letter-spacing: .375rem;
    color: rgb(102, 5, 246);
}

/* Section background palette */
:root {
    /* Use Bootstrap color variables for a cohesive brand palette */
    --section-1-bg: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.08);
    --section-2-bg: rgba(var(--bs-info-rgb, 13, 202, 240), 0.08);
    --section-3-bg: rgba(var(--bs-success-rgb, 25, 135, 84), 0.06);
    --section-4-bg: rgba(var(--bs-warning-rgb, 255, 193, 7), 0.05);
    --section-contrast: rgba(11, 37, 64, 0.95);
    /* dark text for contrast */
}

.section-bg-1 {
    background: linear-gradient(180deg, var(--section-1-bg), rgba(255, 255, 255, 0.95));
    color: var(--section-contrast);
}

.section-bg-2 {
    background: linear-gradient(180deg, var(--section-2-bg), rgba(255, 255, 255, 0.95));
    color: var(--section-contrast);
}

.section-bg-3 {
    background: linear-gradient(180deg, var(--section-3-bg), rgba(255, 255, 255, 0.98));
    color: var(--section-contrast);
}

.section-bg-4 {
    background: linear-gradient(180deg, var(--section-4-bg), rgba(255, 255, 255, 0.98));
    color: var(--section-contrast);
}

/* Ensure headings have strong contrast */
.section-bg-1 .section-title,
.section-bg-2 .section-title,
.section-bg-3 .section-title,
.section-bg-4 .section-title {
    color: var(--section-contrast);
}

/* Dark theme balancing */
:root[data-bs-theme="dark"] .section-bg-1,
:root[data-bs-theme="dark"] .section-bg-2,
:root[data-bs-theme="dark"] .section-bg-3,
:root[data-bs-theme="dark"] .section-bg-4 {
    background: none;
    background-color: rgba(20, 20, 20, 0.6);
    color: #f8f9fa;
}

/* Section separators
   - use inline <svg> with .separator-fill-X classes for CSS-configurable fills
   - or use native static variant: <img src="img/svg/separator-static-<n>.svg"> for non-animated version
*/
.section-separator {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
    pointer-events: none;
}

/* Page-specific spacing: ensure separators after the pricing/contact section
   don't collide with the footer (e.g., on `cennik.html`). */
.contact+.section-separator {
    margin-top: 2.5rem;


    /* create breathing room before the wave */
}

@media (max-width: 576px) {
    .contact+.section-separator {
        margin-top: 1.5rem;
    }
}

.section-separator svg,
.section-separator img {
    display: block;
    width: 100%;
    height: 80px;
}

.section-separator svg {
    color: #0d6efd;
}

html[data-bs-theme="dark"] .section-separator svg {
    color: #f8f9fa;
}

/* Using static rasterized SVG separators — nothing to fill via .separator-fill-* */


/* No wave animation — keep paths static */
.section-separator path {
    transform-origin: center;
    will-change: opacity;
    animation: none !important;
    opacity: 0.95;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Reveal animation for sections */

.section-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Small performance improvement */
.section-separator,
.section-reveal {
    will-change: opacity;
}

/* Pricing cards: subtle hover scale and shadow for better affordance */
.contact .card {
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

.contact .card:hover,
.contact .card:focus-within,
.contact .card:focus-visible {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(11, 37, 64, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .contact .card {
        transition: none !important;
        transform: none !important;
    }
}

/* Style dla lightboxa są zarządzane przez bibliotekę Lightbox2 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .room-card-img {
        height: 300px;
    }

    .amenities-list li {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-separator svg {
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-separator path {
        animation: none !important;
    }

    .section-separator {
        transition: none !important;
        transform: none !important;
    }

    .section-reveal {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}