/*
 Theme Name:   Angus & Mearns Support
 Description:  Custom theme
 Author:       Carnoustie Creative
 Author URI:   https://www.carnoustiecreative.co.uk
 Template:     canvas
 Version:      1.3.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  angus-mearns
*/

/* CDE Palette Variables: start */
:root {
  --cde-black-rose: #6B0D34;
  --cde-buttercup: #F7B72D;
  --cde-pearl-lustre: #FDF9EF;
  --cde-soft-apricot: #FBDAC9;
  --cde-sage-willow: #BDCCA5;
  --cde-dune: #373637;
  --cde-white: #FFFFFF;
}
/* CDE Palette Variables: end */

::view-transition-group(root) {
    animation-duration: 1s;
}

:root {
    --pt-brown: #2D231E;
    --am-black-rose: var(--cde-black-rose);
    --am-buttercup: var(--cde-buttercup);
    --am-soft-apricot: var(--cde-soft-apricot);
    --am-sage-willow: var(--cde-sage-willow);
    --am-dune: var(--cde-dune);
    --am-pearl-lustre: var(--cde-pearl-lustre);
    --am-heading-font: "Nunito", sans-serif;
    --am-ui-font: "Nunito Sans", sans-serif;
}

.canvas {
    --canvas-aos-distance: 100px;
    --canvas-aos-distance-negative: -100px;
}

body.canvas {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #000;
    font-family: var(--am-ui-font);
    line-height: 1.6;
    font-size: clamp(1.6rem, 1.8vw, 1.8rem);
}

.cde-richtext ul {
    text-align: start;
}

body.canvas h1 {
    font-family: var(--am-heading-font);
}

body.canvas h1.xl {
    --am-h1-font-size: clamp(4.5rem, 5vw, 6.4rem);
    font-size: var(--am-h1-font-size);
    line-height: 1 !important;
}

body.canvas h1.l {
    --am-h1-font-size: clamp(3.5rem, 3.6vw, 5rem);
    font-size: var(--am-h1-font-size);
    line-height: 1.05;
}

body.canvas main h2 {
    color: var(--am-black-rose);
}

body.canvas main .has-bgcolor.col-black-rose h2 {
    color: #fff;
}

body.canvas main .has-bgcolor:is(.col-sage-willow, .col-soft-apricot) a:not(.button) {
    text-decoration-color: var(--am-pearl-lustre);
}

/* Buttons */

body.canvas button:not(.flickity-button):not(.pswp__button):not(.canvas-mobile-submenu-toggle):not(.canvas-menu-overlay):not(.canvas-mobile-forward):not(.canvas-mobile-back-link),
body.canvas .button,
body.canvas a.button,
body.canvas li.button > a,
body.canvas input[type="submit"],
body.canvas input[type="reset"],
body.canvas input[type="button"],
body.canvas .wp-element-button,
body.canvas .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 5.34rem;
    padding: 0 2rem;
    border: 0;
    border-radius: 1.5rem;
    background: var(--am-button-background, var(--am-buttercup));
    box-shadow: none;
    color: var(--am-button-color, #000);
    font-family: var(--am-ui-font);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.57;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

body.canvas :is(.button, .wp-element-button, .wp-block-button__link)
    > :is(i, svg)[class*="fa-"]:last-child {
    margin-left: 0.6rem;
}

body.canvas .button-alt {
    --am-button-background: var(--am-sage-willow);
}

body.canvas button:not(.flickity-button):not(.pswp__button):not(.canvas-mobile-submenu-toggle):not(.canvas-menu-overlay):not(.canvas-mobile-forward):not(.canvas-mobile-back-link):hover,
body.canvas button:not(.flickity-button):not(.pswp__button):not(.canvas-mobile-submenu-toggle):not(.canvas-menu-overlay):not(.canvas-mobile-forward):not(.canvas-mobile-back-link):focus-visible,
body.canvas .button:hover,
body.canvas .button:focus-visible,
body.canvas a.button:hover,
body.canvas a.button:focus-visible,
body.canvas li.button > a:hover,
body.canvas li.button > a:focus-visible,
body.canvas input[type="submit"]:hover,
body.canvas input[type="submit"]:focus-visible,
body.canvas input[type="reset"]:hover,
body.canvas input[type="reset"]:focus-visible,
body.canvas input[type="button"]:hover,
body.canvas input[type="button"]:focus-visible,
body.canvas .wp-element-button:hover,
body.canvas .wp-element-button:focus-visible,
body.canvas .wp-block-button__link:hover,
body.canvas .wp-block-button__link:focus-visible {
    background: var(--am-button-background, var(--am-buttercup));
    color: var(--am-button-color, #000);
    text-decoration: none;
    transform: translateY(-0.2rem);
    filter: brightness(0.96);
}

body.canvas button:disabled,
body.canvas input[type="submit"]:disabled,
body.canvas input[type="reset"]:disabled,
body.canvas input[type="button"]:disabled {
    cursor: not-allowed;
    transform: none;
    filter: none;
    opacity: 0.6;
}

/* Forms */

body.canvas .gform_wrapper .gfield_label {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
}

body.canvas .form-pearl .gform_wrapper {
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: 1rem;
    background: var(--am-pearl-lustre);
}

body.canvas .gform_wrapper input[type="submit"],
body.canvas .gform_wrapper button[type="submit"] {
    --am-button-background: var(--am-black-rose);
    --am-button-color: #fff;
}

body.canvas .gform_wrapper input[type="submit"]:hover,
body.canvas .gform_wrapper input[type="submit"]:focus-visible,
body.canvas .gform_wrapper button[type="submit"]:hover,
body.canvas .gform_wrapper button[type="submit"]:focus-visible {
    --am-button-background: var(--am-soft-apricot);
    --am-button-color: #000;
    color: #000;
}

/* Header */

.site-header {
    position: relative;
    z-index: 20;
    background: #fff;
    box-shadow: 0 0.4rem 1rem rgb(0 0 0 / 12%);
    color: #000;
    font-family: var(--am-ui-font);
}

.site-header__main {
    background: #fff;
}

.site-header__main .container {
    width: 100%;
    max-width: none;
    padding-inline: 3.9rem 4.7rem;
    box-sizing: border-box;
}

.site-header__layout,
.canvas-header-height-medium .site-header__layout,
.canvas-header-height-tall .site-header__layout {
    grid-template-columns: 20.1rem minmax(0, 1fr);
    gap: 0;
    min-height: 14.1rem;
    padding-block: 0;
}

.site-header .site-branding {
    width: 20.1rem;
}

.site-header .site-title {
    line-height: 1;
}

.site-header .site-title a {
    display: block;
    width: 20.1rem;
    height: 7.3rem;
    overflow: hidden;
    background: url("assets/images/angus-mearns-logo.svg") center / 100% 100% no-repeat;
    text-indent: -999rem;
    white-space: nowrap;
}

.site-header__widgets-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.site-header .header-widget-area {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

.site-header__widgets .widget {
    margin: 0;
}

.site-header #nav_menu-2 {
    margin-inline: auto;
}

.site-header #menu-top,
.site-header #menu-enquire {
    flex-wrap: nowrap;
    align-items: center;
}

.site-header #menu-top {
    gap: 4.7rem;
}

