@font-face {
    font-family: "Sui Generis";
    src: url("/Scripts/fonts/Sui%20Generis%20Rg.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #111;
    font-family: "Roboto", Arial, sans-serif;
    background-color: #fff;
}

.wrapper {
    min-height: 100vh;
}

/* Header geometry (overridden per breakpoint in mobile_style.css).
   Proportions follow the design file ImageSources/public/navbar.png:
   the logo tab drops ~31% of the bar height below the bar and returns on a 45-degree slant. */
:root {
    --nav-h: 84px;                       /* menu bar height */
    --nav-tab-h: 28px;                   /* how far the logo tab drops below the bar */
    --nav-pad: clamp(24px, 4.4vw, 84px); /* left padding before the logo */
    --brand-w: clamp(240px, 16vw, 300px);
    --nav-tab-w: calc(var(--nav-pad) + var(--brand-w) + 20px); /* tab width at its bottom edge */
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    /* drop-shadow follows the tab's outline; box-shadow would only trace the rectangle. */
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.2));
}

.site-navbar {
    position: relative;
    height: var(--nav-h);
    background-color: #fff;
}

/* Logo tab below the bar, closing on a 45-degree slant. */
.site-navbar::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(var(--nav-tab-w) + var(--nav-tab-h));
    height: var(--nav-tab-h);
    background-color: #fff;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--nav-tab-h)) 100%, 0 100%);
    content: "";
}

/* Yellow rule from the top of the slant to the right edge, its start cut at the same angle. */
.site-navbar::before {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: calc(var(--nav-tab-w) + var(--nav-tab-h) + 8px);
    height: 5px;
    background-color: #ffed00;
    clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%);
    content: "";
}

.site-navbar__inner {
    position: relative;
    z-index: 1; /* above the tab, so the logo can extend into it */
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 auto;
    padding: 0 0 0 var(--nav-pad);
}

.site-navbar__brand {
    display: block;
    flex: 0 0 auto;
    align-self: flex-start;
    width: var(--brand-w);
    /* Center the logo (452x76) over the bar plus the tab. */
    margin-top: calc((var(--nav-h) + var(--nav-tab-h) - var(--brand-w) * 0.168) / 2);
    line-height: 0;
}

.site-navbar__brand img,
.site-nav-drawer__header img {
    display: block;
    width: 100%;
    height: auto;
}

.site-navbar__desktop {
    align-self: stretch;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: clamp(48px, 5.5vw, 124px);
}

.site-nav {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    margin: 0;
    padding: 0 20px 13px 0; /* keeps the items above the yellow rule */
    list-style: none;
}

.site-nav__item {
    position: relative;
    display: flex;
    align-items: stretch; /* item bottom = top of the yellow rule; the active arrow and submenu hang from it */
}

.site-nav__link,
.site-nav__home {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #050505;
    font-family: "Sui Generis", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.4px;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease;
}

