@charset "UTF-8";
/* =====================================================
   Site header (menu) — Puerto Rico Boat Trips
   Fixed two-row header:
     1. top bar  — phone (left) + Elfsight translator (right corner)
     2. main bar — logo + links + Book button
   The translator lives inside the fixed header, so it always
   stays in its own row and never covers the menu, even on scroll.
   ===================================================== */

:root {
  --hdr-topbar-bg: #0b4f7a;
  --hdr-topbar-fg: #ffffff;
  --hdr-bg: #ffffff;
  --hdr-fg: #0b2340;
  --hdr-accent: #0b6fa8;
  --hdr-book-bg: rgba(252,176,64,1);
  --hdr-book-fg: #111111;
  --hdr-topbar-h: 40px;
  --hdr-nav-h: 74px;
  --hdr-nav-h-scrolled: 58px;
}

.site-header, .site-header * { box-sizing: border-box; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 10000;
  font-family: 'Averia Serif Libre', Georgia, serif;
  background: var(--hdr-bg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* ---------- Top bar ---------- */
.site-topbar {
  background: var(--hdr-topbar-bg);
  color: var(--hdr-topbar-fg);
  height: var(--hdr-topbar-h);
}
.site-topbar-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-topbar-phone {
  color: var(--hdr-topbar-fg);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.site-topbar-phone:hover { text-decoration: underline; }

/* Translator: right corner of the top bar */
.site-translator {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  line-height: normal;
}

/* ---------- Main bar ---------- */
.site-nav {
  max-width: 1280px;
  height: var(--hdr-nav-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  transition: height .25s ease;
}
.site-header.is-scrolled .site-nav { height: var(--hdr-nav-h-scrolled); }

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hdr-fg);
  flex-shrink: 0;
}
.site-logo img {
  height: 58px;
  width: auto;
  margin: 0;
  transition: height .25s ease;
}
.site-header.is-scrolled .site-logo img { height: 44px; }
.site-logo-text { font-size: 20px; line-height: 1.1; white-space: nowrap; }
.site-logo-text strong { color: var(--hdr-accent); }

/* Links */
.site-links, .site-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: static;
  float: none;
  width: auto;
  font-size: 16px;
}
.site-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-links li {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
  background: none;
}
.site-links a {
  display: block;
  padding: 8px 14px;
  height: auto;
  line-height: 1.3;
  border-radius: 22px;
  color: var(--hdr-fg);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: .3px;
  white-space: nowrap;
  background: none;
  transition: background-color .2s ease, color .2s ease;
}
.site-links a:hover { background: rgba(0,0,0,0.06); color: var(--hdr-fg); }

/* Active page (body class="selectX") */
body.selectIndex .site-links [data-page="selectIndex"] > a,
body.selectAbout .site-links [data-page="selectAbout"] > a,
body.selectGallery .site-links [data-page="selectGallery"] > a,
body.selectNews .site-links [data-page="selectNews"] > a,
body.selectContact .site-links [data-page="selectContact"] > a,
body.selectCoolest .site-links [data-page="selectCoolest"] > a,
body.selectReservations .site-links [data-page="selectReservations"] > a {
  color: var(--hdr-accent);
  font-weight: 700;
}

/* Book button */
.site-links .site-book a {
  background: var(--hdr-book-bg);
  color: var(--hdr-book-fg);
  font-weight: 700;
  margin-left: 6px;
  padding: 9px 20px;
}
.site-links .site-book a:hover { filter: brightness(0.95); background: var(--hdr-book-bg); }

/* Dropdown */
.site-caret {
  display: inline-block;
  width: 7px; height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: 0 0 3px 6px;
}
.site-sub {
  position: absolute !important;
  top: 100%;
  left: 0;
  min-width: 170px;
  padding: 6px !important;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-has-sub:hover .site-sub,
.site-has-sub:focus-within .site-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-sub a { border-radius: 8px; }

/* Hamburger (mobile only) */
.site-menu-toggle { display: none !important; }
.site-hamburger {
  display: none;
  width: 44px; height: 44px;
  padding: 11px 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
}
.site-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--hdr-fg);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* Space in the page flow so content starts below the fixed header */
.site-header-spacer { height: calc(var(--hdr-topbar-h) + var(--hdr-nav-h)); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 980px) {
  :root { --hdr-nav-h: 64px; --hdr-nav-h-scrolled: 56px; }

  .site-logo img { height: 46px; }
  .site-header.is-scrolled .site-logo img { height: 40px; }
  .site-logo-text { font-size: 17px; }

  .site-hamburger { display: flex; }

  .site-links {
    position: absolute !important;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .site-menu-toggle:checked ~ .site-links {
    max-height: calc(100vh - var(--hdr-topbar-h) - var(--hdr-nav-h));
    overflow-y: auto;
  }
  .site-links > li { border-top: 1px solid rgba(0,0,0,0.07); }
  .site-links a {
    border-radius: 0;
    padding: 14px 20px;
    font-size: 18px;
    text-align: center;
  }
  .site-links .site-book a { margin: 10px 20px 14px; border-radius: 26px; }

  /* Sub-menu shown inline on mobile */
  .site-sub {
    position: static !important;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-radius: 0;
    padding: 0 !important;
    background: rgba(0,0,0,0.03);
  }
  .site-sub a { border-radius: 0; font-size: 16px; }
  .site-caret { display: none; }

  /* Hamburger turns into an X when open */
  .site-menu-toggle:checked + .site-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-menu-toggle:checked + .site-hamburger span:nth-child(2) { opacity: 0; }
  .site-menu-toggle:checked + .site-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .site-topbar-inner, .site-nav { padding: 0 12px; }
  .site-topbar-phone { font-size: 13px; }
  .site-logo-text { font-size: 15px; }
}
