/* =========================================================
   ENTRAX — SERVICES PAGE
   services.css

   PAGE SECTIONS:
   01. Shared Top Bar
   02. Services Header
   03. Services
   04. Service Approach
   05. Shared Footer
========================================================= */

/* =========================================================
   DESKTOP
========================================================= */

/* =========================================================
   SECTION 2 — SERVICES HEADER
========================================================= */

.services-header {
    position: relative;
    width: 100%;
    min-height: 430px;
    display: grid;
    grid-template-columns: 7% 29% 64%;
    overflow: hidden;
    background: var(--entrax-white);
    border-bottom: 1px solid var(--color-border);
}

/* =========================================================
   LEFT INDICATOR
========================================================= */

.services-header-indicator {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 82px;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid var(--color-border);
}

.services-header-index {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.services-header-indicator-line {
    display: block;
    width: 1px;
    height: 74px;
    margin-top: 12px;
    background: var(--color-text-primary);
}

.services-header-indicator-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.services-header-indicator-dots span {
    display: block;
    width: 12px;
    height: 1px;
    background: #b9c1c8;
}

.services-header-indicator-dots span:first-child {
    background: var(--entrax-orange);
    width: 14px;
}

/* =========================================================
   TEXT CONTENT
========================================================= */

.services-header-content {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 34px 20px 40px 2vw;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 80%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* =========================================================
   SECTION LABEL
========================================================= */

.services-header-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.services-header-label span:first-child {
    color: var(--entrax-orange);
    font-family: var(--font-navigation);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.services-header-label-line {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--entrax-orange);
}

/* =========================================================
   HEADING
========================================================= */

.services-header-content h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(38px, 3.15vw, 62px);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -1.1px;
}

.heading-primary {
    display: block;
    color: var(--color-text-primary);
}

.heading-accent {
    display: block;
    color: var(--entrax-orange);
}

/* =========================================================
   DESCRIPTION
========================================================= */

.services-header-description {
    max-width: 420px;
    margin-top: 25px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.65;
}

/* =========================================================
   RIGHT VISUAL
========================================================= */

.services-header-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64%;
    overflow: hidden;
    z-index: 1;
}

/* =========================================================
   BUILDING IMAGE
========================================================= */

.services-header-building {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 20%,
        black 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 20%,
        black 100%
    );
}

/* =========================================================
   BLUEPRINT
========================================================= */

.services-header-blueprint {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.55;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* =========================================================
   VISUAL FADE
========================================================= */

.services-header-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.88) 8%,
        rgba(255, 255, 255, 0.18) 25%,
        rgba(255, 255, 255, 0) 45%
    );
}

/* =========================================================
   SECTION 3 — SERVICES
========================================================= */

.services-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--entrax-white);
}

/* =========================================================
   SERVICE ROW
========================================================= */

.services-row {
    width: 100%;
    display: grid;
    margin: 0;
    padding: 0;
}

.services-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   SERVICE CARD
========================================================= */

.service-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    min-height: 230px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--entrax-white);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-radius: 0;
}

.services-row-2 .service-card:last-child,
.services-row-3 .service-card:last-child {
    border-right: 0;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.service-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px 28px 20px 20px;
    background: var(--entrax-white);
}

/* =========================================================
   NUMBER
========================================================= */

.service-number {
    display: block;
    margin: 0 0 7px;
    color: var(--entrax-orange);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}

/* =========================================================
   TITLE
========================================================= */

.service-card h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.35vw, 25px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

/* =========================================================
   ORANGE LINE
========================================================= */

.service-line {
    display: block;
    width: 20px;
    height: 2px;
    flex-shrink: 0;
    margin-top: 13px;
    background: var(--entrax-orange);
}

/* =========================================================
   DESCRIPTION
========================================================= */

.service-card p {
    max-width: 310px;
    margin: 12px 0 0;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: clamp(11px, 0.78vw, 14px);
    font-weight: 400;
    line-height: 1.55;
}

/* =========================================================
   ARROW BUTTON
========================================================= */

.service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: auto;
    padding: 0;
    color: #ffffff;
    background: var(--entrax-orange);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.service-arrow span {
    display: block;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-1px);
}