.site-nav__link {
    padding: 6px clamp(8px, 0.8vw, 16px);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__home:hover,
.site-nav__home:focus-visible {
    color: #a18f00;
}

.site-nav__link:focus-visible,
.site-nav__home:focus-visible,
.site-navbar__toggle:focus-visible,
.site-nav-drawer__close:focus-visible,
.site-nav-mobile a:focus-visible,
.site-nav-mobile button:focus-visible {
    outline: 3px solid #ffed00;
    outline-offset: 3px;
}

/* Arrow hanging just below the yellow rule (rule: 5px tall, directly under the item). */
.site-nav__link.is-active::after,
.site-nav__home.is-active::after {
    position: absolute;
    top: calc(100% + 5px);
    right: 50%;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-bottom: 0;
    border-left: 8px solid transparent;
    border-top: 9px solid #ffed00;
    content: "";
    transform: translateX(50%);
}

.site-nav__home {
    width: 46px;
    font-family: inherit;
    font-size: 18px;
}

/* Opens at the bar's bottom edge; its shadow comes from the header's drop-shadow. */
.site-nav__submenu {
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    z-index: 10;
    width: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.site-nav__submenu a {
    display: block;
    padding: 11px 24px;
    color: #050505;
    font-family: "Sui Generis", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.05;
    letter-spacing: 0.35px;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.site-nav__submenu a:hover,
.site-nav__submenu a:focus-visible,
.site-nav__submenu a.is-active {
    color: #050505;
    background-color: #ffed00;
    outline: none;
}

.site-nav__item--dropdown:hover .site-nav__submenu,
.site-nav__item--dropdown:focus-within .site-nav__submenu,
.site-nav__item--dropdown.is-open .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.site-navbar__toggle {
    display: none;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    margin-bottom: 13px; /* center it in the space above the yellow rule */
    margin-left: auto;
    padding: 9px 7px;
    border: 0;
    background: transparent;
}

.site-navbar__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 6px 0;
    background-color: #050505;
    transition: background-color 160ms ease;
}

.site-navbar__toggle:hover span {
    background-color: #a18f00;
}

.site-nav-drawer {
    width: min(88vw, 390px) !important;
    border-left: 5px solid #ffed00 !important;
    background-color: #fff;
}

.site-nav-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    padding: 17px 22px;
    border-bottom: 1px solid #e6e6e6;
}

.site-nav-drawer__header > a {
    width: 174px;
    line-height: 0;
}

.site-nav-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #050505;
    font-size: 26px;
    background: transparent;
}

.site-nav-drawer__body {
    padding: 18px 22px 32px;
}

.site-nav-mobile,
.site-nav-mobile__submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav-mobile > li {
    border-bottom: 1px solid #dedede;
}

.site-nav-mobile a,
.site-nav-mobile__product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border: 0;
    color: #050505;
    font-family: "Sui Generis", Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-align: left;
    text-decoration: none;
    background: transparent;
}

.site-nav-mobile a:hover,
.site-nav-mobile__product:hover,
.site-nav-mobile a.is-active {
    color: #050505;
    background-color: #ffed00;
}

.site-nav-mobile__product i {
    font-family: bootstrap-icons !important;
    font-size: 15px;
    transition: transform 180ms ease;
}

.site-nav-mobile__product[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.site-nav-mobile__submenu {
    padding: 0 0 9px 17px;
    background-color: #f6f6f6;
}

.site-nav-mobile__submenu a {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 19px;
}

.site-nav-mobile__home {
    justify-content: flex-start !important;
    gap: 12px;
}

/* ==========================================================
   Shared components
   ========================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + var(--nav-tab-h) + 16px); /* clear the header and its logo tab */
}

.site-title {
    margin: 0;
    color: #111;
    font-family: "Sui Generis", Arial, sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.site-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 0;
    color: #fff;
    font-family: "Sui Generis", Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-decoration: none;
    background-color: #111;
    transition: color 180ms ease, background-color 180ms ease;
}

.site-btn i {
    font-size: 18px;
    transition: transform 180ms ease;
}

.site-btn:hover,
.site-btn:focus-visible {
    color: #111;
    background-color: #ffed00;
}

.site-btn:hover i {
    transform: translateX(4px);
}

.site-btn:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
    border-top: 1px solid #e6e6e6;
    background-color: #fff;
}

.site-footer__logo {
    display: inline-block;
    width: 240px;
    line-height: 0;
}

.site-footer__nav {
    list-style: none;
}

.site-footer__nav a {
    color: #111;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: #a18f00;
}

.site-footer__label {
    margin: 0 0 6px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.site-footer__value {
    color: #333;
    font-size: 15px;
    font-style: normal;
    text-decoration: none;
}

a.site-footer__value:hover {
    color: #a18f00;
}

.site-footer__bottom {
    padding: 14px 16px;
    border-top: 4px solid #ffed00;
    color: #bbb;
    font-size: 13px;
    letter-spacing: 0.5px;
    background-color: #111;
}
