/* ==========================================================================
   Sections — header, hero, intro, tours, transfer, footer
   ========================================================================== */

/* ==========================================================================
   HEADER
   Mobile: solid white bar.
   Desktop: transparent over the hero, turning white once the page scrolls.
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--navy-800);
  transition: background-color var(--t-base) var(--ease-soft),
              box-shadow var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
}

.site-header__nav {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1rem);
}

@media (min-width: 880px) {
  .site-header {
    background: transparent;
    box-shadow: none;
    color: var(--white);
  }

  .site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 180px;
    background: linear-gradient(to bottom,
                rgba(6, 28, 56, 0.42), rgba(6, 28, 56, 0));
    opacity: 1;
    pointer-events: none;
    transition: opacity var(--t-base) var(--ease-soft);
  }

  .site-header__inner {
    /* the circular badge overhangs the bar, so keep the row from growing */
    position: relative;
  }

  .site-header .brand {
    position: absolute;
    left: var(--gutter);
    top: clamp(10px, 1.6vw, 22px);
  }

  .site-header__nav {
    display: block;
    margin-left: auto;
    margin-right: clamp(1.5rem, 3vw, 3rem);
  }

  /* The badge is out of flow, so without this the actions would slide left
     underneath it on pages that have no nav (the booking page). */
  .site-header__actions {
    margin-left: auto;
  }

  .site-header.is-scrolled {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--navy-800);
  }

  .site-header.is-scrolled::before {
    opacity: 0;
  }

  .site-header.is-scrolled .brand__badge,
  .site-header.is-scrolled .brand__custom--header {
    transform: scale(0.8);
    transform-origin: left top;
  }
}

/* ---- Mobile navigation panel -------------------------------------------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  align-content: start;
  gap: 0;
  padding: calc(var(--header-h) + var(--space-lg)) var(--gutter) var(--space-xl);
  background: var(--navy-900);
  color: var(--white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-1.25rem);
  transition: opacity var(--t-base) var(--ease-soft),
              transform var(--t-base) var(--ease-out),
              visibility var(--t-base) linear;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.mobile-nav__link {
  padding-block: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color var(--t-fast) var(--ease-soft),
              padding-left var(--t-base) var(--ease-out);
}

.mobile-nav__link:hover,
.mobile-nav__link[aria-current] {
  color: var(--yellow-500);
  padding-left: 0.4rem;
}

.mobile-nav__footer {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 880px) {
  .mobile-nav,
  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  min-height: max(calc(100svh - var(--header-h)), 600px);
  padding-top: calc(var(--header-h) + clamp(1.5rem, 6vh, 3.25rem));
  padding-bottom: clamp(160px, 36vh, 320px); /* scenery stays visible below CTAs */
  color: var(--white);
}

.hero__media,
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* <picture> is inline by default, which collapses the image's 100% height */
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero__scrim {
  background:
    linear-gradient(to bottom, rgba(6, 28, 56, 0.34) 0%,
                                rgba(6, 28, 56, 0) 28%),
    linear-gradient(100deg, rgba(6, 28, 56, 0.72) 0%,
                            rgba(6, 28, 56, 0.5) 34%,
                            rgba(6, 28, 56, 0.14) 62%,
                            rgba(6, 28, 56, 0) 82%);
}

.hero__inner {
  max-width: 44rem;
}

.hero__eyebrow {
  color: var(--white);
  margin-bottom: clamp(0.75rem, 1.6vh, 1.25rem);
  opacity: 0.94;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.045em;
  color: var(--white);
  text-shadow: 0 10px 40px rgba(6, 28, 56, 0.34);
}

/* ---- Brand expression --------------------------------------------------- */

.hero__script {
  font-family: var(--font-script);
  font-size: var(--fs-script);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-top: clamp(0.35rem, 1.2vh, 0.9rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  text-shadow: 0 8px 30px rgba(6, 28, 56, 0.3);
}

.hero__script span {
  display: block;
}

.script__lead {
  color: var(--white);
}

.script__accent {
  position: relative;
  width: fit-content;
  margin-left: clamp(1.5rem, 5vw, 3.75rem);
  color: var(--yellow-500);
}

.script__underline {
  position: absolute;
  left: -4%;
  bottom: -0.2em;
  width: 108%;
  height: auto;
  color: var(--yellow-500);
  overflow: visible;
}

.script__underline path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-underline 1.1s var(--ease-out) 0.85s forwards;
}