.site-header #menu-top a {
    padding: 1.2rem 0;
    position: relative;
    background: transparent;
    color: #000;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.57;
    white-space: nowrap;
    transition: color 180ms ease;
}

.site-header #menu-top a:hover,
.site-header #menu-top a:focus-visible {
    padding: 1.2rem 0;
    background: transparent;
    color: var(--am-black-rose);
    font-weight: 700;
}

.site-header #menu-top a::after {
    position: absolute;
    right: 0;
    bottom: 0.6rem;
    left: 0;
    height: 0.2rem;
    background: var(--am-sage-willow);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 240ms ease;
}

.site-header #menu-top a:hover::after,
.site-header #menu-top a:focus-visible::after {
    transform: scaleX(1);
}

.site-header #menu-top .current-menu-item > a,
.site-header #menu-top .current_page_item > a {
    color: var(--am-black-rose);
    font-weight: 900;
}

.site-header #menu-top .current-menu-item > a::after,
.site-header #menu-top .current_page_item > a::after {
    transform: scaleX(0);
}

.site-header #menu-enquire {
    gap: 3.75rem;
}

.site-header #menu-enquire > li {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-header #menu-enquire > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.34rem;
    padding: 0 2rem;
    border: 0;
    border-radius: 1.5rem;
    background: var(--am-buttercup);
    box-shadow: none;
    color: #000;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.57;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header #menu-enquire .button-alt > a {
    gap: 0.8rem;
    width: 18.55rem;
    background: var(--am-sage-willow);
}

.site-header #menu-enquire .button-alt > a::before,
.site-footer__action--phone::before {
    width: 1.6rem;
    height: 1.6rem;
    background: url("assets/images/phone.svg") center / contain no-repeat;
    content: "";
    flex: 0 0 1.6rem;
}

.site-header #menu-enquire .button:not(.button-alt) > a {
    width: 15.9rem;
}

.site-header #menu-enquire > li > a:hover,
.site-header #menu-enquire > li > a:focus,
.site-footer__action:hover,
.site-footer__action:focus {
    transform: translateY(-0.2rem);
    filter: brightness(0.96);
}

/* Content images and cards */

body.canvas main .flex-elm:not(.cde-image-header) :is(.img, .image-wrapper, .cde-richtext img),
body.canvas main .flex-elm .cde-grid-item {
    overflow: hidden;
    border-radius: 1rem;
}

body.canvas main .flex-elm .has-bgcolor {
    border-radius: 1rem;
}

body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item:not(.has-image):not(.has-icon),
body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item.has-image,
body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item.has-icon {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1rem;
}

body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item:not(.has-image):not(.has-icon)
    > .cde-grid-item-inner,
body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item.has-image
    > .cde-grid-item-inner,
body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item.has-icon
    > .cde-grid-item-inner,
body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item:not(.has-image):not(.has-icon)
    > .cde-grid-item-inner > a,
body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item.has-image
    > .cde-grid-item-inner > a,
body.canvas main .cde-grid-list:not(.canvas-grid-list-alt-text) .grid-list > li.cde-grid-item.has-icon
    > .cde-grid-item-inner > a {
    border-radius: inherit;
}

body.canvas main .cde-grid-item .item-image {
    border-radius: 1rem 1rem 0 0;
}

.cde-grid-list .item-label {
    margin-bottom: 0.6rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.cde-grid-list .before h2 {
    margin-bottom: 2rem;
}

/* Homepage */

.home-hero h1,
.home-intro h2,
.home-services h2,
.home-services .item-label,
.home-support-steps h2,
.home-support-steps h3,
.home-coverage h2,
.home-testimonials h2 {
    font-family: var(--am-heading-font);
    font-weight: 800;
}

body.canvas #cde-flex-content-2-1.home-hero {
    position: relative;
    height: 51.6rem;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #fff;
}

body.canvas:not(.home) .home-hero {
    --am-hero-sun-top: 3rem;
    --am-hero-image-width: 100%;
    --am-hero-inner-padding: 12rem 0 0;
}

.home-hero::before {
    position: absolute;
    top: var(--am-hero-sun-top, -9.85rem);
    left: -11.46rem;
    z-index: 1;
    width: 71.7rem;
    height: 71.7rem;
    border-radius: 50%;
    background: var(--am-buttercup);
    content: "";
}

