/* Western Union — Home page dashboard UX case study */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --hp-yellow: #FFDD00;
    --hp-hero-bg: #13151A;
    --hp-black: #000000;
    --hp-white: #FFFFFF;
    --hp-bg-light: #F7F9FA;
    --hp-bg-accent: #EAF3F8;
    --hp-text-dark: #13151A;
    --hp-text-body: #3D3D3D;
    --hp-text-body-on-dark: #C7CBD1;
    --hp-blue: #2E80B5;
    --hp-green: #3C8C3C;
    --hp-bg-green: #E6F5E2;
    --hp-border: #e7ebee;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: #ffffff;
    color: var(--hp-text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.hp-container {
    max-width: 1104px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hp-hero {
    background: var(--hp-hero-bg);
    padding: 64px 0 0;
}

.hp-hero-media {
    background: #ffffff;
    padding: 0 0 56px;
}

.hp-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.hp-logo-box {
    width: 33px;
    height: 33px;
    flex-shrink: 0;
}

.hp-eyebrow {
    font-family: var(--font-heading);
    color: #9299a3;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.2px;
}

.hp-hero-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 52px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.hp-yellow { color: var(--hp-yellow); }

.hp-hero-desc {
    font-family: var(--font-body);
    color: var(--hp-text-body-on-dark);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    max-width: 900px;
    margin-bottom: 36px;
}

.hp-meta-row {
    display: flex;
    flex-wrap: wrap;
    column-gap: 48px;
    row-gap: 20px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.14);
}

.hp-meta-item { display: flex; flex-direction: column; gap: 6px; }

.hp-meta-label {
    font-family: var(--font-heading);
    color: #9299a3;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
}

.hp-meta-value {
    font-family: var(--font-body);
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

/* Split hero image: two halves of the same transparent PNG, shown via
   background-image so the split point is always exactly the image's own
   vertical midpoint — independent of how tall the text above it is. */
.hp-hero-image-top,
.hp-hero-image-bottom {
    width: 100%;
    aspect-ratio: 3312 / 1058;
    background-image: url("assets/WU-home-images/Img_%20App-Final-Design.png");
    background-size: 100% 200%;
    background-repeat: no-repeat;
}

.hp-hero-image-top {
    margin-top: 40px;
    background-position: top;
}

.hp-hero-image-bottom {
    background-position: bottom;
}

/* Percentage margin (relative to container width, same basis as the image's
   own responsive height) so this scales correctly at every breakpoint —
   a fixed px value would overshoot badly on narrow/mobile containers. */
.hp-cta-wrap { display: flex; justify-content: center; margin-top: -3.7%; }

.hp-btn-yellow {
    display: inline-block;
    font-family: var(--font-heading);
    background: var(--hp-yellow);
    color: var(--hp-hero-bg);
    font-weight: 500;
    font-size: 16px;
    padding: 15px 36px;
    border-radius: 6px;
    text-decoration: none;
}

/* Problem / Approach / Solution */
.hp-pas-section {
    background: var(--hp-bg-accent);
    padding: 72px 0;
}

.hp-pas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hp-pas-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 24px;
}

.hp-pas-card h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--hp-text-dark);
    margin-bottom: 12px;
}

.hp-pas-card p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--hp-text-body);
}

/* Sections */
.hp-section { padding: 80px 0; }
.hp-no-pad-top { padding-top: 0; }
.hp-bg-white { background: #ffffff; }
.hp-bg-light { background: var(--hp-bg-light); }
.hp-bg-dark { background: var(--hp-black); }

.hp-eyebrow-blue {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--hp-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.hp-eyebrow-yellow {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--hp-yellow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.hp-h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 600;
    color: var(--hp-text-dark);
    line-height: 1.18;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
}

.hp-h2-white { color: #ffffff; }

.hp-h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--hp-text-dark);
    margin: 44px 0 12px;
}

.hp-h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--hp-text-dark);
    margin: 32px 0 16px;
}

.hp-p {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--hp-text-body);
    max-width: 900px;
    margin-bottom: 8px;
}

.hp-p-light { color: var(--hp-text-body-on-dark); }
.hp-p strong { color: var(--hp-text-dark); font-weight: 500; }
.hp-p-light strong { color: #ffffff; font-weight: 500; }

/* Pills */
.hp-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hp-pill {
    font-family: var(--font-body);
    background: var(--hp-bg-accent);
    color: var(--hp-blue);
    font-size: 14px;
    font-weight: 400;
    padding: 10px 18px;
    border-radius: 20px;
}

/* Stats grid */
.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.hp-stat-box {
    background: var(--hp-bg-light);
    border-radius: 10px;
    padding: 20px 14px;
}

.hp-stat-num {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--hp-blue);
    margin-bottom: 6px;
    white-space: nowrap;
}

