/* =========================================================
   AJASCO GLOBAL
   ENGINEERING & CONSTRUCTION PARENT PAGE
========================================================= */


/* =========================================================
   1. BASE
========================================================= */

.ec-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.ec-hero,
.ec-intro,
.ec-feature,
.ec-category,
.ec-capability,
.ec-cta,
.ec-service-card {
    box-sizing: border-box;
}


/* =========================================================
   2. HERO
========================================================= */

.ec-hero {
    position: relative;
    min-height: 520px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #171411;
}

.ec-hero-bg {
    position: absolute;
    inset: 0;
}

.ec-hero-bg img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.ec-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 16, 12, 0.90),
            rgba(20, 16, 12, 0.50)
        ),
        linear-gradient(
            180deg,
            rgba(20, 16, 12, 0.08),
            rgba(20, 16, 12, 0.72)
        );
}

.ec-hero-content {
    position: relative;
    z-index: 2;

    width: min(1000px, calc(100% - 40px));

    margin: 0 auto;

    padding-top: 60px;
}

.ec-eyebrow {
    display: block;

    margin-bottom: 15px;

    color: #c79745;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.ec-hero-content h1 {
    max-width: 850px;

    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(48px, 7vw, 82px);
    font-weight: 500;

    line-height: 0.94;

    letter-spacing: -0.035em;
}

.ec-hero-content p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   3. INTRODUCTION
========================================================= */

.ec-intro {
    padding: 100px 0 90px;

    background: #3b2b18;

    color: #ffffff;

    text-align: center;
}

.ec-kicker {
    margin-bottom: 13px;

    color: #bd8c3f;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.24em;
    line-height: 1.2;

    text-transform: uppercase;
}

.ec-intro h2 {
    max-width: 850px;

    margin: 0 auto 20px;

    color: #f7f3eb;

    font-size: clamp(36px, 4.4vw, 54px);
    font-weight: 500;

    line-height: 1.05;
}

.ec-intro-lead {
    max-width: 760px;

    margin: 0 auto 25px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 16px;
    line-height: 1.7;
}

.ec-intro-copy {
    max-width: 820px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.63);

    font-size: 14px;
    line-height: 1.85;
}


/* =========================================================
   4. FEATURE SECTIONS
========================================================= */

.ec-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;

    min-height: 570px;
}

.ec-feature-image {
    min-height: 570px;

    overflow: hidden;

    background: #2d2115;
}

.ec-feature-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.5s ease;
}

.ec-feature:hover .ec-feature-image img {
    transform: scale(1.025);
}

.ec-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 75px clamp(40px, 6vw, 90px);
}

.ec-feature-dark {
    background: #3b2b18;
}

.ec-feature-light {
    background: #f1eee8;
}

.ec-feature-light .ec-kicker {
    color: #9a6c25;
}

.ec-feature-content .ec-service-number {
    margin-bottom: 20px;

    color: #bd8c3f;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.18em;
}

.ec-feature-content h2 {
    margin: 0 0 20px;

    color: #f5f1e9;

    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.025em;
}

.ec-feature-light .ec-feature-content h2 {
    color: #3b2b18;
}

.ec-feature-content p {
    max-width: 520px;

    margin: 0 0 16px;

    color: rgba(255, 255, 255, 0.67);

    font-size: 14px;
    line-height: 1.8;
}

.ec-feature-light .ec-feature-content p {
    color: rgba(59, 43, 24, 0.68);
}

.ec-feature-content p:last-of-type {
    margin-bottom: 28px;
}

.ec-feature-reverse .ec-feature-image {
    order: 2;
}

.ec-feature-reverse .ec-feature-content {
    order: 1;
}


/* =========================================================
   5. BUTTONS
========================================================= */

.ec-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;

    padding: 12px 20px;

    border: 1px solid rgba(255, 255, 255, 0.55);

    color: #ffffff;

    background: transparent;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.13em;

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.ec-button:hover {
    background: #ffffff;
    border-color: #ffffff;

    color: #3b2b18;

    transform: translateY(-2px);
}

.ec-button-dark {
    border-color: rgba(59, 43, 24, 0.35);

    color: #3b2b18;
}

.ec-button-dark:hover {
    background: #3b2b18;
    border-color: #3b2b18;

    color: #ffffff;
}


/* =========================================================
   6. CATEGORY SECTIONS
========================================================= */

.ec-category {
    padding: 100px 0 110px;
}

.ec-category-light {
    background: #f1eee8;
}

.ec-category-dark {
    background: #3b2b18;
}

