/* ==========================================================================
   WHC — Hand Hygiene service page (Figma 758:8645)
   Theme: dark green (--whc-green-dark) hero/CTA/apart, green-light accent.
   Hero title weight: 300 (Light) per Figma.
   ========================================================================== */

.hh-page {
    background: var(--whc-white);
    --hh-green-light: #4ABDAC;
}

/* ============================================================
   1. Hero (dark green) — light-weight title
   ============================================================ */
.hh-hero {
    position: relative;
    background: var(--whc-green-dark);
    overflow: hidden;
    min-height: 684px;
}
.hh-hero__inner {
    position: relative;
    height: 684px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.hh-hero__content {
    position: relative;
    z-index: 2;
    color: var(--whc-white);
    padding-left: var(--container-pad);
    width: 100%;
    max-width: calc(477px + var(--container-pad));
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.hh-hero__title {
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.96px;
    margin: 0;
    color: var(--whc-white);
    font-weight: 300;
}
.hh-hero__title strong { font-weight: 600; }
.hh-hero__cta { align-self: flex-start; }
.hh-hero__pattern {
    position: absolute;
    top: 0;
    left: calc(50% - 11%);
    width: 684px;
    height: 684px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.hh-hero__pattern img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}
.hh-hero__visual {
    position: relative;
    z-index: 2;
    align-self: stretch;
    overflow: hidden;
}
.hh-hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   2. Intro / dark rounded card (supports multiple paragraphs)
   ============================================================ */
.hh-intro { background: var(--whc-white); padding: 96px 0 64px; }
.hh-intro__inner {
    max-width: min(1280px, calc(100% - 2 * var(--container-pad)));
    margin: 0 auto;
    padding: 64px 102px;
    background: #343A40;
    border-radius: 24px;
    color: var(--whc-white);
}
.hh-intro__heading {
    margin: 0 0 35px;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--whc-white);
}
.hh-intro__heading .accent { color: var(--hh-green-light); font-weight: 500; }
.hh-intro__text {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--whc-white);
}
.hh-intro__text + .hh-intro__text { margin-top: 24px; }

/* ============================================================
   3. Why X Matters — flex-wrap icon grid (3+2 layout)
   ============================================================ */
.hh-why { background: var(--whc-white); padding: 53px 0 80px; }
.hh-why__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}
.hh-why__title {
    margin: 0 auto 72px;
    text-align: center;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.96px;
    color: var(--whc-black);
}
.hh-why__title strong { font-weight: 600; color: var(--hh-green-light); }
.hh-why__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 33px 42px;
}
.hh-why-card {
    position: relative;
    width: 304px;
    height: 257px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    gap: 16px;
}
.hh-why-card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hh-why-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.hh-why-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--whc-black);
}

/* ============================================================
   4. What Sets WHC Apart — dark green + image right
   ============================================================ */
.hh-apart {
    position: relative;
    background: var(--whc-green-dark);
    overflow: hidden;
    height: 590px;
}
.hh-apart__inner {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.hh-apart__content {
    padding: 0 var(--container-pad);
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 670px;
    color: var(--whc-white);
}
.hh-apart__title {
    margin: 0;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.96px;
    color: var(--whc-white);
}
.hh-apart__list { display: flex; flex-direction: column; gap: 24px; }
.hh-apart__item { display: flex; align-items: center; gap: 24px; }
.hh-apart__item-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.hh-apart__item-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.hh-apart__item-text {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--whc-white);
}
.hh-apart__visual {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50vw;
    overflow: hidden;
}
.hh-apart__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   5. Products — 3-column grid
   ============================================================ */
.hh-products { background: var(--whc-white); padding: 58px 0 80px; }
.hh-products__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}
.hh-products__heading {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 72px;
}
.hh-products__title {
    margin: 0;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.96px;
    color: var(--whc-black);
}
.hh-products__title strong { font-weight: 600; color: var(--whc-grey-dark); }
.hh-products__sub {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--whc-black);
}
.hh-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 46px 50px;
}
.hh-product {
    border: 1px solid #C5C5C5;
    border-radius: 12px;
    overflow: hidden;
    background: var(--whc-white);
    display: flex;
    flex-direction: column;
    min-height: 504px;
}
.hh-product__image {
    width: 100%;
    height: 248px;
    background: linear-gradient(180deg, #FFFFFF 0%, #DADADA 50%, #B5B5B5 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.hh-product__image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hh-product__body {
    padding: 23px 22px 32px;
    display: flex;
    flex-direction: column;
    gap: 31px;
    flex: 1;
}
.hh-product__heading { display: flex; flex-direction: column; gap: 12px; }
.hh-product__title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--whc-black);
}
.hh-product__text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--whc-black);
}
.hh-product__cta {
    background: var(--whc-white);
    color: var(--whc-orange);
    border: 1px solid var(--whc-orange);
    width: 153px;
    margin-top: auto;
}
.hh-product__cta:hover { background: var(--whc-orange); color: var(--whc-white); }

