/* CruiseRep site header + home banner (ported from the Next.js site). Prefix cr- keeps the theme out. */
:root {
  --cr-navy: #061138;
  --cr-primary: #2b44d4;
  --cr-primary-hover: #1f35b5;
  --cr-sand: #f4f4ee;
  --cr-heading: #121630;
  --cr-text: #575c6b;
  --cr-muted: #626777;
  --cr-border: #e3e3dc;
  --cr-radius: 14px;
  --cr-radius-sm: 8px;
  --cr-shadow: 0 18px 50px -20px rgb(6 17 56 / 0.25);
  --cr-header-h: 76px;
  --cr-container: 1240px;
  --cr-gutter: 20px;
  --cr-font-heading: 'Outfit', system-ui, sans-serif;
  --cr-font-body: 'DM Sans', 'Outfit', system-ui, sans-serif;
}
@media (min-width: 768px) {
  :root {
    --cr-gutter: 32px;
    --cr-header-h: 88px;
  }
}
html {
  scroll-padding-top: calc(var(--cr-header-h) + 16px);
}
html.cr-no-scroll {
  overflow: hidden;
}

.cr-container {
  width: 100%;
  max-width: calc(var(--cr-container) + var(--cr-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--cr-gutter);
  box-sizing: border-box;
}
.cr-header *,
.cr-drawer *,
.cr-hero * {
  box-sizing: border-box;
}
.cr-header ul,
.cr-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cr-header li,
.cr-drawer li {
  margin: 0;
  padding: 0;
}
.cr-header li::before,
.cr-drawer li::before {
  display: none;
}
.cr-header a,
.cr-drawer a {
  text-decoration: none;
}
.cr-header button,
.cr-drawer button {
  margin: 0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  cursor: pointer;
  min-height: 0;
  width: auto;
}

/* ---------- Buttons ---------- */
.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--cr-font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-transform: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.cr-btn:hover {
  transform: translateY(-1px);
}
.cr-btn-primary,
.cr-btn-primary:visited {
  background: var(--cr-primary);
  color: #fff !important;
  box-shadow: 0 10px 24px -12px rgb(43 68 212 / 0.8);
}
.cr-btn-primary:hover,
.cr-btn-primary:focus {
  background: var(--cr-primary-hover);
  color: #fff !important;
}
.cr-btn-sm {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
}
.cr-btn-lg {
  min-height: 56px;
  padding: 16px 32px;
  font-size: 16px;
}
.cr-btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.cr-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgb(6 17 56 / 0.06);
}
body.admin-bar .cr-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .cr-header {
    top: 0;
  }
}
.cr-header-inner {
  height: var(--cr-header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.cr-logo {
  flex: 0 0 auto;
  display: block;
  width: 132px;
  line-height: 0;
}
@media (min-width: 768px) {
  .cr-logo {
    width: 160px;
  }
}
/* Keep the logo's own proportions at every width. */
.cr-logo img.cr-logo-img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none;
  object-fit: contain;
}
.cr-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cr-header-cta {
  display: none;
}
@media (min-width: 640px) {
  .cr-header-cta {
    display: inline-flex;
  }
}

/* Desktop nav from 1180px; below that the drawer takes over. */
.cr-nav {
  display: none;
}
@media (min-width: 1180px) {
  .cr-nav {
    display: block;
    margin-left: auto;
  }
  .cr-header-actions {
    margin-left: 0;
  }
  .cr-burger {
    display: none !important;
  }
}
.cr-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cr-nav-list > li {
  position: relative;
}
.cr-header .cr-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--cr-heading);
  font-family: var(--cr-font-heading);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.cr-header .cr-nav-link:hover,
.cr-has-dropdown:hover > .cr-nav-link,
.cr-has-dropdown.is-open > .cr-nav-link {
  background: var(--cr-sand);
  color: var(--cr-heading);
}
.cr-header .cr-nav-link.is-active {
  color: var(--cr-primary);
}
.cr-chev {
  flex: 0 0 auto;
  transition: transform 0.2s;
}
.cr-has-dropdown:hover .cr-chev,
.cr-has-dropdown.is-open .cr-chev {
  transform: rotate(180deg);
}
.cr-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 260px;
  padding: 14px;
  margin-top: 10px;
  background: #fff;
  border-radius: var(--cr-radius);
  box-shadow: var(--cr-shadow);
  border: 1px solid rgb(6 17 56 / 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.cr-dropdown::before {
  /* hover bridge between the button and the panel */
  content: '';
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
.cr-has-dropdown:hover > .cr-dropdown,
.cr-has-dropdown.is-open > .cr-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.cr-dropdown-wide {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  min-width: max-content;
}
.cr-dropdown-group ul.cr-cols-2 {
  columns: 2;
  column-gap: 8px;
}
.cr-dropdown-group li {
  break-inside: avoid;
}
.cr-header .cr-dropdown-group a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--cr-radius-sm);
  color: var(--cr-heading);
  font-family: var(--cr-font-body);
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}
.cr-header .cr-dropdown-group a:hover,
.cr-header .cr-dropdown-group a[aria-current='page'] {
  background: var(--cr-sand);
  color: var(--cr-primary);
}
.cr-header .cr-dropdown-title,
.cr-drawer .cr-dropdown-title {
  margin: 4px 14px 6px;
  font-family: var(--cr-font-heading);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr-muted);
}

