/*
 * NewHayven — Our Story page (block version, built from the
 * "NewHayven Our Story" pattern). Values copied from the legacy template's
 * inline styles, so the block version renders identically.
 * Class names: nh-story-<section>__<part>. The legacy template
 * (template-parts/story-legacy.php) keeps its own inline styles.
 */

/* ---------- Shared ---------- */
.nh-story-eyebrow {
    color: #8B7355;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.68px;
}
.nh-story-label {
    color: rgba(128, 36, 70, 0.70);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.68px;
}
p.nh-story-eyebrow,
p.nh-story-label {
    margin-bottom: 0;
}
.nh-story-why__body strong,
.nh-story-leader__para strong {
    font-weight: 600;
}

/* ---------- Hero ---------- */
.nh-story-hero__title {
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    line-height: 1.05;
    color: #802446;
}
.nh-story-hero__title em {
    color: #055E63;
    font-style: italic;
}
.nh-story-hero__lead {
    font-size: 18px;
    line-height: 30.60px;
    color: #333333;
}
.nh-story-hero__stats {
    border-top: 1px solid #E8E2D9;
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 24px;
}
.nh-story-hero__stat-num {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 60px;
    color: #802446;
}
p.nh-story-hero__stat-num {
    margin-bottom: 0;
}
.nh-story-hero__stat-label {
    font-size: 14px;
    color: #333333;
    line-height: 18px;
}
/* theme.css shrinks every hero paragraph on tablet/mobile; the number was
   a <div> before, so keep its original size */
@media (max-width: 980px) {
    .nh-hero__text p.nh-story-hero__stat-num {
        font-size: 48px !important;
        line-height: 60px !important;
    }
}

