:root {
  --navy: #0b306b;
  --navy-deep: #061e49;
  --blue: #0755b5;
  --cream: #fef7df;
  --gold: #ba8c5a;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-modal {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

.page::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 17px;
  background: var(--gold);
  content: "";
}

.hero-backdrop {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 770px;
  background-image:
    linear-gradient(180deg, rgba(4, 24, 54, .45) 0%, rgba(5, 29, 64, .49) 44%, rgba(8, 39, 84, .7) 70%, var(--navy) 96%),
    linear-gradient(90deg, rgba(5, 29, 64, .12), rgba(5, 29, 64, .02) 50%, rgba(5, 29, 64, .15)),
    url("assets/hero.webp");
  background-position: center, center, calc(50% + 35px) -513px;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 2099px 1574px;
}

.page-shell {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 55px 24px 99px;
}

.hero {
  text-align: center;
}

.gav-logo {
  object-fit: contain;
}

.gav-logo--hero {
  width: 132px;
  height: auto;
  margin: 0 auto;
}

.campaign-lockup {
  width: min(381px, 88vw);
  height: auto;
  margin: 44px auto 0;
}

.hero__announcement {
  margin-top: 49px;
}

.campaign-period {
  display: inline-flex;
  min-width: 349px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 24px 6px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3em;
  line-height: 1;
  text-transform: uppercase;
}

.hero__headline {
  margin: 18px 0 1px;
  font-size: clamp(27px, 2.1vw, 34px);
  font-weight: 900;
  letter-spacing: .012em;
  line-height: 1.08;
  text-transform: uppercase;
}

.hero__subline {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 600;
  line-height: 1.25;
}

.scroll-cue {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  margin: 16px auto 0;
  border-radius: 50%;
}

.scroll-cue span,
.scroll-cue span::before {
  position: absolute;
  content: "";
}

.scroll-cue span {
  top: 3px;
  right: 0;
  left: 0;
  width: 2px;
  height: 27px;
  margin-inline: auto;
  background: var(--cream);
  animation: cue 2.2s var(--ease-out) infinite;
}

.scroll-cue span::before {
  bottom: 0;
  left: -5px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: rotate(45deg);
}

.scroll-cue:focus-visible,
.destination-card:focus-visible,
.regulation-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.destinations {
  scroll-margin-top: 20px;
  text-align: center;
}

.section-heading {
  margin-top: 19px;
  text-transform: uppercase;
}

.section-heading span {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.15;
}

.section-heading h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.15;
}

.destinations-grid {
  display: grid;
  width: min(100%, 1034px);
  grid-template-columns: repeat(4, 233px);
  justify-content: center;
  gap: 34px;
  margin: 65px auto 0;
}

.destination-card {
  position: relative;
  display: flex;
  width: 233px;
  height: 335px;
  flex-direction: column;
  overflow: hidden;
  border: 4px solid var(--blue);
  border-radius: 46px;
  background: var(--cream);
  color: var(--cream);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(3, 19, 48, .16);
  transition: transform .28s var(--ease-out), box-shadow .28s ease;
}

.destination-card:hover {
  box-shadow: 0 18px 34px rgba(3, 19, 48, .3);
  transform: translateY(-7px);
}

.destination-card__media {
  position: relative;
  height: 270px;
  flex: 0 0 270px;
  overflow: hidden;
  background: #8ba0b8;
}

.destination-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.destination-card:hover .destination-card__media img {
  transform: scale(1.025);
}

.destination-card__label {
  position: absolute;
  top: 14px;
  left: 50%;
  display: inline-flex;
  min-width: 129px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 4px 12px 3px;
  border-radius: 100px;
  background: var(--blue);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.destination-card__footer {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.destination-card__button {
  display: inline-flex;
  min-width: 147px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px 7px;
  border-radius: 100px;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 72px;
  text-align: center;
}

.regulation-link {
  color: var(--cream);
  font-size: 20px;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
  transition: opacity .2s ease, text-underline-offset .2s ease;
}

.regulation-link:hover {
  opacity: .8;
  text-underline-offset: 7px;
}

.gav-logo--footer {
  width: 122px;
  height: auto;
  margin-top: 30px;
}

.modal {
  width: min(100% - 32px, 720px);
  max-height: min(86vh, 800px);
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 28px;
  background: var(--cream);
  color: var(--navy);
  opacity: 0;
  box-shadow: 0 30px 70px rgba(2, 14, 34, .45);
  transform: translateY(14px) scale(.985);
  transition: opacity .3s var(--ease-out), transform .34s var(--ease-out);
}

.modal[open] {
  display: flex;
  flex-direction: column;
}

.modal.is-open {
  opacity: 1;
  transform: none;
}

.modal::backdrop {
  background: rgba(3, 19, 45, .7);
  opacity: 0;
  transition: opacity .3s ease;
}

.modal.is-open::backdrop {
  opacity: 1;
}

.modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(11, 48, 107, .14);
}

.modal__title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.15;
  text-transform: uppercase;
}

.modal__close {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 48, 107, .08);
  color: var(--navy);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, transform .24s var(--ease-out);
}

.modal__close:hover,
.modal__close:focus-visible {
  background: var(--navy);
  color: var(--cream);
}

.modal__close:hover {
  transform: rotate(90deg);
}

.modal__close:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.modal__body {
  flex: 1 1 auto;
  padding: 20px 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__body:focus {
  outline: none;
}

.modal__body h3 {
  margin: 26px 0 9px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
  text-transform: uppercase;
}

.modal__body p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
}

.modal__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .destinations-grid {
    width: min(100%, 520px);
    grid-template-columns: repeat(2, 233px);
  }
}

@media (max-width: 620px) {
  .hero-backdrop {
    height: 780px;
    background-position: center, center, 61% -260px;
    background-size: 100% 100%, 100% 100%, 1400px 1050px;
  }

  .page-shell {
    padding: 32px 18px 82px;
  }

  .gav-logo--hero {
    width: 112px;
  }

  .campaign-lockup {
    margin-top: 32px;
  }

  .hero__announcement {
    margin-top: 32px;
  }

  .campaign-period {
    min-width: 0;
    padding-inline: 18px;
    font-size: 12px;
    letter-spacing: .23em;
  }

  .hero__headline {
    margin-top: 16px;
  }

  .hero__subline {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .section-heading {
    margin-top: 26px;
  }

  .destinations-grid {
    width: 233px;
    grid-template-columns: 233px;
    gap: 26px;
    margin-top: 42px;
  }

  .footer {
    margin-top: 58px;
  }

  .regulation-link {
    font-size: 17px;
  }

  .modal {
    width: min(100% - 20px, 560px);
    max-height: 88vh;
    border-radius: 22px;
  }

  .modal__header {
    padding: 20px 18px 14px;
  }

  .modal__title {
    font-size: 18px;
  }

  .modal__body {
    padding: 16px 18px 22px;
  }

  .modal__body h3 {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
