/* =========================================================
                  Header Navigation Contrast
========================================================= */

#header .header-top.header-top-semi-transparent {
    background-color: rgba(0, 0, 0, 0.32);
}

@media (min-width: 992px) {
    #header .header-container {
        position: relative;
        z-index: 1;
    }

    #header .header-container::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 100vw;
        transform: translateX(-50%);
        background: rgba(20, 25, 30, 0.2);
        pointer-events: none;
        z-index: 0;
    }

    #header .header-container .header-row {
        position: relative;
        z-index: 1;
    }
}

/* =========================================================
                      Home Hero Typography
========================================================= */

.home-hero-carousel .hero-main-title {
    margin-bottom: 2.6rem;
}

.home-hero-carousel .hero-slogan {
    display: block;
    font-size: clamp(2.4rem, 4.8vw, 4.8rem);
    line-height: 1.05;
}

.home-hero-carousel .hero-subtitle {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .home-hero-carousel .hero-main-title {
        margin-bottom: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero-carousel .hero-slogan {
        font-size: clamp(2rem, 9vw, 3.1rem);
    }

    .home-hero-carousel .hero-subtitle {
        font-size: clamp(1.05rem, 4.6vw, 1.35rem);
    }
}

/* =========================================================
                      Key Challenges
========================================================= */

#key-challenges {
    background: #fff;
}

#key-challenges .row.g-4>[class*='col-'] {
    margin-bottom: 1.5rem;
}

