:root {
  color-scheme: light;
  --font-body: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Graphik Wide Web", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "TT Firs Neue", Inter, ui-sans-serif, system-ui, sans-serif;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-reef: #bffb9c;
  --color-reef-rgb: 191, 251, 156;
  --color-evening-sea: #024751;
  --color-evening-sea-light: #035d6a;
  --color-provincial-pink: #fdede7;
  --color-soapstone: #fffbf9;
  --container: min(1640px, calc(100vw - 140px));
  --gap: 16px;
}

@font-face {
  font-family: "Graphik Wide Web";
  src: url("/fonts/GraphikWide-Medium-Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "TT Firs Neue";
  src: url("/fonts/TT_Firs_Neue_DemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "TT Firs Neue";
  src: url("/fonts/TT_Firs_Neue_DemiBold_Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-soapstone);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: currentColor;
}

.layout-container {
  width: var(--container);
  margin-inline: auto;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

h1 {
  font-size: clamp(42px, 5.25vw, 66px);
}

h2 {
  font-size: clamp(32px, 4vw, 55px);
}

h3 {
  margin: 0;
  color: var(--color-evening-sea);
  font-family: var(--font-accent);
  font-size: clamp(17px, 1.1vw, 20px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

p {
  margin: 0;
}

.text-content > * + * {
  margin-top: 1.35em;
}

.ui-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--color-evening-sea);
  background: var(--color-evening-sea);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.ui-button:hover {
  background: var(--color-evening-sea-light);
}

.ui-button--outline {
  background: transparent;
  color: var(--color-evening-sea);
}

.ui-button--outline:hover {
  background: var(--color-evening-sea);
  color: var(--color-white);
}

.ui-button--alt {
  border-color: var(--color-reef);
  background: var(--color-reef);
  color: var(--color-evening-sea);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: clamp(64px, 5.2vw, 94px);
  backdrop-filter: blur(10px);
  transition: background-color 180ms ease;
}

.topbar:not([data-top]) {
  background: rgba(var(--color-reef-rgb), 0.72);
}

.topbar-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-logo {
  display: inline-flex;
  color: var(--color-evening-sea);
  text-decoration: none;
}

.brand-logo svg {
  width: clamp(122px, 10.5vw, 151px);
  height: auto;
  fill: currentColor;
}

.brand-logo--footer {
  color: var(--color-white);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 76px);
  color: var(--color-evening-sea);
}

.topbar-nav a,
.footerbar-nav a {
  text-decoration: none;
}

.headerhero {
  min-height: 870px;
  background: var(--color-reef);
  color: var(--color-evening-sea);
  overflow: hidden;
}

.headerhero-inner {
  position: relative;
  min-height: 870px;
  padding-top: 90px;
}

.headerhero-text {
  z-index: 2;
  grid-column: 1 / 6;
  align-self: center;
}

.headerhero-text .text-content {
  max-width: 760px;
  margin-top: 26px;
}

.headerhero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.headerhero picture {
  position: absolute;
  right: -42px;
  bottom: -150px;
  width: min(940px, 58vw);
}

.headerhero picture img {
  width: 100%;
  height: auto;
}

.headerhero-baloon {
  position: absolute;
  z-index: 3;
  padding: 18px 22px;
  border-radius: 26px;
  background: var(--color-provincial-pink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  color: var(--color-black);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
  white-space: nowrap;
}

.headerhero-baloon[data-display] {
  opacity: 1;
  transform: translateY(0);
}

.headerhero-baloon--0 {
  top: 252px;
  left: 45%;
}

.headerhero-baloon--1 {
  top: 376px;
  right: 1%;
}

.headerhero-baloon--2 {
  top: 515px;
  left: 40%;
}

.headerhero-baloon--3 {
  top: 594px;
  right: 8%;
}

.introboxes,
.howboxes,
.logosrow {
  color: var(--color-evening-sea);
}

.introboxes {
  padding-top: 135px;
}

.introboxes h2,
.howboxes h2,
.logosrow h2 {
  text-align: center;
}

.introboxes-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(42px, 6.6vw, 125px);
  margin-top: 76px;
}

.introboxes-item {
  text-align: center;
}

.introboxes-item img {
  width: 180px;
  height: 116px;
  margin-inline: auto;
  object-fit: contain;
}

.introboxes-item h3 {
  margin-top: 23px;
}

.introboxes-item p {
  margin-top: 16px;
}

.howboxes {
  padding-top: 135px;
}

.howboxes-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(34px, 5.2vw, 96px);
  margin-top: 88px;
}

.howboxes-item {
  position: relative;
}

.howboxes-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: bottom left;
}

.howboxes-item-number {
  position: absolute;
  top: 226px;
  left: 0;
  color: var(--color-reef);
  font-size: clamp(56px, 5vw, 90px);
  font-weight: 700;
  line-height: 1;
}

.howboxes-item h3 {
  margin-top: 22px;
}

.howboxes-item p {
  margin-top: 18px;
}

.formwrapper {
  position: relative;
  margin-top: 100px;
  padding: 184px 0 215px;
  overflow: hidden;
  color: var(--color-white);
}

.formwrapper::before {
  content: "";
  position: absolute;
  inset: 181px 0 215px;
  background: #084750;
}

.formwrapper-top,
.formwrapper-bottom {
  position: absolute;
  left: -2.5vw;
  width: 105vw;
  max-width: none;
}

.formwrapper-top {
  top: 0;
  height: 184px;
}

.formwrapper-bottom {
  bottom: 0;
  height: 215px;
}

.formwrapper-inner {
  position: relative;
  z-index: 1;
}

.formwrapper-text {
  grid-column: 1 / 6;
}

.formwrapper-text h2,
.formwrapper-text h3 {
  color: var(--color-reef);
}

.formwrapper-text h2 {
  max-width: 680px;
}

.formwrapper-text .text-content {
  max-width: 680px;
  margin-top: 40px;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.45;
}

.booking-module {
  grid-column: 7 / 13;
}

.booking-inline {
  --booking-crop-top: 176px;
  --booking-window-height: clamp(720px, 48vw, 820px);
  width: 100%;
  height: var(--booking-window-height);
  min-height: 0;
  overflow: hidden;
  background: #084750;
}

.booking-inline iframe {
  display: block;
  width: 100%;
  height: calc(var(--booking-window-height) + var(--booking-crop-top) + 96px) !important;
  min-height: 0;
  border: 0;
  background: #084750;
  transform: translateY(calc(var(--booking-crop-top) * -1));
  transform-origin: top left;
}

.booking-privacy {
  margin-top: 40px;
  font-size: 15px;
}

.logosrow {
  padding-top: 130px;
}

.logosrow-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 42px;
  margin-top: 100px;
}

.logosrow-items img {
  width: auto;
  height: 120px;
  object-fit: contain;
}

.footerbar {
  margin-top: 400px;
  padding: 60px 0 50px;
  background: var(--color-evening-sea);
  color: var(--color-white);
}

.footerbar-top {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.75fr) minmax(180px, 1fr) minmax(130px, 0.7fr);
  gap: 70px;
  align-items: start;
}

