/* Shared header styles for index.html and menu.html */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 96px;
  background: #335e64;
  border-bottom: 2px solid #fcb614;
}

.site-header .container {
  width: min(1360px, calc(100% - 44px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand img {
  width: 160px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #fff;
  font-family: "Hien Khanh", Impact, "Arial Black", sans-serif;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links a[aria-current="page"] {
  color: #fff0ba;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #172d32;
  background: #fcb614;
  border: 5px solid #fff0ba;
  font-size: 24px;
}

.phone svg {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle svg {
  display: block;
}

@media (max-width: 767px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    min-height: 54px;
    height: 54px;
    background: #335e64;
    border-bottom: 0;
  }

  .site-header .container {
    width: min(428px, calc(100% - 18px));
  }

  .site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #fcb614;
  }

  .nav {
    position: relative;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    height: 54px;
  }

  .brand {
    position: absolute;
    top: 4px;
    left: 50%;
    flex: 0 0 auto;
    transform: translateX(-50%);
  }

  .brand img {
    width: 88px;
    height: 42px;
    object-fit: contain;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 9px;
    right: 0;
    width: 36px;
    height: 36px;
    text-align: left;
  }

  .menu-toggle svg {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    position: fixed;
    top: 54px;
    right: 0;
    left: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 46px;
    min-height: calc(100dvh - 54px);
    padding: 25% 2rem;
    background: #53858d;
    color: #fff;
    font-size: 48px;
    line-height: .95;
  }

  .nav-links a[aria-current="page"] {
    color: #fff;
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .site-header.is-open .nav {
    z-index: 61;
  }

  .site-header.is-open .brand,
  .site-header.is-open .menu-toggle {
    z-index: 62;
  }

  .site-header.is-open + .menu-categories,
  .site-header.is-open .menu-categories {
    display: none;
  }

  .phone {
    align-self: flex-start;
    gap: 10px;
    min-height: 64px;
    padding: 0 18px;
    border-width: 4px;
    font-family: "Chivo", Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
  }

  .phone svg {
    width: 38px;
    height: 38px;
  }
}
