/* ===== L'Officiel Baltics theme repair overrides ===== */

/* 1) Repair font paths to use /fonts instead of /assets where possible */
@font-face {
  font-family: "icons";
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/lofficiel/icons.eot") format("embedded-opentype");
  src:
    url("/fonts/lofficiel/icons.eot?#iefix") format("embedded-opentype"),
    url("/fonts/lofficiel/icons.woff") format("woff"),
    url("/fonts/lofficiel/icons.ttf") format("truetype"),
    url("/fonts/lofficiel/icons.svg#icons") format("svg");
}

@font-face {
  font-family: "NaverLogo";
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/lofficiel/NaverLogo.eot") format("embedded-opentype");
  src:
    url("/fonts/lofficiel/NaverLogo.eot?#iefix") format("embedded-opentype"),
    url("/fonts/lofficiel/NaverLogo.woff") format("woff"),
    url("/fonts/lofficiel/NaverLogo.ttf") format("truetype"),
    url("/fonts/lofficiel/NaverLogo.svg#NaverLogo") format("svg");
}

/* 2) Make the header render properly even when the logo anchor is empty */
.site-header {
  z-index: 1001;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.site-header__background {
  background: rgba(255, 255, 255, 0.95);
  position: relative;
}

.site-header__content {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}

.site-header__left,
.site-header__right {
  width: 73px;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-header__logo {
  flex: 1 1 auto;
  text-align: center;
  display: block;
  min-height: 30px;
  position: relative;
}

/* If your HTML has no <img> inside the logo anchor, fake it with a background */
.site-header__logo:empty::before {
  content: "";
  display: inline-block;
  width: 130px;
  height: 30px;
  background-image: url("https://lofficielbaltics.com/images/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Normal logo image handling if img tags do exist */
.site-header__logo img {
  display: inline-block;
  height: 30px;
  max-width: 130px;
  width: auto;
}

.site-header__logo img.logo--rev {
  display: none;
}

.site-header--rev.is-reversed .site-header__background {
  background: linear-gradient(rgba(0, 0, 0, 0.45), transparent);
}

.site-header--rev.is-reversed .site-header__logo img.logo {
  display: none;
}

.site-header--rev.is-reversed .site-header__logo img.logo--rev {
  display: inline-block;
}

/* If the anchor is empty, also support reversed state */
.site-header--rev.is-reversed .site-header__logo:empty::before {
  background-image: url("https://lofficielbaltics.com/images/logo-rev.png");
}

/* 3) Repair nav/header button look even if some original rules are missing */
.site-header__channels-button,
.site-header__nav-button,
.site-header__tenants-button {
  font-family: "Avenir Next W01", "Avenir Next W00", "IBM Plex Sans",
    "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-header__channels-button i,
.site-header__nav-button i,
.site-header__tenants-button i {
  display: inline-block;
  vertical-align: middle;
  font-family: "icons";
  font-size: 18px;
  margin-right: 10px;
}

.site-header--rev.is-reversed,
.site-header--rev.is-reversed .site-header__channels-button,
.site-header--rev.is-reversed .site-header__nav-button,
.site-header--rev.is-reversed .site-header__tenants-button {
  color: #fff;
}

/* 4) Header sizing from the working core CSS variants */
@media screen and (min-width: 480px) {
  .site-header__logo img {
    height: 30px;
    max-width: 130px;
  }

  .site-header__logo:empty::before {
    width: 130px;
    height: 30px;
  }

  .site-header__left,
  .site-header__right {
    width: 150px;
  }

  .site-header__right {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
  }
}

@media screen and (min-width: 720px) {
  .site-header__left,
  .site-header__right {
    width: 222px;
  }

  .site-header__tenants-button {
    display: inline-block;
    vertical-align: middle;
  }
}

@media screen and (min-width: 1024px) {
  .site-header__left,
  .site-header__right {
    align-self: flex-start;
    width: 250px;
  }

  .site-header__right {
    align-items: center;
  }

  .site-header__logo img {
    height: 90px;
    max-width: 390px;
  }

  .site-header__logo:empty::before {
    width: 390px;
    height: 90px;
  }

  .site-header--small .site-header__background {
    background: rgba(255, 255, 255, 0.95);
  }

  .site-header--small .site-header__logo img {
    height: 30px;
  }

  .site-header--small .site-header__logo:empty::before {
    width: 130px;
    height: 30px;
  }
}

/* 5) Prevent body from hiding under the fixed header */
body {
  padding-top: 70px;
}

@media screen and (min-width: 1024px) {
  body {
    padding-top: 120px;
  }
}