/* =========================================================
   AJASCO GROUP
   SERVICES PAGE
========================================================= */

:root {
    --services-dark: #171717;
    --services-black: #101010;
    --services-light: #f3f1ed;
    --services-white: #ffffff;
    --services-gold: #c57642;
    --services-gold-dark: #a96339;
    --services-text: #303030;
    --services-muted: #706c66;
    --services-border: rgba(0, 0, 0, 0.12);
    --services-light-border: rgba(255, 255, 255, 0.15);
}


/* =========================================================
   GLOBAL
========================================================= */

.services-hero,
.services-intro,
.engineering-section,
.trading-section,
.realestate-section,
.capability-section,
.services-cta {
    font-family: Arial, Helvetica, sans-serif;
}

.services-hero *,
.services-intro *,
.engineering-section *,
.trading-section *,
.realestate-section *,
.capability-section *,
.services-cta * {
    box-sizing: border-box;
}

.services-hero img,
.services-intro img,
.engineering-section img,
.trading-section img,
.realestate-section img,
.capability-section img,
.services-cta img {
    display: block;
    max-width: 100%;
}

.services-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.services-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.services-eyebrow::before {
    content: "";

    width: 24px;
    height: 1px;

    background-color: currentColor;

    opacity: 0.7;
}

.services-eyebrow--gold {
    color: var(--services-gold);
}

.services-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    min-height: 46px;

    padding: 13px 20px;

    border: 1px solid transparent;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.3px;
    text-transform: uppercase;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.services-btn span {
    font-size: 16px;
    line-height: 1;
}

.services-btn:hover {
    transform: translateY(-2px);
}

.services-btn--gold {
    background-color: var(--services-gold);
    color: #ffffff;
}

.services-btn--gold:hover {
    background-color: var(--services-gold-dark);
    color: #ffffff;
}

.services-btn--outline {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    color: #ffffff;
}

.services-btn--outline:hover {
    border-color: #ffffff;
    background-color: #ffffff;
    color: var(--services-dark);
}

.services-btn--dark {
    background-color: var(--services-dark);
    color: #ffffff;
}

.services-btn--dark:hover {
    background-color: var(--services-gold);
    color: #ffffff;
}

.services-btn--light {
    background-color: #ffffff;
    color: var(--services-dark);
}

.services-btn--light:hover {
    background-color: var(--services-gold);
    color: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.services-hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 760px;
    height: 90vh;

    overflow: hidden;

    background-color: var(--services-black);
    color: #ffffff;
}

.services-hero-bg {
    position: absolute;
    inset: 0;
}

.services-hero-bg img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 7, 0.96) 0%,
            rgba(7, 7, 7, 0.87) 32%,
            rgba(7, 7, 7, 0.55) 58%,
            rgba(7, 7, 7, 0.24) 100%
        );
}

.services-hero-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding-bottom: 80px;
}

.services-hero-content .services-eyebrow {
    margin-bottom: 22px;
}

.services-hero h1 {
    margin: 0;

    color: #ffffff;

    font-family: "Bebas Neue", Impact, sans-serif;

    font-size: clamp(75px, 8vw, 128px);
    font-weight: 400;

    line-height: 0.84;

    letter-spacing: 1px;
}

.services-hero-content p {
    max-width: 630px;

    margin: 30px 0 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 16px;
    line-height: 1.8;
}

.services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 32px;
}

.services-hero-bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2;

    display: flex;
    justify-content: center;
    gap: 36px;

    padding: 20px;

    background-color: rgba(0, 0, 0, 0.62);

    color: rgba(255, 255, 255, 0.72);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.services-intro {
    padding: 110px 0;

    background-color: #ffffff;
}

.services-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);

    gap: 100px;

    align-items: end;
}

.services-intro__heading .services-eyebrow {
    margin-bottom: 18px;
}

