/**
 * Hero & Slide-in Navigation Styles
 * Adopted from index.html prototype
 */

:root {
  --ink: #111417;
  --muted: #6b7178;
  --bg: #ffffff;
  --radius-card: 26px;
  --pad: clamp(20px, 2.2vw, 34px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --stagger: 72ms;
  --nature-img: url("../images/highlight-bg.webp");
}

body.nav-open {
  overflow: hidden;
}

/* =================================================================
   LAYOUT SHELL
   ================================================================= */
.hero {
  position: relative;
  height: 96vh;
  height: 96svh;
  min-height: 600px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(16px, 2.4vw, 40px);
  padding: var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  overflow: hidden;
  background: var(--bg);
}

.hero__left {
  position: relative;
  order: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: clamp(4px, 1.6vw, 28px);
}

/* =================================================================
   LEFT COLUMN: NAV ROW
   ================================================================= */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.4vw, 58px);
  padding-top: clamp(4px, 0.6vw, 10px);
}

.brand,
.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__logo,
.custom-logo {
  width: var(--logo-width, 180px);
  max-width: 100%;
  height: auto;
  max-height: clamp(48px, 7vw, 110px);
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, filter 0.25s ease, width 0.15s ease;
}

.brand:hover .brand__logo,
.custom-logo-link:hover .custom-logo {
  opacity: 0.85;
}

.brand__name {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: clamp(14px, 1.15vw, 19px);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.brand__name .logo-accent {
  color: #e5a93c;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 42px);
  margin: 0 auto 0 clamp(10px, 2vw, 44px);
  padding: 0;
  list-style: none;
}

.nav__links a {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(14px, 1.02vw, 17px);
  font-weight: 500;
  opacity: .88;
  transition: opacity .2s ease;
}

.nav__links a:visited,
.nav a:visited,
.site-header-standalone .nav a:visited,
header nav a:visited {
  color: #000000;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  opacity: 1;
  color: #e5a93c;
}

.nav__links li {
  position: relative;
}

.nav__links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  margin: 12px 0 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}

.nav__links li:hover > .sub-menu,
.nav__links li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__links .sub-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  white-space: nowrap;
}

.nav__links .sub-menu a:hover {
  background: rgba(229, 169, 60, 0.12);
  color: #e5a93c;
}

.burger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px 0 8px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
  z-index: 100000;
  height: 30px;
  transition: color .35s ease, transform .25s ease;
}

.burger span {
  display: block;
  width: 30px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform .55s var(--ease-out), opacity .25s ease, width .45s var(--ease-out);
}

.burger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
  border-radius: 4px;
}

.burger:hover span:nth-child(2) {
  width: 22px;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.2);
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.burger.is-active:hover span:nth-child(2) {
  width: 30px;
}

.burger.is-active {
  z-index: 100010;
  animation: none !important;
  color: #000000;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.burger.is-active.burger--on-panel {
  color: #000000;
}

body.nav-open .burger {
  z-index: 100010;
}

/* =================================================================
   LEFT COLUMN: CONTENT BLOCK
   ================================================================= */
.hero__content {
  margin-top: auto;
  padding: clamp(24px, 4vh, 60px) 0;
  max-width: 820px;
}

.hero__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.1;
  font-size: clamp(2.15rem, 3.85vw, 4.1rem);
  color: var(--ink) !important;
}

.hero__line {
  display: block;
}

