/* Source: 08-heroes.css | Refactored location: assets/css/patterns/heroes.css */
/* ===============================
    Heroes
================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-light);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}
.hero .container {
    position: relative;
    z-index: 2;
}
/* Gutenberg wrapper support */
.hero .container,
.hero .container > .wp-block-group__inner-container,
.hero-layout,
.hero-layout > .wp-block-group__inner-container,
.hero-content,
.hero-content > .wp-block-group__inner-container {
    position: relative;
}
.hero-layout,
.hero-layout > .wp-block-group__inner-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}
.hero-content,
.hero-content > .wp-block-group__inner-container {
    width: 100%;
    max-width: 760px;
}
.hero-content[class*="is-style-panel-"] {
    padding: clamp(34px, 4.4vw, 58px);
}
.hero-content.is-style-panel-none {
    padding: 0;
}
.hero-content[class*="is-style-panel-dark"] .hero-eyebrow,
.hero-content[class*="is-style-panel-dark"] h1,
.hero-content[class*="is-style-panel-dark"] .hero-intro,
.hero-content[class*="is-style-panel-dark"] .hero-note,
.hero-content[class*="is-style-panel-dark"] .hero-text-link {
    color: #fff;
}
.hero-eyebrow {
    margin: 0 0 20px;
}
.hero h1 {
    margin: 0 0 34px;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.hero-intro {
    max-width: 640px;
    margin: 0 0 34px;
    font-size: 20px;
    line-height: 1.75;
}
.hero-note {
    max-width: 560px;
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}
.hero-actions,
.cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}
.hero .btn-primary {
    padding: 16px 28px;
}
.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-text-link::after {
    content: "→";
    color: var(--color-red);
    transition: transform 0.22s ease;
}
.hero-text-link:hover::after {
    transform: translateX(4px);
}
.entry-content > .hero,
.wp-block-post-content > .hero,
.site-main > .hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
/* ===============================
   Immersive Hero
================================ */
.hero.hero--immersive {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: clamp(560px, 72svh, 760px);
    margin-bottom: 0 !important;
    padding: clamp(72px, 8vw, 104px) 0;
    color: var(--color-white);
    background: #111;
}
.hero.hero--immersive .container,
.hero.hero--immersive .container > .wp-block-group__inner-container {
    position: relative;
    z-index: 1;
    width: 100%;
}
.hero--immersive .hero-layout,
.hero--immersive .hero-layout > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    min-height: 0;
    max-width: 1180px;
}
.hero--immersive .hero-content,
.hero--immersive .hero-content > .wp-block-group__inner-container {
    max-width: 760px;
    opacity: 0;
    transform: translateY(18px);
    animation: heroContentIn 0.9s ease 0.2s forwards;
}
.hero--immersive h1 {
    max-width: 760px;
    color: var(--color-white);
    font-size: clamp(48px, 5.2vw, 78px);
    line-height: 1.05;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.hero--immersive .hero-intro {
    max-width: 680px;
}
.hero--immersive .hero-intro,
.hero--immersive .hero-note,
.hero--immersive .hero-text-link,
.hero--immersive .hero-eyebrow {
    color: rgba(255,255,255,0.84);
}
/* ===============================
    Editorial Hero
================================ */
.hero--editorial {
    position: relative;
    min-height: clamp(520px, 58vh, 680px);
    padding: clamp(88px, 9vw, 132px) 0;
    background: var(--color-white);
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}
/* =====================================
   Background Image Behaviour
===================================== */

/* Hero editorial uses the same class meaning as the shared section background block:
   .is-background-scroll = scroll with section
   .is-background-fixed  = fixed / parallax style
*/

.hero--editorial.has-background-image.is-background-scroll {
    background-image: none !important;
    background-attachment: scroll !important;
}

.hero--editorial.has-background-image.is-background-scroll .nofcc-section-background__image {
    display: block !important;
    position: absolute !important;
    background-image: var(--section-bg-image) !important;
    background-position: var(--section-bg-position, center center) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.hero--editorial.has-background-image.is-background-fixed {
    background-image: var(--section-bg-image) !important;
    background-position: var(--section-bg-position, center center) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.hero--editorial.has-background-image.is-background-fixed .nofcc-section-background__image,
.hero--editorial.has-background-image.is-background-fixed .wp-block-cover__image-background {
    display: none !important;
}

/* Keep overlay and content above background */
.hero--editorial .nofcc-section-background__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero--editorial .nofcc-section-background__inner {
    position: relative;
    z-index: 2;
}

/* =====================================
   Layout
===================================== */
.hero--editorial .container,
.hero--editorial .container > .wp-block-group__inner-container {
    width: 100%;
}
.hero--editorial .hero-layout,
.hero--editorial .hero-layout > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    min-height: 0;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px;
}
.hero--editorial .hero-content,
.hero--editorial .hero-content > .wp-block-group__inner-container {
    max-width: 760px;
}
/* =====================================
   Panel Style Support
===================================== */
.hero--editorial .hero-content[class*="is-style-panel-"] {
    max-width: 760px;
    width: min(100%, 760px);
    padding: clamp(34px, 4vw, 54px);
    box-sizing: border-box;
}
.hero--editorial .hero-content.is-style-panel-none {
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* =====================================
   Typography
===================================== */
.hero--editorial h1 {
    max-width: 720px;
    margin-bottom: 28px;
    font-size: clamp(42px, 4.8vw, 72px);
    line-height: 1.06;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.hero--editorial .hero-intro {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--color-muted);
}
.hero--editorial .hero-note {
    color: var(--color-muted);
}
/* Dark panels */
.hero--editorial .hero-content[class*="is-style-panel-dark"] .hero-eyebrow,
.hero--editorial .hero-content[class*="is-style-panel-dark"] h1,
.hero--editorial .hero-content[class*="is-style-panel-dark"] .hero-intro,
.hero--editorial .hero-content[class*="is-style-panel-dark"] .hero-note {
    color: #fff;
}
.hero--editorial .hero-content[class*="is-style-panel-dark"] .hero-intro,
.hero--editorial .hero-content[class*="is-style-panel-dark"] .hero-note {
    opacity: .86;
}
/* Mobile fixed backgrounds can be janky */
@media (max-width: 900px) {
    .hero--editorial.has-background-image.is-background-scroll {
        background-attachment: scroll !important;
    }
}
/* ===============================
    Minimal Hero
================================ */
.hero--minimal {
    padding: 96px 0 72px;
    background: var(--color-light);
    text-align: center;
}
.hero--minimal .hero-layout,
.hero--minimal .hero-layout > .wp-block-group__inner-container {
    display: flex;
    justify-content: center;
}
.hero--minimal .hero-content,
.hero--minimal .hero-content > .wp-block-group__inner-container {
    max-width: 860px;
    margin: 0 auto;
}
.hero--minimal h1 {
    font-size: clamp(42px, 4.8vw, 72px);
    line-height: 1.08;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.hero--minimal .hero-intro,
.hero--minimal .hero-note {
    margin-left: auto;
    margin-right: auto;
    color: var(--color-muted);
}
.hero--minimal .hero-actions {
    justify-content: center;
}
/* ===============================
    Split Hero
================================ */
.hero--split {
    padding: 112px 0 104px;
    background: var(--color-white);
}
.hero--split .hero-layout,
.hero--split .hero-layout > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 72px;
    align-items: center;
    min-height: 58vh;
}
.hero--split .hero-content,
.hero--split .hero-content > .wp-block-group__inner-container {
    max-width: 660px;
}
.hero--split h1 {
    font-size: clamp(46px, 5vw, 78px);
    line-height: 1.06;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.hero--split .hero-intro,
.hero--split .hero-note {
    color: var(--color-muted);
}
.hero-media {
    position: relative;
    width: 100%;
    min-height: 540px;
    overflow: hidden;
    background: var(--color-light);
}
.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15,15,16,0.04),
            rgba(15,15,16,0.18)
        ),
        var(--hero-image) center center / cover no-repeat;
    filter: saturate(0.98) contrast(1.02);
}
/* ===============================
    Campaign Hero
================================ */
.hero--campaign.wp-block-cover {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: clamp(620px, 76vh, 820px) !important;
    padding: 128px 0 112px;
    color: var(--color-white);
    background: #111;
}
.hero--campaign.wp-block-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(15,15,16,0.82) 0%,
        rgba(15,15,16,0.58) 42%,
        rgba(15,15,16,0.18) 100%
    );
}
.hero--campaign.wp-block-cover .wp-block-cover__background {
    display: none;
}
.hero--campaign.wp-block-cover .wp-block-cover__image-background {
    z-index: 0;
    filter: saturate(1.04) contrast(1.05);
}
.hero--campaign.wp-block-cover .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero--campaign .hero-layout,
.hero--campaign .hero-layout > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    min-height: 76vh;
}
.hero--campaign .hero-content,
.hero--campaign .hero-content > .wp-block-group__inner-container {
    max-width: 760px;
}
.hero--campaign h1 {
    max-width: 760px;
    color: var(--color-white);
    font-size: clamp(52px, 5.8vw, 88px);
    line-height: 1.04;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.hero--campaign .hero-intro {
    max-width: 680px;
}
.hero--campaign .hero-intro,
.hero--campaign .hero-note,
.hero--campaign .hero-eyebrow {
    color: rgba(255,255,255,0.84);
}
/* ===============================
    Conversion Hero
================================ */
.hero--conversion {
    min-height: 100vh;
    padding: 0;
    background: #111;
}
.hero--conversion .hero-layout,
.hero--conversion .hero-layout > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(420px,520px);
    min-height: 100vh;
    max-width: none;
}
.hero--conversion .hero-bg {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            rgba(15,15,16,0.16),
            rgba(15,15,16,0.34)
        ),
        var(--hero-image) center center / cover no-repeat;
}
.hero-conversion-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 56px 48px;
    background: var(--color-white);
}
/* ===============================
    Animations
================================ */
@keyframes heroContentIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===============================
    Tablet
