
/* ── NPH Theme Font Sync ──────────────────────────────────────────────── */
/* Default behavior: follow active WP theme fonts (block or classic). */
:root {
    --nph-font-body: var(--wp--preset--font-family--body, inherit);
    --nph-font-heading: var(--wp--preset--font-family--heading, var(--nph-font-body));
    --nph-font-nav: var(--wp--preset--font-family--body, var(--nph-font-body));
}

/* Base text in modules inherits theme body font */
.nph-topbar,
.nph-navbar,
.nph-hero,
.nph-fbar,
.nph-promo,
.nph-lifestyle,
.nph-topbar__link,
.nph-topbar__left,
.nph-topbar__search,
.nph-nav__menu a,
.nph-nav__btn,
.nph-fbar__desc,
.nph-lifestyle__card-desc,
.nph-promo__desc,
.nph-promo__badge-title {
    font-family: var(--nph-font-body);
}

/* Headline/title text follows theme heading font */
.nph-hero__title,
.nph-fbar__title,
.nph-promo__headline,
.nph-lifestyle__headline,
.nph-lifestyle__tab,
.nph-lifestyle__card-title {
    font-family: var(--nph-font-heading);
}

/* Nav and CTA text can stay on theme body by default */
.nph-nav__menu a,
.nph-nav__btn {
    font-family: var(--nph-font-nav);
}
/* ─────────────────────────────────────────────────────────────────────────
   Nelson Page Header — module styles
   ───────────────────────────────────────────────────────────────────────── */

/* ── Section 0a — Top Utility Bar ────────────────────────────────────────── */

.nph-topbar {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
    margin: 0;
    padding: 0;
}

.nph-topbar__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nph-topbar__left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: inherit;
}

.nph-topbar__icon {
    font-size: 1em;
    line-height: 1;
}

.nph-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nph-topbar__link {
    font-size: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.nph-topbar__link:hover {
    text-decoration: underline;
}

.nph-topbar__search {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0;
    line-height: 1;
    transition: opacity 0.15s ease;
}

.nph-topbar__search:hover { opacity: 0.7; }

/* ── Section 0b — Nav Bar with Logo ──────────────────────────────────────── */

.nph-navbar {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin: 0;
    padding: 0;
    /* z-index MUST be higher than top bar (100) so the overlapping logo
       appears in front of the top bar, not behind it */
    z-index: 101;
    overflow: visible;
    /* Height matches the inner container so the background
       stays at bar-height regardless of logo size */
    height: var(--bar-height, 70px);
}

.nph-navbar--sticky {
    position: relative; /* JS adds --fixed class on scroll */
}

.nph-navbar--fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.nph-navbar__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Fixed height — logo overflows this boundary, bar does not grow to fit */
    height: var(--bar-height, 70px);
    overflow: visible;
    box-sizing: border-box;
    gap: 16px;
}

/* Logo — overlaps into the top bar via negative margin-top.
   align-self: flex-start means margin-top is measured from the bar's TOP edge,
   giving predictable overlap regardless of logo height. */
.nph-nav__logo {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    align-self: center;
    /* transform: translateY(-Npx) is set inline — keeps layout centered while visually shifting logo up */
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 10;
}

.nph-nav__logo:hover { opacity: 0.85; }

.nph-nav__logo img {
    display: block;
    max-width: 100%;
    height: auto;
    /* Drop shadow to make the overlap pop */
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

.nph-nav__logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: transparent;
    color: inherit;
    font-weight: 800;
    border-radius: 50%;
}

/* Nav link lists */
.nph-nav__links {
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 100%;
}

.nph-nav__links--left  { justify-content: flex-end;   padding-right: 20px; }
.nph-nav__links--right { justify-content: flex-start;  padding-left:  20px; }

.nph-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-height: 100%;
}

.nph-nav__menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.nph-nav__menu a {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 0 12px;
    text-decoration: none;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.15s ease;
    color: var(--link-c, inherit);
}

