:root {
    --nh-green: #0bbd2f;
    --nh-green-dark: #007a18;
    --nh-orange: #fe6500;
    --nh-purple: #56509f;
    --nh-text: #707070;
}

html { scroll-behavior: smooth; }
body { font-family: "Open Sans", sans-serif; color: var(--nh-text); }
h1, h2, h3, h4, h5, h6, .font-heading { font-family: "Lato", sans-serif; }
section[id] { scroll-margin-top: 85px; }

.inner-page-header {
    padding: 46px 0 50px;
    color: #fff;
    background-color: var(--nh-purple);
}
.inner-page-header p { color: #cccae2; }
.inner-page-header.pattern-green p { color: #fff; }

.source-list li {
    position: relative;
    padding-left: 32px;
    font-size: 15px;
    line-height: 1.8;
}
.source-list li::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 17px;
    height: 17px;
    background: url("../images/fable/decor/style_1.png") center / contain no-repeat;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 40;
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 14px;
    margin: 30px auto 0;
    background: url("../images/fable/decor/header_divider.png") center / contain no-repeat;
}

.section-heading { margin-bottom: 60px; }
.section-heading p { margin-top: 15px; color: #a0a0a0; font-size: 14px; }

.theme-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
    padding: 14px 20px;
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}
.theme-button.border-white { border-color: #fff; }

.pattern-green {
    background-color: var(--nh-green-dark);
    background-image: linear-gradient(rgba(0, 90, 18, .08), rgba(0, 90, 18, .08)), url("../images/brand/green-pattern.png");
    background-position: center;
    background-size: cover;
}

.hero-shade {
    background: linear-gradient(105deg, rgba(0, 74, 23, .9) 0%, rgba(17, 117, 59, .62) 48%, rgba(53, 200, 115, .08) 100%);
}

.hero-slider { background: #11753b; }
.hero-slide {
    opacity: 1;
    transform: translate3d(100%, 0, 0);
    transition: transform .8s ease;
    will-change: transform;
}
.hero-slide.is-active { transform: translate3d(0, 0, 0); }
.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: "Roboto", Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.hero-kicker { margin-bottom: 4px; font-size: clamp(24px, 2.2vw, 28px); font-weight: 400; line-height: 1.35; }
.hero-lead { font-size: clamp(44px, 4.8vw, 60px); font-weight: 900; line-height: 1.05; }
.hero-title { margin-top: 8px; font-size: clamp(38px, 4.2vw, 52px); font-weight: 400; line-height: 1.1; }
.hero-cta { margin-top: 32px; text-shadow: none; }
.hero-arrow { width: 32px; height: 48px; place-items: center; }
.hero-arrow .material-symbols-outlined { font-size: 32px; }

@media (max-width: 639px) {
    .hero-kicker { font-size: 23px; }
    .hero-lead { max-width: 330px; font-size: 42px; }
    .hero-title { max-width: 330px; margin-top: 6px; font-size: 38px; line-height: 1.12; }
    .hero-cta { margin-top: 28px; }
    .hero-shade { background: linear-gradient(100deg, rgba(0, 74, 23, .9), rgba(17, 117, 59, .55)); }
}

.site-header {
    position: sticky;
    top: 0;
    transition: box-shadow .2s ease, opacity .1s ease, transform .25s ease;
}

.site-header.is-sticky {
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.site-header.is-sticky.is-scrolling {
    opacity: 0;
    transform: translateY(-100%);
}

.site-logo img {
    transition: height .2s ease;
}

.nav-main-link {
    display: block;
    min-width: 100px;
    padding: 30px 10px 25px;
    box-sizing: border-box;
    color: #474747;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

.nav-menu-icon {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 15px;
    background-position: 0 0;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(1898%) hue-rotate(100deg) brightness(88%) contrast(104%);
}

.nav-main-link:hover,
.nav-main-link:focus-visible,
.nav-main-link-active {
    color: #fff;
    background: var(--nh-orange);
}

.nav-main-link:hover .nav-menu-icon,
.nav-main-link:focus-visible .nav-menu-icon,
.nav-main-link-active .nav-menu-icon {
    background-position: 0 -32px;
    filter: none;
}

.site-header.is-sticky .site-logo img {
    height: 71px;
}

.site-header.is-sticky .nav-main-link {
    min-width: 0;
    padding: 25px 20px;
}

.site-header.is-sticky .nav-menu-icon {
    display: none;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    display: block;
    min-width: 300px;
    padding: 10px;
    border-top: 2px solid var(--nh-orange);
    background: #fff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transform: scaleY(.92);
    transform-origin: top;
    transition: opacity .2s ease, transform .4s ease, visibility .2s ease;
}

.nav-dropdown a {
    display: block;
    padding: 11px 20px;
    color: var(--nh-text);
    font-size: 14px;
    text-decoration: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    color: #fff;
    background: var(--nh-orange);
}

.nav-parent:hover .nav-dropdown,
.nav-parent:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

.mobile-nav-toggle,
.mobile-nav-link {
    width: 100%;
    border: 1px solid #e8e8e8;
    color: #474747;
    background: #fff;
    text-align: left;
}

.mobile-nav-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px 10px 20px;
    font-size: 14px;
}

.mobile-nav-link {
    display: block;
    margin-top: -1px;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link.is-active {
    color: #fff;
    background: var(--nh-orange);
}

.image-fade { transition: opacity .25s ease; }

.back-to-top {
    right: 30px;
    bottom: 30px;
    width: 46px;
    height: 46px;
    background-color: rgba(0, 0, 0, .5);
    background-image: url("../images/fable/decor/go_to_top.png");
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color .2s ease;
}
.back-to-top:hover,
.back-to-top:focus-visible { background-color: var(--nh-orange); }
.back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.fable-tabs button { color: #707070; transition: color .2s ease, background-color .2s ease; }
.fable-tabs button.is-active { color: #fff; background: var(--nh-orange); }
.fable-tabs button.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid var(--nh-orange);
    transform: translateX(-50%);
}

.counter-slide { flex-basis: 100%; }

@media (min-width: 640px) { .counter-slide { flex-basis: 50%; } }
@media (min-width: 1024px) { .counter-slide { flex-basis: 25%; } }

@media (max-width: 639px) {
    .back-to-top { right: 10px; bottom: 10px; }
}

.soft-card {
    box-shadow: 0 12px 32px rgba(38, 54, 44, .08);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
