/* Frontend shell only. All block visuals live in blocks-shared.css. */

/* Stable from the first paint; JavaScript only verifies these values after layout. */
:root { --nordhov-header-height: 82px; }

body {
    --nordhov-header-bg: var(--wp--preset--color--bla-01, #99d9e8);
    --nordhov-header-ink: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-header-hover-ink: color-mix(in srgb, var(--nordhov-header-ink) 90%, var(--wp--preset--color--white, #fff));
    --nordhov-header-state: var(--wp--preset--color--accent, #e3e875);
    --nordhov-header-state-ink: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-header-cta-bg: var(--wp--preset--color--accent, #e3e875);
    --nordhov-header-cta-ink: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-header-logo-filter: none;
}
body.nordhov-header-scheme--pink {
    --nordhov-header-bg: var(--wp--preset--color--rosa-01, #f5badb);
}
body.nordhov-header-scheme--accent {
    --nordhov-header-bg: var(--wp--preset--color--accent, #e3e875);
    --nordhov-header-state: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-header-state-ink: var(--wp--preset--color--white, #fff);
    --nordhov-header-cta-bg: var(--wp--preset--color--plommon-01, #6b294a);
    --nordhov-header-cta-ink: var(--wp--preset--color--white, #fff);
}
body.nordhov-header-scheme--gray {
    --nordhov-header-bg: var(--wp--preset--color--gra, #efeded);
}
body.nordhov-header-scheme--blue {
    --nordhov-header-bg: var(--wp--preset--color--bla-01, #99d9e8);
}
body:is(.nordhov-header-scheme--teal, .nordhov-header-scheme--plum) {
    --nordhov-header-ink: var(--wp--preset--color--white, #fff);
    --nordhov-header-hover-ink: var(--wp--preset--color--accent, #e3e875);
    --nordhov-header-logo-filter: brightness(0) invert(1);
}
body.nordhov-header-scheme--teal {
    --nordhov-header-bg: var(--wp--preset--color--teal-01, #0d525c);
}
body.nordhov-header-scheme--plum {
    --nordhov-header-bg: var(--wp--preset--color--plommon-01, #6b294a);
}

/* The logged-in WordPress toolbar must always sit above the public site navigation. */
body > .wrapper > header.header { z-index: 9000 !important; }
body.admin-bar #wpadminbar { z-index: 1000000 !important; }

/* Neve/HFG paints several nested header layers. Keep every layer identical so
   no legacy row colour, overlay or one-pixel seam can show between header and page. */
body > .wrapper > header.header,
.hfg_header.site-header,
#header-grid {
    border: 0 !important;
    box-shadow: none !important;
}
.hfg_header :is(.header--row, .header--row-inner, .header-main-inner) {
    border: 0 !important;
    box-shadow: none !important;
    background-color: var(--nordhov-header-bg) !important;
    background-image: none !important;
}
.hfg_header::before,
#header-grid::before,
.hfg_header :is(.header--row, .header--row-inner, .header-main-inner)::before {
    display: none !important;
}
.hfg_header.nordhov-header-hidden,
.hfg_header.nordhov-header-hidden #header-grid {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Original sticky header contract: fixed HFG header + one dynamically-sized placeholder. */
.hfg_header.has-sticky-rows--mobile,
.hfg_header.has-sticky-rows--desktop {
    --rowbwidth: 0px;
    --rowbcolor: transparent;
    position: fixed;
    top: var(--nordhov-admin-bar-height, 0px);
    left: 0; right: 0; width: 100%; z-index: 9000;
    border: 0 !important;
    box-shadow: none !important;
}
.hfg_header :is(.header--row, .header--row-inner, .header-main-inner),
.sticky-header-placeholder {
    border: 0 !important;
    box-shadow: none !important;
}
.hfg_header :is(.header--row.is_sticky) {
    transform: translate3d(0, 0, 0);
    transition: transform .24s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
}
.hfg_header.nordhov-header-hidden :is(.header--row.is_sticky) {
    transform: translate3d(0, calc(0px - var(--nordhov-header-height, 89px)), 0);
}
.sticky-header-placeholder {
    display: block;
    width: 100%;
    height: var(--nordhov-header-height, 82px);
    transition: none !important;
    -webkit-transition: none !important;
    background: var(--nordhov-header-bg);
    /* Cover the fractional-pixel boundary between Neve's fixed row and page. */
    margin-bottom: -1px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nordhov-header-height, 89px) + 1rem);
}
:where(main, footer) [id] { scroll-margin-top: calc(var(--nordhov-header-height, 89px) + 1rem); }

/* A normal Gutenberg page remains usable even when it contains no Nordhov section blocks. */
.nordhov-native-page-shell {
    min-height: min(42rem, calc(100vh - var(--nordhov-header-height, 89px)));
    background: var(--wp--preset--color--gra, #EFEDED);
    color: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-native-page-shell > .container-fluid,
.nordhov-native-page-shell > .container-fluid > .row,
.nordhov-native-page-shell > .container-fluid > .row > .nv-single-page-wrap,
.nordhov-native-page-shell > .container-fluid > .row > .nv-single-page-wrap > .nv-content-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.nordhov-native-page-content {
    width: min(75rem, calc(100% - var(--container-pad, clamp(1.25rem, 4vw, 2.5rem)) - var(--container-pad, clamp(1.25rem, 4vw, 2.5rem))));
    margin-inline: auto;
    padding-block: clamp(3rem, 6vw, 6rem);
}
.nordhov-native-page-content > * { width: 100%; max-width: 54rem; }
.nordhov-native-page-content > * + * { margin-block-start: 1.25rem; }
.nordhov-native-page-content > :is(h1, h2, h3, h4) { margin-block-start: 2rem; }
.nordhov-native-page-content > :first-child { margin-block-start: 0; }
.nordhov-native-page-content__header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.nordhov-native-page-content__header h1,
.nordhov-native-page-content > h1:first-child {
    max-width: 54rem;
    margin: 0;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    line-height: 1.02;
}
.nordhov-native-page-content > :is(h2, h3, h4) { line-height: 1.12; }
.nordhov-native-page-content > p,
.nordhov-native-page-content > :is(ul, ol) { line-height: 1.6; }
.nordhov-native-page-content > .alignwide { width: min(100%, var(--wp--style--global--wide-size, 87.5rem)); }
.nordhov-native-page-content > .alignfull {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
}

.nordhov-error-page {
    background: linear-gradient(180deg, var(--wp--preset--color--bla-01, #99d9e8), var(--wp--preset--color--bla-04, #defaff));
    color: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-error-page__inner {
    width: min(48rem, calc(100% - var(--container-pad, clamp(1.25rem, 4vw, 2.5rem)) - var(--container-pad, clamp(1.25rem, 4vw, 2.5rem))));
    min-height: min(42rem, calc(100vh - 89px));
    margin-inline: auto;
    padding-block: clamp(4rem, 9vw, 8rem);
}
.nordhov-error-page__code {
    margin: 0 0 .5rem;
    color: var(--wp--preset--color--teal-01, #0d525c);
    font: 600 clamp(1rem, 1.5vw, 1.25rem)/1 var(--font-display, sans-serif);
    letter-spacing: .12em;
}
.nordhov-error-page h1 { max-width: 42rem; margin: 0; font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: .98; }
.nordhov-error-page__inner > p:not(.nordhov-error-page__code) { max-width: 38rem; margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.nordhov-error-page .wp-block-buttons { margin-top: 2rem; }
.nordhov-error-page .wp-block-button__link {
    display: inline-flex;
    padding: .8rem 1.5rem;
    border-radius: 1rem;
    background: var(--wp--preset--color--accent, #e3e875);
    color: var(--wp--preset--color--plommon-02, #42031c);
    font: 600 1.1rem/1.1 var(--font-display, sans-serif);
    text-decoration: none;
}
.nordhov-error-page .wp-block-button__link:hover,
.nordhov-error-page .wp-block-button__link:focus-visible { background: #d9df58; }

/* Owned Nordhov navigation layer. Menu content and hierarchy remain WordPress-managed. */
.header-main-inner {
    background: var(--nordhov-header-bg);
}
.header-main .container {
    width: calc(100% - var(--container-pad, 2.5rem) - var(--container-pad, 2.5rem));
}
.header-main .builder-item--logo {
    --maxwidth: 120px;
}
.header-main .site-logo img {
    width: var(--maxwidth);
    filter: var(--nordhov-header-logo-filter);
}
.site-header :is(.menu-desktop, .menu-mobile) a,
.site-header :is(.menu-desktop, .menu-mobile) a:hover,
.site-header :is(.menu-desktop, .menu-mobile) a:focus,
.site-header :is(.menu-desktop, .menu-mobile) a:active {
    text-decoration: none !important;
}
.menu-desktop {
    align-items: center;
    gap: clamp(1rem, 1.8vw, 2rem);
    margin: 0;
}
.menu-desktop > li {
    margin: 0;
}
.menu-desktop > li > a {
    min-height: 3rem;
    padding: .85rem 0;
    color: var(--nordhov-header-ink);
    background-image: linear-gradient(var(--nordhov-header-state), var(--nordhov-header-state));
    background-repeat: no-repeat;
    background-position: 0 calc(100% - .35rem);
    background-size: 0 2px;
    font-family: var(--font-display, "Chillax", sans-serif);
    font-size: clamp(.78rem, .9vw, 1rem);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    transition: color .2s ease, background-size .2s ease;
}
.site-header .menu-desktop > li:is(:hover, :focus-within) > a {
    color: var(--nordhov-header-hover-ink);
    background-size: 100% 2px;
}
.menu-desktop > :is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a {
    color: var(--nordhov-header-ink);
    background-size: 100% 2px;
}
.menu-desktop > .menu-item-has-children > a {
    gap: .6rem;
}
.menu-desktop > .menu-item-has-children > a::before {
    content: "";
    order: 2;
    width: .45rem;
    height: .45rem;
    margin-top: -.25rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.menu-desktop > .menu-item-has-children:is(:hover, :focus-within) > a::before {
    margin-top: .2rem;
    transform: rotate(225deg);
}
.menu-desktop > li > .sub-menu {
    top: calc(100% - .1rem);
    left: 50%;
    right: auto;
    display: block;
    min-width: 16rem;
    padding: 1rem;
    border-radius: 0 0 .75rem .75rem;
    background: var(--nordhov-header-bg);
    box-shadow: 0 1.25rem 2.5rem rgba(66, 3, 28, .16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-35%, -.5rem);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.menu-desktop > li:is(:hover, :focus-within) > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-35%, 0);
}
.menu-desktop > li > .sub-menu li {
    min-width: 0;
}
.menu-desktop > li > .sub-menu a {
    min-height: 0;
    padding: .7rem .8rem;
    border-radius: .5rem;
    color: var(--nordhov-header-ink);
    font-family: var(--font-display, "Chillax", sans-serif);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: normal;
}
.menu-desktop > li > .sub-menu li:is(:hover, :focus-within, .current-menu-item) > a {
    background: var(--nordhov-header-state);
    color: var(--nordhov-header-state-ink);
}
.menu-desktop > li.nordhov-nav-cta > a {
    min-height: 0;
    padding: .75rem 1.15rem;
    border-radius: 1rem;
    background: var(--nordhov-header-cta-bg);
    color: var(--nordhov-header-cta-ink);
}
.menu-desktop > li.nordhov-nav-cta.nordhov-nav-external > a::after {
    content: " ↗";
    margin-left: .35rem;
}
.menu-desktop > li.nordhov-nav-cta:is(:hover, :focus-within) > a {
    background: color-mix(in srgb, var(--nordhov-header-cta-bg) 82%, #42031c);
    color: var(--nordhov-header-cta-ink);
}
.menu-desktop a:focus:not(:focus-visible) { outline: none; }
.menu-desktop a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Standalone mobile-menu behavior; not part of the original visual design CSS. */
.header-menu-sidebar{visibility:hidden;opacity:0;pointer-events:none}.header-menu-sidebar.is-open{visibility:visible;opacity:1;pointer-events:auto}.header-menu-sidebar.is-open .header-menu-sidebar-bg{transform:translate3d(0,0,0)!important}.menu-open{overflow:hidden}

@media (max-width: 959px) {
    :root { --nordhov-header-height: 89px; }
    .header-main .builder-item--logo { --maxwidth: clamp(120px, 27vw, 150px); }
    .header-main .row--wrapper { min-height: var(--nordhov-header-height, 89px); }
    .menu-mobile-toggle .navbar-toggle {
        position: relative;
        display: grid;
        place-items: center;
        width: 3rem;
        min-width: 3rem;
        height: 3rem;
        padding: 0 !important;
        border: 1px solid transparent;
        border-radius: .75rem;
        line-height: 1;
        color: var(--nordhov-header-ink);
        background: transparent;
    }
    .menu-mobile-toggle .bars {
        position: relative;
        display: block;
        width: 1.75rem;
        height: 1.25rem;
    }
    .menu-mobile-toggle .icon-bar {
        position: absolute;
        left: 0;
        display: block;
        width: 100%;
        height: 2px;
        margin: 0 !important;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: top .2s ease, bottom .2s ease, opacity .15s ease, transform .2s ease;
    }
    .menu-mobile-toggle .icon-bar:nth-child(1) { top: 0; }
    .menu-mobile-toggle .icon-bar:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    .menu-mobile-toggle .icon-bar:nth-child(3) { bottom: 0; }
    .menu-open .menu-mobile-toggle .navbar-toggle {
        border-color: var(--wp--preset--color--plommon-01, #6b294a);
        background: var(--wp--preset--color--accent, #e3e875);
    }
    .menu-open .menu-mobile-toggle .icon-bar:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .menu-open .menu-mobile-toggle .icon-bar:nth-child(2) { opacity: 0; }
    .menu-open .menu-mobile-toggle .icon-bar:nth-child(3) {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%) rotate(-45deg);
    }

    .header-menu-sidebar {
        position: fixed;
        top: calc(var(--nordhov-admin-bar-height, 0px) + var(--nordhov-header-height, 89px));
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9001;
        transform: none;
    }
    .header-menu-sidebar-bg {
        width: 100%;
        height: 100%;
        padding: clamp(2.5rem, 8vw, 5rem) var(--container-pad, 2.5rem) 5rem;
        border-radius: 0 0 1rem 1rem;
        background: var(--wp--preset--color--plommon-01, #6b294a);
        color: var(--wp--preset--color--white, #fff);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .header-menu-sidebar-bg::before { display: none; }
    .header-menu-sidebar-inner { width: 100%; }
    .header-menu-sidebar-overlay { display: none; }
    .close-sidebar-panel { display: none !important; }

    .header-menu-sidebar .nv-nav-wrap,
    .header-menu-sidebar .menu-mobile { width: 100%; }
    .header-menu-sidebar .menu-mobile { margin: 0; }
    .header-menu-sidebar .menu-mobile > li {
        position: relative;
        margin: 0 0 1.8rem;
    }
    .header-menu-sidebar .menu-mobile > li > a {
        display: flex;
        width: fit-content;
        min-height: 0;
        padding: .35rem 0;
        color: var(--wp--preset--color--white, #fff);
        background-image: linear-gradient(var(--wp--preset--color--accent, #e3e875), var(--wp--preset--color--accent, #e3e875));
        background-repeat: no-repeat;
        background-position: 0 100%;
        background-size: 0 3px;
        font-family: var(--font-display, "Chillax", sans-serif);
        font-size: clamp(1.2rem, 4vw, 1.65rem);
        font-weight: 600;
        line-height: 1.15;
        text-transform: uppercase;
    }
    .header-menu-sidebar .menu-mobile > li:is(:hover, :focus-within, .current-menu-item, .current-menu-ancestor) > a {
        color: var(--wp--preset--color--accent, #e3e875);
        background-size: 100% 3px;
    }
    .header-menu-sidebar .menu-mobile > li > .sub-menu {
        position: static !important;
        display: none;
        margin: .7rem 0 0 clamp(1.5rem, 5vw, 3rem);
        padding: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }
    .header-menu-sidebar .menu-mobile > li.is-submenu-open > .sub-menu { display: block; }
    .header-menu-sidebar .menu-mobile > li > .sub-menu a {
        min-height: 0;
        padding: .75rem 0;
        color: var(--wp--preset--color--white, #fff);
        font-size: clamp(1rem, 3.2vw, 1.3rem);
        font-weight: 400;
        line-height: 1.3;
        text-transform: none;
        text-align: left;
        justify-content: flex-start;
    }
    .header-menu-sidebar .menu-mobile > li > .sub-menu li:is(:hover, :focus-within, .current-menu-item) > a {
        color: var(--wp--preset--color--accent, #e3e875);
    }
    .nordhov-submenu-toggle {
        position: absolute;
        top: -.4rem;
        right: 0;
        display: grid;
        place-items: center;
        width: 3.5rem;
        height: 3.5rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--wp--preset--color--accent, #e3e875);
        color: var(--wp--preset--color--plommon-01, #6b294a);
    }
    .nordhov-submenu-toggle span {
        width: .65rem;
        height: .65rem;
        margin-top: -.3rem;
        border-right: 3px solid currentColor;
        border-bottom: 3px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s ease, margin .2s ease;
    }
    .nordhov-submenu-toggle[aria-expanded="true"] span {
        margin-top: .3rem;
        transform: rotate(225deg);
    }
    .header-menu-sidebar .menu-mobile > li.nordhov-nav-cta > a {
        padding: 1rem 1.35rem;
        border-radius: 1rem;
        background: var(--wp--preset--color--accent, #e3e875);
        color: var(--wp--preset--color--plommon-01, #6b294a);
    }
    .header-menu-sidebar .menu-mobile > li.nordhov-nav-cta.nordhov-nav-external > a::after {
        content: " ↗";
        margin-left: .45rem;
    }
    .header-menu-sidebar a:focus:not(:focus-visible) { outline: none; }
    .header-menu-sidebar a:focus-visible,
    .header-menu-sidebar button:focus-visible {
        outline: 2px solid var(--wp--preset--color--accent, #e3e875);
        outline-offset: 4px;
    }
}

/* Footer shell reconstructed from the original Nordhov desktop composition. */
.site-footer {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    background: var(--wp--preset--gradient--hero, linear-gradient(180deg, #99d9e8 0%, #defaff 100%));
    color: var(--wp--preset--color--plommon-01, #6b294a);
}
.site-footer :is(.footer-main, .footer-bottom),
.site-footer :is(.footer-main-inner, .footer-bottom-inner) {
    --bgcolor: transparent;
    --bgimage: none;
    background: transparent;
}
.site-footer .footer-main-inner {
    padding-block: 4.375rem;
}
.site-footer .footer-main .container,
.site-footer .footer-bottom .container {
    width: calc(100% - var(--container-pad, 2.5rem) - var(--container-pad, 2.5rem));
    max-width: var(--wp--style--global--content-size, 1200px);
    margin-inline: auto;
}
.site-footer .footer-main-inner .row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.site-footer .nv-social-icons-list {
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer .nv-social-icons-list li {
    margin: 0;
}
.site-footer .nv-social-icons-list a {
    width: 2.25rem;
    height: 2.25rem;
    padding: .5rem;
    border-radius: .4rem;
    background: var(--wp--preset--color--plommon-01, #6b294a);
    color: var(--wp--preset--color--white, #fff);
    text-decoration: none;
}
.site-footer .nv-social-icons-list a:hover,
.site-footer .nv-social-icons-list a:focus-visible {
    background: var(--wp--preset--color--plommon-02, #42031c);
    color: var(--wp--preset--color--white, #fff);
}
.site-footer .nv-social-icons-list a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.site-footer .nv-social-icons-list :is(svg, img) {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
}
.site-footer .builder-item--footer-three-widgets {
    margin-top: 6.5rem;
}
.site-footer .builder-item--footer-three-widgets img {
    width: 185px !important;
}
.site-footer .widget .menu a[target="_blank"]::after {
    content: " ↗";
    display: inline;
}
.site-footer .nordhov-footer-contact p:not(.widget-title) {
    margin: 0 0 .45rem;
    font-size: .95rem;
    line-height: 1.45;
}
.site-footer .nordhov-footer-contact a {
    color: inherit;
    text-decoration: none;
}
.site-footer .nordhov-footer-contact a:hover,
.site-footer .nordhov-footer-contact a:focus-visible { text-decoration: underline; }
.site-footer .footer-bottom {
    --height: 4.5rem;
}
.site-footer .footer-bottom .container {
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--plommon-01, #6b294a) 38%, transparent);
}
.site-footer .footer-bottom-inner .row {
    min-height: 4.5rem;
    --valign: center;
}
.site-footer .builder-item--footer_copyright .component-wrap > div {
    font-size: .75rem;
    line-height: 1.4;
    text-align: center;
}

/* Independent fixed site control; visibility is managed by theme.js. */
.nordhov-back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9990;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: .2rem;
    background: var(--wp--preset--color--plommon-01, #6b294a);
    color: var(--wp--preset--color--white, #fff);
    font: 700 1.25rem/1 var(--font-body, sans-serif);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(.5rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background-color .2s ease;
}
.nordhov-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.nordhov-back-to-top:hover,
.nordhov-back-to-top:focus-visible {
    background: var(--wp--preset--color--plommon-02, #42031c);
}
.nordhov-back-to-top:focus-visible {
    outline: 2px solid var(--wp--preset--color--white, #fff);
    outline-offset: 3px;
}

@media (max-width: 781px) {
    .site-footer .footer-main-inner { padding-block: 3rem; }
    .site-footer .footer-main-inner .row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .site-footer .hfg-slot.center { display: block; }
    .site-footer .hfg-slot.c-right { grid-column: 1 / -1; }
    .site-footer .builder-item--footer-three-widgets { margin-top: 2rem; }
    .site-footer .footer-bottom { --height: auto; }
    .site-footer .footer-bottom-inner .row { min-height: 0; padding-block: 1.5rem; }
}

@media (max-width: 479px) {
    .site-footer .footer-main-inner .row { grid-template-columns: minmax(0, 1fr); }
    .site-footer .hfg-slot.c-right { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hfg_header :is(.header--row.is_sticky) { transition: none; }
    .nordhov-back-to-top { transition: none; }
}
/* Optional office CPT (NORDHOV_ENABLE_OFFICES). */
.nordhov-office-archive__hero,
.nordhov-office-single__hero { background: var(--wp--preset--color--plommon-02, #42031c); color: #fff; padding: clamp(4rem, 8vw, 8rem) 0; }
.nordhov-office-archive__hero h1,
.nordhov-office-single__hero h1 { color: inherit; margin: 0 0 1rem; }
.nordhov-office-archive__hero p,
.nordhov-office-single__hero p { max-width: 48rem; }
.nordhov-office-archive__eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nordhov-office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(3rem, 7vw, 7rem); }
.nordhov-office-card { background: var(--wp--preset--color--gra, #efeded); display: flex; flex-direction: column; }
.nordhov-office-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nordhov-office-card__content { flex: 1; padding: clamp(1.5rem, 4vw, 3rem); }
.nordhov-office-card__content h2 a { color: inherit; text-decoration: none; }
.nordhov-office-single__hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.nordhov-office-single__hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nordhov-office-single__body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3rem, 7vw, 7rem); }
.nordhov-office-single__contact { background: var(--wp--preset--color--accent, #e7e65f); padding: 2rem; align-self: start; }
.nordhov-office-single__team { padding-bottom: clamp(4rem, 8vw, 8rem); }
.nordhov-office-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.nordhov-office-person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.nordhov-office-person h3 { margin-bottom: .35rem; }
.nordhov-office-person p { margin-top: 0; }
@media (max-width: 768px) {
    .nordhov-office-grid,
    .nordhov-office-single__hero-grid,
    .nordhov-office-single__body { grid-template-columns: 1fr; }
    .nordhov-office-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