/* ---------- Why We Exist ---------- */
.nh-story-why {
    background: #F5F0E8;
    padding: 80px 32px;
}
.nh-story-why__row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.nh-story-why__main {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.nh-story-why__title {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.15;
    color: #802446;
}
.nh-story-why__title em {
    font-style: italic;
    color: #055E63;
}
/* Quote with the teal rule on its left (was a separate 2px bar + 24px gap) */
.nh-story-why__quote {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    border-left: 2px solid #055E63;
    padding-left: 24px;
}
.nh-story-why__quote-body {
    color: #333333;
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
}
.nh-story-why__quote-by {
    color: #333333;
    font-size: 14px;
    font-weight: 300;
}
.nh-story-why__aside {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.nh-story-why__body {
    color: #333333;
    font-size: 16px;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .nh-story-why__row {
        flex-direction: column;
    }
}

/* ---------- Our Purpose ---------- */
.nh-story-purpose {
    background: white;
    padding: 80px 32px;
}
.nh-story-purpose__inner,
.nh-story-values__inner,
.nh-story-leaders__inner,
.nh-story-momentum__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.nh-story-purpose__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nh-story-purpose__title,
.nh-story-values__title,
.nh-story-leaders__title {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #055E63;
}
.nh-story-purpose__title em,
.nh-story-leaders__title em {
    font-style: italic;
    color: #802446;
}
.nh-story-purpose__row {
    display: flex;
    gap: 48px;
    align-items: center;
}
/* The <figure> steps out of the layout so the image itself is the flex item,
   exactly like the legacy <img> */
figure.nh-story-purpose__img {
    display: contents;
}
figure.nh-story-purpose__img > img {
    flex: 1 1 56%;
    width: 56%;
    align-self: stretch;
    object-fit: cover;
    box-shadow: 0px 4px 28px 16px rgba(0, 0, 0, 0.15);
    border-radius: 17.12px;
    min-height: 357px;
}
.nh-story-purpose__points {
    flex: 1 1 44%;
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.nh-story-purpose__point {
    border-left: 2px solid #802446;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nh-story-purpose__point-title {
    color: #1A1A1A;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}
.nh-story-purpose__point-body {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}
/* Tablet/mobile: image on top (block version of theme.css .nh-purpose-row) */
@media (max-width: 860px) {
    .nh-purpose-row > figure.nh-story-purpose__img > img {
        width: 100% !important;
        flex: 0 0 auto !important;
        min-height: 240px !important;
        max-height: 360px !important;
    }
}

/* ---------- Core Values ---------- */
.nh-story-values {
    background: white;
    padding: 80px 32px;
    border-top: 1px solid #DBD5CE;
}
.nh-story-values__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.nh-story-values__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.nh-story-value {
    background: #055E63;
    box-shadow: 0px 4px 16px rgba(0,0,0,0.15);
    border-radius: 14px;
    padding: 34px 19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.nh-story-value__icon {
    display: flex;
    margin-bottom: 4px;
}
.nh-story-value__title {
    color: white;
    font-size: 20px;
    font-family: Jost, sans-serif;
}
.nh-story-value__text {
    color: white;
    font-size: 14px;
    line-height: 1.4;
}
p.nh-story-value__title,
p.nh-story-value__text {
    margin-bottom: 0;
}

/* ---------- Leadership ---------- */
.nh-story-leaders {
    background: #F5F0E8;
    padding: 80px 32px;
}
.nh-story-leaders__head,
.nh-story-momentum__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
}
.nh-story-leaders__lead {
    max-width: 760px;
    color: #333333;
    font-size: 18px;
    line-height: 25.50px;
}
.nh-story-leader {
    background: white;
    box-shadow: 0px 4px 28px 2px rgba(0,0,0,0.15);
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    gap: 48px;
}
figure.nh-story-leader__img {
    display: contents;
}
figure.nh-story-leader__img > img {
    width: 300px;
    flex-shrink: 0;
    object-fit: cover;
}
.nh-story-leader__body {
    flex: 1;
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.nh-story-leader__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nh-story-leader__name {
    color: #1A1A1A;
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}
.nh-story-leader__bio {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.nh-story-leader__para {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
}
/* Credentials: equal columns separated by thin rules (Separator blocks) */
.nh-story-leader__creds {
    display: flex;
    gap: 40px;
    align-items: stretch;
}
.nh-story-cred {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
hr.nh-story-cred__divider {
    width: 1px;
    height: auto;
    background: #E8E2D9;
    border: 0;
    margin: 0;
    opacity: 1;
}
.nh-story-cred__value {
    color: #802446;
    font-size: 16px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}
.nh-story-cred__label {
    color: #333333;
    font-size: 12px;
    letter-spacing: 0.24px;
}
p.nh-story-cred__value,
p.nh-story-cred__label {
    margin-bottom: 0;
}
/* Tablet/mobile: photo on top (block version of theme.css .nh-leader-card) */
@media (max-width: 860px) {
    .nh-leader-card > figure.nh-story-leader__img > img {
        width: 100% !important;
        height: 480px !important;
        flex-shrink: 0 !important;
        object-fit: cover !important;
        object-position: 50% 15% !important;
    }
}

/* ---------- Building momentum ---------- */
.nh-story-momentum {
    background: white;
    padding: 80px 32px;
}
.nh-story-momentum__title {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #802446;
}
.nh-story-momentum__big {
    color: #7F2346;
    font-size: 96px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.1;
}
p.nh-story-momentum__big {
    margin-bottom: 0;
}
.nh-story-momentum__lead {
    color: #333333;
    font-size: 18px;
    line-height: 1.5;
}
.nh-story-momentum__grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 4px 16px rgba(0,0,0,0.12);
}
.nh-story-ledger {
    flex: 1;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
}
.nh-story-ledger--financing {
    background: #04353A;
}
.nh-story-ledger--advisory {
    background: #055860;
}
.nh-story-ledger__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px 16px;
    border-bottom: 2px solid #044C53;
}
.nh-story-ledger__head-text {
    color: white;
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}
.nh-story-ledger__rows {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nh-story-ledger__total {
    background: #F5F0E8;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nh-story-ledger__total-label {
    color: #04353A;
    font-size: 18px;
}
.nh-story-ledger__total-value {
    color: #04353A;
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}
p.nh-story-ledger__head-text,
p.nh-story-ledger__total-label,
p.nh-story-ledger__total-value {
    margin-bottom: 0;
}

/* NH Bar Row block */
.nh-bar-row {
    padding: 16px 32px;
    border-bottom: 1px solid #044C53;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nh-bar-row__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nh-bar-row__label {
    color: #EFEFEF;
    font-size: 16px;
    font-weight: 500;
}
.nh-bar-row__value {
    color: #EFEFEF;
    font-size: 16px;
    font-weight: 300;
}
.nh-bar-row__track {
    position: relative;
    height: 4px;
    border-radius: 8px;
    background: #7AA2A6;
}
.nh-bar-row__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    border-radius: 8px;
    background: #021719;
}
.nh-bar-row__text {
    color: #F3F3F3;
    font-size: 14px;
    line-height: 1.45;
}

/* Sector chips */
.nh-story-sectors {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}
.nh-story-sectors__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.nh-story-chip {
    background: #7F2346;
    border-radius: 14px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nh-story-chip__icon {
    display: flex;
}
.nh-story-chip__text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}
p.nh-story-chip__text {
    margin-bottom: 0;
}

/* ---------- CTA ---------- */
.nh-story-cta {
    padding: 80px 32px;
    color: white;
}
.nh-story-cta__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.nh-story-cta__title {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 48px;
}
.nh-story-cta__title em {
    font-style: italic;
}
.nh-story-cta__lead {
    font-size: 18px;
    color: #CDCDCD;
}
/* Button: wrapper steps out of the layout so the link is the flex item */
.nh-story-cta__actions {
    display: contents;
}
.nh-story-cta__actions .wp-block-button__link {
    margin-top: 8px;
}
