:root {
    --ease-water: cubic-bezier(.22, .61, .36, 1)
}

a,
button,
input,
select,
textarea,
.photo-card,
.focus-row,
.editorial-points>div,
.plan-panel,
.legal-copy section,
.accordion details,
.flow-step {
    transition-duration: .55s !important;
    transition-timing-function: var(--ease-water) !important
}

.btn:before {
    transition: transform .95s var(--ease-water) !important
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px)
}

:focus-visible {
    outline: 2px solid #08a9bd;
    outline-offset: 5px
}

.pool-icon {
    transition: transform .65s var(--ease-water) !important
}

.flip-inner {
    transition: transform .85s var(--ease-water) !important
}

.mobile-menu {
    isolation: isolate;
    overflow: hidden;
    align-items: stretch;
    text-align: left;
    justify-content: center;
    gap: 24px;
    padding: 42px;
    color: #fff;
    transition: transform .7s var(--ease-water), opacity .55s, visibility .7s !important;
    box-shadow: -18px 18px 65px #00263725
}

.mobile-menu>a {
    position: relative;
    align-self: flex-start;
    font-size: clamp(25px, 2.1vw, 36px);
    z-index: 1;
    max-width: 100%;
    line-height: 1.3;
    transform: none !important
}

.mobile-menu>a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 2px;
    width: 100%;
    border-radius: 100%;
    background: #29c6d3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .65s var(--ease-water)
}

.mobile-menu>a:hover:after,
.mobile-menu>a:focus-visible:after {
    transform: scaleX(1)
}

.drawer-heading {
    font-size: 12px;
    letter-spacing: 1.1px;
    color: #9ed3df;
    margin-bottom: 6px;
    position: relative;
    z-index: 1
}

.drawer-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    max-width: none;
    object-fit: fill;
    opacity: .09;
    pointer-events: none;
    z-index: -1;
    animation: drawer-swell 9s ease-in-out infinite
}

.desktop-nav>a,
.nav-dropdown>button {
    position: relative
}

.desktop-nav>a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -9px;
    height: 2px;
    border-radius: 50%;
    width: 100%;
    background: var(--cyan);
    transform: scaleX(0);
    transition: transform .55s var(--ease-water);
    transform-origin: left
}

.desktop-nav>a:hover:after,
.desktop-nav>a:focus-visible:after {
    transform: scaleX(1)
}

@media(min-width:1001px) {
    .mobile-menu {
        inset: 116px 0 0 auto;
        width: clamp(370px, 34vw, 570px);
        transform: translateX(102%);
        border-radius: 0 0 0 24px
    }

    .mobile-menu.open {
        transform: translateX(0)
    }

    .mobile-menu>a:last-of-type {
        font-size: 14px;
        overflow-wrap: anywhere
    }
}

.hero .hero-image img,
.hero .swiper-slide-active .hero-image img {
    transform: none !important;
    transition: none !important
}

.hero .swiper-slide {
    opacity: 0 !important;
    z-index: 0
}

.hero .swiper-slide.wave-outgoing {
    opacity: 1 !important;
    z-index: 1
}

.hero .swiper-slide-active {
    opacity: 1 !important;
    z-index: 2
}

.hero .swiper-slide-active .hero-image {
    animation: water-curtain 1.6s var(--ease-water) both
}

.hero .wave-outgoing .hero-image {
    clip-path: none;
    animation: none
}

.hero .swiper-wrapper {
    transition-timing-function: var(--ease-water) !important
}

@keyframes water-curtain {
    from {
        clip-path: polygon(0 0, -35% 0, -25% 15%, -20% 30%, -24% 45%, -35% 60%, -40% 75%, -35% 90%, -30% 100%, 0 100%)
    }

    to {
        clip-path: polygon(0 0, 135% 0, 145% 15%, 150% 30%, 146% 45%, 135% 60%, 130% 75%, 135% 90%, 140% 100%, 0 100%)
    }
}

@keyframes drawer-swell {

    0%,
    100% {
        transform: scaleY(1)
    }

    50% {
        transform: scaleY(.8)
    }
}

.card-slider .swiper-wrapper,
.renovation-slider .swiper-wrapper {
    align-items: stretch
}

.card-slider .swiper-slide,
.renovation-slider .swiper-slide {
    height: auto;
    display: flex
}

.photo-card,
.renovation-card {
    display: flex;
    flex-direction: column;
    width: 100%
}

.card-copy {
    display: flex;
    flex-direction: column;
    flex: 1
}

.card-copy p {
    margin-bottom: 12px
}

.card-copy .text-link {
    margin-top: auto
}

.photo-wrap {
    flex-shrink: 0
}

.flip-front>span {
    line-height: 1.65
}

.flip-front small {
    margin-top: auto
}

.tab-panel.split {
    border: 1px solid #b9dce3;
    box-shadow: 0 16px 28px #064d6614, inset 0 0 0 6px #ffffff90;
    position: relative;
    isolation: isolate;
    background: #f1f8fa;
    transition: box-shadow .65s var(--ease-water), border-color .65s var(--ease-water)
}

