/*
 Theme Name:   AMO
 Description:  Custom theme
 Author:       Carnoustie Creative
 Author URI:   https://www.carnoustiecreative.co.uk
 Template:     canvas
 Version:      1.0.4
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  project-theme
*/

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

.canvas-modal-dialog .flex-elm.last {
    margin-bottom: 0;
}

:root {
    --amo-blue: #0060EC;
    --amo-blue-dark: #0047B0;
    --amo-navy: #000C24;
    --amo-dark: #05090F;
    --amo-white: #FFFFFF;
    --amo-off-white: #F4F5F7;
    --amo-silver: #ECF0F0;
    --amo-slate: #69696A;
    --amo-container: min(94vw, 112rem);
    --amo-section-y: clamp(3.6rem, 5vw, 6rem);

    --canvas-color-body-back: var(--amo-white);
    --canvas-color-body-fore: var(--amo-dark);
    --canvas-color-heading-fore: var(--amo-navy);
    --canvas-color-subhead-fore: var(--amo-navy);
    --canvas-color-link-fore: var(--amo-blue);
    --canvas-color-link-hover: var(--amo-blue-dark);
    --canvas-color-header-back: var(--amo-navy);
    --canvas-color-header-fore: var(--amo-white);
    --canvas-color-site-title: var(--amo-white);
    --canvas-color-menu-back: var(--amo-navy);
    --canvas-color-menu-fore: var(--amo-white);
    --canvas-color-menu-active: var(--amo-blue);
    --canvas-color-menu-active-fore: var(--amo-white);
    --canvas-color-mobile-bar-back: var(--amo-navy);
    --canvas-color-mobile-bar-fore: var(--amo-white);
    --canvas-color-mobile-browser-bar: var(--amo-navy);
    --canvas-color-mobile-menu-back: var(--amo-navy);
    --canvas-color-mobile-menu-fore: var(--amo-white);
    --canvas-color-footer-back: var(--amo-navy);
    --canvas-color-footer-fore: var(--amo-white);
    --canvas-color-button-back: var(--amo-blue);
    --canvas-color-button-fore: var(--amo-white);
    --canvas-color-button-hover: var(--amo-blue-dark);
    --canvas-color-button-hover-fore: var(--amo-white);
    --canvas-color-sidebar-back: var(--amo-off-white);
    --canvas-color-sidebar-widget: var(--amo-white);
}

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

.canvas .canvas-header-stack .mobile-nav {
    display: none;
}

body.canvas {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1.6;
}

body.canvas h1,
body.canvas h2,
body.canvas h3 {
    font-weight: 800;
}

body.canvas h4,
body.canvas h5,
body.canvas h6,
body.canvas strong,
body.canvas b {
    font-weight: 700;
}

body.canvas button,
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"] {
    font-weight: 800;
}

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"] {
    align-items: center;
    border-radius: 0.2rem;
    box-shadow: none;
    display: inline-flex;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.15;
    min-height: 5.2rem;
    text-transform: uppercase;
}

.amo-text-blue {
    color: var(--amo-blue);
    text-transform: uppercase;
}

p .amo-text-blue {
    font-weight: bold;
}

.cde-grid-list.amo-modern.has-bgimage {
    background-repeat: no-repeat;
    background-size: 0 0;
}

.cde-grid-list.amo-modern .grid-list {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.8rem;
}

.canvas h1,
.canvas h2,
.canvas h3,
.canvas h4,
.canvas h5 {
    text-transform: uppercase;
}

.canvas .cde-richtext > :first-child,
.canvas .inner > :first-child {
    margin-top: 0;
}

.canvas .cde-richtext > :last-child,
.canvas .inner > :last-child {
    margin-bottom: 0;
}

.canvas .site-header__main .container,
.canvas .site-footer .container,
.canvas .amo-modern .container,
.canvas .flex-elm > .container,
.canvas .flex-elm > .inner,
.canvas .flex-elm .wrapper > .container {
    width: var(--amo-container);
}

.canvas.header-overlay .site-header {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    z-index: 3;
}

