/* EMP Chair homepage extension */

:root {
    --emp-green: #99b26a;
    --emp-green-dark: #7f9c4f;
    --emp-text: #111111;
    --emp-soft-gray: #f2f2f2;
}

/* Slider motif */

#slider-f {
    max-height: 75vh;
    overflow: hidden;
}

#slider-f .mbr-section-full {
    height: 75vh;
    max-height: 75vh;
    min-height: 0;
}

#slider-f .mbr-section-full .mbr-overlay {
    min-height: 75vh;
}

#slider-f .emp-chair-slide {
    background-position: center center;
}

#slider-f .emp-chair-slide .mbr-overlay {
    display: none;
}

#slider-f .emp-slider-copy {
    color: var(--emp-text);
    max-width: 600px;
}

#slider-f .emp-slider-copy .mbr-section-title {
    color: var(--emp-text);
    font-size: 46px;
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 1.1rem;
}

#slider-f .emp-slider-lead {
    color: var(--emp-text);
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

#slider-f .emp-slider-copy .btn {
    background: var(--emp-green);
    border-color: var(--emp-green);
    border-radius: 0;
    color: #ffffff;
    text-transform: uppercase;
}

#slider-f .emp-slider-copy .btn:hover,
#slider-f .emp-slider-copy .btn:focus {
    background: var(--emp-green-dark);
    border-color: var(--emp-green-dark);
}

#slider-f .emp-slider-badge {
    left: 53%;
    position: absolute;
    top: -7rem;
    width: 105px;
    z-index: 3;
}

#slider-f .emp-slider-partner {
    align-items: center;
    display: flex;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    gap: 0.65rem;
    margin: 1.35rem 0 0 1rem;
}

#slider-f .emp-slider-partner img {
    height: auto;
    width: 95px;
}

#slider-f .emp-slider-partner span {
    font-size: 0.72rem;
}

#slider-f .recruiting-contact {
    display: block;
    font-weight: 400;
}

/* Semantic lists in the existing therapy overview */

#features4-d .therapy-list {
    color: #232323;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    list-style: disc outside;
    margin: 1.5rem 0 0;
    padding: 0 0 0 1.15rem;
    text-align: left;
}

#features4-d .therapy-list li {
    padding-left: 0.1rem;
}

#features4-d .mbr-cards-col:nth-child(2) .therapy-list:first-of-type {
    margin-top: 1.375rem;
}

#features4-d .therapy-list-new {
    margin-top: 0.25rem;
}

/* Therapy detail section */

.emp-chair-section {
    background: #ffffff;
    color: var(--emp-text);
    font-family: 'Open Sans', sans-serif;
    overflow: hidden;
    padding: 80px 15px;
}

.emp-chair-grid {
    background: var(--emp-soft-gray);
    box-shadow: 0 0 0 100vmax var(--emp-soft-gray);
    clip-path: inset(0 -100vmax);
    display: grid;
    grid-template-columns: 29fr 23fr 23fr 25fr;
    margin: 0 auto;
    max-width: 1600px;
    min-height: 470px;
}

.emp-chair-grid > div {
    min-width: 0;
}

.emp-chair-photo {
    overflow: hidden;
    position: relative;
}

.emp-chair-photo > img {
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.35);
    width: 100%;
}

.emp-chair-badge {
    height: 108px;
    position: absolute;
    right: 7%;
    top: 7%;
    width: 108px;
}

.emp-chair-badge > img {
    height: 100%;
    width: 100%;
}

.emp-chair-badge > span {
    display: none;
}

.emp-chair-intro,
.emp-chair-benefits,
.emp-chair-offer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px 36px;
}

.emp-chair-intro {
    background: var(--emp-soft-gray);
}