.tab-panel.split:hover {
    box-shadow: 0 19px 34px #064d6620, inset 0 0 0 6px #fff;
    border-color: #51bacb
}

.tab-copy {
    position: relative;
    isolation: isolate
}

.tab-copy:after {
    content: '';
    position: absolute;
    inset: auto auto 22px -42px;
    width: 160px;
    height: 160px;
    border: 1px solid #c6e5ea;
    border-radius: 50%;
    box-shadow: 0 0 0 18px #e6f3f6, 0 0 0 19px #cfe9ee;
    z-index: -1;
    pointer-events: none
}

.tab-copy p {
    max-width: 450px
}

.tab-photo {
    position: relative;
    z-index: 1
}

.tab-photo img {
    box-shadow: 0 8px 20px #063f5415
}

.before-copy {
    position: relative;
    padding: 22px 22px 22px 25px;
    border-left: 3px solid #04a9bd;
    border-radius: 0 16px 16px 0;
    background: #f2f8fa;
    box-shadow: 0 12px 25px #063f540c
}

.before-copy .section-heading {
    margin-bottom: 18px
}

.before-copy .comparison-note {
    display: block;
    border-top: 1px solid #d2e6ec;
    padding-top: 14px
}

.before-layout {
    min-width: 0
}

.compare,
.compare-before {
    min-width: 0;
    flex-shrink: 0
}

.compare-before {
    transition: none !important
}

.accordion details {
    overflow: hidden
}

.accordion details>div {
    animation: none !important
}

.accordion summary {
    transition: color .45s, background .45s
}

.accordion details:hover {
    transform: none !important
}

.flow-step>p {
    animation: none !important
}

.contact-form {
    background: #fff;
    border: 1px solid #c1dfe7;
    box-shadow: 0 20px 45px #064d6618, 0 5px 12px #064d660c, inset 0 0 0 6px #f2f8fa
}

.contact-form input:not([type=checkbox]),
.contact-form select,
.contact-form textarea {
    background: #f5f9fa;
    border: 1px solid #d2e4ea;
    border-radius: 9px;
    box-shadow: inset 0 2px 4px #063f5404;
    outline-offset: 3px;
    color: var(--ink)
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: #8fc8d5
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background: #fff;
    border-color: #039daf;
    box-shadow: 0 0 0 4px #00a7bb13
}

.contact-form select {
    appearance: none;
    padding-right: 43px;
    background-image: url("../images/select-chevron.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 15px
}

.contact-form input[type=checkbox] {
    appearance: none;
    width: 19px;
    height: 19px;
    min-width: 19px;
    border: 1px solid #9dbfca;
    border-radius: 5px;
    display: grid;
    place-content: center;
    background: #fff;
    cursor: pointer
}

.contact-form input[type=checkbox]:checked {
    background: #038fA6;
    border-color: #038fa6
}

.contact-form input[type=checkbox]:checked:before {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px)
}

.service-hero {
    text-align: center
}

.service-hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column
}

.service-hero h1 {
    max-width: none;
    width: 100%;
    text-align: center
}

.service-hero p {
    max-width: 690px;
    margin-inline: auto
}

.service-hero .breadcrumbs {
    justify-content: center
}

.service-hero .btn {
    align-self: center
}

.service-content .plan-panel {
    box-shadow: 0 12px 25px #064d6610, inset 0 0 0 5px #ffffff80
}

.service-content .inline-note {
    border-bottom: 1px solid #d8e8ed
}

.service-content .flip-front {
    box-shadow: inset 0 0 0 5px #ffffff85
}

.service-content .section-heading p {
    max-width: 650px
}

@media(max-width:1000px) {
    .mobile-menu {
        inset: 104px 0 0 auto;
        width: min(440px, 100%);
        transform: translateX(102%)
    }

    .mobile-menu.open {
        transform: translateX(0)
    }
}

@media(max-width:767px) {
    .mobile-menu {
        top: 96px;
        width: 100%;
        padding: 30px;
        align-items: center;
        text-align: center;
        overflow-y: auto
    }

    .mobile-menu>a {
        align-self: center;
        font-size: 28px
    }

    .drawer-heading {
        font-size: 12px
    }

    .drawer-wave {
        height: 110px
    }

    .before-copy {
        padding: 18px 20px;
        border-left: 0;
        border-top: 3px solid #04a9bd;
        border-radius: 15px
    }

    .before-copy .section-heading {
        margin-bottom: 12px
    }

    .before-copy .comparison-note {
        padding-top: 10px
    }

    .tab-copy:after {
        width: 95px;
        height: 95px
    }

    .service-hero h1 {
        font-size: clamp(36px, 9vw, 49px)
    }

    .card-copy p {
        font-size: 13px;
        line-height: 1.75
    }

    .service-content .flip-front>span {
        font-size: 12px;
        line-height: 1.6
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important
    }

    .hero .swiper-slide-active .hero-image {
        clip-path: none;
        animation: none
    }
}