.hero-sunrise::before {
    transform-origin: center;
    box-shadow: 0 0 5rem 1.5rem rgba(247, 183, 45, 0.28);
    will-change: transform, opacity;
    animation: hero-sunrise 2.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-sunrise .inner {
    animation: hero-sunrise-content 2.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-sunrise {
    from {
        transform: translateY(2.5rem) scale(0.96);
        opacity: 0.45;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes hero-sunrise-content {
    from {
        opacity: 0.45;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-sunrise::before,
    .hero-sunrise .inner {
        animation: none;
    }
}

.home-hero .wrapper,
.home-hero .container {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

body.canvas #cde-flex-content-2-1.home-hero .wrapper::before {
    content: none;
}

body.canvas #cde-flex-content-2-1.home-hero.cde-image-header.has-bgimage .inner {
    position: relative;
    z-index: 2;
    display: block;
    width: 44.94rem;
    height: auto;
    margin-left: 5.685rem;
    padding: var(--am-hero-inner-padding, 0);
    box-sizing: border-box;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

body.canvas #cde-flex-content-2-1.home-hero .img {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 0;
    display: block;
    width: var(--am-hero-image-width, 90%);
    height: 100%;
    background-position: 40% center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cde-image-header .image-header-caption {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 3;
    width: auto;
    max-width: min(80%, 42rem);
    margin: 0;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    background: rgb(0 0 0 / 65%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
    pointer-events: none;
}

.home-hero .home-hero__eyebrow {
    margin: 0 0 1.95rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.196;
}

body.canvas #cde-flex-content-2-1.home-hero h1 {
    width: 44.94rem;
    margin: 0 0 2.27rem;
    color: var(--am-black-rose);
    font-size: var(--am-h1-font-size, clamp(3rem, 2.7vw, 4rem));
    line-height: 1.05;
}

.home-hero .inner > p:not(.home-hero__eyebrow):not(:has(> a.button)) {
    width: 41.83rem;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.25;
}

.home-hero .inner > p:not(.home-hero__eyebrow):has(+ p > a.button) {
    margin-bottom: 4.15rem;
}

.home-hero .inner > p:has(> a.button) {
    margin: 0;
}

body.canvas .home-hero a.button,
body.canvas .home-hero a.button:hover,
body.canvas .home-hero a.button:focus-visible {
    --am-button-background: var(--am-black-rose);
    width: 29.81rem;
    color: #fff;
}

body.canvas section.flex-container.home-intro {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

body.canvas #cde-flex-content-2-2.home-intro {
    display: grid;
    grid-template-columns: 42.32% 49.71%;
    justify-content: space-between;
    width: calc(100vw - 12.2rem);
    max-width: 130.9rem;
    min-height: 39.3rem;
    margin: 8.7rem auto 7.9rem;
    padding: 0;
    gap: 0;
}

body.canvas #cde-flex-content-2-2.home-intro .left {
    display: block !important;
    width: auto;
    min-width: 0;
    padding: 3.38rem 0 0 0.285rem;
}

body.canvas #cde-flex-content-2-2.home-intro .left .inner {
    width: 100%;
    padding: 0;
}

body.canvas #cde-flex-content-2-2.home-intro .right.hide-desktop {
    display: none;
}

body.canvas #cde-flex-content-2-2.home-intro .right.img.hide-mobile {
    display: block;
    width: auto;
    min-width: 0;
    min-height: 39.12rem;
    overflow: hidden;
    border-radius: 1rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-intro .right figcaption {
    display: none;
}

.home-intro h2 {
    width: 45rem;
    max-width: 100%;
    margin: 0 0 1.8rem;
    color: var(--am-black-rose);
    font-size: 3.1rem;
    line-height: 1.25;
}

.home-intro .cde-richtext > p {
    max-width: 55.4rem;
    margin: 0 0 0.7rem;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
}

body.canvas #cde-flex-content-2-2.home-intro .home-intro-highlights {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 55.66rem;
    margin: 3.3rem 0 0;
    padding: 0;
    row-gap: 1.2rem;
    color: var(--am-black-rose);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    list-style: none;
}

body.canvas main #cde-flex-content-2-2 > .container > .inner > .right-col.col-sage-willow hr {
    border: 0;
    border-top: 0.1rem solid #fff;
}

body.canvas main #cde-flex-content-2-2 > .container > .inner > .right-col.col-sage-willow hr + p {
    margin-top: 1rem;
}

.home-intro-highlights li {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    white-space: normal;
}

.home-intro-highlights li:not(:last-child) {
    flex: 0 1 auto;
}

.home-intro-highlights li:not(:last-child)::after {
    width: 1.67rem;
    height: 1.67rem;
    margin-inline: 0.8rem;
    border-radius: 50%;
    background: var(--am-buttercup);
    content: "";
    flex: 0 0 1.67rem;
}

body.canvas #cde-flex-content-2-3.home-services {
    position: relative;
    isolation: isolate;
    min-height: 67.3rem;
    padding: 5.55rem 0 7rem;
    border-top: 0.1rem solid var(--am-buttercup);
    border-bottom: 0.1rem solid var(--am-buttercup);
    background-color: var(--am-pearl-lustre);
    background-image: none;
    box-sizing: border-box;
}

body.canvas #cde-flex-content-2-3.home-services::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--am-black-rose);
    content: "";
    pointer-events: none;
    -webkit-mask-image: url("assets/images/cloud-border.svg");
    -webkit-mask-repeat: repeat;
    -webkit-mask-size: 5.6rem 2.8rem;
    mask-image: url("assets/images/cloud-border.svg");
    mask-repeat: repeat;
    mask-size: 5.6rem 2.8rem;
    opacity: 0.3;
}

.home-services .container {
    position: relative;
    z-index: 1;
    width: calc(100% - 11.8rem);
    max-width: 132.2rem;
    margin: 0 auto;
}

.home-services .inner,
.home-services .before {
    padding: 0;
}

body.canvas:not(.home) .home-services .before {
    margin-bottom: 3.2rem;
}

body.canvas:not(.home) .home-services .before h2 {
    margin-bottom: 1.2rem;
}

body.canvas:not(.home) .home-services .before p {
    max-width: 65ch;
    margin-bottom: 0;
}

.home-services h2 {
    margin: 0 0 4.35rem;
    color: var(--am-black-rose);
    font-size: 3.1rem;
    line-height: 1.25;
}

body.canvas .home-services ul.grid-list.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: start;
    width: 100%;
    gap: 7.1rem;
}

.home-services .cde-grid-item {
    width: auto;
    height: auto;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 0.1rem solid #E2E2E1;
    border-radius: 1rem;
    box-sizing: border-box;
}

body.canvas .home-services .cde-grid-item-inner,
body.canvas .home-services .cde-grid-item-inner > a {
    width: 100%;
    height: 100%;
}

/* Keep the project card layout independent of Canvas card defaults. */
body.canvas.home .home-services .cde-grid-item-inner {
    display: block;
}

body.canvas.home .home-services.cde-grid-list .grid-list > li.cde-grid-item {
    height: auto;
    border: 0;
    border-radius: 1rem;
}

body.canvas .home-services.cde-grid-list .grid-list .cde-grid-item.has-image :is(.item-image, .item-label, .item-content) {
    order: 0;
    padding: 0;
}

body.canvas .home-services.cde-grid-list .grid-list .cde-grid-item.has-image .item-content {
    flex: 0 1 auto;
}

body.canvas .home-services .grid-list > li.has-link.has-bgcolor > .cde-grid-item-inner > a {
    display: flex;
    flex-direction: column;
    padding: 0;
    color: var(--am-dune);
    text-decoration: none;
}

body.canvas .home-services .cde-grid-item.has-image .item-image {
    width: 100%;
    height: 25.5rem;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    flex: 0 0 25.5rem;
}

.home-services .item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.canvas .home-services.cde-grid-list .grid-list .cde-grid-item.has-image .item-label {
    margin: 1.9rem 3.1rem 0;
    color: var(--am-black-rose);
    font-family: var(--am-heading-font);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
}