/* ---------- Burger + drawer ---------- */
.cr-header .cr-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--cr-border);
  border-radius: 50%;
  background: #fff;
}
.cr-burger span {
  display: block;
  height: 2px;
  background: var(--cr-heading);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.cr-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.cr-burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.cr-burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.cr-drawer-backdrop {
  position: fixed;
  inset: var(--cr-header-h) 0 0;
  background: rgb(6 17 56 / 0.45);
  z-index: 990;
}
.cr-drawer {
  position: fixed;
  top: var(--cr-header-h);
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  z-index: 995;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cr-drawer.is-open {
  transform: none;
}
body.admin-bar .cr-drawer,
body.admin-bar .cr-drawer-backdrop {
  top: calc(var(--cr-header-h) + 32px);
}
@media (min-width: 1180px) {
  .cr-drawer,
  .cr-drawer-backdrop {
    display: none !important;
  }
}
.cr-drawer-list {
  padding: 12px var(--cr-gutter) !important;
}
.cr-drawer-list > li {
  border-bottom: 1px solid var(--cr-border);
}
.cr-drawer .cr-drawer-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--cr-heading);
  font-family: var(--cr-font-heading);
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}
.cr-drawer-list > li.is-open .cr-chev {
  transform: rotate(180deg);
}
.cr-drawer-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.cr-drawer-sub > div {
  overflow: hidden;
  min-height: 0;
}
.cr-drawer-list > li.is-open .cr-drawer-sub {
  grid-template-rows: 1fr;
  padding-bottom: 12px;
}
.cr-drawer .cr-drawer-sub a {
  display: block;
  padding: 9px 12px;
  color: var(--cr-text);
  font-family: var(--cr-font-body);
  font-size: 16px;
  border-radius: var(--cr-radius-sm);
}
.cr-drawer .cr-drawer-sub a:hover {
  background: var(--cr-sand);
}
.cr-drawer .cr-drawer-sub .cr-dropdown-title {
  margin: 12px 12px 4px;
}
.cr-drawer-footer {
  margin-top: auto;
  padding: 20px var(--cr-gutter) 28px;
  display: grid;
  gap: 14px;
  text-align: center;
}
.cr-drawer .cr-drawer-phone {
  font-family: var(--cr-font-heading);
  font-size: 18px;
  color: var(--cr-heading);
}

/* ---------- Home banner ---------- */
.cr-hero {
  position: relative;
  height: clamp(520px, calc(100svh - var(--cr-header-h)), 820px);
  overflow: hidden;
  background: var(--cr-navy);
}
/* Elementor wraps the shortcode in a section/column/widget: let the banner touch the window edges. */
.cr-hero-section > .elementor-container,
.elementor-section:has(.cr-hero) > .elementor-container,
.cr-hero-section .elementor-column,
.cr-hero-section .elementor-widget-wrap,
.cr-hero-section .elementor-widget-shortcode,
.cr-hero-section .elementor-shortcode {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cr-hero img.cr-hero-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  /* the ship sits on the right of the photo: keep it in view on narrow screens */
  object-position: 72% 50%;
  animation: cr-hero-zoom 9s ease-out both;
}
@keyframes cr-hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr-hero img.cr-hero-img {
    animation: none;
  }
}
.cr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(6 17 56 / 0.78) 0%, rgb(6 17 56 / 0.45) 50%, rgb(6 17 56 / 0.1) 100%),
    linear-gradient(0deg, rgb(6 17 56 / 0.45), transparent 45%);
}
.cr-hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}
.cr-hero .cr-hero-title {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--cr-font-heading);
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 14em;
  text-wrap: balance;
}
.cr-hero .cr-hero-text {
  margin: 0 0 32px;
  max-width: 34em;
  color: rgb(255 255 255 / 0.88);
  font-family: var(--cr-font-body);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
}
