/* Home-page visual prototype: a public-site interpretation of the Client Centre. */
.home-modern {
    --home-accent: #5797a0;
    --home-accent-dark: #397b82;
    --home-text: #171b20;
    --home-muted: #7b858f;
    --home-line: #e0e4e7;
    --home-surface: #f4f6f7;
    background: var(--home-surface);
}

.home-modern .home-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--home-accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-modern .featured-text.w-button .contact-button {
    box-sizing: border-box;
    min-width: 190px;
    width: max-content;
    max-width: calc(100% - 40px);
    padding: 12px 24px !important;
    border-radius: 999px;
    font-weight: 600;
}

.home-modern .benefits-item,
.home-modern .featured-boxes .wrap-box,
.home-modern .packages .package-breakdown,
.home-modern .home-review-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

@media (hover: hover) {
    .home-modern .benefits-item:hover,
    .home-modern .packages .package-breakdown:hover,
    .home-modern .home-review-card:hover {
        transform: translateY(-4px);
        border-color: rgba(87, 151, 160, .55);
        box-shadow: 0 16px 34px rgba(21, 27, 34, .1);
    }
}

.home-modern .featured .flex-active-slide .featured-text .text {
    animation: homeHeroIn .7s ease both;
}

.home-modern .featured .flex-active-slide .featured-text .contact-button {
    animation: homeHeroIn .7s .12s ease both;
}

@keyframes homeHeroIn {
    from { opacity: 0; transform: translateY(calc(-50% + 12px)); }
    to { opacity: 1; transform: translateY(-50%); }
}

.home-modern > .intro,
.home-modern .intro.calc {
    background: var(--home-surface);
}

.home-modern .intro.calc {
    box-sizing: border-box;
    padding: 72px 5%;
}

.home-modern .intro.calc > .inner {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1120px;
    padding: 58px 8% !important;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(21, 27, 34, .06);
}

.home-modern .intro.calc h1 {
    max-width: 820px;
    margin: 0 auto 24px;
    color: var(--home-text);
    font-size: 38px;
    line-height: 1.18;
}

.home-modern .intro.calc p {
    max-width: 820px;
    margin: 0 auto 15px;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.75;
}

.home-modern .benefits {
    padding: 0 5% 76px;
    background: var(--home-surface);
}

.home-modern .benefits > .inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1240px;
    padding: 0 !important;
}

.home-modern .benefits .spaced-heading {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px 0 8px;
    color: var(--home-text);
    font-size: 30px !important;
    letter-spacing: 0 !important;
    text-align: left;
}

.home-modern .benefits .spaced-heading:last-of-type {
    margin-top: 44px;
}

.home-modern .benefits > .inner > div[style*="clear"],
.home-modern .packages > .inner > div[style*="clear"] {
    display: none;
}

.home-modern .benefits-item {
    float: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    min-height: 245px;
    max-height: none;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 27, 34, .045);
    text-align: left;
}

.home-modern .benefits-item .icon {
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px !important;
    height: 54px !important;
    margin: 0 0 22px !important;
    border-radius: 14px;
    background: var(--home-accent);
}

.home-modern .benefits-item .icon img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 28%;
    object-fit: contain;
}

.home-modern .benefits-item h3 {
    width: 100%;
    margin: 0 0 10px;
    color: var(--home-text);
    font-size: 19px;
    line-height: 1.3;
}

.home-modern .benefits-item p {
    width: 100%;
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.65;
}

.home-modern .featured-boxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    box-sizing: border-box;
    padding: 0 max(5%, calc((100% - 1240px) / 2)) 80px;
    background: var(--home-surface);
    overflow: visible !important;
}

.home-modern .featured-boxes .wrap-box {
    float: none;
    width: 100%;
    padding-bottom: 72%;
    border-radius: 18px;
    background-size: cover;
    box-shadow: 0 12px 30px rgba(21, 27, 34, .08);
}

.home-modern .featured-boxes .wrap-box .details {
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(10, 14, 18, .08), rgba(10, 14, 18, .68));
}

.home-modern .featured-boxes .center-title {
    top: auto;
    bottom: 24px;
    transform: none;
}

.home-modern .featured-boxes .details h1,
.home-modern .featured-boxes .details h2 {
    padding: 0 20px;
    color: #fff;
    font-size: 20px !important;
    line-height: 1.3;
}

.home-modern .packages {
    padding: 76px 5%;
    background: #edf1f2;
}

.home-modern .packages > .inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100% !important;
    max-width: 1240px;
    padding: 0 !important;
}