body.canvas .home-services.cde-grid-list .grid-list .cde-grid-item.has-image .item-content {
    margin: 0.8rem 3.1rem 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
}

.home-services .item-content p {
    margin: 0;
}

.home-services .item-content p + p {
    margin-top: 0.2rem;
}

body.canvas.home .home-services .item-content ul {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

body.canvas.home .home-services .item-content p + ul {
    margin-top: 1rem;
}

body.canvas.home .home-services .item-content ul.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 3rem;
}

body.canvas.home .home-services .item-content li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

body.canvas.home .home-services .item-content li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--am-black-rose);
    content: "";
}

.home-services .cde-grid-item-inner > a::after {
    margin-top: auto;
    padding: 0 3.1rem 2.6rem;
    color: var(--am-black-rose);
    content: "Find out more  →";
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.57;
    text-transform: uppercase;
}

.home-services .home-service-card--personal .item-label,
.home-services .home-service-card--personal .cde-grid-item-inner > a::after {
    color: var(--am-dune);
}

body.canvas .home-services.cde-grid-list .grid-list .cde-grid-item.has-image.home-service-card--personal .item-label {
    color: var(--am-dune);
}

.home-services .home-service-card--respite .cde-grid-item-inner > a,
.home-services .home-service-card--respite .item-label,
.home-services .home-service-card--respite .cde-grid-item-inner > a::after {
    color: #fff;
}

.home-services .home-service-card--respite .cde-grid-item-inner > a::after {
    color: var(--am-buttercup);
}

body.canvas .home-services.cde-grid-list .grid-list .cde-grid-item.has-image.home-service-card--respite :is(.item-label, .item-content) {
    color: #fff;
}

.home-services .cde-grid-item-inner > a:hover .item-image,
.home-services .cde-grid-item-inner > a:focus-visible .item-image {
    filter: brightness(0.94);
}

/* Services page: horizontal service cards */

body.canvas:not(.home) .home-services ul.grid-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
}

body.canvas:not(.home) .home-services .cde-grid-item {
    width: 100%;
    height: auto;
    min-height: 31rem;
    padding: 0;
    border-color: rgb(107 13 52 / 14%);
}

body.canvas:not(.home) .home-services .cde-grid-item-inner,
body.canvas:not(.home) .home-services .cde-grid-item:not(.has-link) .cde-grid-item-inner,
body.canvas:not(.home) .home-services .cde-grid-item.has-link .cde-grid-item-inner > a {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

body.canvas:not(.home) .home-services .cde-grid-item:not(.has-link) .cde-grid-item-inner,
body.canvas:not(.home) .home-services .cde-grid-item.has-link .cde-grid-item-inner > a {
    display: grid;
    grid-template-columns: minmax(30rem, 36%) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    padding: 0;
}

body.canvas:not(.home) .home-services .cde-grid-item .item-image {
    grid-row: 1 / -1;
    grid-column: 1;
    width: 100%;
    height: 100%;
    min-height: 31rem;
    overflow: hidden;
    border-radius: 0;
    background-position: center;
    background-size: cover;
}

body.canvas:not(.home) .home-services .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.canvas:not(.home) .home-services.cde-grid-list .grid-list .cde-grid-item.has-image .item-label {
    grid-row: 2;
    grid-column: 2;
    margin: 2.2rem 4rem 1.5rem;
    color: var(--am-black-rose);
    font-size: 2.3rem;
    line-height: 1.2;
}

body.canvas:not(.home) .home-services.cde-grid-list .grid-list .cde-grid-item.has-image .item-content {
    grid-row: 3;
    grid-column: 2;
    margin: 0.5rem 4rem 2.2rem;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.35;
}

body.canvas:not(.home) .home-services .item-content p {
    margin: 0;
}

body.canvas:not(.home) .home-services .item-content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.8rem 0 0;
    padding: 0;
    gap: 1rem 3rem;
    list-style: none;
}

body.canvas:not(.home) .home-services .item-content li {
    position: relative;
    margin: 0;
    padding-left: 2.7rem;
    break-inside: avoid;
}

body.canvas:not(.home) .home-services .item-content li::before {
    position: absolute;
    top: 0.05em;
    left: 0;
    color: var(--am-black-rose);
    content: "\f058";
    font-family: "Font Awesome 6 Free", FontAwesome, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
}

body.canvas:not(.home) .home-services .col-black-rose :is(.item-label, .item-content),
body.canvas:not(.home) .home-services .col-black-rose .item-content li::before {
    color: #fff;
}

body.canvas:not(.home) .home-services.cde-grid-list .grid-list .cde-grid-item.col-black-rose :is(.item-label, .item-content) {
    color: #fff;
}

@media (max-width: 900px) {
    body.canvas:not(.home) .home-services .cde-grid-item {
        height: auto;
        min-height: 0;
    }

    body.canvas:not(.home) .home-services .cde-grid-item:not(.has-link) .cde-grid-item-inner,
    body.canvas:not(.home) .home-services .cde-grid-item.has-link .cde-grid-item-inner > a {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 24rem auto auto;
    }

    body.canvas:not(.home) .home-services .cde-grid-item .item-image {
        grid-row: 1;
        grid-column: 1;
        min-height: 24rem;
    }

    body.canvas:not(.home) .home-services.cde-grid-list .grid-list .cde-grid-item.has-image .item-label {
        grid-row: 2;
        grid-column: 1;
    }

    body.canvas:not(.home) .home-services.cde-grid-list .grid-list .cde-grid-item.has-image .item-content {
        grid-row: 3;
        grid-column: 1;
    }
}

@media (max-width: 560px) {
    body.canvas.home .home-services .item-content ul.two-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    body.canvas:not(.home) .home-services .item-content ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.canvas section.flex-container.home-support-steps {
    width: 100vw;
    max-width: none;
    min-height: 0;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 0;
}

body.canvas .flex-elm.home-support-steps {
    width: 100%;
    max-width: none;
    min-height: 55.4rem;
    margin: 0;
    padding: 6.62rem 0 6rem;
    border-bottom: 0.1rem solid var(--am-buttercup);
    box-sizing: border-box;
}

body.canvas .flex-elm.home-support-steps > .container {
    width: calc(100% - 8rem);
    max-width: none;
    margin: 0 auto;
}

body.canvas .flex-elm.home-support-steps > .container > .inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
    justify-content: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    column-gap: 2rem;
    row-gap: 0;
}

.home-support-steps .before,
.home-support-steps .after {
    grid-column: 1 / -1;
    text-align: center;
}

.home-support-steps .before {
    margin-bottom: 7.24rem;
}

