/* =========================
   SERVICES PAGE
========================= */

.services-page {
    margin: 0;
    padding: 0;

    color: #173428;
    background: #f3f0e8;
}


/* =========================
   HERO — DIRECT SERVICES INTRO
========================= */

.services-hero {
    position: relative;
    padding: 112px 0 38px;

    overflow: hidden;

    color: #173428;
    background: #f3f0e8;

    border-bottom: 1px solid rgba(23, 52, 40, 0.14);
}

.services-hero::before {
    content: "";

    position: absolute;
    top: 58px;
    right: 6%;

    width: 200px;
    height: 200px;

    border: 1px solid rgba(23, 52, 40, 0.08);
    border-radius: 50%;

    box-shadow:
        0 0 0 38px rgba(23, 52, 40, 0.022),
        0 0 0 76px rgba(23, 52, 40, 0.015);

    pointer-events: none;
}

.services-hero__inner {
    position: relative;
    z-index: 2;

    width: min(1400px, calc(100% - 120px));
    margin: 0 auto;
}

.services-hero__label {
    display: inline-block;
    margin-bottom: 14px;

    color: #5c7468;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.services-hero__layout {
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(340px, 0.85fr);
    gap: 70px;
    align-items: end;
}

.services-hero h1 {
    max-width: 880px;
    margin: 0;

    color: #173f30;

    font-size: clamp(48px, 4.7vw, 70px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -2px;
}

.services-hero p {
    max-width: 590px;
    margin: 0 0 6px;

    color: #53665d;

    font-size: 18px;
    line-height: 1.62;
}


/* =========================
   SERVICES LIST
========================= */

.services-list {
    padding: 32px 0 82px;

    background: #f3f0e8;
}

.services-list__inner {
    width: min(1400px, calc(100% - 120px));
    margin: 0 auto;
}

.services-list__heading {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(340px, 0.8fr);
    column-gap: 110px;
    align-items: end;

    margin-bottom: 24px;
}

.services-list__heading > span {
    grid-column: 1 / -1;

    display: block;
    margin-bottom: 20px;

    color: #5c7468;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.services-list__heading h2 {
    max-width: 760px;
    margin: 0;

    color: #173f30;

    font-size: clamp(34px, 3vw, 48px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.services-list__heading p {
    max-width: 570px;
    margin: 0;

    color: #53665d;

    font-size: 17px;
    line-height: 1.62;
}


/* =========================
   SERVICE CARDS
========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;

    min-height: 370px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #173f30;
    text-decoration: none;

    border: 1px solid rgba(23, 52, 40, 0.17);
    background: rgba(255, 255, 255, 0.28);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card::after {
    content: "";

    position: absolute;
    right: -70px;
    bottom: -70px;

    width: 155px;
    height: 155px;

    border: 1px solid rgba(23, 52, 40, 0.08);
    border-radius: 50%;

    transition:
        transform 0.35s ease,
        border-color 0.25s ease;
}

.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
    grid-column: span 2;
}

.service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.service-card:hover {
    color: #ffffff;
    background: #173f30;
    border-color: #173f30;

    transform: translateY(-8px);

    box-shadow: 0 24px 48px rgba(23, 52, 40, 0.14);
}

.service-card:hover::after {
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.25);
}

.service-card__top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.service-card__number {
    color: #82958b;

    font-size: 28px important;
    font-weight: 700;
    letter-spacing: 2px;

    transition: color 0.25s ease;
}

.service-card__icon {
    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    color: #173f30;

    border: 1px solid rgba(23, 52, 40, 0.18);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.36);

    transform: rotate(-2deg);

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.service-card__icon svg {
    width: 48px;
    height: 48px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card__icon .icon-fill {
    fill: currentColor;
    fill-opacity: 0.10;
}

.service-card__body {
    position: relative;
    z-index: 2;
}

.service-card__body h3 {
    max-width: 350px;
    margin: 0 0 16px;

    color: inherit;

    font-size: clamp(23px, 1.8vw, 30px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.65px;
}

.service-card__body p {
    max-width: 360px;
    margin: 0 0 25px;

    color: #5a6b62;

    font-size: 15px;
    line-height: 1.58;

    transition: color 0.25s ease;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: inherit;

    font-size: 14px;
    font-weight: 700;
}

.service-card__link span {
    transition: transform 0.25s ease;
}

.service-card:hover .service-card__number,
.service-card:hover .service-card__body p {
    color: rgba(255, 255, 255, 0.78);
}

.service-card:hover .service-card__icon {
    transform:translateY(-3px);
}

.service-card:hover .service-card__link span {
    transform: translateX(5px);
}


/* =========================
   CONTACT FORM
========================= */

.services-contact {
    padding: 95px 0 105px;

    background: #ffffff;
}

.services-contact__inner {
    width: min(1400px, calc(100% - 120px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(360px, 0.75fr) minmax(500px, 1.25fr);
    gap: 110px;
    align-items: start;
}

.services-contact__label {
    display: block;
    margin-bottom: 20px;

    color: #5c7468;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.services-contact h2 {
    max-width: 580px;
    margin: 0 0 24px;

    color: #173f30;

    font-size: clamp(40px, 3.8vw, 60px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -1.6px;
}

.services-contact__intro p {
    max-width: 560px;
    margin: 0;

    color: #56675f;

    font-size: 17px;
    line-height: 1.65;
}

.services-contact__form {
    padding: 38px;

    border: 1px solid rgba(23, 52, 40, 0.14);
    background: #f7f5ef;
}

.services-contact__form .fluentform {
    margin: 0;
}

.services-contact__form .ff-el-group {
    margin-bottom: 18px;
}

.services-contact__form .ff-el-input--label label {
    color: #173f30;

    font-size: 14px;
    font-weight: 700;
}

.services-contact__form .ff-el-form-control {
    width: 100%;

    min-height: 48px;

    border: 1px solid rgba(23, 52, 40, 0.18) !important;
    border-radius: 0 !important;

    color: #173428 !important;
    background: #ffffff !important;

    box-shadow: none !important;
}

.services-contact__form textarea.ff-el-form-control {
    min-height: 140px;
}

.services-contact__form .ff-btn-submit {
    min-height: 50px;
    padding: 14px 24px !important;

    border: 0 !important;
    border-radius: 0 !important;

    color: #ffffff !important;
    background: #173f30 !important;

    font-weight: 700;

    cursor: pointer;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

    .services-hero__inner,
    .services-list__inner,
    .services-contact__inner {
        width: calc(100% - 70px);
    }

    .services-hero__layout,
    .services-list__heading {
        column-gap: 60px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card,
    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: auto;
    }

    .service-card:last-child {
        grid-column: 1 / -1;
        min-height: 315px;
    }

    .services-contact__inner {
        gap: 60px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .services-hero {
        padding: 92px 0 42px;
    }

    .services-hero::before {
        top: 45px;
        right: -150px;
    }

    .services-hero__inner,
    .services-list__inner,
    .services-contact__inner {
        width: calc(100% - 32px);
    }

    .services-hero__layout,
    .services-list__heading,
    .services-contact__inner {
        display: block;
    }

    .services-hero h1 {
        margin-bottom: 28px;

        font-size: 40px;
        letter-spacing: -1.2px;
    }

    .services-hero p {
        font-size: 17px;
        line-height: 1.55;
    }

    .services-list {
        padding: 38px 0 64px;
    }

    .services-list__heading {
        margin-bottom: 24px;
    }

    .services-list__heading h2 {
        margin-bottom: 24px;

        font-size: 37px;
        letter-spacing: -1px;
    }

    .services-grid {
        display: block;
    }

    .service-card,
    .service-card:last-child {
        min-height: 330px;
        margin-bottom: 14px;
        padding: 24px 22px;

        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card__icon {
        width: 68px;
        height: 68px;
    }

    .service-card__icon svg {
        width: 43px;
        height: 43px;
    }

    .service-card__body h3 {
        font-size: 26px;
    }

    .services-contact {
        padding: 38px 0 64px;
    }

    .services-contact__intro {
        margin-bottom: 38px;
    }

    .services-contact h2 {
        font-size: 39px;
    }

    .services-contact__form {
        padding: 24px 20px;
    }
}
\/* =========================
   FLUENT FORM — CLEAN STYLE
========================= */

.services-contact {
    padding: 72px 0 82px;
}

.services-contact__inner {
    gap: 72px;
}

.services-contact__form {
    padding: 0;
    border: 0;
    background: transparent;
}

.services-contact__form .fluentform {
    margin: 0;
}

.services-contact__form .ff-t-container {
    gap: 18px;
}

.services-contact__form .ff-el-group {
    margin-bottom: 18px;
}

.services-contact__form .ff-el-input--label {
    margin-bottom: 8px;
}

.services-contact__form .ff-el-input--label label {
    color: #173f30;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.services-contact__form .ff-el-form-control {
    min-height: 52px;
    padding: 13px 15px !important;

    border: 1px solid rgba(23, 52, 40, 0.18) !important;
    border-radius: 0 !important;

    color: #173428 !important;
    background: #ffffff !important;

    font-size: 16px !important;
    box-shadow: none !important;
}

.services-contact__form textarea.ff-el-form-control {
    min-height: 150px;
    resize: vertical;
}

.services-contact__form .ff-el-form-control:focus {
    border-color: #173f30 !important;
    box-shadow: 0 0 0 1px #173f30 !important;
}

.services-contact__form .ff-btn-submit {
    width: auto;
    min-height: 50px;

    padding: 14px 28px !important;

    border: 0 !important;
    border-radius: 0 !important;

    color: #ffffff !important;
    background: #173f30 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.services-contact__form .ff-btn-submit:hover {
    background: #235642 !important;
    transform: translateY(-2px);
}

.services-contact__form .ff-el-is-error .ff-el-form-control {
    border-color: #b84c4c !important;
}

.services-contact__form .error {
    margin-top: 6px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .services-contact {
        padding: 55px 0 62px;
    }

    .services-contact__inner {
        gap: 36px;
    }

    .services-contact__form .ff-t-container {
        display: block;
    }

    .services-contact__form .ff-btn-submit {
        width: 100%;
    }
}

/* =========================================================
   FINAL SERVICE CARD OVERRIDES
   ========================================================= */

.service-card {
    min-height: 315px !important;
    padding: 22px 26px 26px !important;
}

.service-card__top {
    margin-bottom: 18px !important;
}

.service-card__icon {
    width: 96px !important;
    height: 96px !important;
    border-radius: 22px !important;
}

.service-card__icon img {
    width: 68px !important;
    height: 68px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

.service-card__body h3 {
    margin-bottom: 10px !important;
}

.service-card__body p {
    margin-bottom: 18px !important;
}

@media (max-width: 768px) {
    .service-card,
    .service-card:last-child {
        min-height: 285px !important;
        padding: 20px !important;
    }

    .service-card__top {
        margin-bottom: 16px !important;
    }

    .service-card__icon {
        width: 82px !important;
        height: 82px !important;
    }

    .service-card__icon img {
        width: 58px !important;
        height: 58px !important;
    }
}