.services-intro h2,
.services-section-heading h2,
.realestate-intro h2,
.capability-content h2,
.services-cta h2 {
    margin: 0;

    color: var(--services-text);

    font-family: "Bebas Neue", Impact, sans-serif;

    font-size: clamp(58px, 6.5vw, 90px);
    font-weight: 400;

    line-height: 0.88;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.services-intro h2 span,
.services-section-heading h2 span,
.realestate-intro h2 span,
.capability-content h2 span,
.services-cta h2 span {
    color: var(--services-gold);
}

.services-intro__copy {
    padding-bottom: 5px;
}

.services-intro__copy p {
    margin: 0 0 18px;

    color: var(--services-muted);

    font-size: 15px;
    line-height: 1.85;
}

.services-intro__copy p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.services-section-heading {
    max-width: 780px;

    margin-bottom: 65px;
}

.services-section-heading .services-eyebrow {
    margin-bottom: 18px;
}

.services-section-heading h2 {
    margin-bottom: 22px;
}

.services-section-heading p {
    max-width: 720px;

    margin: 0;

    color: var(--services-muted);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   ENGINEERING & CONSTRUCTION
========================================================= */

.engineering-section {
    padding: 110px 0 40px;

    background-color: var(--services-light);
}

.service-category {
    padding: 0 0 85px;
}

.category-heading {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);

    gap: 30px;

    align-items: start;

    margin-bottom: 30px;

    padding-top: 25px;

    border-top: 1px solid var(--services-border);
}

.category-number {
    color: var(--services-gold);

    font-family: "Bebas Neue", Impact, sans-serif;

    font-size: 70px;
    font-weight: 400;

    line-height: 0.82;
}

.category-heading h3 {
    margin: 0 0 10px;

    color: var(--services-text);

    font-family: "Bebas Neue", Impact, sans-serif;

    font-size: clamp(35px, 4vw, 52px);
    font-weight: 400;

    line-height: 0.92;

    letter-spacing: 0.8px;
}

.category-heading p {
    max-width: 760px;

    margin: 0;

    color: var(--services-muted);

    font-size: 14px;
    line-height: 1.75;
}

.core-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.core-services-grid--single {
    grid-template-columns: minmax(0, 380px);
}

.service-card {
    display: flex;
    flex-direction: column;

    min-height: 100%;

    overflow: hidden;

    background-color: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    border-color: rgba(197, 118, 66, 0.35);

    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
}

.service-image {
    height: 230px;

    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.55s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 27px;
}

.service-number {
    display: block;

    margin-bottom: 17px;

    color: var(--services-gold);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.7px;
}

.service-card-body h4 {
    margin: 0 0 14px;

    color: var(--services-text);

    font-family: "Bebas Neue", Impact, sans-serif;

    font-size: 29px;
    font-weight: 400;

    line-height: 0.98;

    letter-spacing: 0.5px;
}

.service-card-body p {
    margin: 0;

    color: var(--services-muted);

    font-size: 13px;
    line-height: 1.75;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: auto;
    padding-top: 24px;

    color: var(--services-text);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.service-card-link span {
    color: var(--services-gold);

    font-size: 16px;

    transition: transform 0.25s ease;
}

.service-card:hover .service-card-link span {
    transform: translateX(5px);
}


/* =========================================================
   TRADING
========================================================= */

.trading-section {
    padding: 110px 0;

    background-color: #171717;

    color: #ffffff;
}

.trading-section .services-section-heading h2 {
    color: #ffffff;
}

.trading-section .services-section-heading p {
    color: rgba(255, 255, 255, 0.64);
}

.trading-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border: 1px solid var(--services-light-border);
}

.trading-card {
    display: flex;
    flex-direction: column;

    min-height: 100%;

    background-color: rgba(255, 255, 255, 0.02);

    border-right: 1px solid var(--services-light-border);

    color: inherit;
    text-decoration: none;

    transition: background-color 0.25s ease;
}

.trading-card:last-child {
    border-right: none;
}

.trading-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.trading-image {
    height: 180px;

    overflow: hidden;
}

.trading-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.5s ease;
}

.trading-card:hover .trading-image img {
    transform: scale(1.05);
}

.trading-body {
    padding: 24px;
}

.trading-body h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-family: "Bebas Neue", Impact, sans-serif;

    font-size: 29px;
    font-weight: 400;

    line-height: 0.95;
}

.trading-body p {
    margin: 0;

    color: rgba(255, 255, 255, 0.6);

    font-size: 12px;
    line-height: 1.75;
}

.section-action {
    margin-top: 35px;
}


/* =========================================================
   REAL ESTATE
========================================================= */

.realestate-section {
    padding: 110px 0;

    background-color: #ffffff;
}

.realestate-intro {
    max-width: 800px;

    margin-bottom: 55px;
}

.realestate-intro .services-eyebrow {
    margin-bottom: 18px;
}

.realestate-intro h2 {
    margin-bottom: 22px;
}

.realestate-intro p {
    max-width: 700px;

    margin: 0;

    color: var(--services-muted);

    font-size: 15px;
    line-height: 1.8;
}

.realestate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.realestate-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);

    min-height: 320px;

    overflow: hidden;

    background-color: var(--services-light);

    color: inherit;
    text-decoration: none;

    transition: transform 0.3s ease;
}

.realestate-card:hover {
    transform: translateY(-4px);
}

.realestate-image {
    overflow: hidden;
}

.realestate-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.realestate-card:hover .realestate-image img {
    transform: scale(1.04);
}

.realestate-body {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 38px;
}

.realestate-body h3 {
    margin: 0 0 14px;

    color: var(--services-text);

    font-family: "Bebas Neue", Impact, sans-serif;

    font-size: 35px;
    font-weight: 400;

    line-height: 0.95;
}

.realestate-body p {
    margin: 0;

    color: var(--services-muted);

    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
   ONE GROUP
========================================================= */

.capability-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    min-height: 650px;

    background-color: var(--services-dark);

    color: #ffffff;
}