.ec-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);

    align-items: end;

    gap: 60px;

    margin-bottom: 48px;
}

.ec-section-heading > div {
    position: relative;
}

.ec-category-number {
    display: block;

    margin-bottom: 15px;

    color: #bd8c3f;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.16em;
}

.ec-section-heading h2 {
    margin: 0;

    color: #3b2b18;

    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.025em;
}

.ec-category-dark .ec-section-heading h2 {
    color: #f5f1e9;
}

.ec-section-heading > p {
    margin: 0;

    color: rgba(59, 43, 24, 0.65);

    font-size: 14px;
    line-height: 1.75;
}

.ec-category-dark .ec-section-heading > p {
    color: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   7. SERVICE GRIDS
========================================================= */

.ec-service-grid {
    display: grid;

    gap: 18px;

    align-items: stretch;
}

.ec-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ec-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   8. SERVICE CARDS
========================================================= */

.ec-service-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(59, 43, 24, 0.08);

    box-shadow: 0 10px 28px rgba(59, 43, 24, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ec-service-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 18px 36px rgba(59, 43, 24, 0.13);
}

.ec-card-dark {
    background: #4a3621;

    border-color: rgba(255, 255, 255, 0.08);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.ec-card-dark:hover {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.20);
}

.ec-card-image {
    width: 100%;
    height: 220px;

    flex-shrink: 0;

    overflow: hidden;

    background: #2d2115;
}

.ec-grid-four .ec-card-image {
    height: 190px;
}

.ec-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.45s ease;
}

.ec-service-card:hover .ec-card-image img {
    transform: scale(1.035);
}

.ec-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-height: 185px;

    padding: 21px 22px 24px;
}

.ec-grid-four .ec-card-body {
    min-height: 220px;

    padding: 20px 19px 22px;
}

.ec-card-number {
    display: block;

    margin-bottom: 9px;

    color: #9a6c25;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.14em;
}

.ec-card-dark .ec-card-number {
    color: #bd8c3f;
}

.ec-card-body h3 {
    margin: 0 0 11px;

    color: #3b2b18;

    font-size: 19px;
    font-weight: 500;

    line-height: 1.2;
}

.ec-grid-four .ec-card-body h3 {
    font-size: 16px;
}

.ec-card-dark .ec-card-body h3 {
    color: #ffffff;
}

.ec-card-body p {
    margin: 0;

    color: rgba(59, 43, 24, 0.66);

    font-size: 12.5px;
    line-height: 1.7;
}

.ec-card-dark .ec-card-body p {
    color: rgba(255, 255, 255, 0.65);
}

.ec-card-link {
    display: inline-block;

    margin-top: auto;
    padding-top: 19px;

    color: #8e6323;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.13em;

    text-decoration: none;

    transition: color 0.25s ease;
}

.ec-card-link:hover {
    color: #3b2b18;
}

.ec-card-dark .ec-card-link {
    color: #d0a45b;
}

.ec-card-dark .ec-card-link:hover {
    color: #ffffff;
}


/* =========================================================
   9. CAPABILITY SECTION
========================================================= */

.ec-capability {
    display: grid;
    grid-template-columns: 1fr 1fr;

    min-height: 520px;

    background: #f1eee8;
}

.ec-capability-image {
    min-height: 520px;

    overflow: hidden;

    background: #2d2115;
}

.ec-capability-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.ec-capability-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 70px clamp(40px, 6vw, 90px);
}

.ec-capability-content .ec-kicker {
    color: #9a6c25;
}

.ec-capability-content h2 {
    margin: 0 0 21px;

    color: #3b2b18;

    font-size: clamp(38px, 4vw, 54px);
    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.025em;
}

.ec-capability-content > p {
    max-width: 540px;

    margin: 0 0 27px;

    color: rgba(59, 43, 24, 0.67);

    font-size: 14px;
    line-height: 1.8;
}

.ec-capability-content ul {
    max-width: 570px;

    margin: 0;

    padding-left: 19px;
}

.ec-capability-content li {
    margin-bottom: 12px;

    color: rgba(59, 43, 24, 0.70);

    font-size: 13px;
    line-height: 1.65;
}

.ec-capability-content strong {
    color: #3b2b18;
}


/* =========================================================
   10. CTA
========================================================= */

.ec-cta {
    padding: 95px 0 105px;

    background: #77521e;

    text-align: center;
}

.ec-cta .ec-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.ec-cta h2 {
    margin: 0 0 20px;

    color: #ffffff;

    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 500;

    line-height: 0.95;

    letter-spacing: -0.03em;
}

