/* ==========================================================================
   Potato Bali header — CSS + HTML + JS
   --------------------------------------------------------------------------
   One source of truth for the header on every page:

     • the Next.js pages load this file through src/app/layout.tsx
     • the static HTML pages in /static load the same file

   The markup is deliberately plain (no Tailwind utility classes) so the
   exact same HTML works in both places. Fonts come from the bundled Google
   families (Inter, Oswald, Permanent Marker) — no font CDN, no system font.
   ========================================================================== */

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

/* Oswald — SIL OFL 1.1, bundled in /fonts (Oswald-OFL.txt).
   The Next.js pages load the same family through next/font; this @font-face
   is what the static HTML pages use, so neither needs a font CDN. */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/Oswald-500-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/Oswald-500-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Permanent Marker — Apache 2.0, bundled in /fonts
   (PermanentMarker-Apache-2.0.txt). Same reasoning as Oswald above. */
@font-face {
  font-family: 'Permanent Marker';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/PermanentMarker-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Potato Bali header ===== */
.pb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  font-family: var(--font-inter, 'Inter'), sans-serif;
}
.pb-header a {
  text-decoration: none;
}
.pb-header__bar {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pb-logo {
  display: block;
  flex: none;
}
.pb-logo img {
  display: block;
  height: 36px;
  width: auto;
}
.pb-desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.pb-desktop-nav a {
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.pb-desktop-nav a:hover {
  color: #cf3a12;
}
.pb-desktop-nav a[aria-current='page'] {
  color: #cf3a12;
  border-bottom-color: #cf3a12;
}
.pb-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-oswald, 'Oswald'), sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pb-btn--book {
  background: #cf3a12;
  color: #ffffff;
}
.pb-btn--book:hover {
  background: #9e2a0a;
  color: #ffffff;
}
.pb-btn--wa {
  background: #25d366;
  color: #0b2b17;
}
.pb-btn--wa:hover {
  background: #1fb457;
  color: #0b2b17;
}

/* hamburger: 3 lines -> X */
.pb-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pb-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111111;
  transition: transform 0.25s, opacity 0.2s, width 0.25s;
}
.pb-menu-toggle span:nth-child(3) {
  width: 16px;
  transform: translateX(4px);
}
.pb-menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.pb-menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.pb-menu-toggle[aria-expanded='true'] span:nth-child(3) {
  width: 24px;
  transform: translateY(-8px) rotate(-45deg);
}

/* overlay menu (tablet + mobile) */
.pb-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 72px;
  background: #ffffff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: pb-menu-in 0.25s ease-out;
}
.pb-menu[hidden] {
  display: none;
}
@keyframes pb-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pb-menu__inner {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 40px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-content: start;
  box-sizing: border-box;
}
.pb-eyebrow {
  margin: 0;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b66;
}
.pb-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid #111111;
}
.pb-menu__list a {
  display: grid;
  grid-template-columns: 36px 1fr 22px;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  border-bottom: 1px solid #ecebe6;
  color: #111111;
}
.pb-menu__num {
  font-family: var(--font-oswald, 'Oswald'), sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #8a8a84;
}
.pb-menu__label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-oswald, 'Oswald'), sans-serif;
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
}
.pb-menu__desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #5c5c58;
}
.pb-menu__list a:hover .pb-menu__label {
  color: #cf3a12;
}
.pb-menu__list a[aria-current='page'] .pb-menu__label,
.pb-menu__list a[aria-current='page'] .pb-menu__num {
  color: #cf3a12;
}
.pb-menu__list a[aria-current='page'] .pb-menu__label::after {
  content: 'You are here';
  font-family: var(--font-inter, 'Inter'), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 7px;
  background: #fbe7df;
  color: #9e2a0a;
}
.pb-menu__footer {
  background: #111111;
  color: #ffffff;
}
.pb-menu__footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
}
.pb-menu__footer-title {
  font-family: var(--font-oswald, 'Oswald'), sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
}
.pb-menu__footer-meta {
  margin-top: 4px;
  font-size: 13px;
  color: #c9c9c4;
}
.pb-menu__footer-meta a {
  color: #ffffff;
  font-weight: 600;
}
.pb-menu__footer-actions {
  display: flex;
  gap: 10px;
}
.pb-menu__footer-actions .pb-btn {
  min-height: 52px;
  font-size: 16px;
}
.pb-menu__footer-actions .pb-btn--book {
  display: none;
}
.pb-header a:focus-visible,
.pb-header button:focus-visible {
  outline: 3px solid #ff7a45;
  outline-offset: 3px;
}

/* The desktop nav carries seven items. Between 1024px and 1200px the gaps
   are tightened so the row never pushes the logo or the booking button out
   of the bar. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .pb-desktop-nav {
    gap: 20px;
  }
  .pb-desktop-nav a {
    font-size: 14px;
  }
  .pb-header__bar {
    gap: 16px;
  }
}

/* tablet + mobile */
@media (max-width: 1023px) {
  .pb-desktop-nav {
    display: none;
  }
  .pb-menu-toggle {
    display: flex;
  }
}
/* mobile */
@media (max-width: 767px) {
  .pb-header__bar {
    height: 64px;
    padding: 0 12px 0 20px;
  }
  .pb-logo img {
    height: 28px;
  }
  .pb-header__actions .pb-btn--book {
    display: none;
  }
  .pb-menu {
    top: 64px;
  }
  .pb-menu__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 18px 20px 22px;
  }
  .pb-eyebrow {
    font-size: 11px;
    padding-bottom: 6px;
  }
  .pb-menu__list a {
    grid-template-columns: 30px 1fr 18px;
    gap: 8px;
    min-height: 66px;
  }
  .pb-menu__num {
    font-size: 13px;
  }
  .pb-menu__label {
    font-size: 23px;
    gap: 8px;
  }
  .pb-menu__list a[aria-current='page'] .pb-menu__label::after {
    font-size: 10px;
    padding: 3px 6px;
  }
  .pb-menu__desc {
    font-size: 13px;
    margin-top: 3px;
  }
  .pb-menu__footer-inner {
    display: block;
    padding: 18px 20px 20px;
  }
  .pb-menu__footer-title {
    font-family: var(--font-inter, 'Inter'), sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    color: #c9c9c4;
    margin-bottom: 12px;
  }
  .pb-menu__footer-meta {
    order: 3;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12px;
  }
  .pb-menu__footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pb-menu__footer-actions .pb-btn--book {
    display: inline-flex;
  }
  .pb-menu__footer-actions .pb-btn {
    min-height: 50px;
  }
  .pb-wa-long {
    display: none;
  }
}
@media (min-width: 768px) {
  .pb-wa-short {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pb-menu {
    animation: none;
  }
  .pb-menu-toggle span {
    transition: none;
  }
}
body.pb-menu-open {
  overflow: hidden;
}