.home-support-steps .before p {
    margin: 1rem 0 0;
    font-size: 2.25rem;
    line-height: 1.4;
}

.home-support-steps h2 {
    margin: 0;
    color: var(--am-black-rose);
    font-size: 3.1rem;
    line-height: 1.25;
}

.home-support-steps .left-col,
.home-support-steps .middle-col,
.home-support-steps .right-col {
    position: relative;
    overflow: visible;
}

.home-support-steps .left-col::after,
.home-support-steps .middle-col::after {
    display: none;
}

.home-support-steps .support-step {
    display: grid;
    grid-template-columns: 7.9rem minmax(0, 1fr);
    align-items: start;
    gap: 2.3rem;
}

.home-support-steps .middle-col,
.home-support-steps .right-col {
    transform: translateX(0.8rem);
}

.home-support-steps .support-step > p:first-child {
    margin: 0;
}

.home-support-steps .support-step__number {
    display: grid;
    width: 7.9rem;
    height: 7.9rem;
    border-radius: 50%;
    background: var(--am-buttercup);
    color: #fff;
    font-family: var(--am-heading-font);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    place-items: center;
}

.home-support-steps h3 {
    width: auto;
    margin: 2.5rem 0 0.7rem;
    color: #000;
    font-size: 2.3rem;
    line-height: 1.25;
}

.home-support-steps .support-step div > p {
    max-width: none;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.25;
}

.home-support-steps .after {
    margin-top: 8.45rem;
}

.home-support-steps .after p {
    margin: 0;
}

.home-support-steps .after .button {
    width: 29.81rem;
}

.home-coverage {
    position: relative;
    height: 54.5rem;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 0.1rem solid var(--am-buttercup);
    border-bottom: 0.1rem solid var(--am-buttercup);
    box-sizing: border-box;
}

.home-coverage::before {
    position: absolute;
    top: -6.36rem;
    left: 32.57%;
    z-index: 0;
    width: 67.61%;
    height: 77.91rem;
    background: url("assets/images/coverage-map.png") center / contain no-repeat;
    content: "";
    filter: brightness(0) invert(1);
    opacity: 0.65;
    pointer-events: none;
}

.home-coverage .container,
.home-coverage .image-grid-wrap {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.home-coverage .image-grid-wrap {
    position: relative;
    z-index: 1;
}

.home-coverage .cde-gallery-fe-text {
    position: absolute;
    top: 14.3rem;
    left: 11.23%;
    width: 37.73rem;
    z-index: 2;
}

.home-coverage h2 {
    width: 30.74rem;
    margin: 0 0 2.35rem;
    color: var(--am-black-rose);
    font-size: 3.1rem;
    line-height: 1.25;
}

.home-coverage .cde-gallery-fe-text p {
    margin: 0 0 0.7rem;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.25;
}

.home-coverage ul {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-coverage li.home-coverage__location {
    position: absolute;
    width: 23.9rem;
    height: 17.8rem;
    overflow: visible;
    margin: 0;
    padding: 0;
    border-radius: 1rem;
    background-position: center;
    background-size: cover;
}

.home-coverage li.home-coverage__location img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

body.canvas #cde-flex-content-2-5.home-coverage li.home-coverage__location figcaption,
body.canvas #cde-flex-content-2-5.home-coverage li.home-coverage__location .item-label {
    position: absolute;
    top: calc(100% + 1.1rem);
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    min-height: 1.25em;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--am-black-rose);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
}

.home-coverage__location--laurencekirk {
    top: 3.67rem;
    left: 75.24%;
}

.home-coverage__location--brechin {
    top: 19.58rem;
    left: 55.04%;
}

.home-coverage__location--montrose {
    top: 30.48rem;
    left: 75.24%;
}

.home-testimonials {
    height: 61rem;
    min-height: 0;
    overflow: hidden;
    padding: 6.62rem 0 0;
    box-sizing: border-box;
}

.home-testimonials .container,
.home-testimonials .inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-testimonials .before {
    margin: 0;
    text-align: center;
}

.home-testimonials h2 {
    margin: 0;
    color: var(--am-black-rose);
    font-size: 3.1rem;
    line-height: 1.25;
}

body.canvas .home-testimonials ul.grid-list.cols-3 {
    display: block;
    width: 100%;
    height: 43rem;
    margin: 7.3rem 0 0;
    padding: 0;
}

body.canvas .home-testimonials ul.grid-list.cols-3 .flickity-viewport {
    width: calc(100% - 6.1rem);
    height: 35.7rem;
    margin-left: 6.1rem;
    overflow: visible;
}

body.canvas .home-testimonials ul.grid-list.cols-3 .cde-grid-item {
    width: 36rem;
    height: 35.7rem;
    margin-right: 8.8rem;
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-sizing: border-box;
}

.home-testimonials .flickity-slider #item-2 {
    transform: translateX(0.1rem);
}

.home-testimonials .flickity-slider #item-3 {
    transform: translateX(0.6rem);
}

.home-testimonials .flickity-slider #item-4 {
    transform: translateX(1.7rem);
}

body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .cde-grid-item-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 3.2rem 3.3rem 2.9rem;
    box-sizing: border-box;
}

body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .cde-grid-item-inner::before {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 0;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.6rem;
    padding-top: 2.6rem;
    border-radius: 50%;
    background: var(--am-black-rose);
    color: #fff;
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 6.4rem;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;    
}

body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .item-subtitle {
    order: 3;
    margin: 0;
    background: none;
    color: var(--am-black-rose);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: none;
    flex: 0 0 auto;
}

body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .item-subtitle span {
    color: #000;
    text-transform: uppercase;
    font-size: 1.3rem;
}

body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .item-content {
    order: 1;
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    flex: 0 1 auto;
}

.home-testimonials blockquote,
.home-testimonials blockquote p {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.home-testimonials blockquote p {
    max-width: none;
}

.home-testimonials blockquote::before,
.home-testimonials blockquote::after {
    content: none;
}

body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .item-label {
    order: 2;
    margin: auto 0 0;
    padding: 1rem 0 0;
    color: var(--am-black-rose);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
}

@media (min-width: 761px) {
    body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .item-content blockquote p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 9;
    }
}

.home-testimonials .flickity-button,
.home-testimonials .flickity-page-dots {
    display: none;
}

/* Recruitment steps */

body.canvas #what-to-expect {
    padding-top: clamp(4rem, 5vw, 6rem);
    padding-bottom: clamp(4rem, 5vw, 6rem);
    box-sizing: border-box;
}