.emp-chair-intro h3 {
    color: var(--emp-text);
    font-size: clamp(1.15rem, 1.25vw, 1.45rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

.emp-chair-intro > p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 2rem;
}

.emp-chair-duration {
    align-items: center;
    background: #d4d4d4;
    border-radius: 11px;
    display: flex;
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
    gap: 0.8rem;
    line-height: 1.4;
    padding: 0.85rem 1rem;
}

.emp-chair-duration img {
    flex: 0 0 auto;
    height: 42px;
    width: 42px;
}

.emp-chair-benefits {
    background: #ffffff;
}

.emp-chair-benefits h4 {
    color: var(--emp-green);
    font-size: clamp(0.82rem, 0.9vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 1.6rem;
    text-transform: uppercase;
}

.emp-chair-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.emp-chair-benefits li {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 0.72rem;
    padding-left: 1.6rem;
    position: relative;
}

.emp-chair-benefits li::before {
    background: url('../images/checkmark.svg') center / contain no-repeat;
    content: '';
    height: 1.05rem;
    left: 0;
    position: absolute;
    top: 0.05rem;
    width: 1.05rem;
}

.emp-chair-offer {
    align-items: center;
    background: var(--emp-green);
    color: #ffffff;
    text-align: center;
}

.emp-chair-offer p {
    font-size: clamp(0.78rem, 0.88vw, 0.98rem);
    line-height: 1.4;
    margin: 0;
}

.emp-chair-offer .emp-chair-offer-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.emp-chair-offer .emp-chair-price {
    font-size: clamp(2.3rem, 3vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0.2rem 0 0.75rem;
}

.emp-chair-offer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    margin: 1.2rem 0;
    width: 72%;
}

.emp-chair-hansefit {
    height: auto;
    margin-top: 0.55rem;
    width: min(175px, 72%);
}

.emp-chair-cta {
    background: #ffffff;
    color: var(--emp-text);
    display: block;
    font-family: Montserrat, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.9rem 1rem;
    text-transform: uppercase;
    width: 78%;
}

.emp-chair-cta:hover,
.emp-chair-cta:focus {
    background: #f3f3f3;
    color: var(--emp-text);
    text-decoration: none;
}

.emp-chair-offer .emp-chair-advice {
    margin-top: 1.3rem;
}

/* Mobirise adds scroll animations globally. This section stays static. */

.emp-chair-grid .hidden {
    visibility: visible !important;
}

.emp-chair-grid .animated,
.emp-chair-grid .fadeInUp {
    animation: none !important;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .emp-chair-intro,
    .emp-chair-benefits,
    .emp-chair-offer {
        padding-left: 24px;
        padding-right: 24px;
    }

    #slider-f .emp-slider-badge {
        left: 58%;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .emp-chair-section {
        padding-left: 0;
        padding-right: 0;
    }

    .emp-chair-grid {
        grid-template-columns: 1fr 1fr;
        max-width: none;
    }

    .emp-chair-photo,
    .emp-chair-intro,
    .emp-chair-benefits,
    .emp-chair-offer {
        min-height: 430px;
    }

    #features4-d .mbr-cards-col {
        padding-bottom: 32px !important;
        padding-top: 32px !important;
    }

    #features4-d .mbr-cards-col:first-child {
        padding-bottom: 8px !important;
    }

    #features4-d .mbr-cards-col:nth-child(2) {
        padding-top: 8px !important;
    }

    #features4-d .mbr-cards-col:nth-child(2) .card-title:empty,
    #features4-d .mbr-cards-col:nth-child(2) .card-subtitle {
        display: none;
    }

    #features4-d .mbr-cards-col:nth-child(2) .therapy-list:first-of-type {
        margin-top: 0;
    }
}

/* All slider texts sit below their image on phones. */

