.blocks-section,
.text-blocks-section {
    & .flexed {
        display: block;
        & > div:first-child {
            margin-bottom: 1.5em;
            @media screen and (min-width: 1024px) {
                margin-bottom: 0;
            }
        }
        @media screen and (min-width: 1024px) {
            display: flex;
        }
    }
}

.blocks-section {
    & .flexed-stretched {
        & .section-photo {
            & img {
                object-fit: cover;
                object-position: center;
                block-size: 100%;
                inline-size: 100%;
            }
        }
        & .section-text {
            & > *:last-child {
                margin-bottom: 0;
            }
        }
    }
    .section-text {
        text-wrap: pretty;
    }
    & .flexed:not(.flexed-reversed) .section-text {
        @media screen and (min-width: 1024px) {
            padding-left: 40px;
        }
    }
    & .flexed.flexed-reversed .section-text {
        @media screen and (min-width: 1024px) {
            padding-right: 40px;
        }
    }
}

.intro {
    max-width: 840px;
    margin-inline: auto;
    text-wrap: pretty;
    & h2 {
        text-wrap: balance;
    }
}

.cta-buttons-section {
    & .flexed {
        display: block;
        margin-bottom: 2.25rem;
        @media screen and (min-width: 600px){
            display: flex;
        }
    }
    & .cta-button-wrapper {
        border: 1px solid #d9d9d9;
        padding: 10px;
        background: #FFF;
        margin-bottom: 1rem;
        @media screen and (min-width: 1024px){
            margin-bottom: 0;
        }
        @media screen and (min-width: 1025px){
            padding: 20px;
        }
        &.flex-23 {
            flex-basis: 48%;
            @media screen and (min-width: 1024px){
                flex-basis: 23%;
            }
        }
    }
    & .button-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 4px solid var(--dark-blue);
        padding: 20px;
        color: var(--dark-blue);
        line-height: 0;
        aspect-ratio: 1;
    }
    & .button-text {
        & span.button {
            font-size: 0.8rem;
            width: 100%;
            padding: 1em 0.5em;
            background: var(--green);
            @media screen and (min-width: 1025px){
                font-size: 1rem;
            }
        }
    }
    & a {
        display: block;
        &:hover,
        &:focus {
            & span.button {
                background: var(--dark-blue);
            }
        }
    }
}

.cta-section {
    & .flexed {
        display: block;
        @media screen and (min-width: 670px){
            display: flex;
        }
    }
    & .cta-wrapper {
        border: 1px solid #d9d9d9;
        margin-bottom: 1.5em;
        &.flex-32 {
            flex-basis: 48%;
            @media screen and (min-width: 1024px){
                flex-basis: 32%;
            }
        }
    }
    .cta-image {
        aspect-ratio: 4/3;
        line-height: 0;
        overflow: hidden;
        & img {
            object-fit: cover;
            object-position: center;
            block-size: 100%;
            inline-size: 100%;
            transition: all ease 0.5s;
            backface-visibility: hidden;
        }
    }
    .cta-text {
        padding: 20px 10px;
    }

    & a:not(.button) {
        display: block;
        color: var(--dark-blue);
        text-transform: uppercase;
        background: #FFF;
        text-decoration: none;
        &:hover,
        &:focus {
            background: var(--light-blue);
            text-decoration: underline;
            & .cta-image img {
                scale: 105%;
            }
        }
    }
}