.home-modern .packages > .inner > .spaced-heading {
    grid-column: 1 / -1;
    margin: 0 0 10px;
    color: var(--home-text);
    font-size: 30px !important;
    letter-spacing: 0 !important;
    text-align: left;
}

.home-modern .packages .package-breakdown {
    float: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 27, 34, .045);
    overflow: hidden;
}

.home-modern .packages .package-breakdown tr,
.home-modern .packages .package-breakdown tr td {
    border: 0;
    background: #fff;
}

.home-modern .packages .package-breakdown tr {
    height: auto !important;
}

.home-modern .packages .package-breakdown tr td.heading {
    padding: 25px 25px 4px !important;
    background: #fff;
}

.home-modern .packages .package-breakdown tr td.heading h1 {
    color: var(--home-accent-dark);
    font-size: 18px !important;
    letter-spacing: 0;
    text-align: left;
}

.home-modern .packages .package-breakdown tr td:not(.heading) {
    padding: 12px 25px 25px !important;
}

.home-modern .packages .package-breakdown ul {
    color: var(--home-muted);
    line-height: 1.65;
}

.home-modern .packages .package-breakdown .button {
    display: inline-flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--home-accent);
}

.home-modern .testimonials {
    box-sizing: border-box;
    padding: 76px 5%;
    background: #344247;
}

.home-modern .testimonials > .inner {
    box-sizing: border-box;
    max-width: 1100px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home-modern .testimonials .spaced-heading {
    margin-top: 0;
    color: #fff;
    font-size: 28px !important;
    letter-spacing: 0 !important;
}

.home-modern .landing-testimonials {
    width: 100%;
    margin: 24px 0 0;
    padding-bottom: 36px;
    overflow: visible;
}

.home-modern .home-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-modern .home-review-card {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    min-height: 300px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    color: var(--home-text);
    background: #fff;
    box-shadow: 0 10px 25px rgba(10, 16, 20, .13);
    text-align: left;
}

.home-modern .home-review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    color: #f5b301;
    font-size: 18px;
}

.home-modern .home-review-card h6 {
    flex: 1;
    margin: 0 0 24px;
    padding: 0;
    color: #3f474d;
    font-size: 14px;
    font-style: normal;
    line-height: 1.65;
}

.home-modern .home-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-modern .home-review-author > span {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: var(--home-accent);
    font-size: 12px;
    font-weight: 700;
}

.home-modern .home-review-author p,
.home-modern .home-review-author strong,
.home-modern .home-review-author small {
    display: block;
    margin: 0;
}

.home-modern .home-review-author strong {
    color: var(--home-text);
    font-size: 13px;
}

.home-modern .home-review-author small {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 11px;
}

@media screen and (max-width: 960px) {
    .home-modern .benefits > .inner,
    .home-modern .featured-boxes,
    .home-modern .packages > .inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-modern .intro.calc h1 {
        font-size: 32px;
    }

    .home-modern .home-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {
	.home-modern .featured,
	.home-modern .featured .flexslider,
	.home-modern .featured .flex-viewport,
	.home-modern .featured .slides,
	.home-modern .featured .slides > li {
		min-height: 190px;
	}

	.home-modern .featured-text.w-button .text,
	.home-modern .featured-text .text {
		box-sizing: border-box;
		padding-right: 7%;
		padding-left: 7%;
		font-size: 22px !important;
		line-height: 1.25;
	}

	.home-modern .home-review-grid {
		grid-template-columns: 1fr;
	}

    .home-modern .intro.calc {
        padding: 34px 5%;
    }

    .home-modern .intro.calc > .inner {
        padding: 34px 7% !important;
        border-radius: 16px;
    }

    .home-modern .intro.calc h1 {
        font-size: 27px !important;
    }

    .home-modern .intro.calc p {
        font-size: 14px;
        line-height: 1.65;
    }

    .home-modern .benefits {
        padding-bottom: 48px;
    }

    .home-modern .benefits > .inner,
    .home-modern .featured-boxes,
    .home-modern .packages > .inner {
        grid-template-columns: 1fr;
    }

    .home-modern .benefits .spaced-heading,
    .home-modern .packages > .inner > .spaced-heading {
        font-size: 25px !important;
    }

    .home-modern .benefits-item {
        min-height: 0;
        padding: 24px;
    }

    .home-modern .featured-boxes {
        padding-bottom: 50px;
    }

    .home-modern .packages,
    .home-modern .testimonials {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .home-modern .testimonials > .inner {
        padding: 0;
    }

    .home-modern .home-review-card {
        min-height: 270px;
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-modern *,
    .home-modern *::before,
    .home-modern *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