@keyframes draw-underline {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .script__underline path {
    stroke-dashoffset: 0;
    animation: none;
  }
}

.hero__lede {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: clamp(1.75rem, 4.5vh, 2.75rem);
  text-shadow: 0 4px 18px rgba(6, 28, 56, 0.4);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
}

/* ---- Organic transition into white -------------------------------------- */

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: clamp(46px, 7vw, 112px);
  pointer-events: none;
}

@media (min-width: 880px) {
  .hero {
    justify-content: center;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: clamp(160px, 20vh, 240px);
  }

  .hero__img {
    object-position: center center;
  }
}

@media (min-width: 880px) and (max-height: 760px) {
  :root {
    --fs-hero: clamp(3.5rem, 8vw, 7rem);
    --fs-script: clamp(2.25rem, 3.4vw, 3.75rem);
  }
}

/* ==========================================================================
   INTRO
   ========================================================================== */

.intro__head {
  max-width: 58rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.intro__eyebrow {
  color: var(--turq-600);
  margin-bottom: var(--space-sm);
}

.intro__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.intro__title em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 700;
  font-size: 1.22em;
  color: var(--turq-600);
  letter-spacing: 0;
}

.intro__text {
  max-width: 46rem;
  color: var(--navy-500);
}

/* ==========================================================================
   TOURS
   ========================================================================== */

.section--tours {
  position: relative;
  isolation: isolate;
  background: var(--sand-50);
  padding-block: var(--space-2xl);
}

/* Faint reef contours, so the band reads as sea floor rather than flat paper.
   Kept very low contrast — the tour cards must stay the loudest thing here. */
.section--tours::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(23, 195, 214, 0.1), transparent 65%),
    url("../assets/pattern-reef.svg") center / 900px auto repeat;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
  pointer-events: none;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section__title {
  font-size: var(--fs-h2);
}

.section__eyebrow {
  color: var(--turq-600);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   TRANSFER BAND
   ========================================================================== */

.transfer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--white);
  padding-block: var(--space-2xl);
}

.transfer::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -40%;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
              rgba(23, 195, 214, 0.42) 0%, rgba(23, 195, 214, 0.12) 55%, rgba(23, 195, 214, 0) 100%);
}

.transfer::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12%;
  bottom: -46%;
  width: min(60vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%,
              rgba(255, 212, 41, 0.18) 0%, rgba(255, 212, 41, 0.05) 55%, rgba(255, 212, 41, 0) 100%);
}

.transfer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .transfer__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.transfer__eyebrow {
  color: var(--turq-300);
  margin-bottom: var(--space-sm);
}

.transfer__title {
  color: var(--white);
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.transfer__text {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}

.transfer__list {
  display: grid;
  gap: 0.9rem;
}

.transfer__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.transfer__item svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--yellow-500);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--space-2xl) var(--space-lg);
}

/* Deep-water glow, so the footer feels like the bottom of the sea rather
   than a flat block of navy. */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48rem 26rem at 12% 0%, rgba(23, 195, 214, 0.2), transparent 62%),
    radial-gradient(38rem 22rem at 92% 30%, rgba(255, 212, 41, 0.09), transparent 60%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/pattern-reef.svg") center / 1100px auto repeat;
  opacity: 0.16;
  filter: invert(1);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: var(--space-xl);
}

@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer .brand__wordmark {
  display: block;
  width: clamp(200px, 26vw, 256px);
  margin-bottom: var(--space-md);
}

.site-footer .brand__badge {
  display: none;
}

.site-footer__tagline {
  font-family: var(--font-script);
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--yellow-500);
  margin-bottom: var(--space-sm);
}

.site-footer__blurb {
  max-width: 32ch;
  font-size: 1rem;
}

.site-footer__title {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.site-footer__list {
  display: grid;
  gap: 0.7rem;
}

.site-footer__list a {
  transition: color var(--t-fast) var(--ease-soft);
}

.site-footer__list a:hover {
  color: var(--yellow-500);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

.site-footer__descriptor {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}