.logo-slider-section {
    & .logo-slider-wrapper {
        & .slick-track {
            display: flex !important;
        }
        & .slick-slide {
            height: inherit !important;
        }
        & .slick-slide > div {
            padding: 0 10px;
            height: 100%;
        }
        & .logo-slide {
            height: 100%;
            display: flex !important;
            padding: 20px 10px;
            align-items: center;
            justify-content: center;
            border: 1px solid #E0E0E0;
            &:hover,
            &:focus-within {
                box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
            }
            & a {
                display: block;
                & img {
                    transition: all ease 0.3s;
                }
                &:hover,
                &:focus {
                    & img {
                        scale: 102%;
                    }
                }
            }
        }
    }
    & .logo-slider-button-wrapper {
        margin: 15px 0;
        & .slick-arrow {
            background: transparent;
            font-size: 0.9375rem;
            border: 1px solid var(--dark-blue);
            color: var(--dark-blue);
            aspect-ratio: 1;
            padding: 12px;
            text-align: center;
            &.slick-prev {
                margin-right: 15px;
            }
            &:hover,
            &:focus {
                background-color: var(--dark-blue);
                color: #FFF;
            }
            &:focus-visible {
                outline: 2px dashed var(--dark-blue);

            }
        }
    }
}

.divider {
    height: 350px;
    position: relative;
    overflow: hidden;
}
.divider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
.divider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
}

.text-section {
    & .container {
        max-width: 1100px;
    }
    &:has(.dealerschoice-shortcode) .container {
        max-width: 1400px;
    }
    & h2[style*="text-align: center"] {
        text-wrap: balance;
    }
}

.section-photo {
    line-height: 0;
    & > img {
        width: 100%;
    }
}
.section-text > *:last-child {
    margin-bottom: 0;
}