.service-arrow:hover {
    transform: translateX(2px);
}

/* =========================================================
   IMAGE
========================================================= */

.service-card-image {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #eef1f3;
}

.service-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.025);
}

/* =========================================================
   SECTION 4 — SERVICE APPROACH
========================================================= */

.service-approach-section {
    width: 100%;
    display: grid;
    grid-template-columns: 11% 22% 22% 22% 22% 11%;
    min-height: 155px;
    margin: 0;
    padding: 0;
    background: var(--entrax-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* =========================================================
   DECORATIVE BLUEPRINTS
========================================================= */

.service-approach-blueprint {
    position: relative;
    min-width: 0;
    min-height: 155px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.service-approach-blueprint-left {
    background-image: url("../../images/services/approach/service-approach-blueprint-left.png");
    background-position: left center;
}

.service-approach-blueprint-right {
    background-image: url("../../images/services/approach/service-approach-blueprint-right.png");
    background-position: right center;
}

/* =========================================================
   APPROACH ITEM
========================================================= */

.service-approach-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    min-width: 0;
    min-height: 155px;
    margin: 0;
    padding: 20px 24px;
    border-left: 1px solid var(--color-border);
}

/* =========================================================
   ICON
========================================================= */

.service-approach-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.service-approach-icon svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: var(--entrax-orange);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   CONTENT
========================================================= */

.service-approach-content {
    min-width: 0;
}

.service-approach-content h3 {
    margin: 0;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
}

.service-approach-content p {
    max-width: 240px;
    margin: 9px 0 0;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: clamp(10px, 0.68vw, 13px);
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================================
   TABLET (max-width: 1100px)
========================================================= */

@media (max-width: 1100px) {
    .services-header {
        min-height: 420px;
        grid-template-columns: 8% 34% 58%;
    }

    .services-header-indicator {
        padding-top: 70px;
    }

    .services-header-index {
        font-size: 13px;
    }

    .services-header-indicator-line {
        height: 65px;
    }

    .services-header-content {
        padding: 32px 20px 35px 28px;
    }

    .services-header-label {
        margin-bottom: 14px;
    }

    .services-header-content h1 {
        font-size: clamp(32px, 4.2vw, 48px);
        line-height: 1.05;
        letter-spacing: -0.7px;
    }

    .services-header-description {
        max-width: 330px;
        margin-top: 22px;
        font-size: 13px;
        line-height: 1.65;
    }

    .services-header-visual {
        width: 58%;
    }

    .services-header-blueprint {
        width: 65%;
        opacity: 0.5;
    }

    .services-section {
        width: 100%;
    }

    .services-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-row-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-card {
        min-height: 220px;
    }

    .service-card-content {
        padding: 22px 18px 18px 28px;
    }

    .service-number {
        font-size: 15px;
    }

    .service-card h2 {
        font-size: clamp(16px, 1.9vw, 21px);
        line-height: 1.08;
    }

    .service-card p {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.5;
    }

    .service-arrow {
        width: 32px;
        height: 32px;
    }

    .service-arrow span {
        font-size: 18px;
    }

    .service-approach-section {
        grid-template-columns: 7% repeat(4, 1fr) 7%;
        min-height: 145px;
    }

    .service-approach-blueprint {
        min-height: 145px;
    }

    .service-approach-blueprint-left {
        background-position: left center;
    }

    .service-approach-blueprint-right {
        background-position: right center;
    }

    .service-approach-item {
        grid-template-columns: 48px 1fr;
        min-height: 145px;
        padding: 18px 14px;
    }

    .service-approach-icon {
        width: 42px;
        height: 42px;
    }

    .service-approach-icon svg {
        width: 42px;
        height: 42px;
        stroke-width: 2;
    }

    .service-approach-content h3 {
        font-size: clamp(12px, 1.45vw, 16px);
    }

    .service-approach-content p {
        margin-top: 7px;
        max-width: 180px;
        font-size: 10px;
        line-height: 1.45;
    }
}

/* =========================================================
   SMARTPHONE (max-width: 700px)
========================================================= */

@media (max-width: 700px) {
    .services-header {
        display: flex;
        flex-direction: column;
        min-height: auto;
        overflow: hidden;
    }

    .services-header-indicator {
        display: none;
    }

    .services-header-content {
        position: relative;
        z-index: 20;
        width: 100%;
        padding: 48px var(--content-padding-mobile) 38px;
        background: var(--entrax-white);
    }

    .services-header-label {
        margin-bottom: 17px;
    }

    .services-header-label span:first-child {
        font-size: 10px;
    }

    .services-header-content h1 {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.04;
        letter-spacing: -0.8px;
    }

    .services-header-description {
        max-width: 100%;
        margin-top: 23px;
        font-size: 14px;
        line-height: 1.7;
    }

    .services-header-visual {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 320px;
        flex-shrink: 0;
    }

    .services-header-building {
        object-position: 58% center;
        -webkit-mask-image: linear-gradient(
            180deg,
            transparent 0%,
            black 18%,
            black 100%
        );
        mask-image: linear-gradient(
            180deg,
            transparent 0%,
            black 18%,
            black 100%
        );
    }

    .services-header-blueprint {
        width: 80%;
        height: 100%;
        opacity: 0.42;
        object-position: right center;
    }

    .services-header-fade {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.35) 22%,
            rgba(255, 255, 255, 0) 55%
        );
    }

    .services-section {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .services-row-2,
    .services-row-3 {
        display: grid;
        grid-template-columns: 1fr;
    }

    .service-card {
        display: grid;
        grid-template-columns: 58% 42%;
        min-height: 250px;
        border-right: 0;
        border-top: 1px solid var(--color-border);
    }

    .service-card-content {
        padding: 24px 18px 20px var(--content-padding-mobile);
    }

    .service-number {
        margin-bottom: 8px;
        font-size: 15px;
    }

    .service-card h2 {
        font-size: clamp(18px, 5.5vw, 24px);
        line-height: 1.08;
        letter-spacing: -0.25px;
    }

    .service-line {
        width: 20px;
        height: 2px;
        margin-top: 12px;
    }

    .service-card p {
        margin-top: 11px;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.55;
    }

    .service-arrow {
        width: 32px;
        height: 32px;
        margin-top: auto;
    }

    .service-arrow span {
        font-size: 18px;
    }

    .service-card-image {
        height: 100%;
        min-height: 250px;
    }

    .service-card-image img {
        object-position: center center;
    }

    .service-approach-section {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .service-approach-blueprint {
        display: none;
    }

    .service-approach-item {
        display: grid;
        grid-template-columns: 58px 1fr;
        align-items: center;
        width: 100%;
        min-height: 125px;
        margin: 0;
        padding: 22px var(--content-padding-mobile);
        border-left: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .service-approach-item:last-child {
        border-bottom: 0;
    }

    .service-approach-icon {
        width: 48px;
        height: 48px;
    }

    .service-approach-icon svg {
        width: 46px;
        height: 46px;
        stroke-width: 2;
    }

    .service-approach-content h3 {
        font-size: 17px;
        line-height: 1.1;
    }

    .service-approach-content p {
        max-width: 100%;
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.5;
    }
}

/* =========================================================
   SMALL SMARTPHONE (max-width: 380px)
========================================================= */

@media (max-width: 380px) {
    .services-header-content {
        padding: 40px 20px 32px;
    }

    .services-header-content h1 {
        font-size: 32px;
    }

    .services-header-description {
        font-size: 13px;
    }

    .services-header-visual {
        height: 280px;
    }

    .service-card {
        grid-template-columns: 60% 40%;
        min-height: 235px;
    }

    .service-card-content {
        padding: 20px 14px 18px 20px;
    }

    .service-card h2 {
        font-size: 17px;
    }

    .service-card p {
        font-size: 11px;
        line-height: 1.5;
    }

    .service-card-image {
        min-height: 235px;
    }

    .service-approach-item {
        grid-template-columns: 50px 1fr;
        min-height: 115px;
        padding: 20px 18px;
    }

    .service-approach-icon {
        width: 42px;
        height: 42px;
    }

    .service-approach-icon svg {
        width: 40px;
        height: 40px;
    }

    .service-approach-content h3 {
        font-size: 15px;
    }

    .service-approach-content p {
        font-size: 11px;
    }
}