.theme-waves {
    --primary-color: #e67325;
    --rgb-primary: 230, 115, 37;
    --secondary-color: #1f2229;
    --accent-color: #f3a15e;
    --background-color: #ffffff;
    --background-light: #f3f3f3;
    --dark-background: #1f2229;
    --text-color: #383b42;
    --text-color-light: #ffffff;
}

.theme-waves > header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    border-bottom: 0 !important;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .58), transparent);
}

.theme-waves > header .brandwide {
    width: clamp(11rem, 22vw, 15.625rem);
    max-height: 4.5rem;
    object-fit: contain;
}

.theme-waves > header .sitelogo,
.theme-waves > header .nav-social .icon,
.theme-waves > header .wa-link {
    color: #fff;
}

.theme-waves.has-waves-subpage > header {
    position: relative;
    z-index: 20;
    padding-top: .55rem !important;
    padding-bottom: .55rem !important;
    border: 0 !important;
    background: #1f2229;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.theme-waves.has-waves-subpage > header .brandwide {
    width: clamp(11rem, 22vw, 15.625rem);
    max-height: 4.5rem;
    object-fit: contain;
}

.waves-hero,
.waves-about,
.waves-services,
.waves-gallery,
.waves-partners {
    position: relative;
}

.waves-heading {
    max-width: 680px;
    margin: 0 auto clamp(2rem, 5vw, 4rem);
    text-align: center;
}

.waves-heading h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

.waves-heading p {
    margin: 0;
    color: #686b72;
    font-size: 1.05rem;
}

.waves-hero {
    min-height: clamp(30rem, 52vw, 43rem);
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5rem, 12vw, 10rem) 0 0;
    background-image: var(--waves-hero-image);
    background-position: var(--waves-hero-position, center center);
    background-size: cover;
}

.waves-hero.end-block-svg {
    padding-bottom: 0 !important;
}

.waves-hero.end-block-svg::after {
    bottom: -2px;
    height: clamp(9rem, 14vw, 13rem);
    border: 0;
}

.waves-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(18, 20, 24, .82), rgba(18, 20, 24, .28) 65%, rgba(18, 20, 24, .12));
}

.waves-hero:not(:has(.waves-hero-content)) .waves-hero-overlay {
    display: none;
}

.waves-hero-content {
    max-width: 760px;
    color: #fff;
}

.waves-hero-content h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    text-wrap: balance;
}

.waves-hero-content p {
    max-width: 650px;
    margin-bottom: 2rem;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    line-height: 1.6;
}

.waves-hero-content .btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: #c95f1c;
    --bs-btn-hover-border-color: #c95f1c;
    border-radius: .6rem;
    padding: .85rem 1.5rem;
}

.waves-about,
.waves-services,
.waves-partners {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.waves-about {
    background: #fff;
}

.waves-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 2.5rem;
}

.waves-pillar {
    padding: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}

.waves-pillar + .waves-pillar {
    border-left: 1px solid rgba(31, 34, 41, .14);
}

.waves-pillar h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.waves-pillar span {
    display: block;
    width: 2px;
    height: 24px;
    margin: 1rem auto;
    background: var(--primary-color);
}

.waves-pillar p,
.waves-about-description,
.waves-about-footer {
    color: #686b72;
    line-height: 1.75;
}

.waves-about-description,
.waves-about-footer {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.waves-about-footer {
    margin-top: 1.5rem;
}

.waves-services {
    background: #f3f3f3;
}

.waves-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.waves-service-card {
    min-height: 260px;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    background: rgba(0, 0, 0, .018);
    transition: background-color .25s ease, transform .25s ease;
}

.waves-service-card:nth-child(even) {
    background: rgba(255, 255, 255, .72);
}

.waves-service-card:hover {
    z-index: 1;
    background: #fff;
    transform: translateY(-4px);
}

.waves-service-card > i {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 2.75rem;
}

.waves-service-card h3 {
    margin-bottom: .9rem;
    color: #25282f;
    font-size: 1.05rem;
    font-weight: 700;
}

.waves-service-card div {
    color: #70737a;
    font-size: .95rem;
    line-height: 1.6;
}

.waves-service-card p:last-child {
    margin-bottom: 0;
}

.waves-gallery {
    padding-top: clamp(4rem, 8vw, 6rem);
    background: #1f2229;
}

.waves-gallery .waves-heading h2,
.waves-gallery .waves-heading p {
    color: #fff;
}

.waves-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-bottom: 2.25rem;
}

.waves-gallery-filters button {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: .5rem 1rem;
    color: #fff;
    background: transparent;
}

