@font-face {
    font-family: 'Amerlink Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Amerlink Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Amerlink Montserrat';
    src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

.amerlink-genesis-home {
    --amh-navy: #002a54;
    --amh-blue: #08aef3;
    --amh-pink: #f50072;
    color: #fff;
    font-family: 'Amerlink Montserrat', Arial, sans-serif;
}

.amerlink-genesis-home .site-container {
    position: relative;
}

/* Genesis skip links (genesis_skip_links(), lib/structure/header.php): hidden until focused. Visible, the list
   pushed the hero 93px down and left a light band under the transparent header. */
.genesis-skip-link {
    margin: 0;
    padding: 0;
}

.genesis-skip-link li {
    width: 0;
    height: 0;
    list-style: none;
}

.screen-reader-shortcut {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.screen-reader-shortcut:focus {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    background: #fff;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
    color: var(--amh-navy);
    font-weight: 600;
    text-decoration: none;
}

.amerlink-genesis-home .site-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    background: transparent;
}

/* Block, not the flex row from style.css: the top bar and the logo/menu row are stacked. */
.amerlink-genesis-home .site-header .wrap {
    display: block;
    width: min(100% - 64px, 1510px);
    max-width: none;
    min-height: 124px;
    margin-inline: auto;
    padding: 18px 0 22px;
}

.amerlink-genesis-home .site-inner,
.amerlink-genesis-home .site-inner > .wrap,
.amerlink-genesis-home .content-sidebar-wrap,
.amerlink-genesis-home .content {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.amerlink-genesis-home .site-inner .content > .entry {
    margin: 0;
    padding: 0;
    background: none;
}

/* Sticky header (home-hero.js): past its own height the header is fixed at the top in a compact form, logo and menu.
   .site-container > .site-header outweighs the position the home page (absolute) and the restyled pages (relative,
   site-components.css) give it. */
.site-container > .site-header.amh-stuck {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    /* style_tymek.css: .home-pro header { height: 100px } below 500px (the Divi header). */
    height: auto;
    background: linear-gradient(100deg, #01216a 0%, #002a54 58%, #001a40 100%);
    box-shadow: 0 10px 28px rgba(0, 20, 52, .28);
}

.site-container > .site-header.amh-stuck-enter {
    animation: amh-stick-in .3s ease-out;
}

@keyframes amh-stick-in {
    from {
        transform: translateY(-100%);
    }
}

.admin-bar .site-container > .site-header.amh-stuck {
    top: var(--wp-admin--admin-bar--height, 32px);
}

.site-container > .site-header.amh-stuck .wrap {
    min-height: 0;
    padding-block: 10px;
}

.site-container > .site-header.amh-stuck .amh-topbar {
    display: none;
}

.site-container > .site-header.amh-stuck .amh-logo {
    width: clamp(132px, 11vw, 190px);
}

/* The mobile menu opened in the fixed header scrolls inside it. */
.site-container > .site-header.amh-stuck .amh-nav.is-open {
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
}

/* Account icons of the sticky header (template-parts/home/hero-header.php): Sign in and Create My Free Profile, or
   My Account and Sign out. Hidden in the normal header, whose top bar has the same links as text. */
.amh-stuck-account {
    display: none;
}

.site-container > .site-header.amh-stuck .amh-stuck-account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.amh-stuck-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 50%;
    background: rgba(109, 185, 240, .2);
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.amh-stuck-icon:hover,
.amh-stuck-icon:focus-visible {
    border-color: #9cdeff;
    background: rgba(109, 185, 240, .4);
    color: #fff;
    text-decoration: none;
}

.amh-stuck-icon svg {
    width: 19px;
    height: 19px;
}

/* Create My Free Profile in the pink of the header's call to action. */
.amh-stuck-icon.amh-stuck-icon-register {
    border-color: var(--amh-pink, #f50072);
    background: var(--amh-pink, #f50072);
}

.amh-stuck-icon.amh-stuck-icon-register:hover,
.amh-stuck-icon.amh-stuck-icon-register:focus-visible {
    border-color: #d90063;
    background: #d90063;
}

/* The link text stays for screen readers; the title attribute shows it on hover. */
.amh-icon-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* In-page links (and the pages' own sticky boxes, page-program.css) leave room for the fixed header. */
html:has(.amh-header) {
    --amh-stuck-space: 80px;
    scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--amh-stuck-space));
}

/* Top bar above the logo and menu: language, account, search, CTA. */
.amh-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.amh-topbar .amh-search summary {
    width: 40px;
    height: 40px;
}

.amh-topbar .amh-search summary svg {
    width: 19px;
    height: 19px;
}

.amh-topbar .amh-header-cta {
    min-height: 42px;
    gap: 12px;
    padding: 8px 20px;
    font-size: 15px;
}

.amh-topbar .amh-header-cta span {
    font-size: 22px;
}

.amh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: clamp(20px, 2.2vw, 42px);
}

.amh-logo {
    display: block;
    flex: 0 0 auto;
    width: clamp(185px, 15.2vw, 255px);
    line-height: 0;
}

.amh-logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.amh-nav {
    flex: 1 1 auto;
}

.amh-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 2vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.amh-menu li {
    position: relative;
    margin: 0;
    list-style: none;
}

.amh-menu a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.amh-menu a:hover,
.amh-menu a:focus-visible {
    color: #9cdeff;
}

/* The primary menu (shared with Divi) also holds account and language items; the header shows those in
   .amh-header-actions, so hide them here as Divi-child's style.css does for #top-menu. */
.amh-menu > .main_sign_in_bt,
.amh-menu > .my-logout-bt,
.amh-menu > .member-area-item,
.amh-menu > .trp-language-switcher-container {
    display: none;
}

.amh-menu .sub-menu {
    position: absolute;
    z-index: 25;
    top: 100%;
    left: -18px;
    min-width: 220px;
    margin: 0;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: #062d59;
    list-style: none;
    opacity: 0;
    visibility: hidden;
}

.amh-menu li:hover > .sub-menu,
.amh-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.amh-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
}

.amh-account {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.amh-account a {
    /* Padding only enlarges the tap area to 24px (WCAG 2.5.8); the look stays the same. */
    display: inline-block;
    padding-block: 3px;
    color: #fff;
    text-decoration: none;
}

.amh-account a:hover,
.amh-account a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.amh-account .my-separator {
    opacity: .6;
}

/* TranslatePress shortcode switcher shown as plain "EN PL" links, like Divi-child's #main-header rules. */
.amh-lang {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.amh-lang .trp-language-switcher.trp-language-switcher-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: auto;
    height: auto;
    margin: 0;
}

/* !important on width: the plugin's script sets an inline width (112px) on both boxes. */
.amh-lang .trp-language-switcher.trp-language-switcher-container > div {
    display: inline-block !important;
    width: auto !important;
    min-width: 24px;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    visibility: visible !important;
}

.amh-lang .trp-language-switcher > div > a {
    display: block;
    padding: 3px 0;
    border-radius: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.amh-lang .trp-language-switcher > div > a:hover,
.amh-lang .trp-language-switcher > div > a:focus-visible {
    background: transparent;
    color: #9cdeff;
}

.amh-lang .trp-language-switcher:hover .trp-ls-shortcode-language {
    position: relative !important;
}

.amh-lang .trp-ls-shortcode-language .trp-ls-disabled-language {
    display: none;
}

.amh-search {
    position: relative;
}

.amh-search summary {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 50%;
    background: rgba(109, 185, 240, .2);
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.amh-search summary::-webkit-details-marker {
    display: none;
}

.amh-search summary svg {
    width: 25px;
    height: 25px;
}

.amh-search-form {
    position: absolute;
    z-index: 30;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, 86vw);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: #062d59;
    box-shadow: 0 14px 34px rgba(0, 11, 31, .32);
}

.amh-search-form form {
    display: flex;
    gap: 8px;
    margin: 0;
}

.amh-search-form input[type='search'] {
    min-width: 0;
    flex: 1;
}

.amh-search-form input[type='submit'] {
    padding: 8px 12px;
    background: var(--amh-pink);
}

.amh-button {
    display: inline-flex;
    min-height: 57px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 29px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.amh-button:hover,
.amh-button:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.amh-button-primary {
    background: var(--amh-pink);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.amh-button-primary:hover,
.amh-button-primary:focus-visible {
    background: #d90063;
}

.amh-button-primary span {
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: .7;
}

.amh-button-outline {
    border-color: rgba(255, 255, 255, .8);
    background: rgba(0, 31, 69, .35);
}

.amh-button-outline:hover,
.amh-button-outline:focus-visible {
    background: rgba(255, 255, 255, .16);
}

.amh-menu-toggle {
    display: none;
}

.amh-hero {
    position: relative;
    min-height: min(940px, max(740px, 56vw));
    overflow: hidden;
    background: var(--amh-navy);
    isolation: isolate;
}

.amh-background,
.amh-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.amh-background {
    z-index: -2;
    object-fit: cover;
    object-position: center top;
}

.amh-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 30, 68, .94) 0%, rgba(0, 33, 73, .83) 28%, rgba(0, 36, 78, .32) 49%, rgba(0, 37, 77, .08) 71%),
        linear-gradient(0deg, rgba(0, 27, 61, .97) 0%, rgba(0, 29, 65, .68) 15%, transparent 45%),
        linear-gradient(180deg, rgba(0, 29, 63, .27) 0%, transparent 24%);
}

.amh-hero::after {
    position: absolute;
    z-index: -1;
    top: 3%;
    right: -8%;
    width: 25%;
    height: 100%;
    background: repeating-linear-gradient(155deg, transparent 0 31px, rgba(0, 54, 130, .26) 32px 56px, transparent 57px 88px);
    content: '';
    transform: rotate(-5deg);
    pointer-events: none;
}

.amh-hero-inner {
    display: flex;
    width: min(100% - 64px, 1510px);
    min-height: inherit;
    flex-direction: column;
    justify-content: space-between;
    margin-inline: auto;
    padding: clamp(214px, 14vw, 240px) 0 96px;
}

.amh-copy {
    width: min(100%, 665px);
}

.amh-eyebrow {
    margin: 0 0 18px;
    color: #d5e6f5;
    font-size: clamp(12px, .95vw, 16px);
    font-weight: 600;
    letter-spacing: .19em;
    line-height: 1.4;
}

.amh-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(49px, 4.1vw, 72px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.amh-copy h1 span {
    display: block;
}

.amh-copy .amh-title-accent {
    color: var(--amh-blue);
}

.amh-description {
    width: min(100%, 630px);
    margin: 20px 0 39px;
    color: #fff;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.5;
}

.amh-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.amh-bottom {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 100px;
}

.amh-cards {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.amh-card {
    display: flex;
    min-height: 132px;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border: 1px solid rgba(35, 146, 243, .48);
    border-radius: 13px;
    background: rgba(0, 42, 88, .78);
    box-shadow: 0 16px 30px rgba(0, 20, 45, .13);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(9px);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.amh-card:hover,
.amh-card:focus-visible {
    border-color: #5ebaff;
    background: rgba(0, 71, 139, .91);
    color: #fff;
    transform: translateY(-3px);
}

.amh-card-icon {
    display: grid;
    width: 73px;
    height: 73px;
    flex: 0 0 73px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(140deg, #088be0, #0751a1);
}

.amh-card-icon svg {
    width: 48px;
    height: 48px;
}

.amh-card-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    line-height: 1.32;
}

.amh-card-copy strong {
    font-size: clamp(14px, 1.1vw, 19px);
    font-weight: 600;
}

.amh-card-copy > span {
    color: #e2eefc;
    font-size: clamp(13px, .94vw, 17px);
}

.amh-card-arrow {
    align-self: center;
    font-family: Arial, sans-serif;
    font-size: 29px;
    font-weight: 400;
}

/* A hyphenated word of the headline ("Best-Fit") is not split at its hyphen (template-parts/home/hero.php); inline,
   unlike the headline's own line spans above. */
.amh-copy h1 .amh-nowrap {
    display: inline;
    white-space: nowrap;
}

.amh-handwritten {
    width: 160px;
    flex: 0 0 160px;
    margin: 0;
    color: #fff;
    font-family: 'Segoe Print', 'Bradley Hand', cursive;
    font-size: 25px;
    font-style: italic;
    line-height: 1.5;
    transform: rotate(-7deg);
}

.amh-handwritten::after {
    display: block;
    width: 95px;
    height: 4px;
    margin: 14px 0 0 12px;
    border-radius: 100%;
    background: var(--amh-pink);
    content: '';
}

@media (max-width: 1330px) {
    .amh-header-actions {
        gap: 12px;
    }

    .amh-header-cta {
        padding-inline: 18px;
        font-size: 14px;
    }

    .amh-bottom {
        gap: 18px;
    }

    .amh-card {
        gap: 13px;
        padding: 15px;
    }

    .amh-card-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .amh-card-icon svg {
        width: 39px;
        height: 39px;
    }

    .amh-handwritten {
        width: 130px;
        flex-basis: 130px;
        font-size: 21px;
    }
}

@media (max-width: 1080px) {
    .amh-header {
        flex-wrap: wrap;
    }

    .amh-menu-toggle {
        display: grid;
        width: 48px;
        height: 48px;
        order: 3;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 8px;
        background: rgba(0, 34, 75, .5);
        color: #fff;
        cursor: pointer;
    }

    .amh-menu-toggle-lines,
    .amh-menu-toggle-lines::before,
    .amh-menu-toggle-lines::after {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        content: '';
    }

    .amh-menu-toggle-lines::before {
        transform: translateY(-7px);
    }

    .amh-menu-toggle-lines::after {
        transform: translateY(5px);
    }

    .amh-nav {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        order: 4;
        padding: 14px 20px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 9px;
        background: #032b58;
    }

    .amh-nav.is-open {
        display: block;
    }

    .amh-menu {
        display: block;
    }

    .amh-menu a {
        padding: 10px 0;
        font-size: 16px;
    }

    .amh-menu .sub-menu {
        position: static;
        margin: 0 0 8px 15px;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, .35);
        border-radius: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
    }

    /* The actions moved to .amh-topbar, so the toggle itself goes to the right edge of the logo row. */
    .amh-menu-toggle {
        margin-left: auto;
    }

    /* Sticky header: the account icons before the toggle, both at the right edge. */
    .site-container > .site-header.amh-stuck .amh-stuck-account {
        order: 2;
        margin-left: auto;
    }

    .site-container > .site-header.amh-stuck .amh-menu-toggle {
        margin-left: 0;
    }

    .amh-hero-inner {
        padding-top: 205px;
    }
}

/* Tablets: three cards in a row left them ~50px for their text (words one under another, the arrow over the text).
   One card under another, the note beside them; below 781px the note goes under the cards. */
@media (min-width: 781px) and (max-width: 1023px) {
    .amh-bottom {
        margin-top: 70px;
    }

    .amh-cards {
        flex: 0 1 560px;
        grid-template-columns: minmax(0, 1fr);
    }

    .amh-card {
        min-height: 100px;
    }

    .amh-card-copy strong {
        font-size: 17px;
    }

    .amh-card-copy > span {
        font-size: 14px;
    }

    .amh-handwritten {
        margin-left: auto;
    }
}

@media (max-width: 780px) {
    .amerlink-genesis-home .site-header .wrap,
    .amh-hero-inner {
        width: min(100% - 36px, 660px);
    }

    .amerlink-genesis-home .site-header .wrap {
        min-height: 84px;
        padding-block: 16px;
    }

    .amh-topbar {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .amh-logo {
        width: 168px;
    }

    .amh-header-cta {
        display: none;
    }

    .amh-search summary {
        width: 45px;
        height: 45px;
    }

    .amh-hero {
        min-height: 0;
    }

    .amh-background {
        height: 570px;
        object-position: 64% top;
    }

    .amh-shade {
        background:
            linear-gradient(0deg, #002249 0%, rgba(0, 34, 73, .92) 25%, rgba(0, 34, 73, .2) 58%),
            linear-gradient(90deg, rgba(0, 32, 70, .9), rgba(0, 32, 70, .32));
    }

    .amh-hero-inner {
        padding: 190px 0 45px;
    }

    .amh-copy {
        width: min(100%, 570px);
    }

    .amh-copy h1 {
        font-size: clamp(38px, 7.7vw, 55px);
    }

    .amh-description {
        max-width: 470px;
        font-size: 16px;
    }

    .amh-bottom {
        display: block;
        margin-top: 85px;
    }

    .amh-cards {
        grid-template-columns: 1fr;
        max-width: 550px;
    }

    .amh-card {
        min-height: 100px;
    }

    .amh-card-copy strong {
        font-size: 17px;
    }

    .amh-card-copy > span {
        font-size: 14px;
    }

    .amh-handwritten {
        width: auto;
        max-width: 230px;
        margin: 36px 0 0 auto;
    }
}

@media (max-width: 520px) {
    .amh-logo {
        width: 132px;
    }

    .amh-header {
        gap: 10px;
    }

    .amh-header-actions {
        gap: 8px;
    }

    .amh-account {
        gap: 6px;
        font-size: 14px;
    }

    .amh-hero-inner {
        padding-top: 160px;
    }

    .amh-eyebrow {
        font-size: 11px;
        letter-spacing: .12em;
    }

    .amh-copy h1 {
        text-wrap: balance;
    }

    .amh-copy h1 {
        font-size: clamp(35px, 9.1vw, 46px);
    }

    .amh-cta-row {
        display: grid;
        gap: 12px;
    }

    .amh-button {
        min-height: 52px;
        padding-inline: 16px;
        font-size: 14px;
    }

    .amh-bottom {
        margin-top: 64px;
    }

    .amh-handwritten {
        font-size: 20px;
    }
}

/* The narrowest phones: the logo, two account icons and the toggle in one row of the sticky header (284px at 320px). */
@media (max-width: 360px) {
    .site-container > .site-header.amh-stuck .amh-header {
        gap: 8px;
    }

    .site-container > .site-header.amh-stuck .amh-stuck-account {
        gap: 6px;
    }

    .amh-stuck-icon {
        width: 36px;
        height: 36px;
    }
}

/* WordPress' admin bar scrolls away on phones (admin-bar.css), so the fixed header goes to the very top there. */
@media (max-width: 600px) {
    .admin-bar .site-container > .site-header.amh-stuck {
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amh-button,
    .amh-card {
        transition: none;
    }

    .site-container > .site-header.amh-stuck-enter {
        animation: none;
    }
}
