/* ==========================================================================
   home.css — homepage (v2) only.
   Shared components (contact popup, contact button base, resets) still come
   from sass/main.css; everything here is scoped to .home-v2.
   NOTE: main.css sets html { font-size: 56.25% } → 1rem = 9px. All rem
   values below are calibrated to that base.
   ========================================================================== */

:root {
  --bb-cream: #f4efe4;
  --bb-cream-soft: rgba(244, 239, 228, 0.78);
  --bb-cream-faint: rgba(244, 239, 228, 0.55);
  --bb-teal: #2fb5b0;
  --bb-teal-bright: #43d6cf;
  --bb-navy-deep: #060f1a;
  --bb-navy: #0a1826;
  --bb-navy-mid: #0c2233;
  --bb-sea-top: #11475f;
  --bb-sea-mid: #0a2c3f;
  --bb-sea-deep: #06202e;
  --bb-wave-back: #1b5a75;
}

.home-v2 {
  margin: 0;
  font-family: "Quicksand", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--bb-cream);
  background:
    radial-gradient(
      ellipse 120% 45% at 50% 72%,
      rgba(67, 214, 207, 0.14),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      var(--bb-navy-deep) 0%,
      var(--bb-navy) 42%,
      var(--bb-navy-mid) 70%,
      #0e2c40 100%
    );
  background-attachment: fixed;
  min-height: 100svh;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.7rem;
  padding: 2.5rem clamp(2.5rem, 4vw, 5.3rem);
}

.topbar__brand {
  display: inline-flex;
  flex-shrink: 0;
}

.topbar__logo {
  height: clamp(6.5rem, 5.6vw, 11rem);
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 2.6vw, 3.9rem);
}

.topbar__nav a {
  color: var(--bb-cream-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1.74rem, 1.1vw, 2.1rem);
  letter-spacing: 0.06em;
  padding: 0.6rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: var(--bb-teal-bright);
  border-bottom-color: var(--bb-teal-bright);
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  border: 1.5px solid rgba(67, 214, 207, 0.55);
  border-radius: 999px;
  padding: 1rem 2rem !important;
  border-bottom: 1.5px solid rgba(67, 214, 207, 0.55) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topbar__phone:hover,
.topbar__phone:focus-visible {
  background-color: var(--bb-teal);
  color: var(--bb-navy-deep) !important;
  border-color: var(--bb-teal) !important;
}

.topbar__phone svg {
  width: 1.8rem;
  height: 1.8rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-v2 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.hero-v2__content {
  position: relative;
  z-index: 5;
  width: min(1280px, 100%);
  /* Auto block margins center the content in whatever space is left
     above the sea, so tall viewports don't leave a dead void. */
  margin: auto;
  text-align: center;
  padding: 11.5rem clamp(2.5rem, 5vw, 5.3rem) 2.7rem;
}

.hero-v2__eyebrow {
  margin: 0 0 clamp(1.8rem, 1.6vh, 2.8rem);
  font-size: clamp(1.4rem, 0.85vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bb-teal-bright);
}

.hero-v2__title {
  margin: 0 auto clamp(1.2rem, 1.4vh, 2rem);
  font-size: clamp(4.6rem, 5.2vw, 11rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-v2__title-r1 {
  color: var(--bb-teal-bright);
  font-size: 0.55em;
  vertical-align: 0.5em;
  letter-spacing: 0.04em;
  margin-right: 0.1em;
}

.hero-v2__title-dot {
  color: var(--bb-teal-bright);
}

.hero-v2__tagline {
  margin: 0 auto clamp(2.6rem, 3vh, 4rem);
  font-size: clamp(2rem, 1.5vw, 2.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bb-teal-bright);
}

.hero-v2__sub {
  margin: 0 auto clamp(3.4rem, 3vh, 4.6rem);
  max-width: 52ch;
  font-size: clamp(1.8rem, 1.15vw, 2.4rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--bb-cream-soft);
}

.hero-v2__sub strong {
  color: var(--bb-cream);
  font-weight: 700;
}

.hero-v2__relax {
  display: block;
  margin-top: 1.1em;
  font-style: italic;
  font-weight: 600;
  color: var(--bb-cream);
}

.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.6rem, 1vw, 2.1rem);
  margin-bottom: clamp(3.4rem, 3vh, 4.6rem);
}

.btn-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 999px;
  padding: clamp(1.7rem, 1.05vw, 2.2rem) clamp(3.4rem, 2.1vw, 4.6rem);
  font-family: inherit;
  font-size: clamp(1.8rem, 0.95vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-v2--primary {
  background-color: var(--bb-teal);
  color: #052028;
  box-shadow: 0 12px 30px rgba(47, 181, 176, 0.35);
}

.btn-v2--primary:hover,
.btn-v2--primary:focus-visible {
  background-color: var(--bb-teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(67, 214, 207, 0.45);
}

.btn-v2--ghost {
  border: 1.5px solid rgba(244, 239, 228, 0.35);
  color: var(--bb-cream);
  background: transparent;
}

.btn-v2--ghost:hover,
.btn-v2--ghost:focus-visible {
  border-color: var(--bb-teal-bright);
  color: var(--bb-teal-bright);
  transform: translateY(-2px);
}

/* Trust line */
.hero-v2__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 2.8rem;
  margin: 0 0 clamp(3.6rem, 3.4vh, 5.3rem);
  padding: 0;
}

.hero-v2__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: clamp(1.64rem, 0.9vw, 2rem);
  font-weight: 600;
  color: var(--bb-cream-faint);
}

.hero-v2__trust svg {
  width: clamp(1.9rem, 1vw, 2.3rem);
  height: clamp(1.9rem, 1vw, 2.3rem);
  flex-shrink: 0;
  stroke: var(--bb-teal-bright);
}

/* Service chips */
.hero-v2__services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.1rem, 0.7vw, 1.6rem);
  margin: 0;
  padding: 0;
}