/* ============================================================
   6. CTA Banner — dark green
   ============================================================ */
.hh-cta {
    position: relative;
    background: var(--whc-green-dark);
    overflow: hidden;
    min-height: 580px;
}
.hh-cta__inner {
    position: relative;
    height: 580px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.hh-cta__pattern {
    position: absolute;
    top: -9px;
    left: calc(50% - 270px);
    width: 598px; height: 598px;
    pointer-events: none;
    z-index: 3;
}
.hh-cta__pattern img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}
.hh-cta__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: calc(424px + var(--container-pad));
    padding-left: var(--container-pad);
    color: var(--whc-white);
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.hh-cta__text { display: flex; flex-direction: column; gap: 24px; }
.hh-cta__title {
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--whc-white);
}
.hh-cta__sub {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 380px;
    color: var(--whc-white);
}
.hh-cta__cta { width: 153px; padding-left: 0; padding-right: 0; }
.hh-cta__visual { position: relative; z-index: 2; align-self: stretch; overflow: hidden; }
.hh-cta__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1280px) {
    .hh-hero__pattern { display: none; }
    .hh-intro__inner { padding: 56px 64px; }
    .hh-intro__heading { font-size: 32px; }
    .hh-why__title,
    .hh-products__title { font-size: 40px; }
    .hh-apart { height: auto; min-height: 540px; }
    .hh-apart__inner { min-height: 540px; }
    .hh-apart__title { font-size: 40px; }
    .hh-products__grid { grid-template-columns: repeat(2, 1fr); }
    .hh-cta__title { font-size: 36px; }
}
@media (max-width: 991px) {
    .hh-hero__inner,
    .hh-apart__inner,
    .hh-cta__inner { grid-template-columns: 1fr; }

    .hh-hero { min-height: auto; }
    .hh-hero__inner { height: auto; padding-top: 0; padding-bottom: 0; }
    .hh-hero__content { padding: 64px var(--container-pad) 48px; max-width: none; }
    .hh-hero__visual { height: 320px; }
    .hh-why__title { margin-bottom: 0; }

    .hh-intro { padding: 64px 0 32px; }
    .hh-intro__inner { padding: 48px 32px; border-radius: 16px; }
    .hh-intro__heading { font-size: 28px; }
    .hh-intro__text { font-size: 18px; }

    .hh-why__grid { gap: 0; }

    .hh-apart { height: auto; }
    .hh-apart__inner { min-height: auto; }
    .hh-apart__content { padding: 64px var(--container-pad); max-width: 100%; }
    .hh-apart__visual { position: static; width: 100%; height: 320px; }

    .hh-products__grid { grid-template-columns: 1fr; justify-items: center; }
    .hh-product { width: 100%; max-width: 393px; }

    .hh-cta { min-height: auto; }
    .hh-cta__inner { height: auto; }
    .hh-cta__copy { padding: 64px var(--container-pad); max-width: none; }
    .hh-cta__visual { height: 320px; }
    .hh-cta__pattern { display: none; }
}
@media (max-width: 600px) {
    .hh-hero__title,
    .hh-why__title,
    .hh-apart__title,
    .hh-products__title { font-size: 32px; letter-spacing: -0.5px; }
    .hh-cta__title { font-size: 28px; }
    .hh-intro__inner { padding: 40px 24px; }
    .hh-intro__heading { font-size: 24px; }
    .hh-intro__text { font-size: 16px; }
    .hh-why-card { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* ============================================================
   Why-card corner-fill hover animation (green)
   Ported from HTML 2026-05-22.
   ============================================================ */

@property --green-r {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

.hh-why-card {
    background-color: var(--whc-white);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hh-why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    --green-r: 0px;
    background-image:
        radial-gradient(circle var(--green-r) at 0%   0%,   var(--whc-green-dark) 99%, transparent 100%),
        radial-gradient(circle var(--green-r) at 100% 0%,   var(--whc-green-dark) 99%, transparent 100%),
        radial-gradient(circle var(--green-r) at 0%   100%, var(--whc-green-dark) 99%, transparent 100%),
        radial-gradient(circle var(--green-r) at 100% 100%, var(--whc-green-dark) 99%, transparent 100%);
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: --green-r 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity   0.55s ease;
}

.hh-why-card:hover::before {
    --green-r: 260px;
    opacity: 1;
}

.hh-why-card__icon,
.hh-why-card__title {
    position: relative;
    z-index: 1;
}

.hh-why-card__icon img {
    transition: filter 0.25s ease;
}

.hh-why-card:hover .hh-why-card__icon img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease 0.05s;
}

.hh-why-card__title {
    transition: color 0.25s ease;
}

.hh-why-card:hover .hh-why-card__title {
    color: var(--whc-white);
    transition: color 0.3s ease 0.1s;
}

/* ============================================================
   Product Detail Modal (.hh-modal) — green-themed
   Variable sections built dynamically by JS. Ported from HTML 2026-05-22.
   ============================================================ */
.hh-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.hh-modal.is-open { opacity: 1; pointer-events: auto; }
.hh-modal[hidden] { display: none; }
.hh-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); cursor: pointer; }
.hh-modal__dialog {
    position: relative; width: 903px; max-width: 100%;
    height: 583px; max-height: 100%;
    background: #F8F8F8; border-radius: 16px;
    box-shadow: 4px 4px 11.4px 0 rgba(0, 0, 0, 0.12);
    overflow: hidden; display: grid; grid-template-columns: 1fr 412px;
    transform: scale(0.96); transition: transform 0.25s ease;
}
.hh-modal.is-open .hh-modal__dialog { transform: scale(1); }
.hh-modal__content { padding: 35px 31px; display: flex; flex-direction: column; gap: 23px; overflow-y: auto; }
.hh-modal__head { display: flex; flex-direction: column; gap: 16px; }
.hh-modal__back {
    background: transparent; border: 0; padding: 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--whc-black); font-family: 'Archivo', 'Metropolis', sans-serif;
    font-size: 16px; font-weight: 600; line-height: 1.4;
    align-self: flex-start;
}
.hh-modal__back:hover { opacity: 0.7; }
.hh-modal__back svg { width: 20px; height: 20px; flex-shrink: 0; }
.hh-modal__title-group { display: flex; flex-direction: column; gap: 12px; }
.hh-modal__title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--whc-black); }
.hh-modal__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--whc-text); }
.hh-modal__sections { display: flex; flex-direction: column; gap: 24px; }
.hh-modal__highlights-block { display: flex; flex-direction: column; gap: 5px; }
.hh-modal__highlights-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--whc-black); }
.hh-modal__highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hh-modal__highlights li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; color: var(--whc-text); }
.hh-modal__highlights li::before {
    content: ""; position: absolute; left: 0; top: 5px;
    width: 14px; height: 14px;
    background: url("../icons/star-bullet.svg") no-repeat center/contain;
}
.hh-modal__visual {
    position: relative; overflow: hidden;
    background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #D8E6E2 50%, #B8CFCB 100%);
}
.hh-modal__image {
    position: absolute; inset: 14px;
    width: calc(100% - 28px); height: calc(100% - 28px);
    object-fit: contain;
}
@media (max-width: 720px) {
    .hh-modal__dialog { grid-template-columns: 1fr; height: auto; max-height: 88vh; }
    .hh-modal__visual { order: -1; padding: 24px; height: 240px; }
    .hh-modal__image { max-height: 200px; }
}

/* QC: reduce the oversized vertical gap between stacked product cards on mobile. */
@media (max-width: 991px) {
    .hh-products__grid { gap: 24px; }
}

/* QC: the benefit cards are a fixed 257px tall, so stacked on mobile they leave
   large vertical gaps. Let them hug their content and tighten the row gap. */
@media (max-width: 991px) {
    .hh-why-card { height: auto; min-height: 0; }
    .hh-why__grid { gap: 16px 42px; }
}

