/**
 * Booksi portal — header & footer layout
 * Matches My Reservations desktop + mobile reference designs
 */

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.bk-body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

/* .bk-body a {
  color: var(--blue);
} */

.bk-body .bk-header__link,
.bk-body .bk-header__drawer-link,
.bk-body .bk-footer__link {
  color: var(--ink-2);
}

.bk-body .bk-header__link:hover,
.bk-body .bk-header__link:focus-visible,
.bk-body .bk-header__drawer-link:hover,
.bk-body .bk-footer__link:hover {
  color: var(--ink);
}

.bk-body .bk-header__link.is-active,
.bk-body .bk-header__drawer-link.is-active {
  color: var(--blue);
}

.bk-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ========== Header ========== */

.bk-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.bk-header__inner {
  max-width: var(--container-portal);
  margin: 0 auto;
  padding: 0 var(--side-padding-mobile);
  height: var(--header-height-mobile);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
}

.bk-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  line-height: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.bk-header__brand .powerdByImg,
.bk-header__logo--monster {
  width: auto !important;
  max-width: none !important;
  height: 44px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  object-fit: contain;
  object-position: center;
}

.bk-header__logo {
  height: 44px;
  width: auto;
  max-width: min(160px, 55vw);
  display: block;
  margin-left: -16px;
  object-fit: contain;
  object-position: left center;
}

.bk-header__nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.bk-header__link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.bk-header__menu-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.bk-header__menu-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
  border-radius: var(--radius-sm);
}

.bk-header__menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bk-header.is-open .bk-header__menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bk-header.is-open .bk-header__menu-bar:nth-child(2) {
  opacity: 0;
}

.bk-header.is-open .bk-header__menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.bk-header__drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: var(--space-4) var(--side-padding-mobile) var(--space-6);
}

.bk-header.is-open .bk-header__drawer {
  display: block;
}

.bk-header__drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.bk-header__drawer-link {
  display: block;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.bk-header__drawer-link:last-child {
  border-bottom: none;
}

@media (min-width: 992px) {
  .bk-header {
    overflow: visible;
  }

  .bk-header__inner {
    height: auto;
    padding: 12px var(--side-padding);
  }

  .bk-header__brand {
    flex: 0 0 auto;
    overflow: visible;
  }

  .bk-header__logo {
    height: 80px;
    max-width: none;
    margin-left: -52px;
  }

  .bk-header__logo--monster {
    height: 80px !important;
  }

  .bk-header__nav {
    display: flex;
  }

  .bk-header__menu-btn,
  .bk-header__drawer {
    display: none !important;
  }
}

/* ========== Footer ========== */

.bk-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: var(--space-8) 0 var(--space-6);
  width: 100%;
  max-width: 100%;
}

.bk-footer__inner {
  max-width: var(--container-portal);
  margin: 0 auto;
  padding: 0 var(--side-padding-mobile);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.bk-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  line-height: 0;
}

.bk-footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
}

.bk-footer__logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.bk-footer__logo--monster {
  height: 48px;
  margin: 0;
}

.bk-footer__about {
  max-width: var(--container-portal);
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bk-footer__about p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.bk-footer__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.bk-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.bk-footer__link {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.bk-footer__link:hover {
  text-decoration: underline;
}

.bk-footer__meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0;
}

.bk-footer__legal {
  max-width: 720px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

@media (min-width: 768px) {
  .bk-footer {
    padding: var(--space-12) 0 var(--space-8);
  }

  .bk-footer__inner {
    padding: 0 var(--side-padding);
    gap: var(--space-8);
  }

  .bk-footer__logo,
  .bk-footer__logo--monster {
    height: 64px;
  }

  .bk-footer__about {
    padding-top: var(--space-8);
  }
}
