/* =============================================================
   SITE HEADER — Desktop-first CSS
   Figma: 2348:24186 (desktop 1600×113) • 2348:25589 (mobile 375×60)
   Popup: 2348:25599 • Submenu: 2348:25719
   rem = figma_px / 16  (4 decimal places)
   ============================================================= */

/* ── Base wrapper ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
}

/* ── Utility: screen-reader only ─────────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* =============================================================
   DESKTOP HEADER
   ============================================================= */

/* Desktop wrapper — shown on desktop, hidden mobile */
.site-header__desktop {
  display: block;
  box-shadow: 0 0.25rem 0.5625rem rgba(0, 0, 0, 0.05); /* 0 4px 9px */
}

/* Outer row: logo (left) + right-col (two rows) */
.site-header__desktop-inner {
  display: flex;
  align-items: stretch;
  padding-left: 2.5rem; /* 40px / 16 */
}

/* Logo — left side, spans both rows */
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 2.5rem;
  text-decoration: none;
  padding-right: 0; /* border-left on right-col adds separation */
}

.site-header__logo-img {
  display: block;
  width: 9.75rem; /* 156px / 16 */
  height: 4.5673rem; /* 73.076px / 16 */
  object-fit: contain;
}

/* Right column: stacked topbar + navbar */
.site-header__right-col {
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  min-width: 0;
  border-left: 1px solid #e7e7e7;
}

/* ── Top bar (contact + lang) ──────────────────────────── */
.site-header__topbar {
  display: flex;
  align-items: center;
  padding: 0.625rem 2.5rem 0.625rem 1.625rem; /* 10px 40px 10px 26px */
  border-bottom: 1px solid #e7e7e7;
}

/* Contact row — centered in topbar, lang stays flush-right */
.site-header__contact {
  display: flex;
  align-items: center;
  flex: 1;
}

.site-header__contact-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__contact-item + .site-header__contact-item {
  margin-left: 1.5rem; /* 24px / 16 */
}

.site-header__contact-icon {
  display: block;
  width: 1.25rem; /* 20px / 16 */
  height: 1.25rem;
  flex-shrink: 0;
}

.site-header__contact-text {
  margin-left: 0.5rem; /* 8px / 16 */
  font-family: "Lexend Deca", sans-serif;
  font-weight: 300;
  font-size: 0.875rem; /* 14px / 16 */
  line-height: 1.5;
  letter-spacing: -0.01313rem;
  color: rgba(19, 19, 19, 0.8);
  white-space: nowrap;
}