.hl {
  display: inline-block;
  color: #fff;
  padding: .06em .24em .14em;
  margin: 0 .04em;
  border-radius: 16px;
  background-image: var(--nature-img);
  background-size: cover;
  background-position: 56% 14%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__text {
  margin: clamp(22px, 3.2vh, 42px) 0 0;
  max-width: 47ch;
  color: var(--muted);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
  margin-top: clamp(28px, 5vh, 66px);
  text-decoration: none;
  color: inherit;
}

.cta__label {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 600;
  color: var(--ink);
}

.cta__icon {
  width: clamp(44px, 3.6vw, 58px);
  height: clamp(44px, 3.6vw, 58px);
  border-radius: 50%;
  border: 1.5px solid rgba(17, 20, 23, .55);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  color: var(--ink);
}

.cta__icon svg {
  width: 44%;
  height: 44%;
}

.cta:hover .cta__icon {
  background: var(--ink);
  color: #fff;
  transform: translateX(4px);
}

.socials--mobile,
.socials.socials--mobile {
  display: none !important;
}

/* =================================================================
   RIGHT COLUMN: MEDIA CARD
   ================================================================= */
.hero__media {
  position: relative;
  order: 2;
  isolation: isolate;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #0b2a3a;
  min-width: 0;
}

.hero__video,
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0) 38%);
  pointer-events: none;
}

/* CALLOUT MARKERS */
.marker {
  position: absolute;
  z-index: 3;
  --dot-r: 17px;
}

.marker--water {
  left: 34%;
  top: 29%;
}

.marker--reef {
  left: 59%;
  top: 59%;
}

.marker__dot {
  position: absolute;
  left: calc(var(--dot-r) * -1);
  top: calc(var(--dot-r) * -1);
  width: calc(var(--dot-r) * 2);
  height: calc(var(--dot-r) * 2);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.marker__line {
  position: absolute;
  left: 0;
  top: -1.5px;
  width: 60px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transform-origin: 0 50%;
  transform: rotate(212deg);
  clip-path: inset(0 0 0 var(--dot-r));
}

.marker__label {
  position: absolute;
  right: 50px;
  bottom: 28px;
  white-space: nowrap;
  background: #fff;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(13px, .95vw, 16px);
  font-weight: 600;
  padding: .62em 1.05em;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
}

.marker--right .marker__line {
  transform: rotate(-32deg);
}

.marker--right .marker__label {
  right: auto;
  left: 50px;
}

/* SOCIAL PILL */
.socials {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
  background: #fff;
  padding: clamp(14px, 1.5vw, 24px) clamp(20px, 2.2vw, 38px);
  border-top-left-radius: 36px;
  border-bottom-right-radius: var(--radius-card);
}

.socials a {
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity .2s ease, transform .2s ease;
}

.socials a:hover {
  opacity: .65;
  transform: translateY(-2px);
}

.socials svg {
  width: clamp(20px, 1.5vw, 26px);
  height: clamp(20px, 1.5vw, 26px);
}

/* =================================================================
   SLIDE-IN NAV SHEET
   ================================================================= */
.navsheet {
  position: fixed;
  inset: 0;
  z-index: 99990;
  visibility: hidden;
  transition: visibility 0s linear .46s;
}

.navsheet.is-open {
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.navsheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 24, .45);
  opacity: 0;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: opacity .32s ease, backdrop-filter .32s ease, -webkit-backdrop-filter .32s ease;
}

.navsheet.is-open .navsheet__scrim {
  opacity: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity .5s ease, backdrop-filter .6s ease, -webkit-backdrop-filter .6s ease;
}

.navsheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  padding: calc(var(--pad) + 78px) clamp(24px, 6vw, 52px) calc(var(--pad) + 12px);
  padding-bottom: max(calc(var(--pad) + 12px), env(safe-area-inset-bottom));
  background: rgba(6, 22, 31, .92);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border-left: 1px solid rgba(255, 255, 255, .08);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .35);
  color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform .44s var(--ease-in);
}

.admin-bar .navsheet__panel {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .navsheet__panel {
    top: 46px;
  }
}

.navsheet.is-open .navsheet__panel {
  transform: translateX(0);
  transition: transform .68s var(--ease-out);
}