.waves-gallery-filters button:hover,
.waves-gallery-filters button.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.waves-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.waves-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
}

.waves-gallery-item[hidden] {
    display: none;
}

.waves-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.waves-gallery-item span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    background: linear-gradient(rgba(31, 34, 41, .3), rgba(31, 34, 41, .86));
    transition: opacity .35s ease;
}

.waves-gallery-item:hover img,
.waves-gallery-item:focus img {
    transform: scale(1.055);
}

.waves-gallery-item:hover span,
.waves-gallery-item:focus span {
    opacity: 1;
}

.waves-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(10, 11, 14, .94);
}

.waves-lightbox[hidden] {
    display: none;
}

.waves-lightbox figure {
    max-width: min(1100px, 94vw);
    max-height: 90vh;
    margin: 0;
    text-align: center;
}

.waves-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.waves-lightbox figcaption {
    margin-top: .75rem;
    color: #fff;
}

.waves-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    color: #fff;
    font-size: 2rem;
    background: transparent;
}

.waves-lightbox-nav {
    position: absolute;
    top: 50%;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    transform: translateY(-50%);
}

.waves-lightbox-prev {
    left: clamp(.75rem, 3vw, 2rem);
}

.waves-lightbox-next {
    right: clamp(.75rem, 3vw, 2rem);
}

.waves-partners {
    background: #fff;
}

.waves-partners-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.waves-partners-shell > button {
    width: 44px;
    height: 44px;
    border: 1px solid #dedfe2;
    border-radius: 50%;
    color: var(--text-color);
    background: #fff;
}

.waves-partners-shell > button:hover {
    border-color: var(--primary-color);
    color: #fff;
    background: var(--primary-color);
}

.waves-partners-track {
    display: grid;
    grid-auto-columns: minmax(150px, 20%);
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.waves-partners-track::-webkit-scrollbar {
    display: none;
}

.waves-partner {
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    scroll-snap-align: start;
    border: 1px solid #ececef;
    border-radius: .6rem;
    background: #fff;
}

.waves-partner img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .25s ease, opacity .25s ease;
}

.waves-partner:hover img,
.waves-partner:focus img {
    filter: none;
    opacity: 1;
}

.waves-partners-scroll-hint {
    display: none;
}

@media (max-width: 991.98px) {
    .waves-services-grid,
    .waves-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .waves-partners-track {
        grid-auto-columns: minmax(160px, 33.333%);
    }
}

@media (max-width: 767.98px) {
    .theme-waves > header .brandwide {
        width: 10rem;
    }

    .waves-hero.end-block-svg::after {
        height: 7rem;
        -webkit-mask-size: 190% 100%;
        mask-size: 190% 100%;
        -webkit-mask-position: 45% bottom;
        mask-position: 45% bottom;
    }

    .waves-hero {
        min-height: clamp(28rem, 72vh, 36rem);
        background-position: var(--waves-hero-position, center center);
    }

    .waves-hero-overlay {
        background: rgba(18, 20, 24, .66);
    }

    .waves-about {
        margin-top: -1px;
    }

    .waves-pillars,
    .waves-services-grid,
    .waves-gallery-grid {
        grid-template-columns: 1fr;
    }

    .waves-pillar + .waves-pillar {
        border-top: 1px solid rgba(31, 34, 41, .14);
        border-left: 0;
    }

    .waves-partners-shell {
        grid-template-columns: 1fr;
    }

    .waves-partners-shell > button {
        display: none;
    }

    .waves-partners-track {
        grid-template-rows: repeat(2, 120px);
        grid-auto-columns: minmax(150px, 70%);
        grid-auto-flow: column;
        gap: .75rem;
        padding-right: 18%;
        overscroll-behavior-inline: contain;
        touch-action: pan-x pan-y;
    }

    .waves-partners-shell.is-scrollable:not(.is-at-end)::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        width: 3.5rem;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 92%);
        content: '';
    }

    .waves-partners-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .55rem;
        margin-top: 1rem;
        color: #686b72;
        font-size: .82rem;
        font-weight: 600;
    }

    .waves-partners-scroll-hint[hidden] {
        display: none;
    }

    .waves-partners-scroll-hint i {
        color: var(--primary-color);
        animation: waves-partners-hint 1.3s ease-in-out infinite;
    }
}

@keyframes waves-partners-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(.35rem); }
}

@media (prefers-reduced-motion: reduce) {
    .waves-service-card,
    .waves-gallery-item img,
    .waves-gallery-item span,
    .waves-partners-track,
    .waves-partner img {
        scroll-behavior: auto;
        transition: none;
    }

    .waves-partners-scroll-hint i {
        animation: none;
    }
}