/* Language switcher */
.site-header__lang {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__lang-item {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__lang-item + .site-header__lang-item {
  margin-left: 1rem; /* 16px / 16 */
}

.site-header__lang-flag {
  display: block;
  width: 1.25rem; /* 20px / 16 */
  height: 0.9094rem; /* 14.545px / 16 */
  border-radius: 0.25rem;
  overflow: hidden;
  object-fit: cover;
  flex-shrink: 0;
}

.site-header__lang-label {
  margin-left: 0.25rem; /* 4px / 16 */
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: -0.0625rem; /* -1px / 16 */
  color: rgba(19, 19, 19, 0.8);
  white-space: nowrap;
}

/* ── Nav bar ──────────────────────────────────────────────── */
.site-header__navbar {
  display: flex;
  align-items: center;
  padding: 0.625rem 2.5rem 0.75rem 0.75rem; /* 10px 40px 12px 12px */
}

/* Nav list */
.site-header__nav {
  flex: 1 0 0;
  min-width: 0;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav-item {
  position: relative;
  flex-shrink: 0;
}

/* Nav link — base (anchor and button both) */
.site-header__nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem; /* 12px / 16 */
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 1rem; /* 16px / 16 */
  line-height: 1.5;
  letter-spacing: -0.02rem; /* -2px / 16 */
  color: #131313;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}

.site-header__nav-link--btn {
  /* same visual as anchor — already set above */
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
  color: #fa6900;
}

.site-header__nav-link:focus-visible {
  outline: 0.125rem solid #fa6900;
  outline-offset: 0.125rem;
  border-radius: 0.25rem;
}

.site-header__nav-chevron {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.25rem;
  height: 1.25rem;
  height: auto;
  margin-left: 0.5rem; /* 6px gap from label */
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.site-header__nav-chevron img {
  width: 0.72919rem;
  height: auto;
}

.site-header__nav-item--has-sub
  .site-header__nav-link[aria-expanded="true"]
  .site-header__nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.site-header__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 0.25rem 0.5625rem rgba(0, 0, 0, 0.05); /* 0 4px 9px */
  border-radius: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 13rem; /* 208px / 16 — enough for longest item */
  z-index: 100;
}

.site-header__nav-item--has-sub:hover .site-header__dropdown,
.site-header__nav-item--has-sub
  .site-header__nav-link[aria-expanded="true"]
  + .site-header__dropdown {
  display: block;
}

.site-header__dropdown-item {
  list-style: none;
}

.site-header__dropdown-link {
  display: block;
  padding: 0.625rem 1rem; /* 10px 16px */
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 0.875rem; /* 14px / 16 */
  line-height: 1.5;
  letter-spacing: -0.00875rem;
  color: #131313;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__dropdown-link:hover,
.site-header__dropdown-link:focus-visible {
  color: #fa6900;
  background-color: rgba(250, 105, 0, 0.05);
}

.site-header__dropdown-link:focus-visible {
  outline: 0.125rem solid #fa6900;
  outline-offset: -0.125rem;
}

/* Search box */
.site-header__search {
  flex-shrink: 0;
  margin-left: 6.25rem; /* 100px gap before search */
}

.site-header__search-form {
  display: flex;
  align-items: center;
  background-color: #e7e7e7;
  border-radius: 62.5rem; /* 1000px / 16 */
  padding: 0.6875rem 0.75rem; /* 11px 12px */
  width: 16.25rem; /* 260px / 16 */
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.site-header__search-form:focus-within {
  opacity: 1;
}

.site-header__search-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.site-header__search-input {
  flex: 1 0 0;
  min-width: 0;
  margin-left: 0.5rem; /* 8px / 16 */
  background: none;
  border: none;
  outline: none;
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: -0.01313rem;
  color: rgba(19, 19, 19, 0.6);
}

.site-header__search-input::placeholder {
  color: rgba(19, 19, 19, 0.6);
}

/* =============================================================
   MOBILE BAR — hidden on desktop
   ============================================================= */
.site-header__mobile-bar {
  display: none; /* hidden on desktop */
}

/* =============================================================
   MOBILE POPUP MENU (full-screen overlay)
   ============================================================= */
.site-header__mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Shown via JS: remove [hidden], add is-open */
}

.site-header__mobile-menu[hidden] {
  display: none;
}

/* Popup header */
.site-header__mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem; /* 12px / 16 */
  border-bottom: 1px solid #e7e7e7;
  flex-shrink: 0;
}

.site-header__mobile-menu-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header__mobile-menu-logo .site-header__logo-img {
  width: 5.6875rem; /* 91px / 16 */
  height: 2.75rem; /* 44px / 16 */
  object-fit: contain;
}

.site-header__mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; /* 24px / 16 */
  height: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.site-header__mobile-close:focus-visible {
  outline: 0.125rem solid #fa6900;
  outline-offset: 0.25rem;
  border-radius: 0.25rem;
}

/* Mobile search wrap */
.site-header__mobile-search-wrap {
  padding: 1rem; /* 16px all sides */
  flex-shrink: 0;
}

.site-header__mobile-search-form {
  display: flex;
  align-items: center;
  background-color: #e7e7e7;
  border-radius: 62.5rem;
  padding: 0.6875rem 0.75rem;
  width: 100%;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.site-header__mobile-search-form:focus-within {
  opacity: 1;
}

.site-header__mobile-search-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.site-header__mobile-search-input {
  flex: 1 0 0;
  min-width: 0;
  margin-left: 0.5rem;
  background: none;
  border: none;
  outline: none;
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: -0.0938rem;
  color: rgba(19, 19, 19, 0.6);
}

.site-header__mobile-search-input::placeholder {
  color: rgba(19, 19, 19, 0.6);
}

/* Mobile panels container */
.site-header__mobile-panels {
  flex: 1 0 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* Main panel */
.site-header__mobile-panel--main,
.site-header__mobile-panel--sub {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.site-header__mobile-panel--main {
  transform: translateX(0);
}

.site-header__mobile-panel--main.is-hidden {
  transform: translateX(-100%);
}

.site-header__mobile-panel--sub {
  transform: translateX(100%);
}

.site-header__mobile-panel--sub.is-active {
  transform: translateX(0);
}

.site-header__mobile-panel--sub[hidden] {
  display: block; /* override [hidden] so transitions work — visibility via transform */
}

/* Mobile nav list */
.site-header__mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 0.25rem;
  overflow: hidden;
}

.site-header__mobile-nav-item {
  list-style: none;
}

/* Nav link / button in popup */
.site-header__mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem; /* 16px / 16 */
  border: none;
  border-bottom: 1px solid #e7e7e7;
  background-color: #ffffff;
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 1rem; /* 16px / 16 */
  line-height: 1.5;
  letter-spacing: -0.125rem; /* -2px / 16 */
  color: #131313;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.site-header__mobile-nav-link:hover,
.site-header__mobile-nav-link:focus-visible {
  color: #fa6900;
  background-color: rgba(250, 105, 0, 0.04);
}

.site-header__mobile-nav-link:focus-visible {
  outline: 0.125rem solid #fa6900;
  outline-offset: -0.125rem;
}

.site-header__mobile-nav-arrow {
  display: block;
  width: auto;
  height: 0.875rem; /* 14px tall — chevron-right keeps 8×14 ratio */
  flex-shrink: 0;
}

/* Sub-panel header (back button row) */
/* Figma: bg rgba(241,90,41,0.08), border-bottom rgba(0,0,0,0.15), padding 16px */
.site-header__mobile-subheader {
  background-color: rgba(241, 90, 41, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 1rem;
}

.site-header__mobile-back {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.site-header__mobile-back:focus-visible {
  outline: 0.125rem solid #fa6900;
  outline-offset: 0.25rem;
  border-radius: 0.25rem;
}

.site-header__mobile-back-icon {
  display: block;
  width: auto;
  height: 1rem; /* 16px tall — arrow-left keeps 9×16 ratio */
  flex-shrink: 0;
}

.site-header__mobile-back-label {
  margin-left: 0.5rem; /* 8px / 16 */
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 1.125rem; /* 18px / 16 */
  line-height: 1.5;
  letter-spacing: 0;
  color: #fa6900;
  white-space: nowrap;
}

/* Sub-items list */
.site-header__mobile-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__mobile-sub-item {
  list-style: none;
}

.site-header__mobile-sub-link {
  display: block;
  padding: 1rem; /* 16px */
  border-bottom: 1px solid #e7e7e7;
  font-family: "Lexend Deca", sans-serif;
  font-weight: 400;
  font-size: 0.875rem; /* 14px / 16 */
  line-height: 1.5;
  letter-spacing: -0.0938rem; /* -1.5px / 16 — Body 14 regular */
  color: #131313;
  text-decoration: none;
}

.site-header__mobile-sub-link:hover,
.site-header__mobile-sub-link:focus-visible {
  color: #fa6900;
  background-color: rgba(250, 105, 0, 0.04);
}

.site-header__mobile-sub-link:focus-visible {
  outline: 0.125rem solid #fa6900;
  outline-offset: -0.125rem;
}

/* Popup footer */
.site-header__mobile-menu-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0; /* 16px 0 */
  flex-shrink: 0;
  border-top: 1px solid #e7e7e7;
}

.site-header__mobile-footer-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__mobile-footer-item + .site-header__mobile-footer-item {
  margin-left: 1.5rem; /* 24px / 16 */
}

.site-header__mobile-footer-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.site-header__mobile-footer-text {
  margin-left: 0.5rem;
  font-family: "Lexend Deca", sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: -0.0938rem;
  color: rgba(19, 19, 19, 0.8);
  white-space: nowrap;
}

/* Backdrop */
.site-header__mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.site-header__mobile-backdrop[hidden] {
  display: none;
}

/* =============================================================
   MOBILE OVERRIDES — max-width 639.98px
   ============================================================= */
@media screen and (max-width: 639.98px) {
  /* Hide desktop header, show mobile bar */
  .site-header__desktop {
    display: none;
  }

  .site-header__mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem; /* 8px 16px / 16 */
    background-color: #ffffff;
    box-shadow: 0 0.1875rem 0.25rem rgba(0, 0, 0, 0.06); /* 0 3px 4px */
    height: 3.75rem; /* 60px / 16 */
  }

  /* Mobile lang left */
  .site-header__mobile-lang {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0 0 0 0.1875rem; /* 3px left */
    cursor: pointer;
  }

  .site-header__mobile-lang:focus-visible {
    outline: 0.125rem solid #fa6900;
    outline-offset: 0.25rem;
    border-radius: 0.25rem;
  }

  .site-header__mobile-lang-flag {
    display: block;
    width: 1.5rem; /* 24px / 16 */
    height: 1.0909rem; /* 17.455px / 16 */
    border-radius: 0.25rem;
    object-fit: cover;
    flex-shrink: 0;
  }

  .site-header__mobile-lang-label {
    margin-left: 0.25rem; /* 4px / 16 */
    font-family: "Lexend Deca", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.2;
    letter-spacing: -0.0625rem;
    color: rgba(19, 19, 19, 0.8);
    white-space: nowrap;
  }

  .site-header__mobile-lang-chevron {
    display: block;
    width: 0.75rem; /* 12px — keep chevron ratio (13.3×7.5) */
    height: auto;
    margin-left: 0.375rem; /* 6px / 16 */
    flex-shrink: 0;
  }

  /* Logo center */
  .site-header__mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .site-header__mobile-logo .site-header__logo-img {
    width: 5.6875rem; /* 91px / 16 */
    height: 2.75rem; /* 44px / 16 */
    object-fit: contain;
  }

  /* Hamburger button */
  .site-header__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem; /* 28px / 16 */
    height: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .site-header__hamburger:focus-visible {
    outline: 0.125rem solid #fa6900;
    outline-offset: 0.25rem;
    border-radius: 0.25rem;
  }
}