.navsheet__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navsheet__list li {
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.navsheet__list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.navsheet__list .sub-menu {
  list-style: none;
  padding: 0 0 10px 20px;
  margin: 0;
}

.navsheet__list .sub-menu li {
  border: none !important;
}

.navsheet__list .sub-menu .navsheet__link {
  font-size: clamp(15px, 2vh, 18px);
  padding: 8px 0;
  opacity: 0.85;
}

.navsheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(15px, 2.4vh, 22px) 2px;
  text-decoration: none;
  color: #fff;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.6rem, 7vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .16s ease, transform .16s ease, color .25s ease;
}

.navsheet.is-open .navsheet__link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), color .25s ease;
  transition-delay: calc(.16s + var(--i) * .062s), calc(.16s + var(--i) * .062s), 0s;
}

.navsheet__link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}

.navsheet__link:hover,
.navsheet__link:focus-visible {
  color: #e5a93c;
}

.navsheet__link:hover svg,
.navsheet__link:focus-visible svg {
  opacity: 1;
  transform: translateX(0);
}

.navsheet__link:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.navsheet__foot {
  margin-top: auto;
  padding-top: clamp(26px, 5vh, 48px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .16s ease, transform .16s ease;
}

.navsheet.is-open .navsheet__foot {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: .42s;
}

.navsheet__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: #0a1a24;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .25s var(--ease-out), background .25s ease;
}

.navsheet__cta svg {
  width: 16px;
  height: 16px;
}

.navsheet__cta:hover {
  transform: translateY(-2px);
  background: #fef3c7;
}

.navsheet__socials {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: clamp(22px, 4vh, 34px);
}

.navsheet__socials a {
  color: rgba(255, 255, 255, .72);
  display: grid;
  place-items: center;
  transition: color .2s ease, transform .2s ease;
}

.navsheet__socials a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.navsheet__socials svg {
  width: 22px;
  height: 22px;
}

