/* =========================================================
   BAYSIDE ATTRACTIONS - SHARED HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* =========================================
   HEADER INNER
========================================= */

.header-inner {
  position: relative;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}


/* =========================================
   LOGO
========================================= */

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

.site-logo img {
  display: block;
  width: 145px;
  height: auto;
  max-width: 145px;
}


/* =========================================
   HAMBURGER BUTTON
========================================= */

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: var(--navy);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(8, 43, 58, .14);
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transition:
    transform .25s ease,
    opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}


/* =========================================
   NAVIGATION
========================================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.nav a {
  color: #34515c;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--aqua-dark);
}


/* =========================================
   HEADER CTA
========================================= */

.nav .nav-cta {
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
}

.nav .nav-cta:hover {
  color: #fff;
  background: var(--aqua-dark);
  transform: translateY(-1px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

  .header-inner {
    min-height: 84px;
    gap: 20px;
  }

  .site-logo img {
    width: 125px;
    max-width: 125px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: .83rem;
  }

  .nav .nav-cta {
    padding: 9px 13px;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {

  .site-header {
    overflow: visible;
  }

  .header-inner {
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-logo img {
    width: 118px;
    max-width: 118px;
  }

  .menu-toggle {
    display: flex;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 1001;

    width: 100%;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    background: rgba(255, 255, 255, .99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(8, 43, 58, .16);

    transition:
      max-height .3s ease,
      padding .3s ease,
      opacity .2s ease,
      visibility .2s ease;
  }

  .nav.is-open {
    max-height: 520px;
    padding-top: 14px;
    padding-bottom: 18px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    color: #34515c;
    background: #f3f7f8;
    border: 1px solid #e3ebed;
    border-radius: 10px;
    font-size: .9rem;
    text-align: center;
    white-space: normal;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    color: var(--navy);
    background: #e8f6f7;
  }

  .nav .nav-cta {
    padding: 13px 14px;
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
    border-radius: 10px;
  }

  .nav .nav-cta:hover {
    color: #fff;
    background: var(--aqua-dark);
    transform: none;
  }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 430px) {

  .header-inner {
    min-height: 72px;
  }

  .site-logo img {
    width: 110px;
    max-width: 110px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .nav a {
    font-size: .86rem;
  }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  .nav,
  .menu-toggle span {
    transition: none;
  }
}