body.canvas #what-to-expect > .container > .inner
    > :is(.left-col, .middle-col, .right-col) {
    min-height: 21rem;
    overflow: visible;
    padding: 2.8rem;
    border: 0.2rem solid rgb(107 13 52 / 22%);
    border-top: 0.6rem solid var(--am-buttercup);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.4rem rgb(107 13 52 / 7%);
    box-sizing: border-box;
}

body.canvas #what-to-expect h3 {
    margin: 0 0 1.2rem;
    color: var(--am-black-rose);
    font-family: var(--am-heading-font);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
}

body.canvas #what-to-expect
    :is(.left-col, .middle-col, .right-col) p:last-child {
    margin-bottom: 0;
}

body.page-id-41 #cde-flex-content-2-6 {
    border-bottom: 0.1rem solid var(--am-buttercup);
    box-sizing: border-box;
}

body.canvas #what-we-offer {
    position: relative;
    isolation: isolate;
    background-color: var(--am-pearl-lustre);
    background-image: none;
}

body.canvas #what-we-offer::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--am-black-rose);
    content: "";
    pointer-events: none;
    -webkit-mask-image: url("assets/images/cloud-border.svg");
    -webkit-mask-repeat: repeat;
    -webkit-mask-size: 5.6rem 2.8rem;
    mask-image: url("assets/images/cloud-border.svg");
    mask-repeat: repeat;
    mask-size: 5.6rem 2.8rem;
    opacity: 0.3;
}

body.canvas #what-we-offer > .container {
    position: relative;
    z-index: 1;
}

body.canvas #what-to-expect .after .cde-panel {
    margin-top: 2rem;
}

body.page-id-41 #cde-flex-content-2-4.cde-grid-list .grid-list > li.cde-grid-item
    .item-label {
    font-size: 2.24rem;
}

body.page-id-12 #cde-flex-content-2-4.cde-grid-list .cde-grid-item .item-content {
    padding-top: 1rem;
}

@media (min-width: 721px) and (max-width: 900px) {
    body.page-id-41 #what-we-offer.cde-grid-list .grid-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* About page: keep percentage-based columns and their gaps inside the container. */

body.page-id-12 #cde-flex-content-2-2 > .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (min-width: 600px) {
    body.page-id-12 #cde-flex-content-2-5 > .container > .inner.cde-richtext {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

@media (min-width: 721px) and (max-width: 919px) {
    body.page-id-12 #cde-flex-content-2-4.cde-grid-list .grid-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.canvas #make-an-enquiry .inner > p:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 0.4rem;
        row-gap: 1rem;
    }
}

@media (max-width: 1100px) {
    body.home.canvas #cde-flex-content-2-1.home-hero .img {
        background-size: auto 100%;
    }

    .home-hero::before {
        left: -24rem;
    }

    body.canvas #cde-flex-content-2-1.home-hero.cde-image-header.has-bgimage .inner {
        margin-left: 3rem;
    }

    body.canvas #cde-flex-content-2-2.home-intro {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: calc(100% - 6rem);
        margin-right: 3rem;
        margin-left: 3rem;
        gap: 5rem;
    }

    .home-intro-highlights li + li::before {
        margin-right: 1.5rem;
    }

    body.canvas #cde-flex-content-2-3.home-services .container {
        width: calc(100% - 6rem);
    }

    body.canvas .home-services ul.grid-list.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
    }

    body.canvas .flex-elm.home-support-steps > .container > .inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
        width: 100%;
        gap: 3rem;
    }

    .home-support-steps .middle-col,
    .home-support-steps .right-col {
        transform: none;
    }

    .home-support-steps .left-col::after,
    .home-support-steps .middle-col::after {
        display: none;
    }

    .home-support-steps .support-step {
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: 1.5rem;
    }

    .home-support-steps .support-step__number {
        width: 6.5rem;
        height: 6.5rem;
        font-size: 3.8rem;
    }

    .home-coverage .cde-gallery-fe-text {
        left: 5%;
        width: 33rem;
    }

    .home-coverage li.home-coverage__location {
        width: 19rem;
        height: 14rem;
    }
}

@media (min-width: 1101px) and (max-width: 1200px) {
    body.canvas .flex-elm.home-support-steps > .container > .inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
        width: 100%;
        gap: 3rem;
    }

    .home-support-steps .middle-col,
    .home-support-steps .right-col {
        transform: none;
    }

    .home-support-steps .left-col::after,
    .home-support-steps .middle-col::after {
        display: none;
    }

    .home-support-steps .support-step {
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: 1.5rem;
    }

    .home-support-steps .support-step__number {
        width: 6.5rem;
        height: 6.5rem;
        font-size: 3.8rem;
    }
}

@media (min-width: 761px) {
    body.canvas:not(.home) .home-hero.sun-smaller::before {
        top: 7.5rem;
        left: -8rem;
        width: 56rem;
        height: 56rem;
    }

    body.canvas:not(.home) .home-hero.sun-smaller .inner > :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {
        max-width: 34rem;
    }
}

