/* winnovation_services.html — 服務介紹 */

.wh-page-hero__title em {
    font-style: italic;
    font-weight: inherit;
}

/* —— Full-bleed visual break —— */
.wh-bleed {
    margin: 0;
    width: 100%;
    max-height: min(52vh, 560px);
    overflow: hidden;
    line-height: 0;
}

.wh-bleed img {
    width: 100%;
    height: min(52vh, 560px);
    object-fit: cover;
    display: block;
}

/* —— Method (intro + image + steps) —— */
.wh-method__intro {
    display: grid;
    grid-template-columns: repeat(var(--wh-cols), minmax(0, 1fr));
    gap: var(--wh-gap);
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.wh-method__intro .wh-section__head {
    grid-column: span 12;
    margin-bottom: 0;
}

.wh-method__media {
    grid-column: span 12;
    margin: 0;
    overflow: hidden;
}

.wh-method__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

@media (min-width: 960px) {
    .wh-method__intro .wh-section__head {
        grid-column: span 6;
    }

    .wh-method__media {
        grid-column: span 6;
    }
}

/* —— Values / steps —— */
.wh-values {
    display: grid;
    grid-template-columns: repeat(var(--wh-cols), minmax(0, 1fr));
    gap: var(--wh-gap);
}

.wh-value {
    grid-column: span 12;
    padding: clamp(24px, 3vw, 32px) 0;
    border-top: 1px solid var(--wh-line);
}

@media (min-width: 640px) {
    .wh-value {
        grid-column: span 4;
    }
}

.wh-value h3 {
    margin: 0 0 8px;
    font-size: var(--wh-fs-h3);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wh-value p {
    margin: 0;
    font-size: var(--wh-fs-small);
    line-height: 1.65;
    color: var(--wh-muted);
}

.wh-step__label {
    margin: 0 0 12px;
    font-size: var(--wh-fs-small);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--wh-accent);
}

.wh-section--dark .wh-step__label {
    color: var(--wh-accent);
}

.wh-section--dark .wh-value {
    border-top-color: rgba(243, 245, 247, 0.16);
}

.wh-section--dark .wh-value h3 {
    color: #f3f5f7;
}

.wh-section--dark .wh-value p {
    color: rgba(243, 245, 247, 0.72);
}

/* —— Service group (intro + grid) —— */
.wh-svc-group {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 56px);
}

.wh-svc-group__intro {
    display: grid;
    grid-template-columns: repeat(var(--wh-cols), minmax(0, 1fr));
    gap: var(--wh-gap);
    align-items: center;
}

.wh-svc-group__media,
.wh-svc-group__copy {
    grid-column: span 12;
}

.wh-svc-group__media {
    margin: 0;
    overflow: hidden;
}

.wh-svc-group__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.wh-svc-group__copy .wh-title {
    margin: 0;
}

.wh-svc-group__copy .wh-lead {
    margin-top: 16px;
}

@media (min-width: 960px) {
    .wh-svc-group__media {
        grid-column: span 6;
    }

    .wh-svc-group__copy {
        grid-column: span 6;
    }

    .wh-svc-group--reverse .wh-svc-group__media {
        order: 2;
    }

    .wh-svc-group--reverse .wh-svc-group__copy {
        order: 1;
    }
}

/* —— Service cards —— */
.wh-svc-grid {
    display: grid;
    grid-template-columns: repeat(var(--wh-cols), minmax(0, 1fr));
    gap: var(--wh-gap);
}

.wh-svc-card {
    grid-column: span 12;
    padding: clamp(20px, 3vw, 28px) 0;
    border-top: 1px solid var(--wh-line);
}

@media (min-width: 640px) {
    .wh-svc-card {
        grid-column: span 6;
    }
}

@media (min-width: 960px) {
    .wh-svc-card {
        grid-column: span 3;
    }
}

.wh-svc-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.wh-svc-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wh-svc-card__en {
    margin: 8px 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wh-accent);
}

.wh-svc-card h3 {
    margin: 8px 0 0;
    font-size: var(--wh-fs-h3);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wh-svc-card p:last-child {
    margin: 8px 0 0;
    font-size: var(--wh-fs-small);
    line-height: 1.6;
    color: var(--wh-muted);
}

.wh-section--dark .wh-svc-card {
    border-top-color: rgba(243, 245, 247, 0.16);
}

.wh-section--dark .wh-svc-card h3 {
    color: #f3f5f7;
}

.wh-section--dark .wh-svc-card p:last-child {
    color: rgba(243, 245, 247, 0.72);
}

/* —— Platform spotlight (single service) —— */
.wh-svc-spotlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
    padding: clamp(28px, 4vw, 40px) 0;
    border-top: 1px solid var(--wh-line);
}

.wh-svc-spotlight .wh-svc-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
}

.wh-svc-spotlight h3 {
    margin: 8px 0 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wh-svc-spotlight p:last-child {
    margin: 12px 0 0;
    max-width: 40em;
    font-size: var(--wh-fs-body);
    line-height: 1.7;
    color: var(--wh-muted);
}

/* —— Goals —— */
.wh-goal-split {
    display: grid;
    grid-template-columns: repeat(var(--wh-cols), minmax(0, 1fr));
    gap: var(--wh-gap);
    align-items: center;
}

.wh-goal-split .wh-section__head,
.wh-goal-split .wh-goal-list {
    grid-column: span 12;
}

@media (min-width: 960px) {
    .wh-goal-split .wh-section__head {
        grid-column: span 5;
    }

    .wh-goal-split .wh-goal-list {
        grid-column: span 7;
    }
}

.wh-goal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .wh-goal-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.wh-goal-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(18px, 2.5vw, 24px) 14px;
    border-top: 1px solid rgba(243, 245, 247, 0.16);
}

.wh-goal-list__num {
    font-size: var(--wh-fs-small);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--wh-accent);
}

.wh-goal-list__txt {
    font-size: var(--wh-fs-body);
    font-weight: 500;
    line-height: 1.4;
    color: #f3f5f7;
}

.wh-cta-band .wh-kicker {
    color: var(--wh-accent);
    margin-bottom: 8px;
}

/* 連續 light：服務總覽標題區收斂 padding */
#services.wh-section--light {
    padding-bottom: clamp(24px, 4vw, 40px);
}

#services + .wh-section--light {
    padding-top: clamp(24px, 4vw, 40px);
}