.challenge-card {
    position: relative;
    perspective: 1400px;
    min-height: 360px;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.challenge-card-inner {
    position: relative;
    width: 100%;
    min-height: 360px;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.challenge-face {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 16px;
    padding: 24px 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.challenge-front {
    z-index: 2;
}

.challenge-back {
    transform: rotateY(180deg);
}

.challenge-card.is-flipped .challenge-card-inner {
    transform: rotateY(180deg);
}

.challenge-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(41, 126, 87, 0.1);
    color: #297e57;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.challenge-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
}

.challenge-label.solution {
    color: #297e57;
    margin-top: 0;
}

.challenge-title-wrap {
    min-height: 0;
}

.challenge-title {
    font-size: 24px;
    line-height: 1.32;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.challenge-text {
    font-size: 15px;
    line-height: 1.65;
    color: #666;
    margin-bottom: 0;
}

.challenge-text strong {
    color: #222;
    font-weight: 700;
}

.challenge-spacer {
    flex: 1;
}

.challenge-card-hint {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #297e57;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* back */
.case-title {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    text-transform: none;
    letter-spacing: 0;
}

.case-media {
    width: 100%;
    height: auto;
    aspect-ratio: 2.15 / 1;
    border-radius: 12px;
    background: #e9edf1;
    overflow: hidden;
    margin-bottom: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.placeholder-media {
    border: 1px dashed rgba(0, 0, 0, 0.12);
}

.placeholder-media span {
    font-size: 13px;
    font-weight: 600;
    color: #8a94a1;
    letter-spacing: 0.3px;
}

.case-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-copy {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 16px;
}

.case-copy strong {
    color: #222;
    font-weight: 700;
}

.case-link {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #297e57;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: none;
    box-shadow: none;
}

.case-link:hover {
    color: #297e57;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
}

@media (max-width: 1199.98px) {

    .challenge-card,
    .challenge-card-inner {
        min-height: 395px;
    }

    .challenge-title {
        font-size: 22px;
    }

    .case-title {
        font-size: 18px;
    }

}

@media (max-width: 991.98px) and (min-width: 768px) {

    .challenge-card,
    .challenge-card-inner {
        min-height: 345px;
    }
}

@media (max-width: 767.98px) {

    #key-challenges .row.g-4>[class*='col-'] {
        display: flex;
        justify-content: center;
    }

    .challenge-card {
        width: 92%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .challenge-card,
    .challenge-card-inner {
        min-height: 362px;
    }

    .challenge-face {
        padding: 22px 20px;
        overflow-y: auto;
    }

    .challenge-title {
        font-size: 20px;
    }

        .challenge-text,
    .case-copy {
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {

    .challenge-face {
        padding: 20px 18px;
    }

    .case-media {
        margin-bottom: 12px;
    }
}
/* =========================================================
                 ORE CASE CATEGORIES
========================================================= */

#ore-case-categories {
    background: #fff;
}

.ore-case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 540px));
    justify-content: center;
    gap: 24px 26px;
    align-items: stretch;
}

.ore-case-card {
    min-height: 387px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    color: inherit;
}

.ore-case-card:hover {
    transform: translateY(-2px);
    border-color: rgba(41, 126, 87, 0.16);
    box-shadow: 0 16px 38px rgba(31, 41, 55, 0.11);
    text-decoration: none;
}

.ore-case-media {
    height: 255px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.ore-case-media img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.ore-case-body {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}

.ore-case-top {
    min-height: auto;
}

.ore-case-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 700;
    color: #222;
    text-transform: none;
    letter-spacing: 0;
}

.ore-case-text {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.62;
    color: #5f6b66;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.ore-case-tags {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ore-case-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(41, 126, 87, 0.08);
    color: #297e57;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.ore-case-link {
    margin-top: 14px;
    padding-top: 0;
    font-size: 14px;
    font-weight: 600;
    color: #297e57;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ore-case-card:hover .ore-case-link {
    color: #236a49;
}

@media (max-width: 1199.98px) {
    .ore-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ore-case-card {
        min-height: 367px;
    }

    .ore-case-media {
        height: 230px;
    }

    .ore-case-title {
        font-size: 22px;
    }
}

@media (max-width: 991.98px) {
    .ore-case-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ore-case-card {
        min-height: auto;
    }

    .ore-case-media {
        height: 220px;
    }

}

@media (max-width: 767.98px) {
    .ore-case-media {
        height: 190px;
    }

    .ore-case-body {
        padding: 0 16px 16px;
    }

    .ore-case-title {
        font-size: 21px;
    }

    .ore-case-text {
        font-size: 13px;
        line-height: 1.65;
        -webkit-line-clamp: 4;
    }

    .ore-case-link {
        padding-top: 18px;
    }
}

/* Right: in-house technology card on the homepage. */
.why-hpy-tech-card {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.why-hpy-tech-image-box {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 260px;
    padding: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.why-hpy-tech-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.why-hpy-tech-image.is-changing {
    opacity: 0.58;
    transform: scale(1.01);
}

.why-hpy-tech-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.why-hpy-tech-copy {
    flex: 0 0 auto;
}

.why-hpy-tech-title {
    margin: 0 0 12px;
    color: #222;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.12;
}

.why-hpy-tech-text {
    margin: 0;
    color: #5f6b66;
    font-size: 15px;
    line-height: 1.72;
}

.why-hpy-tech-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.why-hpy-tech-tab {
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid rgba(41, 126, 87, 0.14);
    border-radius: 12px;
    background: #fff;
    color: #297e57;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease;
}

.why-hpy-tech-tab:hover,
.why-hpy-tech-tab.is-active {
    border-color: #297e57;
    background: #297e57;
    color: #fff;
    box-shadow: 0 10px 20px rgba(41, 126, 87, 0.16);
}


.why-hpy-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #297e57;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.why-hpy-primary-link:hover {
    color: #236a49;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 1199.98px) {
    .why-hpy-tech-card { min-height: 485px; }
    .why-hpy-tech-title { font-size: 25px; }
    .why-hpy-tech-text { font-size: 14px; line-height: 1.68; }
    .why-hpy-tech-image-box { height: 245px; }
}

@media (max-width: 991.98px) {
    .why-hpy-tech-card { min-height: auto; padding: 18px; }
    .why-hpy-tech-title { font-size: 24px; }
    .why-hpy-tech-text { font-size: 14px; line-height: 1.68; }
    .why-hpy-tech-image-box { height: 250px; }
    .why-hpy-tech-tabs { grid-template-columns: 1fr; }
    .why-hpy-tech-tab { text-align: left; }
}

@media (max-width: 767.98px) {
    .why-hpy-tech-card { padding: 18px; }
    .why-hpy-tech-title { font-size: 22px; }
    .why-hpy-tech-text { font-size: 14px; line-height: 1.65; }
    .why-hpy-tech-image-box { height: 220px; margin-bottom: 16px; }
    .why-hpy-tech-tabs { gap: 8px; }
    .why-hpy-tech-tab { min-height: 44px; font-size: 13px; }
}

/* =========================================================
                   Products Showcase
========================================================= */

#product-showcase {
    background: #fff;
}

.product-showcase-card {
    height: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.07);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-showcase-card:hover {
    transform: translateY(-2px);
    border-color: rgba(41, 126, 87, 0.16);
    box-shadow: 0 16px 38px rgba(31, 41, 55, 0.11);
    text-decoration: none;
}

.product-showcase-media {
    position: relative;
    height: 205px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    overflow: hidden;
}

.product-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-showcase-media-placeholder {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.product-showcase-placeholder-inner {
    width: 100%;
    height: 100%;
    border: 1.5px dashed rgba(41, 126, 87, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7b8b84;
    gap: 10px;
    text-align: center;
}

.product-showcase-placeholder-inner i {
    font-size: 26px;
    color: rgba(41, 126, 87, 0.55);
}

.product-showcase-placeholder-inner span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.product-showcase-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3px;
}

.product-showcase-body {
    padding: 17px 18px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}

.product-showcase-copy {
    min-height: 0;
}

.product-showcase-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 700;
    color: #222;
    text-transform: none;
    letter-spacing: 0;
}

.product-showcase-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.62;
    color: #5f6b66;
}

.product-showcase-link {
    margin-top: auto;
    padding-top: 15px;
    font-size: 14px;
    font-weight: 700;
    color: #297e57;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-showcase-card:hover .product-showcase-link {
    color: #236a49;
}

@media (max-width: 1199.98px) {
    .product-showcase-media {
        height: 192px;
    }

    .product-showcase-title {
        font-size: 21px;
    }
}

@media (max-width: 991.98px) {
    .product-showcase-media {
        height: 195px;
    }

    .product-showcase-title {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .product-showcase-media {
        height: 180px;
        padding: 14px;
    }

    .product-showcase-body {
        padding: 16px 16px 15px;
    }

    .product-showcase-copy {
        min-height: auto;
    }

    .product-showcase-title {
        font-size: 19px;
    }

    .product-showcase-text {
        font-size: 13px;
        line-height: 1.6;
    }

}

/* =========================================================
                 Home Sustainability Bridge
========================================================= */

#home-sustainability {
    background: #f3f7f5;
}

.home-sustainability-strip {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 16px;
    align-items: stretch;
}

.home-sustainability-copy,
.home-sustainability-metric {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.home-sustainability-copy {
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-sustainability-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a948f;
    margin-bottom: 10px;
}

.home-sustainability-copy h4 {
    margin: 0 0 12px 0;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
    color: #222;
    text-transform: none;
    letter-spacing: 0;
}

.home-sustainability-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #5d6964;
}

.home-sustainability-note-link {
    margin-top: 16px;
    align-self: flex-start;
}

.home-sustainability-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-sustainability-metric {
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #1f2a37;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-sustainability-metric::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.35) 0%, rgba(17, 24, 39, 0.62) 100%);
    z-index: 0;
}

.home-sustainability-metric>* {
    position: relative;
    z-index: 1;
}

.home-sustainability-metric-water {
    background-image: url("../../img/index/sustainability/water.webp");
}

.home-sustainability-metric-energy {
    background-image: url("../../img/index/sustainability/electric.webp");
}

.home-sustainability-metric-co2 {
    background-image: url("../../img/index/sustainability/co2.webp");
}

.home-sustainability-metric-value {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    margin-bottom: 12px;
}

.home-sustainability-metric-label {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.home-sustainability-footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.home-sustainability-link {
    color: #297e57;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-sustainability-link:hover {
    color: #236a49;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .home-sustainability-footer {
        justify-content: flex-start;
    }
}

/* =========================================================
                    Home Service Process
========================================================= */

#home-service-process {
    background: #fff;
}

.home-service-card {
    position: relative;
    height: 100%;
    min-height: 260px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
    padding: 34px 28px 32px;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow: hidden;
}
.home-service-step {
    position: absolute;
    right: 34px;
    bottom: 18px;
    color: rgba(41, 126, 87, 0.08);
    font-size: clamp(122px, 10vw, 172px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.home-service-title {
    position: relative;
    z-index: 1;
    margin: 0 0 16px 0;
    font-size: 24px;
    line-height: 1.28;
    font-weight: 700;
    color: #222;
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-service-list {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-left: 0;
    flex-grow: 0;
    list-style: none;
    text-align: center;
}
.home-service-list li {
    color: #5c6762;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
    text-align: center;
}
.home-service-list li:last-child {
    margin-bottom: 0;
}

.home-service-list li::marker {
    color: #297e57;
}

.home-service-cta {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(41, 126, 87, 0.12);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.home-service-cta-copy h4 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    text-transform: none;
    letter-spacing: 0;
}

.home-service-cta-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #5d6964;
}

.home-service-cta-actions {
    flex-shrink: 0;
}
.home-service-cta-actions .btn.btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 1199.98px) {
    .home-sustainability-copy h4 {
        font-size: 24px;
    }

    .home-sustainability-metric-value {
        font-size: 36px;
    }

    .home-service-title {
        font-size: 22px;
        min-height: 58px;
    }

    .home-service-cta-copy h4 {
        font-size: 22px;
    }
}

@media (max-width: 991.98px) {
    .home-sustainability-strip {
        grid-template-columns: 1fr;
    }

    .home-service-title {
        min-height: auto;
    }

    .home-service-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {

    .home-sustainability-copy,
    .home-sustainability-metric,
    .home-service-card,
    .home-service-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-sustainability-metrics {
        grid-template-columns: 1fr;
    }

    .home-sustainability-copy h4 {
        font-size: 22px;
    }

    .home-sustainability-metric-value {
        font-size: 34px;
    }

    .home-sustainability-metric-label {
        font-size: 14px;
    }

    .home-service-title {
        font-size: 21px;
        min-height: auto;
    }

    .home-service-list li {
        font-size: 14px;
        line-height: 1.65;
    }

    .home-service-cta-copy h4 {
        font-size: 21px;
    }
}
/* 2026-07-08: normalize product machine images after trimmed WebP assets */
#product-showcase .product-showcase-media {
    padding: 46px 18px 16px;
    box-sizing: border-box;
}

#product-showcase .product-showcase-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    #product-showcase .product-showcase-media {
        padding: 44px 14px 14px;
    }
}

