/* ==========================================================================
   WHC — Urinal Hygiene service page (Figma 758:8455)
   Theme: orange (--whc-orange) hero/CTA + apart panel.
   Hero title weight: 300 (Light) per Figma.
   ========================================================================== */

.uh-page {
    background: var(--whc-white);
    --uh-pink-light: #F2BABA;
}

/* ============================================================
   1. Hero (orange) — light-weight title
   ============================================================ */
.uh-hero {
    position: relative;
    background: var(--whc-orange);
    overflow: hidden;
    min-height: 684px;
}
.uh-hero__inner {
    position: relative;
    height: 684px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.uh-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;
}
.uh-hero__title {
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.96px;
    margin: 0;
    color: var(--whc-white);
    font-weight: 300;   /* Light per Figma */
}
.uh-hero__title strong { font-weight: 600; }
.uh-hero__cta { align-self: flex-start; }
.uh-hero__pattern {
    position: absolute;
    top: 0;
    left: calc(50% - 11%);
    width: 684px;
    height: 684px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.uh-hero__pattern img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}
.uh-hero__visual {
    position: relative;
    z-index: 2;
    align-self: stretch;
    overflow: hidden;
}
.uh-hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   2. Intro / dark rounded card
   ============================================================ */
.uh-intro { background: var(--whc-white); padding: 96px 0 64px; }
.uh-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);
}
.uh-intro__heading {
    margin: 0 0 35px;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--whc-white);
}
.uh-intro__heading .accent { color: var(--uh-pink-light); font-weight: 500; }
.uh-intro__text {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--whc-white);
}

/* ============================================================
   3. Why X Matters — icon grid
   ============================================================ */
.uh-why { background: var(--whc-white); padding: 53px 0 80px; }
.uh-why__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}
.uh-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);
}
.uh-why__title strong { font-weight: 600; color: var(--whc-orange); }

.uh-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 304px);
    gap: 33px 42px;
    justify-content: center;
}
.uh-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;
}
.uh-why-card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.uh-why-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.uh-why-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--whc-black);
}

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

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

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

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

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

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

    .uh-why__grid { grid-template-columns: repeat(2, 304px); gap: 0; }

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

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

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

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

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

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

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

.uh-why-card:hover::before {
    --orange-r: 260px;
    opacity: 1;
}

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

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

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

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

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

/* ============================================================
   Product Detail Modal (.uh-modal)
   Variable Features / Benefits blocks driven by JS sections data.
   Ported from HTML 2026-05-22.
   ============================================================ */
.uh-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;
}

.uh-modal.is-open { opacity: 1; pointer-events: auto; }
.uh-modal[hidden] { display: none; }

.uh-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.uh-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;
}

.uh-modal.is-open .uh-modal__dialog { transform: scale(1); }

.uh-modal__content {
    padding: 35px 31px;
    display: flex;
    flex-direction: column;
    gap: 23px;
    overflow-y: auto;
}

.uh-modal__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uh-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;
}

.uh-modal__back:hover { opacity: 0.7; }
.uh-modal__back svg { width: 20px; height: 20px; flex-shrink: 0; }

.uh-modal__title-group {
    display: flex; flex-direction: column; gap: 12px;
}

.uh-modal__title {
    margin: 0; font-size: 28px; font-weight: 600;
    line-height: 1.2; color: var(--whc-black);
}

.uh-modal__text {
    margin: 0; font-size: 16px; line-height: 1.55; color: var(--whc-text);
}

.uh-modal__sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.uh-modal__highlights-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uh-modal__highlights-title {
    margin: 0; font-size: 16px; font-weight: 600;
    line-height: 1.5; color: var(--whc-black);
}

.uh-modal__highlights {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    gap: 8px;
}

.uh-modal__highlights li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--whc-text);
}

.uh-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;
}

.uh-modal__visual {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #DCDCDC 50%, #BABABA 100%);
}

.uh-modal__image {
    position: absolute;
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: contain;
}

@media (max-width: 720px) {
    .uh-modal__dialog {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 88vh;
    }
    .uh-modal__visual { order: -1; padding: 24px; height: 240px; }
    .uh-modal__image { max-height: 200px; }
}

/* QC: reduce the oversized vertical gap between stacked product cards on mobile. */
@media (max-width: 991px) {
    .uh-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) {
    .uh-why-card { height: auto; min-height: 0; }
    .uh-why__grid { gap: 16px 42px; }
}