.footerbar-nav {
  display: grid;
  gap: 6px;
}

.footerbar-info-logo {
  width: 190px;
}

.footerbar-bottom {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-top: 60px;
}

.footerbar-certification img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.footerbar-bottom p {
  max-width: 900px;
}

.footerbar-end {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  margin-top: 26px;
  font-size: 14px;
}

.footerbar-end p:first-child {
  max-width: 1180px;
}

.ui-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.ui-reveal[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  :root {
    --container: min(100vw - 44px, 900px);
  }

  body {
    font-size: 16px;
  }

  .topbar {
    height: 75px;
  }

  .topbar-nav {
    display: none;
  }

  .topbar .ui-button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }

  .headerhero {
    min-height: auto;
  }

  .headerhero-inner {
    min-height: 900px;
    padding-top: 118px;
  }

  .headerhero-text {
    grid-column: 1 / -1;
    align-self: start;
  }

  .headerhero picture {
    right: -22px;
    bottom: -104px;
    width: min(760px, 105vw);
  }

  .headerhero-baloon {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
  }

  .headerhero-baloon--0 {
    top: 420px;
    left: 2px;
  }

  .headerhero-baloon--1 {
    top: 545px;
    right: 2px;
  }

  .headerhero-baloon--2 {
    top: 665px;
    left: -8px;
  }

  .headerhero-baloon--3 {
    top: 810px;
    right: -2px;
  }

  .introboxes {
    padding-top: 80px;
  }

  .introboxes-items,
  .howboxes-items {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
  }

  .introboxes-item {
    position: relative;
    min-height: 112px;
    padding-right: 145px;
    text-align: left;
  }

  .introboxes-item img {
    position: absolute;
    top: 0;
    right: 0;
    width: 125px;
    height: 86px;
  }

  .introboxes-item h3 {
    margin-top: 0;
  }

  .howboxes {
    padding-top: 84px;
  }

  .howboxes-item {
    min-height: 155px;
    padding-right: 150px;
  }

  .howboxes-item img {
    position: absolute;
    top: 0;
    right: 0;
    width: 135px;
    height: 135px;
  }

  .howboxes-item-number {
    position: static;
    margin-bottom: 8px;
  }

  .howboxes-item h3 {
    margin-top: 0;
  }

  .formwrapper {
    margin-top: 70px;
    padding: 120px 0 140px;
  }

  .formwrapper::before {
    inset: 120px 0 140px;
  }

  .formwrapper-top {
    height: 120px;
  }

  .formwrapper-bottom {
    height: 140px;
  }

  .formwrapper-text,
  .booking-module {
    grid-column: 1 / -1;
  }

  .formwrapper-text .text-content {
    font-size: 17px;
  }

  .booking-inline {
    --booking-crop-top: 132px;
    --booking-window-height: 780px;
  }

  .logosrow {
    padding-top: 78px;
  }

  .logosrow-items {
    margin-top: 48px;
  }

  .logosrow-items img {
    height: 58px;
  }

  .footerbar {
    margin-top: 90px;
    padding-top: 40px;
  }

  .footerbar-top,
  .footerbar-end {
    grid-template-columns: 1fr;
    display: grid;
    gap: 28px;
  }

  .footerbar-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .headerhero-inner {
    min-height: 820px;
  }

  .headerhero picture {
    bottom: -78px;
  }

  .headerhero-baloon--0 {
    top: 390px;
  }

  .headerhero-baloon--1 {
    top: 500px;
  }

  .headerhero-baloon--2 {
    top: 615px;
  }

  .headerhero-baloon--3 {
    top: 742px;
  }
}