/* =========================================================
   Homepage solution and company introduction
   ========================================================= */
#hpy-solution { background: #f3f7f5; }

.home-solution-layout > [class*='col-'] { display: flex; }
.solution-tech-frame,
.home-company-overview {
    width: 100%;
    border: 1px solid rgba(41, 126, 87, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.solution-principle-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(41, 126, 87, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.solution-principle-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    overflow: hidden;
    border-radius: 13px;
    background: #fbfcfb;
}

.solution-principle-visual img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: contain;
}

.solution-principle-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 0;
    margin: 20px 0 18px;
    list-style: none;
}

.solution-principle-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.solution-principle-steps li > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(41, 126, 87, 0.1);
    color: #297e57;
    font-size: 11px;
    font-weight: 800;
}

.solution-principle-steps strong,
.solution-principle-steps small { display: block; }
.solution-principle-steps strong { color: #27312d; font-size: 14px; line-height: 1.35; }
.solution-principle-steps small { margin-top: 2px; color: #7a8580; font-size: 12px; line-height: 1.35; }
.solution-principle-card .why-hpy-primary-link { margin-top: auto; }
.solution-tech-frame {
    display: flex;
    flex-direction: column;
    padding: 18px;
}
#hpy-solution .why-hpy-tech-card {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
#hpy-solution .why-hpy-tech-image-box { height: 230px; }

#why-hpy { background: #f3f7f5; }
.home-company-overview {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    overflow: hidden;
}

.home-company-visual { position: relative; min-height: 405px; }
.home-company-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-company-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 28, 23, 0.02), rgba(14, 28, 23, 0.38)); }
.home-company-visual span { position: absolute; z-index: 1; left: 24px; bottom: 22px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }


.home-company-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 22px 0;
    margin: 22px 0 18px;
    border-top: 1px solid rgba(41, 126, 87, 0.12);
    border-bottom: 1px solid rgba(41, 126, 87, 0.12);
}

.home-company-metrics div { min-width: 0; }
.home-company-metrics strong,
.home-company-metrics span { display: block; }
.home-company-metrics strong { color: #297e57; font-size: 26px; font-weight: 800; line-height: 1.1; }
.home-company-metrics span { margin-top: 6px; color: #56635d; font-size: 13px; font-weight: 600; line-height: 1.35; }

@media (max-width: 1199.98px) {
    #hpy-solution .why-hpy-tech-image-box { height: 215px; }
}

@media (max-width: 991.98px) {
    .home-solution-layout > [class*='col-'] { display: block; }
    #hpy-solution .why-hpy-tech-image-box { height: 250px; }
    .home-company-overview { grid-template-columns: 1fr; }
    .home-company-visual { min-height: 290px; }
}

@media (max-width: 767.98px) {
    .home-company-visual { min-height: 220px; }
    .home-company-metrics { gap: 12px 8px; margin: 20px 0 16px; padding: 18px 0; }
    .home-company-metrics strong { font-size: 22px; }
    .home-company-metrics span { font-size: 12px; }
}
/* Restored company story card: content remains primary, with the headquarters image as its companion. */
.home-company-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-company-details {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 38px 30px;
}

.home-company-details-copy,
.home-company-details > .home-company-metrics,
.home-company-details > .why-hpy-primary-link {
    position: relative;
    z-index: 1;
}

.home-company-mark {
    margin-bottom: 10px;
    color: #297e57;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.35;
}

.home-company-details h4 {
    display: flex;
    align-items: center;
    max-width: 82%;
    min-height: 1.3em;
    margin: 0 0 3px;
    color: #222;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.home-company-details p {
    margin: 0 0 12px;
    color: #5f6b66;
    font-size: 15px;
    line-height: 1.7;
}

.home-company-watermark {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 112px;
    opacity: 0.1;
    pointer-events: none;
}

.home-company-details .home-company-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: auto 0 18px;
    border: 0;
}

.home-company-details .home-company-metrics div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(41, 126, 87, 0.08);
    border-radius: 12px;
    background: rgba(246, 249, 247, 0.96);
}