.hero-v2__services li {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.8rem 1.8rem 0.8rem 0.8rem;
  border-radius: 999px;
  background: rgba(244, 239, 228, 0.07);
  border: 1px solid rgba(244, 239, 228, 0.1);
  font-size: clamp(1.5rem, 0.78vw, 1.8rem);
  font-weight: 600;
  color: var(--bb-cream-soft);
  backdrop-filter: blur(4px);
}

.hero-v2__services img {
  width: clamp(3.4rem, 1.8vw, 4.3rem);
  height: clamp(3.4rem, 1.8vw, 4.3rem);
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   The sea — waves + clickable boats
   -------------------------------------------------------------------------- */
.hero-v2__sea {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  height: clamp(240px, 36vh, 560px);
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: 0;
  width: 200%;
  will-change: transform;
}

.wave--back {
  top: 0;
  height: 72px;
  fill: var(--bb-wave-back);
  opacity: 0.55;
  animation: wave-drift 26s linear infinite;
}

.wave--front {
  top: max(90px, 27%);
  height: 110px;
  fill: var(--bb-sea-top);
  z-index: 3;
  animation: wave-drift-reverse 18s linear infinite;
}

.hero-v2__water {
  position: absolute;
  top: calc(max(90px, 27%) + 104px);
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    var(--bb-sea-top) 0%,
    var(--bb-sea-mid) 55%,
    var(--bb-sea-deep) 100%
  );
}

@keyframes wave-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes wave-drift-reverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* The fleet — boat-shaped nav, centered as a pair */
.fleet {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(5rem, 9vw, 20rem);
}

.fleet__link {
  position: relative;
  display: block;
  pointer-events: auto;
  border-radius: 18px;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1),
    filter 0.35s ease;
}

.fleet__link img {
  display: block;
  width: 100%;
  height: auto;
  animation: boat-bob 4.6s ease-in-out infinite;
}

.fleet__link:hover,
.fleet__link:focus-visible {
  transform: translateY(-9px) scale(1.045);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 22px rgba(67, 214, 207, 0.35));
  z-index: 5;
}

.fleet__link:focus-visible {
  outline: 3px solid var(--bb-teal-bright);
  outline-offset: 6px;
}

.fleet__link--services {
  top: 0;
  width: clamp(240px, 30vw, 620px);
}

.fleet__link--gallery {
  top: clamp(12px, 2.5%, 26px);
  width: clamp(200px, 24.5vw, 505px);
}