@media (max-width: 760px) {
    body.canvas #cde-flex-content-2-1.home-hero {
        height: auto;
        min-height: 68rem;
    }

    body.canvas #cde-flex-content-2-1.home-hero .img {
        width: 100%;
        height: 40rem;
        background-position: 62% top;
        background-size: cover;
    }

    .cde-image-header .image-header-caption {
        top: 1.5rem;
        bottom: auto;
        transform: none;
    }

    .home-hero::before {
        top: 24rem;
        left: 50%;
        width: max(64rem, 120vw);
        height: max(64rem, 120vw);
        margin-left: min(-32rem, -60vw);
        border-radius: 50%;
    }

    body.canvas #cde-flex-content-2-1.home-hero.cde-image-header.has-bgimage .inner {
        width: auto;
        margin: 0;
        padding: 31rem 2rem 4rem;
        align-items: center;
        text-align: center;
    }

    .home-hero .home-hero__eyebrow {
        margin-top: 1rem;
        font-size: 1.6rem;
    }

    body.canvas #cde-flex-content-2-1.home-hero h1,
    body.canvas #cde-flex-content-2-1.home-hero .inner > p:not(.home-hero__eyebrow):not(:has(> a.button)) {
        width: auto;
    }

    body.canvas #cde-flex-content-2-1.home-hero h1 {
        font-size: var(--am-h1-font-size, clamp(3.2rem, 8vw, 4rem));
    }

    body.canvas #cde-flex-content-2-2.home-intro {
        display: flex;
        flex-direction: column;
        width: calc(100% - 4rem);
        margin-right: 2rem;
        margin-left: 2rem;
        margin-block: 5rem;
        gap: 3rem;
    }

    body.canvas #cde-flex-content-2-2.home-intro .left {
        padding: 0;
    }

    body.canvas #cde-flex-content-2-2.home-intro .right.img.hide-mobile {
        order: -1;
        min-height: 27rem;
    }

    .home-intro h2,
    .home-intro .cde-richtext > p {
        width: auto;
    }

    body.canvas #cde-flex-content-2-2.home-intro .home-intro-highlights {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.2rem;
    }

    .home-intro-highlights li:not(:last-child) {
        flex: 0 1 auto;
    }

    .home-intro-highlights li:not(:last-child)::after {
        content: none;
    }

    .home-intro-highlights li + li::before {
        width: 1rem;
        height: 1rem;
        margin-right: 1rem;
        border-radius: 50%;
        background: var(--am-buttercup);
        content: "";
        flex-basis: 1rem;
    }

    body.canvas #cde-flex-content-2-3.home-services {
        padding-block: 4.5rem;
    }

    body.canvas #cde-flex-content-2-3.home-services .container {
        width: calc(100% - 4rem);
    }

    body.canvas:not(.home) .home-services {
        padding-block: 4.5rem;
    }

    body.canvas:not(.home) .home-services .container {
        width: calc(100% - 4rem);
        margin-inline: auto;
    }

    body.canvas main :is(.cde-two-cols, .cde-three-cols)
        > .container > .inner
        > :is(.left-col, .middle-col, .right-col).has-bgcolor,
    body.canvas main .cde-grid-list:not(.home-services):not(.home-testimonials)
        .cde-grid-item.has-bgcolor {
        padding: 2.5rem;
        box-sizing: border-box;
    }

    body.canvas #what-to-expect
        :is(.middle-col, .right-col) {
        margin-top: 2rem;
    }

    body.canvas .home-services ul.grid-list.cols-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-services .cde-grid-item {
        width: 100%;
        max-width: none;
        margin-inline: auto;
    }

    body.canvas .flex-elm.home-support-steps {
        padding-block: 4.5rem;
    }

    body.canvas .flex-elm.home-support-steps > .container {
        width: calc(100% - 4rem);
    }

    body.canvas .flex-elm.home-support-steps > .container > .inner {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 3rem;
    }

    .home-support-steps .before {
        margin-bottom: 1rem;
    }

    .home-support-steps .support-step {
        max-width: 36rem;
        margin-inline: auto;
    }

    .home-support-steps .after {
        margin-top: 1rem;
    }

    body.canvas #cde-flex-content-2-5.home-coverage {
        height: auto;
        min-height: 88rem;
        padding: 4.5rem 2rem;
    }

    body.canvas #cde-flex-content-2-5.home-coverage .container,
    body.canvas #cde-flex-content-2-5.home-coverage .image-grid-wrap {
        width: 100%;
    }

    .home-coverage::before {
        top: 20rem;
        left: -25%;
        width: 150%;
        height: 65rem;
        opacity: 0.65;
    }

    .home-coverage .cde-gallery-fe-text {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
    }

    .home-coverage h2 {
        width: auto;
    }

    body.canvas #cde-flex-content-2-5.home-coverage ul {
        display: block;
        margin-top: 0;
    }

    body.canvas #cde-flex-content-2-5.home-coverage li.home-coverage__location {
        position: absolute;
        width: 19rem;
        height: 14rem;
    }

    .home-coverage__location--laurencekirk {
        top: 28rem;
        right: 0;
        left: auto;
    }

    .home-coverage__location--brechin {
        top: 45rem;
        right: auto;
        left: 22.5%;
    }

    .home-coverage__location--montrose {
        top: 62rem;
        right: 0;
        left: auto;
    }

    .home-testimonials {
        height: auto;
        padding: 4.5rem 0;
    }

    .home-testimonials h2 {
        padding-inline: 2rem;
        font-size: 2.8rem;
    }

    body.canvas .home-testimonials ul.grid-list.cols-3 {
        height: auto;
        margin-top: 4rem;
    }

    body.canvas .home-testimonials ul.grid-list.cols-3 .flickity-viewport {
        width: calc(100% - 2rem);
        margin-left: 2rem;
    }

    body.canvas .home-testimonials ul.grid-list.cols-3 .cde-grid-item {
        width: min(82vw, 36rem);
        height: auto;
        min-height: 100%;
        margin-right: 2rem;
    }

    body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .cde-grid-item-inner {
        height: 100%;
        min-height: 100%;
        padding: 3rem;
    }

    body.canvas .home-testimonials.cde-grid-list .grid-list .cde-grid-item.testimonial-card .item-label {
        margin-top: auto;
        padding-top: 2.5rem;
    }

    .home-testimonials .flickity-slider #item-2,
    .home-testimonials .flickity-slider #item-3,
    .home-testimonials .flickity-slider #item-4 {
        transform: none;
    }
}

/* Footer */

.site-footer {
    position: relative;
    min-height: 36.2rem;
    overflow: hidden;
    background: var(--am-black-rose);
    color: #fff;
    font-family: var(--am-ui-font);
}

.site-footer::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 5.6rem;
    background: url("assets/images/cloud-border.svg") 0 0 / 5.6rem 2.8rem repeat;
    content: "";
    pointer-events: none;
}

.site-footer .container {
    width: 100%;
    max-width: none;
    padding-inline: 2.8rem;
    box-sizing: border-box;
}

.site-footer .footer-section {
    position: relative;
    z-index: 1;
    border: 0;
}

.site-footer .footer-section--top {
    min-height: 30.6rem;
    padding-block: 1.9rem 2rem;
    border-top: 0.1rem solid #fff;
    box-sizing: border-box;
}

.site-footer .footer-top {
    display: grid;
    justify-items: center;
}

.site-footer .widget {
    margin: 0;
}

.canvas-footer-menu-layout-horz .site-footer .widget_nav_menu .menu,
.site-footer #menu-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 7.175rem;
    text-align: center;
}

.canvas-footer-menu-layout-horz .site-footer .widget_nav_menu .menu > li:not(:last-child)::after {
    content: none;
}

.site-footer #menu-footer a {
    padding: 1.2rem 0;
    background: transparent;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.57;
}

.site-footer #menu-footer a:hover,
.site-footer #menu-footer a:focus,
.site-footer #menu-footer .current-menu-item > a,
.site-footer #menu-footer .current_page_item > a {
    padding: 1.2rem 0;
    background: transparent;
    color: #fff;
}