.capability-image {
    min-height: 100%;

    overflow: hidden;
}

.capability-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.capability-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 90px clamp(40px, 7vw, 120px);
}

.capability-content .services-eyebrow {
    margin-bottom: 20px;
}

.capability-content h2 {
    margin-bottom: 25px;

    color: #ffffff;
}

.capability-content p {
    max-width: 600px;

    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.66);

    font-size: 15px;
    line-height: 1.8;
}

.capability-content ul {
    max-width: 640px;

    margin: 0;
    padding: 0;

    list-style: none;

    border-top: 1px solid var(--services-light-border);
}

.capability-content li {
    padding: 15px 0;

    border-bottom: 1px solid var(--services-light-border);

    color: rgba(255, 255, 255, 0.62);

    font-size: 12px;
    line-height: 1.65;
}

.capability-content li strong {
    color: #ffffff;
}


/* =========================================================
   CTA
========================================================= */

.services-cta {
    padding: 120px 0;

    background-color: var(--services-gold);

    color: #ffffff;
}

.services-cta .services-eyebrow {
    margin-bottom: 20px;

    color: rgba(255, 255, 255, 0.8);
}

.services-cta h2 {
    margin-bottom: 22px;

    color: #ffffff;
}

.services-cta h2 span {
    color: var(--services-dark);
}

.services-cta p {
    max-width: 700px;

    margin: 0 0 32px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199px) {

    .core-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .core-services-grid--single {
        grid-template-columns: minmax(0, 380px);
    }

    .trading-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trading-card:nth-child(2) {
        border-right: none;
    }

    .trading-card:nth-child(3),
    .trading-card:nth-child(4) {
        border-top: 1px solid var(--services-light-border);
    }

    .realestate-card {
        grid-template-columns: 1fr;
    }

    .realestate-image {
        height: 240px;
    }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 991px) {

    .services-hero {
        min-height: 760px;
        height: auto;
    }

    .services-hero-content {
        padding-top: 170px;
        padding-bottom: 130px;
    }

    .services-intro__grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .category-heading {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .category-number {
        font-size: 58px;
    }

    .realestate-grid {
        grid-template-columns: 1fr;
    }

    .realestate-card {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .realestate-image {
        height: auto;
    }

    .capability-section {
        grid-template-columns: 1fr;
    }

    .capability-image {
        height: 500px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .services-container {
        width: min(100% - 40px, 1180px);
    }

    .services-hero {
        min-height: 700px;
    }

    .services-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(7, 7, 7, 0.42) 0%,
                rgba(7, 7, 7, 0.78) 55%,
                rgba(7, 7, 7, 0.94) 100%
            );
    }

    .services-hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;

        min-height: 700px;

        padding-top: 130px;
        padding-bottom: 100px;
    }

    .services-hero h1 {
        font-size: 66px;
    }

    .services-hero-content p {
        font-size: 14px;
    }

    .services-hero-bottom {
        flex-wrap: wrap;

        gap: 9px 18px;

        padding: 15px;
    }

    .services-hero-bottom span {
        font-size: 8px;
    }

    .services-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .services-hero-actions .services-btn {
        width: 100%;
    }

    .services-intro,
    .engineering-section,
    .trading-section,
    .realestate-section,
    .services-cta {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .services-intro h2,
    .services-section-heading h2,
    .realestate-intro h2,
    .capability-content h2,
    .services-cta h2 {
        font-size: 54px;
    }

    .services-intro__copy p,
    .services-section-heading p,
    .realestate-intro p,
    .capability-content p,
    .services-cta p {
        font-size: 14px;
    }

    .services-section-heading {
        margin-bottom: 45px;
    }

    .service-category {
        padding-bottom: 65px;
    }

    .category-heading {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-bottom: 24px;
    }

    .category-number {
        font-size: 52px;
    }

    .category-heading h3 {
        font-size: 40px;
    }

    .core-services-grid,
    .core-services-grid--single {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 230px;
    }

    .trading-grid {
        grid-template-columns: 1fr;
    }

    .trading-card {
        border-right: none;
        border-bottom: 1px solid var(--services-light-border);
    }

    .trading-card:nth-child(3),
    .trading-card:nth-child(4) {
        border-top: none;
    }

    .trading-card:last-child {
        border-bottom: none;
    }

    .trading-image {
        height: 220px;
    }

    .realestate-card {
        grid-template-columns: 1fr;
    }

    .realestate-image {
        height: 260px;
    }

    .capability-image {
        height: 350px;
    }

    .capability-content {
        padding: 65px 25px 70px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .services-hero h1 {
        font-size: 58px;
    }

    .services-intro h2,
    .services-section-heading h2,
    .realestate-intro h2,
    .capability-content h2,
    .services-cta h2 {
        font-size: 48px;
    }

    .category-heading h3 {
        font-size: 36px;
    }

    .service-image {
        height: 210px;
    }

}