.home-company-details .home-company-metrics strong,
.home-company-details .home-company-metrics span { display: block; }
.home-company-details .home-company-metrics strong { color: #297e57; font-size: 27px; font-weight: 800; line-height: 1.05; }
.home-company-details .home-company-metrics span { margin-top: 6px; color: #56635d; font-size: 13px; font-weight: 600; line-height: 1.35; }
.home-company-details > .why-hpy-primary-link { margin-top: 0; }

@media (max-width: 1199.98px) {
    .home-company-details { padding: 30px 32px 26px; }
    .home-company-details h4 { font-size: 28px; }
}

@media (max-width: 991.98px) {
    .home-company-overview { grid-template-columns: 1fr; }
    .home-company-details { padding: 30px; }
    .home-company-visual { min-height: 300px; }
}

@media (max-width: 767.98px) {
    .home-company-details { padding: 24px 20px 20px; }
    .home-company-details h4 { max-width: 82%; font-size: 24px; }
    .home-company-details p { font-size: 14px; line-height: 1.65; }
    .home-company-details .home-company-metrics { gap: 10px; margin: 18px 0 16px; }
    .home-company-details .home-company-metrics strong { font-size: 23px; }
    .home-company-details .home-company-metrics span { font-size: 12px; }
}
/* Equal-width ore-sorting principle panels. */
#hpy-solution .solution-principle-card,
#hpy-solution .solution-tech-frame { height: 100%; }

@media (max-width: 767.98px) {
    .solution-principle-card { padding: 14px; }
    .solution-principle-visual,
    .solution-principle-visual img { min-height: 190px; height: 190px; }
    .solution-principle-steps { gap: 10px; margin: 16px 0; }
    .solution-principle-steps li { gap: 8px; }
    .solution-principle-steps li > span { width: 30px; height: 30px; font-size: 10px; }
    .solution-principle-steps strong { font-size: 13px; }
    .solution-principle-steps small { font-size: 11px; }
}
.solution-principle-copy { padding: 7px 4px 18px; }
.solution-principle-copy h4 {
    margin: 0 0 9px;
    color: #222;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}
.solution-principle-copy p {
    margin: 0;
    color: #5f6b66;
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .solution-principle-copy { padding: 5px 2px 15px; }
    .solution-principle-copy h4 { font-size: 21px; }
    .solution-principle-copy p { font-size: 13px; }
}
/* Let the self-developed technology image use the remaining column height beside the four-step principle card. */
@media (min-width: 992px) {
    #hpy-solution .solution-tech-frame,
    #hpy-solution .why-hpy-tech-card { height: 100%; }

    #hpy-solution .why-hpy-tech-image-box {
        flex: 1 1 auto;
        height: auto;
        min-height: 230px;
    }
}
@media (min-width: 992px) {
    #hpy-solution .why-hpy-tech-copy {
        flex: 0 0 176px;
        min-height: 176px;
    }

    #hpy-solution .why-hpy-tech-image-box {
        flex: 1 1 auto;
        height: auto;
        min-height: 230px;
    }
}
/* Keep the right panel stable while its three capability states switch. */
@media (min-width: 992px) {
    #hpy-solution .why-hpy-tech-card {
        display: flex;
        height: 100%;
    }

    #hpy-solution .why-hpy-tech-copy {
        flex: 0 0 176px;
        min-height: 176px;
    }

    #hpy-solution .why-hpy-tech-image-box {
        flex: 1 1 auto;
        min-height: 230px;
        height: auto;
    }
}