.hp-stat-label {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 400;
    color: var(--hp-text-body);
}

/* Personas */
.hp-persona-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.hp-persona-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
}

.hp-persona-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hp-persona-num {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--hp-blue);
    line-height: 1;
}

.hp-persona-head h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--hp-text-dark);
    white-space: nowrap;
}

.hp-objective-box {
    background: var(--hp-bg-accent);
    border-radius: 8px;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 400;
    color: var(--hp-text-dark);
    margin-top: 12px;
}

.hp-objective-box strong { display: block; margin-bottom: 4px; color: var(--hp-blue); font-weight: 500; }
.hp-objective-box span { display: block; font-size: 14px; letter-spacing: -0.2px; white-space: nowrap; }

/* Plain images — sit directly on the page, no wrapper card or border */
.hp-image-plain { margin-top: 12px; }
.hp-image-plain img { width: 100%; height: auto; }

/* Journey map — rounded border on the black section, matches source */
.hp-image-journey {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 24px;
}

.hp-image-journey img { width: 100%; height: auto; }

/* Highlight cards (scenarios & requirements) */
.hp-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0 8px;
}

.hp-highlight-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
}

.hp-highlight-card h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--hp-text-dark);
    margin-bottom: 10px;
    white-space: nowrap;
}

.hp-highlight-card p {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--hp-text-body);
}

/* Scenario cards (final design) */
.hp-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 20px;
    margin: 28px 0 40px;
}

.hp-scenario-card {
    background: var(--hp-bg-accent);
    border-radius: 14px;
    padding: 22px;
}

.hp-scenario-image {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
}

.hp-scenario-image img { width: 100%; height: auto; }

.hp-scenario-card h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--hp-text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.hp-scenario-card ul { list-style: none; }

.hp-scenario-card li {
    position: relative;
    padding-left: 16px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 400;
    color: var(--hp-text-body);
    margin-bottom: 12px;
}

.hp-scenario-card li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--hp-blue);
    font-weight: 500;
}

/* Metrics grid */
.hp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.hp-metric-box {
    background: var(--hp-bg-green);
    border-radius: 10px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-metric-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--hp-green);
}

.hp-metric-label {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 400;
    color: var(--hp-text-dark);
}

/* Thanks for watching */
.hp-thanks-section {
    background: #ffffff;
    padding: 64px 0 24px;
    text-align: center;
}

.hp-thanks {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--hp-text-dark);
}

/* Footer */
.hp-footer {
    background: #ffffff;
    padding: 24px 0 48px;
    text-align: center;
}

.hp-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--hp-border);
}

.hp-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--hp-blue);
    text-decoration: underline;
}

.hp-footer-links svg { width: 24px; height: 24px; flex-shrink: 0; }

.hp-copyright { font-family: var(--font-body); font-size: 13px; color: var(--hp-text-body); }

/* Responsive */
@media (max-width: 960px) {
    .hp-hero-title { font-size: 36px; }
    .hp-meta-value { white-space: normal; }
    .hp-pas-grid { grid-template-columns: 1fr; }
    .hp-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-persona-grid { grid-template-columns: 1fr; }
    .hp-persona-head h3 { white-space: normal; }
    .hp-objective-box span { white-space: normal; font-size: 14.5px; letter-spacing: normal; }
    .hp-highlight-grid { grid-template-columns: 1fr; }
    .hp-highlight-card h4 { white-space: normal; font-size: 15px; letter-spacing: normal; }
    .hp-scenario-grid { grid-template-columns: 1fr; }
    .hp-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-h2 { font-size: 28px; }
}

@media (max-width: 600px) {
    .hp-hero { padding-top: 48px; }
    .hp-hero-title { font-size: 28px; }
    .hp-hero-desc { font-size: 16px; }
    .hp-meta-row { column-gap: 24px; row-gap: 16px; }
    .hp-cta-wrap { margin-top: 24px; }
    .hp-section { padding: 56px 0; }
    .hp-h2 { font-size: 24px; }
    .hp-h3 { font-size: 20px; }
    .hp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stat-num { font-size: 19px; }
    .hp-metrics-grid { grid-template-columns: 1fr; }
    .hp-thanks { font-size: 28px; }
    .hp-btn-yellow { padding: 14px 28px; font-size: 15px; }
}