.site-footer__actions {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.8rem;
}

.site-footer__action {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5.34rem;
    border-radius: 1.5rem;
    background: var(--am-buttercup);
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.57;
    text-decoration: none;
    text-transform: uppercase;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.site-footer a.site-footer__action {
    color: #000;
}

.site-footer__action--enquire {
    width: 15.9rem;
}

.site-footer__action--phone {
    gap: 0.8rem;
    width: 18.55rem;
    background: var(--am-sage-willow);
    font-size: 1.4rem;
    font-weight: 800;
}

.site-footer__social-marks {
    display: flex;
    justify-content: center;
    gap: 3.8rem;
    margin-top: 3.6rem;
}

.site-footer__social-marks :is(span, a) {
    display: grid;
    width: 3.52rem;
    height: 3.52rem;
    border-radius: 50%;
    background: var(--am-soft-apricot);
    place-items: center;
}

.site-footer__social-marks a {
    color: inherit;
    text-decoration: none;
}

.site-footer__social-marks img {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
}

.site-footer .footer-section--bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding-block: 0;
}

.site-footer .footer-bottom {
    margin: 0;
}

.site-footer .canvas-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.6rem;
    gap: 2rem;
}

.site-footer .small-text {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.25;
}

.site-footer .small-text a {
    color: inherit;
    text-decoration: none;
}

.site-footer .small-text a:hover,
.site-footer .small-text a:focus {
    color: var(--am-buttercup);
}

@media (max-width: 1350px) and (min-width: 1151px) {
    .site-header__layout {
        display: flex;
        justify-content: space-between;
        gap: 0;
    }

    .site-header__widgets,
    .site-header__widgets-content,
    .site-header .header-widget-area {
        display: contents;
    }

    .site-header #nav_menu-2 {
        margin: 0;
    }

    .site-header #menu-top {
        gap: 3rem;
    }

    .site-header #nav_menu-3 {
        margin: 0;
    }

    .site-header #menu-enquire {
        gap: 2.5rem;
    }
}

@media (max-width: 1180px) and (min-width: 1151px) {
    .site-header__main .container {
        padding-inline: 2.4rem;
    }

    .site-header__layout {
        grid-template-columns: 17rem minmax(0, 1fr);
        gap: 2rem;
    }

    .site-header .site-branding,
    .site-header .site-title a {
        width: 17rem;
    }

    .site-header .site-title a {
        height: 6.18rem;
    }

    .site-header #menu-top a,
    .site-header #menu-top a:hover,
    .site-header #menu-top a:focus,
    .site-header #menu-top .current-menu-item > a,
    .site-header #menu-top .current_page_item > a {
        padding-inline: 0;
    }

    .site-header #menu-enquire {
        gap: 1.5rem;
    }

    .site-header #menu-enquire .button-alt > a {
        width: 16.5rem;
    }

    .site-header #menu-enquire .button:not(.button-alt) > a {
        width: 13.5rem;
    }
}

@media (max-width: 1150px) {
    .canvas-header-stack {
        position: relative;
        z-index: 20;
        background: #fff;
        box-shadow: 0 0.4rem 1rem rgb(0 0 0 / 12%);
    }

    .site-header {
        z-index: 1;
        box-shadow: none;
    }

    .site-header__main .container {
        padding-inline: 2rem;
    }

    .site-header__layout,
    .canvas-header-height-medium .site-header__layout,
    .canvas-header-height-tall .site-header__layout {
        justify-items: start;
        min-height: 9rem;
    }

    .site-header .site-branding,
    .site-header .site-title a {
        width: 15.1rem;
    }

    .site-header .site-title a {
        height: 5.48rem;
    }

    .mobile-nav {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 2;
        background: transparent;
        color: var(--am-black-rose);
    }

    .mobile-nav .container {
        width: 100%;
        padding-inline: 2rem;
    }

    .mobile-nav__bar {
        justify-content: flex-end;
        min-height: 9rem;
    }

    body.canvas .mobile-nav button.canvas-mobile-toggle,
    body.canvas .mobile-nav button.canvas-mobile-toggle:hover,
    body.canvas .mobile-nav button.canvas-mobile-toggle:focus-visible {
        --am-button-background: var(--am-sage-willow);
        border: 0;
        background: var(--am-sage-willow);
        color: var(--am-black-rose);
        font-family: var(--am-ui-font);
        font-weight: 800;
        text-transform: uppercase;
    }

    .mobile-nav .canvas-mobile-menu {
        margin-inline: -2rem;
        padding: 1rem 2rem 2rem;
        box-shadow: 0 0.8rem 1rem rgb(0 0 0 / 10%);
    }

    .canvas-mobile-menu .menu > li.button {
        display: block;
        width: 100%;
    }

    .canvas-mobile-menu .menu > li.button > a,
    .canvas-mobile-menu .menu > li.button > a:hover,
    .canvas-mobile-menu .menu > li.button > a:focus-visible {
        width: 100%;
        border-radius: 1.5rem;
        box-sizing: border-box;
    }

    .canvas-mobile-menu .menu a:hover,
    .canvas-mobile-menu .menu a:focus-visible {
        background: var(--am-soft-apricot);
        color: #000;
    }

    .canvas-mobile-menu .menu .current-menu-item > a,
    .canvas-mobile-menu .menu .current_page_item > a {
        background: var(--am-black-rose);
        color: #fff;
    }

    .site-footer {
        min-height: 0;
        padding-bottom: 5.6rem;
    }

    .site-footer .container {
        padding-inline: 2rem;
    }

    .site-footer .footer-section--top {
        min-height: 0;
        padding-block: 2.5rem 4rem;
    }

    .canvas-footer-menu-layout-horz .site-footer .widget_nav_menu .menu,
    .site-footer #menu-footer {
        gap: 0 1rem;
    }

    .site-footer #menu-footer a,
    .site-footer #menu-footer a:hover,
    .site-footer #menu-footer a:focus,
    .site-footer #menu-footer .current-menu-item > a,
    .site-footer #menu-footer .current_page_item > a {
        padding: 0.8rem;
        font-size: 1.5rem;
    }

    .site-footer__actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2.4rem;
    }

    .site-footer__social-marks {
        margin-top: 2.8rem;
    }

    .site-footer .footer-section--bottom {
        position: relative;
    }

    .site-footer .canvas-split {
        flex-direction: column;
        min-height: 0;
        padding-block: 2rem;
        text-align: center;
    }
}

.cde-wide-text.cde-image-header.has-bgimage > .wrapper {
    position: static;
}
