:root {
  --ebp-content-width: 1480px;
  --ebp-page-gutter: clamp(18px, 3.4vw, 58px);
  --ebp-brown: #35170d;
  --ebp-brown-soft: #6f391d;
  --ebp-gold: #d39a4a;
  --ebp-cream: #f6d69b;
  --ebp-header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ebp-header-height) - 30px);
}

body {
  margin: 0;
  background: #fff;
  color: #666666;
  font-family: "filson-pro", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea {
  font-family: "filson-pro", sans-serif;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ebp-brown-soft);
  font-weight: 500;
}

a {
  color: var(--ebp-brown-soft);
}

hr {
  height: 0;
  border: 0;
  border-top: 2px solid var(--ebp-gold);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a img {
  cursor: pointer !important;
  transform-origin: center;
  transition: opacity .3s ease-in-out, transform .3s ease-in-out;
}

a:hover img,
a:focus-visible img {
  opacity: .82;
  transform: scale(1.06);
}

.ebp-skip-link {
  position: absolute;
  z-index: 10001;
  top: 12px;
  left: -9999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ebp-brown);
}

.ebp-skip-link:focus {
  left: 12px;
}

.ebp-header {
  position: relative;
  z-index: 10000;
  min-height: var(--ebp-header-height);
  padding-top: var(--ebp-header-height);
  color: var(--ebp-cream);
}

.ebp-header::before {
  position: fixed;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: var(--ebp-header-height);
  background: var(--ebp-brown) url("images/menubg.jpg") center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.ebp-header__inner {
  position: fixed;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr) minmax(210px, auto);
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  width: min(calc(100% - (2 * var(--ebp-page-gutter))), var(--ebp-content-width));
  min-height: var(--ebp-header-height);
  margin: 0 auto;
}

.ebp-header__applications {
  position: relative;
  z-index: 1;
  display: flow-root;
  width: 100%;
}

.ebp-socials,
.ebp-languages,
.ebp-nav {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.ebp-socials .socs-strip,
.ebp-socials .socs-strip__inner,
.ebp-languages .language-flags {
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.ebp-menu,
.ebp-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ebp-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 38px);
}

.ebp-menu li {
  position: relative;
}

.ebp-menu a {
  position: relative;
  display: block;
  padding: 32px 0 28px;
  color: var(--ebp-cream);
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.ebp-menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--ebp-gold);
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity .2s ease, transform .2s ease;
}

.ebp-menu > li > a:hover::after,
.ebp-menu > li > a:focus-visible::after,
.ebp-menu > li > a.menu-current::after,
.ebp-menu > li > a.menu-parent::after {
  opacity: 1;
  transform: scaleX(1);
}

.ebp-menu ul {
  position: absolute;
  top: 100%;
  left: -18px;
  display: none;
  min-width: 220px;
  padding: 9px 0;
  background: var(--ebp-brown);
  box-shadow: 0 14px 34px rgb(20 8 3 / 30%);
}

.ebp-menu li:hover > ul,
.ebp-menu li:focus-within > ul {
  display: block;
}

.ebp-menu ul ul {
  top: -9px;
  left: 100%;
}

.ebp-menu ul a {
  padding: 11px 18px;
  line-height: 1.3;
}

.ebp-nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ebp-cream);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
}

.ebp-nav__toggle-icon,
.ebp-nav__toggle-icon::before,
.ebp-nav__toggle-icon::after {
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
}

.ebp-nav__toggle-icon {
  position: relative;
}

.ebp-nav__toggle-icon::before,
.ebp-nav__toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.ebp-nav__toggle-icon::before { top: -7px; }
.ebp-nav__toggle-icon::after { top: 7px; }

.ebp-main {
  display: flow-root;
  width: 100%;
  min-height: 50vh;
  overflow-x: clip;
  overflow-y: visible;
}

.ebp-main > :is(section, article, div) {
  clear: both;
}

@media (max-width: 1180px) {
  :root { --ebp-header-height: 78px; }

  .ebp-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
  }

  .ebp-nav {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .ebp-languages {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .ebp-nav__toggle {
    display: flex;
  }

  .ebp-menu {
    position: absolute;
    z-index: 120;
    top: calc(100% + 22px);
    right: calc(-1 * var(--ebp-page-gutter));
    display: none;
    width: min(100vw, 520px);
    padding: 12px 0 18px;
    background: var(--ebp-brown);
    box-shadow: 0 18px 35px rgb(20 8 3 / 32%);
  }

  .ebp-menu.is-open {
    display: block;
  }

  .ebp-menu a {
    padding: 15px var(--ebp-page-gutter);
    font-size: 20px;
    line-height: 1.2;
  }

  .ebp-menu > li > a::after {
    display: none;
  }

  .ebp-menu ul {
    position: static;
    display: block;
    padding: 0 0 5px 20px;
    box-shadow: none;
  }
}

@media (max-width: 680px) {
  :root {
    --ebp-header-height: 72px;
    --ebp-page-gutter: 15px;
  }

  .ebp-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 13px;
    width: 100%;
    padding: 0 var(--ebp-page-gutter);
  }

  .ebp-socials {
    overflow: hidden;
  }

  .ebp-languages .language-flags {
    gap: 4px;
  }

  .ebp-languages .language-flags__link img {
    width: min(var(--lf-width, 38px), 7vw);
  }

  .ebp-menu {
    position: fixed;
    top: var(--ebp-header-height);
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--ebp-header-height));
    overflow-y: auto;
  }

  .ebp-nav__toggle > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a img { transition: none; }
}