@media (max-width: 767px) {
    #slider-f {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #slider-f .mbr-section-full {
        height: auto;
        max-height: none;
    }

    #slider-f .mbr-section-full .mbr-overlay {
        min-height: 0;
    }

    #slider-f .carousel-item {
        background-color: #ffffff;
        background-position: center top !important;
        background-repeat: no-repeat;
        background-size: auto 100vw !important;
        display: none !important;
        height: auto;
        min-height: 0;
    }

    #slider-f .carousel-item.active,
    #slider-f .carousel-item.next,
    #slider-f .carousel-item.prev {
        display: block !important;
    }

    #slider-f .carousel-item > .mbr-table-cell {
        display: block;
        padding-top: 100vw;
    }

    #slider-f .carousel-item .mbr-overlay {
        display: none;
    }

    #slider-f .container-slide {
        background: #ffffff;
        min-height: 225px;
        padding: 1.2rem 1rem 1.5rem;
        width: 100%;
    }

    #slider-f .container-slide .row {
        margin: 0;
    }

    #slider-f .tz-slider-copy {
        background: #ffffff !important;
        color: var(--emp-text);
        margin: 0;
        max-width: none;
        padding: 0 !important;
        width: 100% !important;
    }

    #slider-f .tz-slider-copy .mbr-section-title,
    #slider-f .tz-slider-copy .mbr-section-title span,
    #slider-f .tz-slider-copy .mbr-section-title div {
        color: var(--emp-text) !important;
        font-family: 'Open Sans', sans-serif;
        font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
        font-weight: 700;
        letter-spacing: 0 !important;
        line-height: 1.16 !important;
        margin: 0 0 0.75rem !important;
        padding: 0 !important;
    }

    #slider-f .tz-slider-copy .mbr-section-title br:first-child {
        display: none;
    }

    #slider-f .carousel-indicators {
        display: none;
    }

    #slider-f .recruiting-slide .tz-slider-copy .mbr-section-title span.recruiting-contact {
        display: block;
        font-size: 1rem !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
        margin: 0.7rem 0 0 !important;
    }

    #slider-f .emp-slider-lead {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    #slider-f .tz-slider-copy .mbr-section-btn {
        margin: 0;
        text-align: left;
    }

    #slider-f .tz-slider-copy .btn {
        background: var(--emp-green);
        border-color: var(--emp-green);
        border-radius: 0;
        color: #ffffff;
        font-size: 0.75rem !important;
        margin: 0;
        text-transform: uppercase;
    }

    #slider-f .emp-slider-badge {
        left: 1rem;
        top: calc(-100vw + 1.6rem);
        width: 96px;
    }

    #slider-f .emp-slider-partner {
        display: none;
    }

    #slider-f .emp-chair-slide {
        background-position: 70% top !important;
    }

    #slider-f .carousel-control {
        display: none;
    }

    .emp-chair-section {
        padding: 32px 0 24px;
    }

    .emp-chair-grid {
        display: block;
        max-width: none;
        min-height: 0;
    }

    .emp-chair-photo {
        aspect-ratio: 1.29;
    }

    .emp-chair-photo > img {
        object-position: center 43%;
    }

    .emp-chair-badge {
        height: 100px;
        right: 1rem;
        top: 1rem;
        width: 100px;
    }

    .emp-chair-badge > img {
        display: block;
    }

    .emp-chair-intro,
    .emp-chair-benefits {
        padding: 28px 24px;
    }

    .emp-chair-intro {
        background: var(--emp-soft-gray);
    }

    .emp-chair-intro h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .emp-chair-intro > p {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1.4rem;
    }

    .emp-chair-duration {
        background: #ffffff;
        border: 1px solid #d9d9d9;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
        font-size: 0.72rem;
        gap: 0.6rem;
        padding: 0.7rem 0.8rem;
    }

    .emp-chair-duration img {
        height: 42px;
        width: 42px;
    }

    .emp-chair-benefits {
        background: var(--emp-soft-gray);
        padding-top: 18px;
    }

    .emp-chair-benefits h4 {
        font-size: 0.9rem;
        margin-bottom: 1.35rem;
    }

    .emp-chair-benefits li {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 0.75rem;
        padding-left: 1.65rem;
    }

    .emp-chair-benefits li::before {
        height: 1.1rem;
        top: 0.1rem;
        width: 1.1rem;
    }

    .emp-chair-offer {
        margin-top: 5px;
        padding: 35px 22px 28px;
    }

    .emp-chair-offer .emp-chair-price {
        font-size: 3.2rem;
    }

    .emp-chair-offer p {
        font-size: 0.9rem;
    }

    .emp-chair-offer hr {
        width: 80%;
    }

    .emp-chair-cta {
        width: 80%;
    }

    #features4-d .mbr-cards-col {
        padding-bottom: 28px !important;
        padding-top: 28px !important;
    }

    #features4-d .mbr-cards-col:first-child {
        padding-bottom: 6px !important;
    }

    #features4-d .mbr-cards-col:nth-child(2) {
        padding-top: 6px !important;
    }

    #features4-d .mbr-cards-col:nth-child(2) .card-title:empty,
    #features4-d .mbr-cards-col:nth-child(2) .card-subtitle {
        display: none;
    }

    #features4-d .mbr-cards-col:nth-child(2) .therapy-list:first-of-type {
        margin-top: 0;
    }

    #features4-d .mbr-cards-col > .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #slider-f .carousel-item {
        transition: none;
    }
}
