/* =========================================================
   UBUNTU LTD — SINGLE SERVICE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.u-single-service {
    background: #ffffff;
    color: var(--ink);
}

.u-single-service *,
.u-single-service *::before,
.u-single-service *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.u-single-service-hero {
    position: relative;
    padding:
        clamp(125px, 14vw, 185px)
        0
        clamp(58px, 8vw, 90px);

    background: var(--bark);
    color: var(--husk);
    overflow: hidden;
}

.u-single-service-hero::before {
    content: "";
    position: absolute;
    top: -190px;
    right: -170px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(235, 237, 228, .10);
    border-radius: 50%;

    pointer-events: none;
}

.u-single-service-hero::after {
    content: "";
    position: absolute;
    right: 110px;
    bottom: -240px;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(227, 166, 44, .14);
    border-radius: 50%;

    pointer-events: none;
}

.u-single-service-hero .wrap {
    position: relative;
    z-index: 2;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.u-service-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;

    margin-bottom: clamp(32px, 5vw, 56px);

    color: rgba(235, 237, 228, .55);

    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.u-service-breadcrumb a {
    color: rgba(235, 237, 228, .72);
    text-decoration: none;
    transition: color .2s ease;
}

.u-service-breadcrumb a:hover {
    color: var(--amber-soft);
}

.u-service-breadcrumb span[aria-hidden="true"] {
    color: rgba(235, 237, 228, .25);
}


/* =========================================================
   HERO GRID
========================================================= */

.u-single-service-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(340px, .95fr);

    gap: clamp(42px, 7vw, 96px);
    align-items: center;
}


/* =========================================================
   HERO COPY
========================================================= */

.u-single-service-hero-copy .kicker {
    margin-bottom: 18px;
    color: var(--amber-soft);
}

.u-single-service-hero-copy h1 {
    max-width: 11ch;
    margin: 0;

    color: var(--husk);

    font-family: "Fraunces", serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.035em;
}

.u-single-service-lead {
    max-width: 620px;
    margin: 26px 0 0;

    color: rgba(235, 237, 228, .73);

    font-size: clamp(.98rem, 1.2vw, 1.08rem);
    line-height: 1.75;
}

.u-single-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 32px;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.u-single-service-hero-art {
    position: relative;

    min-height: 520px;
    overflow: hidden;

    background: var(--bark-2);
}

.u-single-service-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(19, 35, 26, .02),
            rgba(19, 35, 26, .20)
        );

    pointer-events: none;
}

.u-single-service-hero-art img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 520px;

    object-fit: cover;
    object-position: center;
}

.u-single-service-hero-art-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(235, 237, 228, .12);
}

.u-single-service-hero-art-empty span {
    color: var(--amber);

    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 4rem);
}


/* =========================================================
   SERVICE INFO STRIP
========================================================= */

.u-single-service-strip {
    background: var(--amber);
    color: var(--bark);
}

.u-single-service-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.u-single-service-strip-inner > div {
    min-width: 0;
    padding: 24px 26px;

    border-right: 1px solid rgba(19, 35, 26, .18);
}

.u-single-service-strip-inner > div:first-child {
    padding-left: 0;
}