.canvas.header-overlay .site-header,
.canvas.header-overlay .site-header__main {
    background: transparent;
}

.canvas.header-overlay .site-header__main .container {
    padding-top: 2rem;
}

.canvas .site-logo img,
.canvas .custom-logo {
    display: block;
    height: auto;
    max-height: none;
    width: clamp(9.6rem, 12vw, 15rem);
}

.canvas .site-header a {
    color: var(--amo-white);
}

.amo-hero {
    background-position: center right;
    background-size: cover;
    isolation: isolate;
    position: relative;
}

.canvas #hero.amo-hero {
    padding-top: 0;
    padding-bottom: 0;
}

.amo-hero .wrapper::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0) 70%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.canvas #hero.amo-hero.cde-wide-text.has-bgimage .wrapper::before {
    z-index: 0;
}

.amo-hero .wrapper {
    align-items: flex-start;
    display: flex;
    isolation: isolate;
    min-height: clamp(60rem, 78vh, 72rem);
    overflow: hidden;
    padding: clamp(16rem, 18vh, 19rem) 0 clamp(5rem, 8vh, 8rem);
    position: relative;
    z-index: 1;
}

.canvas #hero.amo-hero.cde-wide-text .wrapper {
    padding-top: clamp(22rem, 23vh, 27rem);
    padding-bottom: clamp(5rem, 8vh, 8rem);
}

.amo-hero .container {
    display: block;
    position: relative;
    z-index: 1;
}

.amo-hero .inner {
    max-width: 58rem;
    padding-top: 0;
}

.amo-hero h1 {
    color: var(--amo-white);
    font-size: clamp(3.4rem, 4vw, 4.8rem);
    line-height: 1.05;
    margin: 0 0 1.6rem;
}

.amo-hero h2 {
    color: var(--amo-blue);
    font-size: clamp(2.2rem, 2.6vw, 3rem);
    line-height: 1.08;
    margin: 0 0 2rem;
    max-width: 58rem;
}

.amo-hero p {
    color: var(--amo-white);
    font-size: clamp(1.5rem, 1.45vw, 1.75rem);
    line-height: 1.45;
    margin-bottom: 1.4rem;
    max-width: 56rem;
}

.amo-hero .inner > p:has(a[href^="tel:"]) {
    margin-top: 2.4rem;
    margin-bottom: 1.4rem;
}

.amo-hero .amo-inline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-width: 70rem;
}

.amo-hero .button {
    padding: 1.4rem 2.4rem;
}

.amo-hero .amo-inline .button {
    font-size: 1.3rem;
    padding: 1.35rem 1.6rem;
}

.amo-hero a.button[href^="tel:"] {
    background: transparent;
    border-color: transparent;
    font-size: 2.4rem;
    justify-content: flex-start;
    min-height: 0;
    padding: 0 0.4rem 0 0;
    position: relative;
}

.amo-hero a.button[href^="tel:"]::before {
    align-items: center;
    background: var(--amo-blue);
    border-radius: 999rem;
    color: var(--amo-white);
    content: "\f095";
    display: inline-flex;
    font-family: "Font Awesome 7 Pro";
    font-size: 1.55rem;
    font-weight: 600;
    height: 3.6rem;
    justify-content: center;
    margin-right: 1rem;
    width: 3.6rem;
}

.amo-hero a.button[href^="tel:"]::after {
    display: none;
}

.canvas .amo-hero .amo-inline a.button[href*="urban-energy"] {
    background: transparent;
    border: 0.1rem solid rgba(255, 255, 255, 0.86);
}

.canvas .amo-hero .amo-inline a.button[href*="urban-energy"]:hover,
.canvas .amo-hero .amo-inline a.button[href*="urban-energy"]:focus-visible {
    border-color: var(--amo-blue);
}

.amo-hero .amo-inline .button::after,
.amo-urban-energy .button::after {
    border-bottom: 0.18rem solid currentColor;
    border-right: 0.18rem solid currentColor;
    content: "";
    height: 0.85rem;
    margin-left: 1.5rem;
    transform: rotate(-45deg);
    width: 0.85rem;
}