.ec-cta p {
    max-width: 620px;

    margin: 0 auto 30px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
    line-height: 1.75;
}

.ec-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 145px;

    padding: 12px 23px;

    border: 1px solid rgba(255, 255, 255, 0.70);

    color: #ffffff;

    background: transparent;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.14em;

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.ec-cta-button:hover {
    background: #ffffff;

    color: #3b2b18;

    transform: translateY(-2px);
}


/* =========================================================
   11. TABLET
========================================================= */

@media (max-width: 991.98px) {

    .ec-container {
        width: min(920px, calc(100% - 36px));
    }

    .ec-hero {
        min-height: 450px;
    }

    .ec-intro {
        padding: 80px 0 75px;
    }

    .ec-feature {
        min-height: 500px;
    }

    .ec-feature-image {
        min-height: 500px;
    }

    .ec-feature-content {
        padding: 60px 42px;
    }

    .ec-section-heading {
        gap: 35px;
    }

    .ec-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ec-grid-four .ec-card-image {
        height: 220px;
    }

    .ec-grid-four .ec-card-body {
        min-height: 200px;
    }

    .ec-capability,
    .ec-capability-image {
        min-height: 460px;
    }

    .ec-capability-content {
        padding: 55px 40px;
    }

}


/* =========================================================
   12. MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .ec-container {
        width: calc(100% - 30px);
    }

    .ec-hero {
        min-height: 410px;
    }

    .ec-hero-content {
        width: calc(100% - 30px);

        padding-top: 50px;
    }

    .ec-hero-content h1 {
        font-size: 45px;
    }

    .ec-hero-content p {
        font-size: 14px;
    }

    .ec-intro {
        padding: 65px 0 60px;
    }

    .ec-intro h2 {
        font-size: 33px;
    }

    .ec-intro-lead {
        font-size: 15px;
    }

    .ec-intro-copy {
        font-size: 13px;
    }

    .ec-feature {
        display: flex;
        flex-direction: column;

        min-height: auto;
    }

    .ec-feature-image {
        width: 100%;
        height: 350px;
        min-height: 350px;
    }

    .ec-feature-content {
        width: 100%;

        padding: 55px 25px 60px;
    }

    .ec-feature-reverse .ec-feature-image,
    .ec-feature-reverse .ec-feature-content {
        order: initial;
    }

    .ec-feature-content h2 {
        font-size: 40px;
    }

    .ec-category {
        padding: 70px 0 75px;
    }

    .ec-section-heading {
        display: block;

        margin-bottom: 35px;
    }

    .ec-section-heading > p {
        margin-top: 20px;
    }

    .ec-section-heading h2 {
        font-size: 33px;
    }

    .ec-grid-two,
    .ec-grid-four {
        grid-template-columns: 1fr;
    }

    .ec-card-image,
    .ec-grid-four .ec-card-image {
        height: 210px;
    }

    .ec-card-body,
    .ec-grid-four .ec-card-body {
        min-height: auto;
    }

    .ec-capability {
        display: flex;
        flex-direction: column;

        min-height: auto;
    }

    .ec-capability-image {
        width: 100%;
        height: 340px;
        min-height: 340px;
    }

    .ec-capability-content {
        width: 100%;

        padding: 55px 25px 60px;
    }

    .ec-capability-content h2 {
        font-size: 40px;
    }

    .ec-cta {
        padding: 70px 0 75px;
    }

    .ec-cta h2 {
        font-size: 39px;
    }

}


/* =========================================================
   13. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ec-container {
        width: calc(100% - 24px);
    }

    .ec-hero {
        min-height: 365px;
    }

    .ec-hero-content {
        width: calc(100% - 24px);
    }

    .ec-hero-content h1 {
        font-size: 38px;
    }

    .ec-intro h2 {
        font-size: 29px;
    }

    .ec-feature-image {
        height: 285px;
        min-height: 285px;
    }

    .ec-feature-content {
        padding: 45px 20px 50px;
    }

    .ec-feature-content h2 {
        font-size: 34px;
    }

    .ec-section-heading h2 {
        font-size: 29px;
    }

    .ec-card-image,
    .ec-grid-four .ec-card-image {
        height: 190px;
    }

    .ec-capability-image {
        height: 280px;
        min-height: 280px;
    }

    .ec-capability-content {
        padding: 45px 20px 50px;
    }

    .ec-capability-content h2 {
        font-size: 35px;
    }

    .ec-cta h2 {
        font-size: 34px;
    }

}