/* =================================================================
   PAGE ENTRANCE ANIMATION
   ================================================================= */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes media-in {
  from {
    opacity: 0;
    transform: translate3d(28px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes video-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes draw-line {
  from {
    opacity: 0;
    transform: rotate(212deg) scaleX(0);
  }
  to {
    opacity: 1;
    transform: rotate(212deg) scaleX(1);
  }
}

@keyframes draw-line-right {
  from {
    opacity: 0;
    transform: rotate(-32deg) scaleX(0);
  }
  to {
    opacity: 1;
    transform: rotate(-32deg) scaleX(1);
  }
}

.anim {
  animation: fade-up .82s var(--ease-out) backwards;
  animation-delay: calc(var(--d, 0) * var(--stagger));
}

.hero__media.anim {
  animation-name: media-in;
  animation-duration: 1.05s;
}

.hero__video.anim,
.hero__image.anim {
  animation-name: video-in;
  animation-duration: 1.35s;
}

.marker__dot.anim {
  animation-name: pop-in;
  animation-duration: .62s;
}

.marker__label.anim {
  animation-duration: .7s;
}

.marker__line.anim {
  animation-name: draw-line;
  animation-duration: .55s;
}

.marker--right .marker__line.anim {
  animation-name: draw-line-right;
}

/* =================================================================
   RESPONSIVE BEHAVIOUR
   ================================================================= */
@media (max-width: 1180px) {
  .nav__links {
    gap: 20px;
    margin-left: 22px;
  }
  .hero__text {
    line-height: 1.8;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  }
  .nav__links {
    display: none;
  }
  .marker--water {
    left: 46%;
    top: 24%;
  }
  .marker--reef {
    left: 50%;
    top: 60%;
  }
  .marker__line {
    width: 44px;
  }
  .marker {
    --dot-r: 13px;
  }
  .marker__dot {
    border-width: 3px;
  }
  .marker__label {
    font-size: 12px;
    right: 36px;
    bottom: 22px;
  }
  .marker--right .marker__label {
    right: auto;
    left: 36px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  }
  .hero__text {
    max-width: 42ch;
  }
  .marker--water {
    left: 40%;
    top: 22%;
  }
  .marker--reef {
    left: 44%;
    top: 62%;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 20px;
  }
  .hero {
    display: block;
    padding: 0;
    color: #fff;
  }
  .hero__media {
    position: absolute;
    inset: 0;
    border-radius: 0;
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(4, 18, 28, .74) 0%, rgba(4, 18, 28, .5) 42%, rgba(4, 18, 28, .88) 100%);
  }
  .marker,
  .socials {
    display: none;
  }
  .hero__left {
    height: 100%;
    padding: var(--pad);
    padding-top: max(var(--pad), env(safe-area-inset-top));
    padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
    color: #fff;
  }
  .hero__left .brand__logo,
  .hero__left .custom-logo {
    filter: brightness(0) invert(1);
    width: min(var(--logo-width, 180px), 160px);
    max-height: 48px;
    height: auto;
  }
  .hero__content {
    padding: clamp(20px, 3vh, 40px) 0;
  }
  .hero__title {
    font-size: clamp(2rem, 9.2vw, 3rem);
    line-height: 1.14;
    color: #fff !important;
  }
  .hl {
    border-radius: 12px;
  }
  .hero__text {
    color: rgba(255, 255, 255, .82);
    max-width: 38ch;
    line-height: 1.5;
    font-size: 18px;
  }
  .cta {
    color: #fff;
    margin-top: 32px;
  }
  .cta__label {
    color: #fff;
  }
  .cta__icon {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
  }
  .cta:hover .cta__icon {
    background: #fff;
    color: var(--ink);
  }
  .socials--mobile,
  .socials.socials--mobile {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    margin-top: 34px;
    gap: 26px;
    border-radius: 0;
    z-index: auto;
  }
  .socials--mobile a,
  .socials.socials--mobile a {
    color: #fff;
  }
  .socials--mobile svg,
  .socials.socials--mobile svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: clamp(1.8rem, 8.6vw, 2.4rem);
  }
  .hero__text {
    font-size: 16px;
    line-height: 1.5;
  }
  .cta {
    margin-top: 26px;
  }
  .socials--mobile {
    margin-top: 26px;
  }
}

@media (max-width: 360px) {
  :root {
    --pad: 16px;
  }
  .brand__name {
    font-size: 13px;
    letter-spacing: .05em;
  }
  .burger span {
    width: 26px;
  }
  .hero__text {
    max-width: none;
  }
}

@media (max-height: 620px) {
  .hero {
    min-height: 0;
  }
}

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 540px) {
  .hero__content {
    padding: 10px 0;
    margin-top: auto;
  }
  .hero__title {
    font-size: clamp(1.5rem, 6.2vh, 2.1rem);
    line-height: 1.12;
  }
  .hero__text {
    font-size: 15px;
    line-height: 1.4;
    max-width: 56ch;
    margin-top: 12px;
  }
  .cta {
    margin-top: 16px;
    gap: 12px;
  }
  .cta__icon {
    width: 38px;
    height: 38px;
  }
  .cta__label {
    font-size: 14px;
  }
  .socials--mobile {
    margin-top: 16px;
    gap: 22px;
  }
  .socials--mobile svg {
    width: 18px;
    height: 18px;
  }
  .navsheet__panel {
    padding-top: calc(var(--pad) + 64px);
  }
  .navsheet__link {
    font-size: clamp(1.15rem, 4.6vh, 1.5rem);
    padding: 10px 2px;
  }
  .navsheet__foot {
    padding-top: 18px;
  }
  .navsheet__socials {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .anim {
    animation: none !important;
    opacity: 1 !important;
  }
  .navsheet__link,
  .navsheet__foot {
    transform: none;
  }
}

/* Back to top button icon fix */
.back-to-top {
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.back-to-top svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  fill: none !important;
  display: block !important;
  flex-shrink: 0;
}