.amo-modern {
    background: var(--amo-white);
    box-sizing: border-box;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.amo-modern > .inner {
    align-items: stretch;
    display: grid;
    gap: clamp(3rem, 4.4vw, 5.6rem);
    grid-template-columns: minmax(26rem, 0.82fr) minmax(0, 1.58fr);
    margin-left: auto;
    margin-right: auto;
}

.amo-modern .before {
    align-self: center;
    padding: 1rem 0;
}

.amo-modern .before .amo-text-blue {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.amo-modern h2 {
    font-size: clamp(2.8rem, 3.1vw, 4rem);
    line-height: 1.05;
    margin: 0 0 2rem;
}

.amo-modern .before p {
    font-size: 1.6rem;
    line-height: 1.55;
}

.amo-modern .grid-list {
    align-content: end;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    min-height: clamp(27rem, 34vw, 38rem);
    overflow: hidden;
    padding: 0;
}

.amo-modern .grid-list.cols-1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amo-modern .cde-grid-item {
    align-self: end;
    background: rgba(0, 12, 36, 0.96);
    color: var(--amo-white);
    grid-column: auto / span 1;
    margin: 0;
    min-width: 0;
    width: auto;
}

.amo-modern .cde-grid-item + .cde-grid-item {
    border-left: 0.1rem solid rgba(255, 255, 255, 0.42);
}

.amo-modern .cde-grid-item-inner {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr;
    min-height: 7.2rem;
    padding: 1.5rem 1.8rem;
}

.amo-modern .item-icon {
    color: var(--amo-blue);
    font-size: 3.6rem;
    grid-column: 1;
    grid-row: 1;
    line-height: 1;
}

.amo-modern .item-label {
    color: var(--amo-white);
    font-size: 1.3rem;
    font-weight: 800;
    grid-column: 2;
    grid-row: 1;
    line-height: 1.15;
    text-transform: uppercase;
}

.amo-modern .item-label span {
    display: block;
}

.amo-services {
    padding: var(--amo-section-y) 0;
}

.amo-services .before {
    margin-bottom: clamp(4rem, 4.5vw, 5.5rem);
}

.amo-services .before h2 {
    font-size: clamp(2.4rem, 3vw, 3.4rem);
    line-height: 1.1;
    margin: 0;
}

.amo-services .grid-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.amo-services .cde-grid-item {
    margin: 0;
    min-width: 0;
    position: relative;
}

.amo-services .cde-grid-item-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.amo-services .item-image {
    aspect-ratio: 2.45 / 1.3;
    border-radius: 0.8rem;    
    order: 1;
    overflow: hidden;
    width: 100%;
}

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

.amo-services .item-label {
    color: var(--amo-navy);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 1.6rem;
    order: 2;
    text-transform: uppercase;
}

.amo-services .item-content {
    color: var(--amo-dark);
    font-size: 1.4rem;
    line-height: 1.45;
    margin-top: 0.6rem;
    max-width: 32rem;
    order: 3;
}

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

.amo-services .cde-grid-item::before {
    align-items: center;
    background: var(--amo-blue);
    border-radius: 999rem;
    box-shadow: 0 0.8rem 2rem rgba(0, 96, 236, 0.22);
    color: var(--amo-white);
    display: inline-flex;
    height: 6.4rem;
    justify-content: center;
    left: 1.4rem;
    position: absolute;
    top: -3.2rem;
    width: 6.4rem;
    z-index: 2;
}

.amo-services .cde-grid-item::before,
.amo-services .cde-grid-item::after {
    content: "";
}

.amo-services .cde-grid-item::after {
    border: 0.2rem solid var(--amo-white);
    border-radius: 0.2rem;
    height: 2.5rem;
    left: 3.35rem;
    position: absolute;
    top: -1.25rem;
    width: 2.5rem;
    z-index: 3;
}

.amo-services .cde-grid-item:nth-child(1)::after {
    background: repeating-linear-gradient(90deg, transparent 0 0.45rem, rgba(255, 255, 255, 0.95) 0.45rem 0.65rem);
    border-bottom: 0.25rem solid var(--amo-white);
    height: 2.1rem;
    left: 2.95rem;
    top: -1.05rem;
    width: 3.4rem;
}

.amo-services .cde-grid-item:nth-child(2)::after,
.amo-services .cde-grid-item:nth-child(3)::after {
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--amo-white);
    font-family: "Font Awesome 7 Pro";
    font-size: 2.6rem;
    font-weight: 600;
    height: auto;
    left: 3.25rem;
    line-height: 1;
    top: -1.3rem;
    transform: none;
    width: auto;
}

.amo-services .cde-grid-item:nth-child(2)::after {
    content: "\e562"; /* replace with chosen FontAwesome unicode */
    left: 3rem;
}

.amo-services .cde-grid-item:nth-child(3)::after {
    content: "\e7cc"; /* replace with chosen FontAwesome unicode */
    left: 3.5rem;
}

.amo-urban-energy {
    background: var(--amo-navy);
    overflow: hidden;
    padding: clamp(4.2rem, 6vw, 6.8rem) 0;
    position: relative;
}

.amo-urban-energy::before {
    background: linear-gradient(105deg, rgba(0, 96, 236, 0.22), rgba(0, 96, 236, 0) 48%);
    content: "";
    inset: 0;
    position: absolute;
}

.amo-urban-energy .wrapper,
.amo-urban-energy .container,
.amo-urban-energy .inner {
    position: relative;
    z-index: 1;
}

.amo-urban-energy .wrapper {
    padding: 0;
}

.amo-urban-energy .container {
    display: block;
}

.amo-urban-energy p,
.amo-urban-energy h2,
.amo-urban-energy h3,
.amo-urban-energy strong {
    color: var(--amo-white);
}

.amo-urban-energy p {
    font-size: 1.55rem;
    line-height: 1.45;
}

.amo-urban-energy p:first-child {
    color: var(--amo-blue);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.amo-urban-energy h2 {
    font-size: clamp(3.2rem, 4.8vw, 5.4rem);
    line-height: 1;
    margin: 0 0 0.6rem;
}

.amo-urban-energy h3 {
    color: var(--amo-blue);
    font-size: clamp(1.9rem, 2.3vw, 2.7rem);
    line-height: 1.1;
    margin: 0 0 2rem;
}

.amo-urban-energy p:last-child {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.4rem;
    margin-top: 2.2rem;
}

.amo-urban-energy .button {
    padding: 1.3rem 2.2rem;
}

.amo-why-choose .before {
    margin-bottom: 2.6rem;
}

.amo-why-choose h2 {
    font-size: clamp(2.2rem, 2.6vw, 3.1rem);
    line-height: 1.1;
    margin: 0;
}

.amo-why-choose .icons {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.amo-why-choose .cde-icon {
    align-items: center;
    display: grid;
    gap: 1.3rem;
    grid-template-columns: auto 1fr;
    min-width: 0;
    padding: 0 1.8rem;
}

.amo-why-choose .cde-icon + .cde-icon {
    border-left: 0.1rem solid rgba(0, 12, 36, 0.16);
}

.amo-why-choose .icon-img {
    color: var(--amo-blue);
    font-size: 4.2rem;
    line-height: 1;
}

.amo-why-choose .icon-text {
    color: var(--amo-dark);
    font-size: 1.25rem;
    line-height: 1.3;
}

.amo-why-choose .icon-text strong {
    color: var(--amo-navy);
    font-weight: 800;
}

.home .cde-three-cols.last.col-navy {
    background: var(--amo-navy);
    color: var(--amo-white);
    padding: clamp(3.2rem, 4.5vw, 5rem) 0;
}

.home .cde-three-cols.last.col-navy .inner {
    display: grid;
    gap: clamp(3rem, 5vw, 6rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.72fr) minmax(0, 1.18fr);
}

.home .cde-three-cols.last.col-navy .middle-col,
.home .cde-three-cols.last.col-navy .right-col {
    border-left: 0.1rem solid rgba(255, 255, 255, 0.52);
    padding-left: clamp(2rem, 3.8vw, 4.4rem);
}

.home .cde-three-cols.last.col-navy h2 {
    color: var(--amo-white);
    font-size: clamp(3.6rem, 5vw, 5.6rem);
    line-height: 0.9;
    margin: 0 0 1rem;
}

.home .cde-three-cols.last.col-navy h3,
.home .cde-three-cols.last.col-navy p {
    margin-top: 0;
}

.home .cde-three-cols.last.col-navy p {
    color: var(--amo-white);
    font-size: 1.45rem;
    line-height: 1.35;
}

.amo-foot .middle-col ul,
.home .cde-three-cols.last.col-navy .middle-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.amo-foot .middle-col li,
.home .cde-three-cols.last.col-navy .middle-col li {
    color: var(--amo-white);
    font-size: 1.45rem;
    line-height: 1.35;
    margin: 0.35rem 0;
    padding-left: 2.2rem;
    position: relative;
}

.amo-foot .middle-col li::before,
.home .cde-three-cols.last.col-navy .middle-col li::before {
    color: var(--amo-blue);
    content: "\f3c5";
    font-family: "Font Awesome 7 Pro";
    font-size: 1.35rem;
    font-weight: 600;
    left: 0;
    line-height: 1;
    position: absolute;
    top: 0.18em;
}

.home .cde-three-cols.last.col-navy a,
.home .cde-three-cols.last.col-navy strong {
    color: var(--amo-white);
}

.home .cde-three-cols.last.col-navy .right-col p:last-child {
    font-size: 1.9rem;
    font-weight: 800;
}

@media (max-width: 980px) {
    :root {
        --amo-container: min(90vw, 72rem);
    }

    .amo-modern > .inner,
    .home .cde-three-cols.last.col-navy .inner {
        grid-template-columns: 1fr;
    }

    .amo-services .grid-list {
        grid-template-columns: 1fr;
        row-gap: 5.2rem;
    }

    .amo-why-choose .icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.4rem 0;
    }

    .amo-why-choose .cde-icon:nth-child(odd) {
        border-left: 0;
    }

    .home .cde-three-cols.last.col-navy .middle-col,
    .home .cde-three-cols.last.col-navy .right-col {
        border-left: 0;
        border-top: 0.1rem solid rgba(255, 255, 255, 0.42);
        padding-left: 0;
        padding-top: 2.6rem;
    }
}

@media (max-width: 640px) {
    :root {
        --amo-container: min(90vw, 48rem);
    }

    .canvas.header-overlay .site-header__main .container {
        padding-top: 1.8rem;
    }

    .canvas .site-logo img,
    .canvas .custom-logo {
        width: 11.5rem;
    }

    .amo-hero {
        background-position: 62% center;
    }

    .amo-hero .wrapper::before {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 55%, rgba(0, 0, 0, 0.24) 100%);
    }

    .amo-hero .wrapper {
        min-height: auto;
        padding: 11rem 0 4.6rem;
    }

    .amo-hero .amo-inline {
        align-items: center;
    }

    .amo-urban-energy p:last-child {
        align-items: stretch;
    }

    .amo-urban-energy .button {
        width: 100%;
    }

    .amo-hero a.button[href^="tel:"],
    .amo-hero .amo-inline .button {
        justify-content: flex-start;
        width: auto;
    }

    .amo-modern .grid-list,
    .amo-modern .grid-list.cols-1 {
        grid-template-columns: 1fr;
        min-height: 46rem;
    }

    .amo-modern .cde-grid-item + .cde-grid-item {
        border-left: 0;
        border-top: 0.1rem solid rgba(255, 255, 255, 0.42);
    }

    .amo-why-choose .icons {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .amo-why-choose .cde-icon,
    .amo-why-choose .cde-icon + .cde-icon {
        border-left: 0;
        padding: 0;
    }

    .amo-urban-energy::after {
        display: none;
    }
}

.amo-foot .left-col img {
    width: 12rem;
    height: auto;
}