.services-section {
    & .container > .flexed {
        display: block;
        @media screen and (min-width: 1025px) {
            display: flex;
        }
    }
    & .service-image {
        line-height: 0;
        margin-bottom: 2rem;
        @media screen and (min-width: 1025px) {
            margin-bottom: 0;
        }
        & img {
            object-position: center;
            object-fit: cover;
            block-size: 100%;
            inline-size: 100%;
        }
    }
    & .service-block {
        margin-bottom: 1.625rem;
        & .flexed {
            display: block;
            @media screen and (min-width: 420px) {
                display: flex;
            }
        }
    }
    & .services-text {
        & > *:last-child {
            margin-bottom: 0;
        }
    }
    & .service-text {
        flex-basis: calc(100% - 90px);
        & h3 {
            font-size: 1.375rem;
        }
        & > *:last-child {
            margin-bottom: 0;
        }
    }
    & .service-icon {
        flex-basis: 90px;
        margin-bottom: 20px;

        & i {
            border: 1px solid rgba(255,255,255,0.1);
            background-color: rgba(255,255,255,0.1);
            font-size: 30px;
            border-radius: 50%;
            height: 64px;
            width: 64px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }
}

.tabs-section {
    & .tab-nav-wrapper {
        &.margin-bottom {
            margin-bottom: 3rem;
        }
        & button.tab-nav {
            background: transparent;
            border-bottom: 1px solid var(--accent-color);
            color: #000;
            padding: 10px 0;
            cursor: pointer;
            margin-bottom: 10px;
            display: block;
            width: 100%;
            text-align: center;
            background: rgba(255,255,255,0.5);
            &.active {
                border-bottom-width: 3px;
            }
            &:last-child {
                margin-right: 0;
            }
            @media screen and (min-width: 460px) {
                display: inline-block;
                background: transparent;
                width: auto;
                margin-right: 15px;
            }
            @media screen and (min-width: 860px) {
                margin-bottom: 0;
            }
        }
    }
    &.dark-blue-bg {
        & .tab-nav-wrapper {
            & button.tab-nav {
                border-color: #FFF;
                color: #FFF;
            }
        }
    }
    & .tab-content {
        text-wrap: pretty;
        &.margin-bottom {
            margin-bottom: 3rem;
        }
        & .flexed {
            display: block;
            @media screen and (min-width: 1024px){
                display: flex;
            }
        }
        & .tab-image {
            aspect-ratio: 4/3;
            line-height: 0;
            & img {
                object-fit: cover;
                object-position: center;
                block-size: 100%;
                inline-size: 100%;
            }
        }
    }
}

.brand-blocks-section {
    & .flexed {
        row-gap: 30px;
        display: block;
        &:after {
            content: '';
            flex-basis: 49%;
        }
        @media screen and (min-width: 1125px) {
            display: flex;
        }
        & > div {
            aspect-ratio: unset;
            margin-inline: auto;
            @media screen and (min-width: 600px) {
                aspect-ratio: 4/3;
                max-width: 800px;
            }
            @media screen and (min-width: 1125px) {
                aspect-ratio: 6/5;
                max-width: unset;
                margin-inline: 0;
            }
            &:first-of-type {
                margin-bottom: 2rem;
                @media screen and (min-width: 1125px) {
                    aspect-ratio: 6/5;
                    margin-bottom: 0;
                }
            }
        }
        & .brands-intro {
            padding: 40px;
        }
        & .brand-block {
            position: relative;
            height: 100%;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            margin-bottom: 2rem;
            @media screen and (min-width: 1125px) {
                margin-bottom: 0;
            }
            & > div {
                flex-basis: 100%;
            }
            & a {
                display: block;
                block-size: 100%;
                inline-size: 100%;
                text-decoration: none;
            }
            & .brand-block-text {
                font-size: 1rem;
                text-wrap: pretty;
                position: relative;
                z-index: 100;
                color: #000;
                padding: 40px 20px;
                background: var(--light-blue);
                @media screen and (min-width: 600px) {
                    background: linear-gradient(180deg, rgba(229, 241, 255, 0) 0%, rgba(230, 241, 255, 0.9) 25%);
                }
                @media screen and (min-width: 1024px) {
                    padding: 40px;
                }
                @media (hover: none) {
                    padding-bottom: 115px;
                }
                & .logo {
                    margin-bottom: 0.5rem;
                    max-width: 45%;
                    & img {
                        object-fit: contain;
                        object-position: left bottom;
                    }
                }
                & > *:last-child {
                    margin-bottom: 0;
                }
            }
            & .brand-block-button {
                padding-top: 20px;
                text-align: center;
                @media screen and (min-width: 600px){
                    position: absolute;
                    max-width: 50%;
                    bottom: 40px;
                    right: 40px;
                    z-index: 100;
                    padding-top: 0;
                    text-align: right;
                }
                & span.button {
                    background: rgba(255,255,255,0.5);
                    border: 1px solid var(--red);
                    color: #000;
                }
            }
            & .brand-block-excerpt {
                @media screen and (min-width: 600px){
                    height: 0;
                    overflow: hidden;
                    transition: all ease 0.3s;
                    /* if not a touch screen device */
                    @media (hover: none) {
                        height: auto;
                    }
                }
            }
            & a:hover,
            & a:focus {
                @media screen and (min-width: 600px) {
                    & .brand-block-text {
                        padding-bottom: 115px;
                    }
                    & .brand-block-excerpt {
                        height: auto;
                    }
                }

                & .brand-block-button span.button {
                    background: var(--red);
                    border: 1px solid var(--red);
                    color: #FFF;
                }
            }
            & .brand-block-image {
                z-index: 1;
                position: relative;
                @media screen and (min-width: 600px) {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                }
                & img {
                    block-size: 100%;
                    inline-size: 100%;
                    object-fit: cover;
                    object-position: center;
                }
            }
        }
    }
}

.promotions-section {
    .promos-wrapper.flexed {
        display: block;
        @media screen and (min-width: 960px) {
            display: flex;
        }
    }
    & .promo-block-single {
        & .flexed {
            display: block;
            @media screen and (min-width: 960px) {
                display: flex;
            }
            & .promo-details {
                padding-top: 1.5rem;
                text-align: center;
                @media screen and (min-width: 960px) {
                    padding-top: 0;
                    text-align: left;
                }
            }
        }
    }
    & .promo-block {
        margin-bottom: 1.5rem;
        padding-bottom: 60px;
        position: relative;
        background: #FFF;
        border: 1px solid #d9d9d9;
        @media screen and (min-width: 960px) {
            margin-bottom: 0;
        }
        &.flex-30 {
            flex-basis: 48%;
            @media screen and (min-width: 1336px) {
                flex-basis: 30%;
            }
            &:nth-of-type(3) {
                display: none;
                @media screen and (min-width: 1336px) {
                    display: block;
                }
            }
        }
        & .promo-image {
            aspect-ratio: 435/250;
            overflow: hidden;
            margin-bottom: 0.5rem;
            & img {
                object-fit: cover;
                block-size: 100%;
                inline-size: 100%;
                object-position: center;
            }
        }
        & .promo-details {
            padding: 15px;
            & h3 {
                font-size: 1.65rem;
                margin-bottom: 0.5rem;
            }
            & > a {
                display: block;
                color: #000;
                text-decoration: none;
                &:hover,
                &:focus {
                    color: var(--dark-blue);
                }
            }
            & .promo-short-info {
                flex-basis: calc(100% - 65px);
                & p {
                    text-wrap: pretty;
                    font-size: 1rem;
                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }
        & .promo-button {
            position: absolute;
            bottom: 15px;
            left: 0;
            width: 100%;
            border-top: 1px solid #d9d9d9;
            padding: 15px 15px 0;
            & a {
                text-transform: uppercase;
                font-size: 1rem;
                & i {
                    margin-left: 8px;
                }
            }
        }
    }
}

.testimonials-section {
    &.white-bg {
        & .testimonial-text {
            background-color: var(--light-blue);
        }
    }
    & .testimonial-slide {
        & .testimonial-photo {
            position: relative;
            z-index: 10;
            aspect-ratio: 4/3;
            overflow: hidden;
            @media screen and (min-width: 1024px) {
                width: calc(50% + 150px);
                margin-left: -150px;
            }
            & img {
                object-fit: cover;
                object-position: center;
                block-size: 100%;
                inline-size: 100%;
            }
        }
        & .testimonial-text {
            font-size: 1.25rem;
            font-weight: 600;
            position: relative;
            z-index: 20;
            @media screen and (min-width: 400px) {
                background-image: url('../images/quote.svg');
                background-repeat: no-repeat;
                background-position: bottom 30px right 30px;
                background-size: 35px 38px;
            }
            @media screen and (min-width: 600px) {
                background-position: bottom 60px right 60px;
                background-size: 55px 48px;
            }
            @media screen and (min-width: 1024px) {
                width: 50%;
                margin-bottom: -20px;
            }
        }
        & .testimonial-author {
            text-transform: uppercase;
            font-size: 1rem;
            color: var(--dark-blue);
        }
        & .testimonial-content {
            & .flexed {
                display: block;
                @media screen and (min-width: 1024px) {
                    display: flex;
                }
            }
        }
    }
    & .slider-arrow-container .slick-arrow {
        border-radius: 50%;
        width: 60px;
        height: 60px;
        font-size: 1.625rem;
        padding: 0;
        text-align: center;
        border: 1px solid var(--accent-color);
        background-color: transparent;
        color: var(--accent-color);
        &:first-child {
            margin-right: 25px;
        }
    }
    & .slider-arrow-container .slick-arrow:hover,
    & .slider-arrow-container .slick-arrow:focus-visible {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        color: #FFF;
    }
    & .slider-arrow-container .slick-arrow.slick-disabled {
        border-color: var(--gray);
        color: var(--gray);
        background-color: transparent;
    }
    & .slider-arrow-container .slick-arrow.slick-disabled:hover,
    & .slider-arrow-container .slick-arrow.slick-disabled:focus {
        cursor: not-allowed;
    }
}

.accordion-section .container {
    max-width: 1100px;
}
.accordion-section .accordion-item {
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
    border-bottom: 1px solid #757575;
    & details summary::-webkit-details-marker {
      display:none;
    }
    & summary.accordion-title {
        position: relative;
        display: block;
        cursor: pointer;
    }
    & summary.accordion-title h3 {
        font-size: clamp(1.25rem, .3704vw + 1.1759rem, 1.5rem);
        margin-bottom: 0;
        padding-right: 45px;
    }
    & summary.accordion-title:after {
        content: '\f107';
        font-family: 'Font Awesome 7 Sharp';
        position: absolute;
        right: 0;
        top: 0;
        line-height: 1;
        font-size: 1.25rem;
        background-color: var(--accent-color);
        color: #FFF;
        aspect-ratio: 1;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    & details[open] summary.accordion-title:after {
        content: '\f106';
    }
    & details.accordion .accordion-content {
        padding: 2em 0 0.5em 0;
        @media screen and (min-width: 900px) {
            padding-right: 55px;
        }
    }
}

.location-section {
    & .intro {
        & p:has(a:nth-of-type(2)){
            & a {
                display: block;
                @media screen and (min-width: 600px){
                    margin-right: 25px;
                    display: inline-block;
                }
                &:last-of-type {
                    margin-right: 0;
                }
                &:before {
                    font-family: 'Font Awesome 7 Sharp';
                    font-weight: 900;
                    color: var(--red);
                    display: inline-block;
                    margin-right: 15px;
                }
                &[href*="tel:"]:before {
                    content: '\f095';
                }
                &[href*="https://maps"]:before {
                    content: '\f3c5';
                }
            }
        }
    }
    & .hours-wrapper {
        & .flexed {
            display: block;
            @media screen and (min-width: 800px) {
                display: flex;
                row-gap: 40px;
            }
            & .hours-block {
                margin-bottom: 1.5rem;
                @media screen and (min-width: 800px) {
                    margin-bottom: 0;
                }
            }
        }
        & ul {
            list-style: none;
            padding-left: 0;
            & li {
                margin-bottom: 0.5rem;
                padding-left: 35px;
                position: relative;
                &:before {
                    content: '\f017' / '';
                    font-family: 'Font Awesome 7 Sharp';
                    font-weight: 900;
                    display: inline-block;
                    position: absolute;
                    color: var(--red);
                    top: 0;
                    left: 0;
                }
            }
        }
    }
}

.form-section {
    & .flexed {
        display: block;
        @media screen and (min-width: 1024px) {
            display: flex;
        }
    }
    & .section-text {
        padding: 20px;
        @media screen and (min-width: 600px) {
            padding: 30px 40px;
        }
    }
    & .flexed.flexed-stretched {
        & .section-photo {
            height: auto;
        }
    }
    & .section-photo {
        display: none;
        line-height: 0;
        & img {
            block-size: 100%;
            inline-size: 100%;
            object-fit: cover;
            object-position: center;
        }
        @media screen and (min-width: 1024px) {
            display: block;
        }
    }
}

/*#service-request,
#apply-now {
    & .gform_wrapper {
        max-width: 800px;
        margin-inline: auto;
        background-color: #F4F4F4;
        padding: 20px;
        @media screen and (min-width: 600px){
            padding: 40px;
        }
    }
}*/
#mission-and-vision {
    & h3 {
        text-wrap: balance;
        padding: 25px 0;
        margin-inline: auto;
        position: relative;
        &:before,
        &:after {
            position: absolute;
            content: '';
            display: block;
            left: 50%;
            width: 100%;
            max-width: 300px;
            transform: translateX(-50%);
            border-top: 1px solid var(--accent-color);
        }
        &:before {
            top: 0;
        }
        &:after {
            bottom: 0;
        }
    }
}
.page-id-79 {
    & #testimonials:not(.white-bg) {
        margin-bottom: 3rem;
    }
}

.page-id-73 {
    #boat-information-form {
        & h2 {
            max-width: 820px;
            margin-inline: auto;
        }
        & .gform_wrapper {
            max-width: 800px;
            margin-inline: auto;
        }
    }
}