.fleet__link--gallery img {
  animation-delay: -2.3s;
}

@keyframes boat-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-0.9deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.1deg);
  }
}

/* Gulls */
.gull {
  position: absolute;
  z-index: 1;
  stroke: var(--bb-cream-faint);
  stroke-width: 2;
  fill: none;
  opacity: 0.55;
  animation: gull-drift 16s ease-in-out infinite alternate;
}

.gull--one {
  top: 24vh;
  right: 16vw;
  width: clamp(34px, 2.6vw, 52px);
}

.gull--two {
  top: 18vh;
  right: 24vw;
  width: clamp(22px, 1.8vw, 36px);
  animation-delay: -6s;
  animation-duration: 21s;
}

@keyframes gull-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-46px, 14px);
  }
}

/* --------------------------------------------------------------------------
   Floating contact button (reuses .contact-btn base + JS hover/bob classes)
   -------------------------------------------------------------------------- */
.dock-btn {
  position: fixed;
  right: clamp(1.8rem, 3vw, 3.9rem);
  bottom: clamp(1.8rem, 3vh, 3.9rem);
  width: clamp(11.5rem, 9.5vw, 16.5rem);
  z-index: 40;
}

/* --------------------------------------------------------------------------
   Motion safety — mirror performance-detection + user preference
   -------------------------------------------------------------------------- */
.reduce-animations .wave,
.reduce-animations .fleet__link img,
.reduce-animations .gull {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .wave,
  .fleet__link img,
  .gull {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 950px) {
  .topbar__nav a:not(.topbar__phone) {
    display: none;
  }

  .hero-v2__content {
    padding-top: 10rem;
  }
}

@media only screen and (max-width: 640px) {
  .hero-v2__content {
    padding-top: 13rem;
    padding-bottom: 1.4rem;
  }

  .hero-v2__eyebrow {
    font-size: 1.2rem;
    letter-spacing: 0.22em;
    margin-bottom: 1.4rem;
  }

  .hero-v2__title {
    font-size: 4.4rem;
    margin-bottom: 1rem;
  }

  .hero-v2__tagline {
    font-size: 1.8rem;
    margin-bottom: 2.2rem;
  }

  .hero-v2__sub {
    font-size: 1.65rem;
    line-height: 1.55;
    margin-bottom: 2rem;
  }

  .hero-v2__actions {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .hero-v2__actions .btn-v2 {
    flex: 1 1 100%;
    max-width: 32rem;
    margin-inline: auto;
    padding: 1.3rem 2.6rem;
    font-size: 1.6rem;
  }

  .hero-v2__trust {
    gap: 0.5rem 1.8rem;
    margin-bottom: 2.2rem;
  }

  .hero-v2__trust li {
    font-size: 1.4rem;
  }

  .hero-v2__trust svg {
    width: 1.6rem;
    height: 1.6rem;
  }

  /* Phones: the service chips don't earn their space — the services
     boat and Explore button already carry that message. */
  .hero-v2__services {
    display: none;
  }

  .hero-v2__sea {
    height: clamp(180px, 25vh, 250px);
  }

  /* Phones: the tug docks in the top bar where the phone pill was,
     and tapping it opens the contact options popup. */
  .topbar__phone {
    display: none !important;
  }

  /* Bigger logo + tug, vertically centre-aligned with each other */
  .topbar {
    padding-top: 1.9rem;
  }

  .topbar__logo {
    height: 8rem;
  }

  .dock-btn {
    top: 1.9rem;
    right: 1.9rem;
    bottom: auto;
    width: 8rem;
  }

  .dock-btn .contact-btn2__label {
    display: none;
  }

  .dock-btn .contact-btn2__icon {
    width: 52%;
  }

  .fleet {
    gap: 5vw;
  }

  .fleet__link--services {
    top: 26px;
    width: 45vw;
  }

  .fleet__link--gallery {
    top: 8px;
    width: 38vw;
  }

  .wave--front {
    top: 44px;
    height: 90px;
  }

  .hero-v2__water {
    top: 132px;
  }

  /* Phone layouts have no reliably empty sky — hide the gulls. */
  .gull {
    display: none;
  }
}