.u-single-service-strip-inner > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.u-single-service-strip span {
    display: block;

    margin-bottom: 5px;

    color: rgba(19, 35, 26, .58);

    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.u-single-service-strip strong,
.u-single-service-strip a {
    color: var(--bark);

    font-size: .87rem;
    font-weight: 700;
    line-height: 1.35;
}

.u-single-service-strip a {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.u-single-service-content {
    scroll-margin-top: 100px;

    padding:
        clamp(75px, 9vw, 130px)
        0;

    background: #ffffff;
}

.u-single-service-content-grid {
    display: grid;
    grid-template-columns:
        minmax(170px, .42fr)
        minmax(0, 1.58fr);

    gap: clamp(45px, 8vw, 120px);
    align-items: start;
}


/* =========================================================
   CONTENT SIDEBAR
========================================================= */

.u-single-service-side {
    position: sticky;
    top: 120px;
}

.u-single-service-side .kicker {
    margin: 0;
    color: var(--leaf);
}

.u-single-service-side-line {
    width: 100%;
    height: 1px;

    margin: 20px 0;

    background: var(--line);
}

.u-single-service-side-category {
    margin: 0;

    color: var(--ink-60);

    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .075em;
    line-height: 1.5;
    text-transform: uppercase;
}


/* =========================================================
   WORDPRESS CONTENT
========================================================= */

.u-single-service-entry {
    width: 100%;
    max-width: 820px;
}

.u-single-service-entry > *:first-child {
    margin-top: 0;
}

.u-single-service-entry > *:last-child {
    margin-bottom: 0;
}

.u-single-service-entry h2 {
    max-width: 20ch;
    margin:
        clamp(52px, 6vw, 78px)
        0
        22px;

    color: var(--bark);

    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.025em;
}

.u-single-service-entry h2:first-child {
    margin-top: 0;
}

.u-single-service-entry h3 {
    margin:
        clamp(36px, 5vw, 55px)
        0
        15px;

    color: var(--bark);

    font-family: "Fraunces", serif;
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    font-weight: 500;
    line-height: 1.15;
}

.u-single-service-entry h4 {
    margin: 30px 0 12px;

    color: var(--bark);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.u-single-service-entry p {
    max-width: 760px;
    margin: 0 0 22px;

    color: var(--ink-60);

    font-size: clamp(.98rem, 1.1vw, 1.06rem);
    line-height: 1.82;
}

.u-single-service-entry strong {
    color: var(--bark);
    font-weight: 700;
}

.u-single-service-entry a {
    color: var(--clay);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.u-single-service-entry ul,
.u-single-service-entry ol {
    display: grid;
    gap: 10px;

    max-width: 700px;
    margin: 24px 0 32px;
    padding: 0;

    list-style: none;
}

.u-single-service-entry li {
    position: relative;

    padding: 14px 16px 14px 43px;

    border-top: 1px solid var(--line);

    color: var(--ink);

    font-size: .94rem;
    line-height: 1.55;
}

.u-single-service-entry li:last-child {
    border-bottom: 1px solid var(--line);
}

.u-single-service-entry ul li::before {
    content: "→";

    position: absolute;
    left: 8px;
    top: 14px;

    color: var(--amber);

    font-weight: 800;
}

.u-single-service-entry ol {
    counter-reset: service-list;
}

.u-single-service-entry ol li {
    counter-increment: service-list;
}

.u-single-service-entry ol li::before {
    content: counter(service-list, decimal-leading-zero);

    position: absolute;
    left: 8px;
    top: 14px;

    color: var(--amber);

    font-family: monospace;
    font-size: .72rem;
    font-weight: 700;
}

.u-single-service-entry blockquote {
    position: relative;

    margin:
        clamp(42px, 6vw, 70px)
        0;

    padding:
        clamp(28px, 4vw, 44px);

    border: 0;
    border-left: 4px solid var(--amber);

    background: var(--husk);
}

.u-single-service-entry blockquote p {
    max-width: 680px;
    margin: 0;

    color: var(--bark);

    font-family: "Fraunces", serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-style: italic;
    line-height: 1.35;
}

.u-single-service-entry img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 36px 0;
}

.u-single-service-entry figure {
    margin: 40px 0;
}

.u-single-service-entry figcaption {
    margin-top: 9px;

    color: var(--ink-60);

    font-size: .75rem;
    line-height: 1.5;
}


/* =========================================================
   SERVICE ENQUIRY
========================================================= */

.u-single-service-enquiry {
    padding:
        clamp(65px, 8vw, 105px)
        0;

    background: #DDE1D4;
}

.u-single-service-enquiry-inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(280px, .75fr);

    gap: clamp(40px, 8vw, 110px);
    align-items: end;
}

.u-single-service-enquiry .kicker {
    color: var(--leaf);
}

.u-single-service-enquiry h2 {
    max-width: 17ch;
    margin: 0;

    color: var(--bark);

    font-family: "Fraunces", serif;
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.025em;
}

.u-single-service-enquiry-copy {
    max-width: 500px;

    padding-left: clamp(0px, 3vw, 38px);

    border-left: 1px solid rgba(19, 35, 26, .16);
}

.u-single-service-enquiry-copy p {
    margin: 0 0 27px;

    color: var(--ink-60);

    line-height: 1.75;
}


/* =========================================================
   RELATED SERVICES
========================================================= */

.u-related-services {
    padding:
        clamp(75px, 9vw, 125px)
        0;

    background: #ffffff;
}

.u-related-services-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: clamp(38px, 6vw, 62px);
}

.u-related-services-head .kicker {
    margin-bottom: 12px;
    color: var(--leaf);
}

.u-related-services-head h2 {
    margin: 0;

    color: var(--bark);

    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 4vw, 3.65rem);
    font-weight: 400;
    line-height: 1;
}