================================ */
@media (max-width: 900px) {
    .hero--split .hero-layout,
    .hero--split .hero-layout > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .hero-media {
        min-height: 360px;
    }
    .hero--conversion .hero-layout,
    .hero--conversion .hero-layout > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }
    .hero--conversion .hero-bg {
        min-height: 46vh;
    }
    .hero-conversion-panel {
        min-height: auto;
        padding: 42px 24px;
    }
}
/* ===============================
    Mobile
================================ */
@media (max-width: 760px) {
    .hero,
    .hero--immersive,
    .hero--editorial,
    .hero--minimal,
    .hero--split,
    .hero--campaign {
        min-height: auto;
        padding: 92px 0 78px;
    }
    .hero-layout,
    .hero-layout > .wp-block-group__inner-container,
    .hero--immersive .hero-layout,
    .hero--immersive .hero-layout > .wp-block-group__inner-container,
    .hero--editorial .hero-layout,
    .hero--editorial .hero-layout > .wp-block-group__inner-container,
    .hero--campaign .hero-layout,
    .hero--campaign .hero-layout > .wp-block-group__inner-container {
        min-height: auto;
    }
    .hero-content[class*="is-style-panel-"] {
        padding: 30px 24px;
    }
    .hero-content.is-style-panel-none {
        padding: 0;
    }
    .hero h1 {
        font-size: clamp(40px, 12vw, 62px);
        line-height: 1.08;
    }
    .hero-intro {
        font-size: 18px;
        line-height: 1.65;
    }
    .hero-actions,
    .cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero .btn-primary {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
    .hero-media {
        min-height: 320px;
    }
    .hero--campaign .hero-bg {
        background-position: center;
    }
}
.site-main > .hero.hero--immersive {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
}
.site-main > .hero.hero--immersive + section,
.site-main > .hero.hero--immersive + .wp-block-group {
    margin-top: 0 !important;
}