/* Use a consistent media frame without creating artificial empty space below either card. */
#hpy-solution .solution-principle-card .why-hpy-primary-link { margin-top: 0; }

@media (min-width: 992px) {
    #hpy-solution .solution-tech-frame,
    #hpy-solution .why-hpy-tech-card {
        height: auto;
        flex: 0 0 auto;
    }

    #hpy-solution .why-hpy-tech-image-box {
        flex: 0 0 230px;
        height: 230px;
        min-height: 230px;
    }

    #hpy-solution .why-hpy-tech-content,
    #hpy-solution .why-hpy-tech-copy {
        flex: 0 0 auto;
        min-height: 0;
    }
}
/* Match the technology panel to the principle panel: media absorbs the remaining height. */
.solution-tech-frame { position: relative; }

@media (min-width: 992px) {
    #hpy-solution .solution-tech-frame,
    #hpy-solution .why-hpy-tech-card {
        height: 100%;
        flex: 1 1 auto;
    }

    #hpy-solution .why-hpy-tech-copy {
        flex: 0 0 124px;
        min-height: 124px;
    }

    #hpy-solution .why-hpy-tech-image-box {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }
}

/* Homepage section small headings: one consistent scale. */
#key-challenges h4,
#hpy-solution h4,
#ore-case-categories h4,
#why-hpy h4,
#product-showcase h4,
#home-sustainability h4,
#home-service-process h4 {
    font-size: 24px;
}
/* The principle card sets the desktop row height; the technology media fills the remaining fixed space. */
@media (min-width: 992px) {
    #hpy-solution .solution-principle-card {
        height: auto;
        align-self: flex-start;
    }

    #hpy-solution .solution-tech-frame {
        align-self: flex-start;
    }

    #hpy-solution .why-hpy-tech-card {
        min-height: 0;
        overflow: hidden;
    }

    #hpy-solution .why-hpy-tech-image-box {
        min-height: 0;
        overflow: hidden;
    }
}
/* Increase all three in-house technology visuals inside their fixed media frame without changing card height. */
#hpy-solution .why-hpy-tech-image {
    transform: scale(1.08);
}
#hpy-solution .why-hpy-tech-image.is-changing {
    transform: scale(1.1);
}
/* Let the media frame, not the text wrapper, absorb the unused height in the fixed technology panel. */
@media (min-width: 992px) {
    #hpy-solution .why-hpy-tech-content {
        flex: 0 0 auto;
    }

    #hpy-solution .why-hpy-tech-image-box {
        flex: 1 1 auto;
    }
}
/* Keep the three states aligned without leaving a gap below the description. */
@media (min-width: 992px) {
    #hpy-solution .why-hpy-tech-copy {
        display: flex;
        flex: 0 0 124px;
        flex-direction: column;
        justify-content: space-between;
        min-height: 124px;
    }

    #hpy-solution .why-hpy-tech-title,
    #hpy-solution .why-hpy-tech-text {
        margin: 0;
    }

    #hpy-solution .why-hpy-tech-tabs {
        margin-top: 0;
    }
}
/* Position the technology title and description as one text group within the fixed panel. */
@media (min-width: 992px) {
    #hpy-solution .why-hpy-tech-copy {
        box-sizing: border-box;
        justify-content: flex-start;
        padding-top: 12px;
    }

    #hpy-solution .why-hpy-tech-title {
        margin: 0 0 10px;
    }

    #hpy-solution .why-hpy-tech-text {
        margin: 0;
    }
}

/* The ferrous-metal source is unusually wide: compress its own visual width, independent of card width. */
.ore-case-card[href*="type=ferrous-metals"] .ore-case-media img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scaleX(.84);
    transform-origin: center;
}

/* Keep homepage body copy at one readable scale; headings, links and labels retain their own styles. */
#key-challenges p,
#hpy-solution p,
#ore-case-categories p,
#why-hpy p,
#product-showcase p,
#home-sustainability p,
#home-service-process p,
#home-service-process li {
    font-size: 14px;
}
