/* =========================================================
   ENVIRONMENTAL CONSULTING & COMPLIANCE PAGE
========================================================= */

.ecc-service-detail {
    padding: 50px 160px;
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 34%
        ),
        linear-gradient(180deg, var(--white1) 0%, #f8fafc 100%);
}

.ecc-service-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.6fr;
    gap: 50px;
    align-items: start;
}

.ecc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 110px;
}

/* MAIN CARDS */
.ecc-info-card,
.ecc-contact-card,
.ecc-content {
    position: relative;
    background: var(--white1);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.ecc-info-card::before,
.ecc-contact-card::before,
.ecc-content::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.ecc-info-card::after,
.ecc-contact-card::after,
.ecc-content::after {
    content: "";
    position: absolute;
    top: -45px;
    right: -45px;
    width: 140px;
    height: 140px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.ecc-info-card,
.ecc-contact-card {
    padding: 30px;
}

.ecc-content {
    padding: 40px;
    border-radius: 26px;
}

/* EYEBROW */
.ecc-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 14px;
    color: var(--white1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ecc-dark-eyebrow {
    color: var(--accent1);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.14);
}

/* HEADINGS */
.ecc-info-card h3,
.ecc-contact-card h3,
.ecc-content h3,
.ecc-project-experience h3,
.ecc-ems-header h3,
.ecc-framework-header h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    color: var(--titles);
    font-family: "Oswald", sans-serif;
    font-size: var(--h3-size);
    line-height: 1.1;
    text-transform: uppercase;
}

/* SIDEBAR LIST */
.ecc-info-card ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ecc-info-card li {
    position: relative;
    padding-left: 22px;
    color: var(--subtitles);
    line-height: 1.6;
}

.ecc-info-card li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent1);
    border-radius: 50%;
}

/* BUTTON */
.ecc-contact-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    color: var(--white1);
    background: linear-gradient(135deg, var(--accent1), #3b82f6);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.ecc-contact-btn::after {
    content: "→";
    transition: transform 0.3s ease;
}

.ecc-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
}

.ecc-contact-btn:hover::after {
    transform: translateX(4px);
}

/* CONTENT */
.ecc-content p {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    color: var(--subtitles);
    line-height: 1.8;
    text-align: justify;
}

/* APPROACH GRID */
.ecc-approach-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.ecc-approach-card {
    padding: 24px;
    background: #f8fafc;
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 18px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.ecc-approach-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.ecc-approach-card h4,
.ecc-system-group h4,
.ecc-system-core h4 {
    margin-bottom: 18px;
    font-family: "Oswald", sans-serif;
    font-size: var(--h4-size);
    line-height: 1.15;
    text-transform: uppercase;
}

.ecc-approach-card h4,
.ecc-system-group h4 {
    color: var(--accent1);
}

.ecc-approach-card ul {
    margin: 0;
    padding-left: 18px;
}

.ecc-approach-card li {
    margin-bottom: 10px;
    color: var(--subtitles);
    line-height: 1.5;
}

/* HIGHLIGHT */
.ecc-highlight {
    position: relative;
    z-index: 1;
    margin: 30px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--accent2), #153d5f);
    border-radius: 18px;
    overflow: hidden;
}

.ecc-highlight::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.ecc-highlight p {
    margin: 0;
    color: var(--white1);
}

/* CODED EMS PROCESS */
.ecc-ems-section {
    position: relative;
    z-index: 1;
    margin: 34px 0;
    padding: 30px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(37, 99, 235, 0.1),
            transparent 34%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 22px;
    overflow: hidden;
}

.ecc-ems-header {
    max-width: 860px;
    margin-bottom: 28px;
}

.ecc-ems-header h3 {
    margin-bottom: 16px;
}