.u-related-services-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding-bottom: 5px;

    border-bottom: 1px solid var(--bark);

    color: var(--bark);

    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
}

.u-related-services-all span {
    transition: transform .25s ease;
}

.u-related-services-all:hover span {
    transform: translateX(4px);
}


/* =========================================================
   RELATED GRID
========================================================= */

.u-related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 30px);
}


/* =========================================================
   RELATED SERVICE CARD
========================================================= */

.u-related-service-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    border: 1px solid var(--line);

    background: #ffffff;

    overflow: hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.u-related-service-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 24px 50px
        rgba(19, 35, 26, .08);
}


/* =========================================================
   RELATED IMAGE
========================================================= */

.u-related-service-art {
    position: relative;

    display: block;

    aspect-ratio: 4 / 3;

    background: var(--husk);

    overflow: hidden;
}

.u-related-service-art img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform .6s
        cubic-bezier(.2, .8, .3, 1);
}

.u-related-service-card:hover
.u-related-service-art img {
    transform: scale(1.045);
}

.u-related-service-art-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--bark);
}

.u-related-service-art-empty span {
    color: var(--amber);

    font-family: "Fraunces", serif;
    font-size: 1.5rem;
}


/* =========================================================
   RELATED BODY
========================================================= */

.u-related-service-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: clamp(22px, 3vw, 30px);
}

.u-related-service-category {
    margin: 0 0 10px !important;

    color: var(--leaf) !important;

    font-size: .64rem !important;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.u-related-service-body h3 {
    margin: 0;

    font-family: "Fraunces", serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 500;
    line-height: 1.1;
}

.u-related-service-body h3 a {
    color: var(--bark);
    text-decoration: none;
}

.u-related-service-body > p {
    margin: 14px 0 24px;

    color: var(--ink-60);

    font-size: .85rem;
    line-height: 1.65;
}

.u-related-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-top: auto;
    padding-top: 16px;

    border-top: 1px solid var(--line);

    color: var(--bark);

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
}

.u-related-service-link span:last-child {
    transition: transform .25s ease;
}

.u-related-service-link:hover span:last-child {
    transform: translateX(5px);
}


/* =========================================================
   PREVIOUS / NEXT
========================================================= */

.u-service-navigation {
    padding: 0;
    background: #ffffff;
}

.u-service-navigation-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid var(--line);
}

.u-service-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 150px;

    padding:
        clamp(25px, 4vw, 46px)
        0;

    color: var(--bark);
    text-decoration: none;
}

.u-service-nav-prev {
    padding-right: clamp(20px, 5vw, 70px);
    border-right: 1px solid var(--line);
}

.u-service-nav-next {
    align-items: flex-end;

    padding-left: clamp(20px, 5vw, 70px);

    text-align: right;
}