/* Hard-center nav links in the white bar regardless of theme defaults */
.nph-navbar .nph-nav__links .nph-nav__menu > li > a {
    height: calc(var(--bar-height, 70px) - 16px) !important;
    min-height: calc(var(--bar-height, 70px) - 16px) !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

.nph-nav__menu a:hover {
    color: var(--link-hov, inherit);
    text-decoration: none;
}

/* Render menu links with button styling */
.nph-nav__menu .nph-nav__menu-btn {
    border-radius: 999px;
    padding-left: 14px !important;
    padding-right: 14px !important;
    border: 1px solid transparent;
    background: transparent;
    transition: none;
}

.nph-nav__menu .nph-nav__menu-btn:hover {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--link-c, inherit) !important;
    text-decoration: none !important;
}

/* CTA buttons */
.nph-nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nph-nav__btn {
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nph-nav__btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
}

.nph-nav__btn--secondary {
    background: none;
    border: none;
    padding: 8px 10px;
    color: var(--link-c, inherit);
}

/* Strong scoped reset against theme menu defaults that can push nav text
   to the top of the white bar instead of true vertical center. */
.nph-navbar .nph-nav__menu,
.nph-navbar .nph-nav__menu li,
.nph-navbar .nph-nav__menu li a {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
}

/* Hamburger — mobile only */
.nph-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.nph-nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nph-nav__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nph-nav__hamburger--open span:nth-child(2) { opacity: 0; }
.nph-nav__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nph-nav__mobile-drawer {
    display: none;
    flex-direction: column;
    background: inherit;
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.nph-nav__mobile-drawer--open { display: flex; }

.nph-nav__mobile-drawer .nph-nav__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.nph-nav__mobile-drawer .nph-nav__menu a {
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nph-nav__mobile-cta {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .nph-nav__links      { display: none; }
    .nph-nav__hamburger  { display: flex; }
    .nph-navbar__inner   { justify-content: space-between; }
}

@media (max-width: 600px) {
    .nph-topbar__left  { display: none; }
    .nph-topbar__inner { justify-content: flex-end; }
}

/* ── Shared utilities ─────────────────────────────────────────────────────── */

.nph-bullets {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.nph-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.nph-check {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.4;
}

/* ── Tabbed Cards Section ────────────────────────────────────────────── */
.nph-lifestyle {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 44px 20px 34px;
}

.nph-lifestyle__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.nph-lifestyle__headline {
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.nph-lifestyle__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.22);
    margin-bottom: 26px;
}

.nph-lifestyle__tab {
    text-align: center;
    font-weight: 800;
    padding: 14px 10px;
    letter-spacing: 0.01em;
}

.nph-lifestyle__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.nph-lifestyle__card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.nph-lifestyle__card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.nph-lifestyle__card-body {
    padding: 16px 18px 18px;
}

.nph-lifestyle__card-title {
    margin: 0 0 8px;
    line-height: 1.15;
    font-weight: 800;
}

.nph-lifestyle__card-desc {
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .nph-lifestyle__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nph-lifestyle__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .nph-lifestyle {
        padding: 28px 14px 24px;
    }
    .nph-lifestyle__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .nph-lifestyle__tabs {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }
    .nph-lifestyle__tab {
        padding: 11px 10px;
    }
}

/* ── Section 1 — Hero ─────────────────────────────────────────────────────── */

.nph-hero {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 40px;
}

.nph-hero__inner {
    max-width: 760px;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* When alignment is center/right, inner shifts accordingly */
.nph-hero[style*="text-align:center"] .nph-hero__inner,
.nph-hero[style*="text-align: center"] .nph-hero__inner {
    margin: 0 auto;
}

.nph-hero__badge {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.nph-hero__title {
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
}

.nph-hero__desc {
    line-height: 1.5;
    margin: 0 0 18px;
    opacity: 0.92;
}

.nph-hero .nph-bullets {
    margin-bottom: 28px;
}

.nph-hero__btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.nph-hero__btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Section 2 — Feature Bar ─────────────────────────────────────────────── */

.nph-fbar {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.nph-fbar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.nph-fbar__col {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
}

.nph-fbar__icon {
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
}

.nph-fbar__body {
    flex: 1;
}

.nph-fbar__title {
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.nph-fbar__desc {
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .nph-fbar__grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

/* ── Section 3 — Promo Banner ────────────────────────────────────────────── */

.nph-promo {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
    padding: 0;
}

.nph-promo__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.nph-promo__eyebrow {
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}

.nph-promo__headline {
    font-weight: 800;
    line-height: 1.25;
    margin: 8px 0 0;
}

.nph-promo__sub {
    line-height: 1.5;
    opacity: 0.88;
    max-width: 640px;
    margin: 0;
}

/* Badge / logo overlay */
.nph-promo__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 3px solid;
    border-radius: 50%;
    padding: 28px 36px;
    min-width: 180px;
    min-height: 180px;
    text-align: center;
}

.nph-promo__badge-title {
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nph-promo .nph-bullets--badge {
    margin: 0;
    text-align: left;
}

/* ── Divi compatibility — logo overlap ───────────────────────────────────── */

/* Zero out ALL Divi spacing around our three stacked header modules */
.et_pb_nph_top_bar,
.et_pb_nph_nav_bar,
.et_pb_nph_hero {
    margin: 0 !important;
    padding: 0 !important;
}

/* Zero padding on Divi's inner module wrapper */
.et_pb_nph_top_bar .et_pb_module_inner,
.et_pb_nph_nav_bar .et_pb_module_inner,
.et_pb_nph_hero .et_pb_module_inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* Zero gap on the Divi flex column/row containing our modules — this is
   Divi's gutters system adding row-gap between stacked flex items */
.et_pb_section:has(.nph-topbar, .nph-navbar, .nph-hero),
.et_pb_row:has(.nph-topbar, .nph-navbar, .nph-hero),
.et_pb_column:has(.nph-topbar, .nph-navbar, .nph-hero) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
}

/* The direct Divi module wrapper for the nav bar module */
.et_pb_nph_nav_bar {
    overflow: visible !important;
}

/* All Divi row/column/section containers wrapping the nav bar must allow
   overflow so the logo can bleed upward into the top bar above it. */
.et_pb_section:has(.nph-navbar),
.et_pb_row:has(.nph-navbar),
.et_pb_column:has(.nph-navbar) {
    overflow: visible !important;
    position: relative;
    z-index: 2; /* above the top-bar section so logo renders on top */
}

/* Top-bar section sits below nav-bar section in z-order */
.et_pb_section:has(.nph-topbar),
.et_pb_row:has(.nph-topbar),
.et_pb_column:has(.nph-topbar) {
    position: relative;
    z-index: 1;
}

/* ── NavBar Overlay Mode ─────────────────────────────────────────────────
   Enable by adding CSS class nph-navbar--overlay to the NavBar module
   via Divi → module settings → Advanced → CSS Classes field.
   The hero image will extend up behind the transparent nav.
   ─────────────────────────────────────────────────────────────────────── */

.nph-navbar--overlay {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    transition: background 0.25s ease !important;
}

/* Nav links and buttons need to be legible over the image */
.nph-navbar--overlay .nph-nav__links a,
.nph-navbar--overlay .nph-nav__btn--secondary {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.nph-navbar--overlay .nph-nav__links a:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Hamburger bars turn white in overlay mode */
.nph-navbar--overlay .nph-nav__hamburger span {
    background: #ffffff;
}

/* Hero pulls up to fill the space behind the transparent nav.
   --nph-overlay-offset is set by nav.js at runtime (topbar + navbar height).
   Falls back to 70px if JS hasn't run yet. */
.nph-navbar--overlay ~ .nph-hero {
    margin-top: calc(-1 * var(--nph-overlay-offset, 70px));
    padding-top: calc(var(--nph-overlay-offset, 70px) + 40px);
    box-sizing: border-box;
}

/* TopBar in overlay mode — optional: also make topbar transparent */
.nph-topbar--overlay {
    background: transparent !important;
    position: relative;
    z-index: 102;
}

/* ── Responsive — Tablet (≤ 980px) ──────────────────────────────────────── */

@media (max-width: 980px) {
    /* Hero */
    .nph-hero {
        padding: 32px 24px;
    }
    .nph-hero__inner {
        max-width: 640px;
    }

    /* Promo banner */
    .nph-promo {
        padding: 36px 24px;
    }
    .nph-promo__inner {
        gap: 22px;
    }

    /* Top bar */
    .nph-topbar__inner {
        padding: 0 16px;
    }
    .nph-topbar__right {
        gap: 8px;
    }
}

/* ── Responsive — Mobile (≤ 768px) ──────────────────────────────────────── */

@media (max-width: 768px) {
    /* Hero — full-width inner, tighter vertical padding */
    .nph-hero {
        padding: 24px 16px;
    }
    .nph-hero__inner {
        max-width: 100%;
    }
    .nph-hero__btn {
        padding: 12px 28px;
    }

    /* Promo banner — safe horizontal breathing room */
    .nph-promo {
        padding: 28px 16px;
    }
    .nph-promo__inner {
        gap: 18px;
    }
    .nph-promo__badge {
        min-width: 140px;
        min-height: 140px;
        padding: 20px 26px;
    }
    .nph-promo__sub {
        max-width: 100%;
    }

    /* Top bar — tighter links */
    .nph-topbar__link {
        font-size: 0.85em;
    }
    .nph-topbar__right {
        gap: 6px;
    }

    /* Feature bar — comfortable column padding */
    .nph-fbar__col {
        padding: 6px 0;
    }
    .nph-fbar__grid {
        gap: 16px;
    }

    /* Nav mobile CTA — wrap to two per row on narrow screens */
    .nph-nav__mobile-cta .nph-nav__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* ── Responsive — Small Mobile (≤ 480px) ────────────────────────────────── */

@media (max-width: 480px) {
    /* Hero — minimal padding, compact button */
    .nph-hero {
        padding: 20px 14px;
    }
    .nph-hero__btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    /* Promo banner — tightest safe spacing */
    .nph-promo {
        padding: 22px 14px;
    }
    .nph-promo__badge {
        min-width: 110px;
        min-height: 110px;
        padding: 16px 20px;
    }

    /* Top bar — hide right-side links if they overflow */
    .nph-topbar__link {
        font-size: 0.8em;
    }

    /* Nav mobile drawer — stack CTA buttons full-width */
    .nph-nav__mobile-cta {
        flex-direction: column;
        gap: 8px;
    }
    .nph-nav__mobile-cta .nph-nav__btn {
        width: 100%;
        text-align: center;
    }

    /* Feature bar — tighter icon/body gap */
    .nph-fbar__col {
        gap: 10px;
    }
}

/* ── Section 4 — Full Header (nav + hero combined) ───────────────────────── */

/* Font inheritance for full header */
.nph-fh,
.nph-fh__link,
.nph-fh__cta-btn,
.nph-fh__action-btn,
.nph-fh__desc {
    font-family: var(--nph-font-body);
}

.nph-fh__title {
    font-family: var(--nph-font-heading);
}

/* Outermost wrapper — position:relative so the absolute nav sits inside it */
.nph-fh {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ── Nav bar — absolute over the hero image ─────────────────────────────── */

.nph-fh__nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    box-sizing: border-box;
    gap: 24px;
}

/* Logo */
.nph-fh__logo {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nph-fh__logo:hover {
    opacity: 0.85;
}

.nph-fh__logo img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.nph-fh__logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 50px;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1em;
    letter-spacing: 0.05em;
}

/* Nav link list */
.nph-fh__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}
.nph-fh__links li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nph-fh__links li::before,
.nph-fh__links li::marker {
    display: none;
    content: none;
}

.nph-fh__link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: opacity 0.15s ease;
    border-bottom: 2px solid transparent;
    /* color is set per-instance via scoped <style> */
}

.nph-fh__link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.nph-fh__link--active {
    font-weight: 700;
    /* border-bottom-color is set per-instance via scoped <style> */
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

/* Nav CTA button */
.nph-fh__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px 22px;
    border-radius: 4px;
    border: 2px solid;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.nph-fh__cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Hamburger — mobile only */
.nph-fh__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    /* color is set per-instance via scoped <style> */
}

.nph-fh__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nph-fh__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nph-fh__hamburger--open span:nth-child(2) { opacity: 0; }
.nph-fh__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ──────────────────────────────────────────────────────── */

.nph-fh__drawer {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    background: rgba(0,0,0,0.92);
    padding: 80px 28px 28px;
    box-sizing: border-box;
}

.nph-fh__drawer--open {
    display: flex;
}

.nph-fh__drawer .nph-fh__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    justify-content: flex-start;
    flex: none;
    width: 100%;
}

.nph-fh__drawer .nph-fh__link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-left: none;
    border-right: none;
    border-top: none;
    font-size: 1em;
    color: #ffffff !important;
}

.nph-fh__drawer-cta {
    margin-top: 20px;
}

/* ── Hero content area — padded to clear the absolute nav ───────────────── */

.nph-fh__hero {
    padding-top: 140px;
    padding-bottom: 60px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
}

.nph-fh__inner {
    max-width: 860px;
    margin: 0;
    padding: 0 40px;
    width: 100%;
}

/* Title */
.nph-fh__title {
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    /* color set per-instance */
}

/* Accent subtitle line */
.nph-fh__sub {
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 18px;
    /* color set per-instance (accent or subtitle_color) */
}

/* Description */
.nph-fh__desc {
    line-height: 1.6;
    font-size: 1.05em;
    margin: 0 0 28px;
    max-width: 620px;
    opacity: 0.92;
    /* color set per-instance */
}

/* Hero action buttons row */
.nph-fh__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.nph-fh__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.nph-fh__action-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.85);
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

/* Video CTA variant — slightly different style */
.nph-fh__action-btn--video {
    background: transparent;
    border-color: rgba(255,255,255,0.35);
}

.nph-fh__action-btn--video:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

/* ── Divi compatibility — full header ───────────────────────────────────── */

.et_pb_nph_full_header {
    margin: 0 !important;
    padding: 0 !important;
}

.et_pb_nph_full_header .et_pb_module_inner {
    padding: 0 !important;
    margin: 0 !important;
}

.et_pb_section:has(.nph-fh),
.et_pb_row:has(.nph-fh),
.et_pb_column:has(.nph-fh) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
}

/* ── Responsive — Tablet (≤ 960px) ──────────────────────────────────────── */

@media (max-width: 960px) {
    .nph-fh__nav .nph-fh__links,
    .nph-fh__nav .nph-fh__cta-btn {
        display: none;
    }

    .nph-fh__hamburger {
        display: flex;
    }

    .nph-fh__nav {
        padding: 18px 24px;
    }

    .nph-fh__hero {
        padding-top: 110px;
        padding-bottom: 48px;
    }

    .nph-fh__inner {
        padding: 0 24px;
        max-width: 100%;
    }

    .nph-fh__title {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    }
}

/* ── Responsive — Mobile (≤ 600px) ──────────────────────────────────────── */

@media (max-width: 600px) {
    .nph-fh__nav {
        padding: 14px 16px;
    }

    .nph-fh__hero {
        padding-top: 90px;
        padding-bottom: 36px;
    }

    .nph-fh__inner {
        padding: 0 16px;
    }

    .nph-fh__title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }

    .nph-fh__sub {
        font-size: 1em;
    }

    .nph-fh__btns {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nph-fh__action-btn {
        width: 100%;
        justify-content: center;
    }

    .nph-fh__desc {
        max-width: 100%;
        font-size: 0.97em;
    }
}