.ecc-ems-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ecc-ems-step,
.ecc-ems-center {
    position: relative;
    min-height: 150px;
    padding: 22px;
    background: var(--white1);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.ecc-ems-step::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.ecc-ems-step:hover,
.ecc-ems-center:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.ecc-ems-step span {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--accent1);
    font-family: "Oswald", sans-serif;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

.ecc-ems-step p {
    margin: 0;
    color: var(--titles);
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

.ecc-ems-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    border-color: transparent;
}

.ecc-ems-center strong {
    color: var(--white1);
    font-family: "Oswald", sans-serif;
    font-size: 58px;
    line-height: 1;
}

.ecc-ems-center p {
    margin: 10px 0 0;
    color: var(--white1);
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

/* CODED EMS FRAMEWORK */
.ecc-framework-section {
    position: relative;
    z-index: 1;
    margin: 34px 0 0;
    padding: 30px;
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(37, 99, 235, 0.12),
            transparent 34%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 22px;
    overflow: hidden;
}

.ecc-framework-header {
    max-width: 860px;
    margin-bottom: 28px;
}

.ecc-framework-header h3 {
    margin-bottom: 16px;
}

.ecc-system-map {
    display: grid;
    grid-template-columns: 1fr 0.9fr 1fr;
    gap: 22px;
    align-items: center;
}

.ecc-system-column {
    display: grid;
    gap: 18px;
}

.ecc-system-group {
    position: relative;
    padding: 24px;
    background: var(--white1);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.ecc-system-group::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.ecc-system-group span {
    display: inline-flex;
    margin: 0 8px 10px 0;
    padding: 8px 12px;
    color: var(--accent2);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
}

.ecc-system-core {
    position: relative;
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    border-radius: 26px;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.ecc-system-core::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ecc-system-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    margin-bottom: 18px;
    color: var(--white1);
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    font-family: "Oswald", sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.ecc-system-core h4 {
    position: relative;
    z-index: 1;
    color: var(--white1);
}

.ecc-system-core p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    text-align: center;
}

/* PROJECT EXPERIENCE - LIST TYPE */
.ecc-project-experience {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding: 34px;
    background: var(--white1);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.ecc-project-experience::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.ecc-project-experience::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.ecc-project-experience h3 {
    margin-bottom: 26px;
    color: var(--titles);
}

.ecc-project-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.ecc-project-list-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(75, 85, 99, 0.12);
    transition: padding-left 0.3s ease;
}

.ecc-project-list-item:first-child {
    padding-top: 0;
}

.ecc-project-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ecc-project-list-item:hover {
    padding-left: 10px;
}

.ecc-project-index {
    color: rgba(37, 99, 235, 0.75);
    font-family: "Oswald", sans-serif;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

.ecc-project-list-item p {
    margin: 0 !important;
    color: var(--titles);
    line-height: 1.6;
    text-align: left;
    transition: color 0.3s ease;
}

.ecc-project-list-item i {
    color: var(--accent1);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.ecc-project-list-item:hover p {
    color: var(--accent1);
}

.ecc-project-list-item:hover i {
    transform: translateX(5px);
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .ecc-service-detail {
        padding: 50px 100px;
    }

    .ecc-service-grid {
        gap: 36px;
    }
}

@media (max-width: 1200px) {
    .ecc-service-detail {
        padding: 50px 60px;
    }

    .ecc-service-grid {
        grid-template-columns: 1fr;
    }

    .ecc-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ecc-content {
        padding: 34px;
    }

    .ecc-ems-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecc-system-map {
        grid-template-columns: 1fr;
    }

    .ecc-system-core {
        order: -1;
    }
}

@media (max-width: 1024px) {
    .ecc-service-detail {
        padding: 36px 40px;
    }

    .ecc-approach-grid {
        grid-template-columns: 1fr;
    }

    .ecc-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .ecc-service-detail {
        padding: 28px 20px;
    }

    .ecc-sidebar {
        grid-template-columns: 1fr;
    }

    .ecc-content,
    .ecc-info-card,
    .ecc-contact-card {
        padding: 24px;
        border-radius: 20px;
    }

    .ecc-service-grid {
        gap: 24px;
    }

    .ecc-highlight,
    .ecc-project-experience,
    .ecc-ems-section,
    .ecc-framework-section {
        padding: 22px;
    }

    .ecc-ems-steps {
        grid-template-columns: 1fr;
    }

    .ecc-ems-step,
    .ecc-ems-center,
    .ecc-system-group,
    .ecc-system-core {
        padding: 22px;
        border-radius: 18px;
    }

    .ecc-ems-center strong {
        font-size: 46px;
    }

    .ecc-project-list-item {
        grid-template-columns: 48px 1fr auto;
        gap: 14px;
        padding: 18px 0;
    }

    .ecc-project-index {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .ecc-service-detail {
        padding: 28px 16px;
    }

    .ecc-content,
    .ecc-info-card,
    .ecc-contact-card {
        padding: 22px;
        border-radius: 18px;
    }

    .ecc-approach-card,
    .ecc-system-group,
    .ecc-system-core,
    .ecc-ems-step,
    .ecc-ems-center {
        padding: 18px;
        border-radius: 16px;
    }

    .ecc-highlight,
    .ecc-project-experience,
    .ecc-ems-section,
    .ecc-framework-section {
        padding: 20px;
        border-radius: 16px;
    }

    .ecc-project-list-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ecc-project-list-item i {
        display: none;
    }

    .ecc-project-index {
        font-size: 22px;
    }

    .ecc-system-group span {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
}