.u-service-nav-label {
    margin-bottom: 10px;

    color: var(--ink-60);

    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.u-service-nav-item strong {
    max-width: 18ch;

    font-family: "Fraunces", serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 500;
    line-height: 1.15;

    transition: color .2s ease;
}

.u-service-nav-item:hover strong {
    color: var(--clay);
}


/* =========================================================
   FINAL CTA
========================================================= */

.u-single-service-cta {
    padding:
        clamp(70px, 9vw, 120px)
        0;

    background: var(--bark);
    color: var(--husk);
}

.u-single-service-cta-inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(280px, .7fr);

    gap: clamp(45px, 8vw, 115px);
    align-items: end;
}

.u-single-service-cta .kicker {
    margin-bottom: 14px;
    color: var(--amber-soft);
}

.u-single-service-cta h2 {
    max-width: 16ch;
    margin: 0;

    color: var(--husk);

    font-family: "Fraunces", serif;
    font-size: clamp(2.35rem, 4.7vw, 4.25rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.025em;
}

.u-single-service-cta-copy p {
    margin: 0 0 28px;

    color: rgba(235, 237, 228, .68);

    line-height: 1.75;
}

.u-single-service-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .u-single-service-hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, .85fr);

        gap: 40px;
    }

    .u-single-service-hero-art,
    .u-single-service-hero-art img {
        min-height: 420px;
    }

    .u-single-service-strip-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .u-single-service-strip-inner > div {
        border-bottom: 1px solid rgba(19, 35, 26, .18);
    }

    .u-single-service-strip-inner > div:nth-child(2) {
        border-right: 0;
    }

    .u-single-service-strip-inner > div:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .u-related-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .u-single-service-hero {
        padding:
            115px
            0
            55px;
    }

    .u-single-service-hero-grid,
    .u-single-service-content-grid,
    .u-single-service-enquiry-inner,
    .u-single-service-cta-inner {
        grid-template-columns: 1fr;
    }

    .u-single-service-hero-copy h1 {
        max-width: 14ch;
    }

    .u-single-service-hero-art {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .u-single-service-hero-art img {
        min-height: 0;
        height: 100%;
    }

    .u-single-service-strip-inner {
        grid-template-columns: 1fr;
    }

    .u-single-service-strip-inner > div,
    .u-single-service-strip-inner > div:first-child,
    .u-single-service-strip-inner > div:last-child {
        padding: 17px 0;

        border-right: 0;
        border-bottom: 1px solid rgba(19, 35, 26, .18);
    }

    .u-single-service-strip-inner > div:last-child {
        border-bottom: 0;
    }

    .u-single-service-side {
        position: static;

        display: grid;
        grid-template-columns: auto 1fr;
        gap: 15px;
        align-items: center;
    }

    .u-single-service-side-line {
        width: 100%;
        margin: 0;
    }

    .u-single-service-side-category {
        grid-column: 1 / -1;
    }

    .u-single-service-entry h2 {
        max-width: none;
    }

    .u-single-service-enquiry-copy {
        max-width: none;

        padding:
            25px
            0
            0;

        border-left: 0;
        border-top: 1px solid rgba(19, 35, 26, .16);
    }

    .u-related-services-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .u-related-services-grid {
        grid-template-columns: 1fr;
    }

    .u-service-navigation-inner {
        grid-template-columns: 1fr;
    }

    .u-service-nav-item {
        min-height: 120px;
    }

    .u-service-nav-prev {
        padding-right: 0;

        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .u-service-nav-next {
        align-items: flex-start;

        padding-left: 0;

        text-align: left;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .u-service-breadcrumb {
        font-size: .6rem;
    }

    .u-single-service-hero-copy h1 {
        font-size: clamp(2.7rem, 13vw, 3.7rem);
    }

    .u-single-service-actions,
    .u-single-service-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .u-single-service-actions .btn,
    .u-single-service-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .u-single-service-entry blockquote {
        padding: 25px 22px;
    }

}