/* @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,500;1,300;1,500&display=swap"); */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

img {
  display: block;
}

:root {
  --clr-primary: #080066;
  --clr-accent: #1500ff;
  --ff: "IBM Plex Sans";
  --fw-normal: 300;
  --fw-bold: 500;
  --bord-rad: 0.5rem;

  /* HEIGHT OF NAV */
  --nav-pt: 0.5rem;
  --logo-h: 3rem;
  --logo-mb: 0.5rem;
}

ul {
  list-style: none;
}

body {
  font-family: var(--ff), sans-serif;
  font-weight: var(--fw-normal);
  line-height: 1.5;
  color: var(--clr-primary);
  overflow-x: hidden;
  overflow-y: scroll;
}

a,
a:hover,
a:visited {
  color: var(--clr-primary);
  text-decoration: none;
}

strong,
b {
  font-weight: var(--fw-bold);
}

p:not(section.intro > p),
ul li:not(.menu li) {
  hyphens: auto;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
}

footer {
  --distance-top: 12rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: var(--distance-top);
  padding: 1.5rem 0;
  background-color: var(--clr-primary);
  color: #fff;
  font-weight: var(--fw-bold);
}

footer::before {
  position: absolute;
  top: calc(var(--distance-top) * -1);
  content: "";
  width: 100%;
  height: var(--distance-top);
  background-color: #fff;
}

.footer__links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: fit-content;
  text-transform: uppercase;
  font-size: 75%;
}

.footer__links > a {
  color: inherit;
}

.footer__links > a:hover {
  color: cyan;
}

.footer__address {
  text-align: center;
}

/* === NAVIGATION === */

/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */

.hamburger {
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
  background-color: #fff;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
  z-index: 20;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 100%;
  height: 2px;
  background-color: var(--clr-primary);
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

.hamburger--squeeze .hamburger-inner {
  transition-duration: 0.075s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--squeeze .hamburger-inner::before {
  transition: top 0.075s 0.12s ease, opacity 0.075s ease;
}

.hamburger--squeeze .hamburger-inner::after {
  transition: bottom 0.075s 0.12s ease,
    transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--squeeze.is-active .hamburger-inner {
  transform: rotate(45deg);
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--squeeze.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
  transition: top 0.075s ease, opacity 0.075s 0.12s ease;
}

.hamburger--squeeze.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.075s ease,
    transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

nav {
  --submenu-transition: max-height 0.2s cubic-bezier(0.77, 0.2, 0.05, 1),
    margin 0.2s cubic-bezier(0.77, 0.2, 0.05, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 5;
  background: #fff;
  width: 100%;
  padding: var(--nav-pt) 1rem 0 0.5rem;
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
}

.logo svg {
  width: 50px;
  fill: var(--clr-primary);
}

.logo > img {
  height: var(--logo-h);
  margin-bottom: var(--logo-mb);
}

.menu {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  color: #fff;
  background: var(--clr-primary);
  width: min(100%, 1200px);
  padding: 2rem;
  text-transform: uppercase;
  transform: translateX(100%);
  transition: transform 0.2s ease-in-out;
}

.menu__active {
  transform: translateX(0);
}

.menu li {
  margin-bottom: 1rem;
}

.menu a,
.menu a:hover,
.menu a:visited {
  color: inherit;
}

.menu__active > li.current-page {
  color: cyan;
}

.menu__active > li.current-page > .submenu__active > li {
  color: #fff;
}

.menu__active > li.current-page > .submenu__active > li.current-page {
  color: inherit;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: var(--submenu-transition);
}

.submenu__active {
  margin: 1rem;
  max-height: 100vh;
}

.submenu__icon {
  display: inline-block;
  transition: transform 0.2s linear;
}

.submenu__icon-active {
  transform: rotate(45deg) scale(120%);
}

@media only screen and (min-width: 980px) {
  :root {
    --nav-pt: 1rem;
  }

  .hamburger {
    display: none;
  }

  nav {
    justify-content: center;
    padding: var(--nav-pt) 2rem 0;
  }

  nav ul,
  nav li {
    cursor: pointer;
  }

  .logo {
    display: inline-block;
    margin: 0 2rem 0 0;
    transform: translateY(-0.35rem);
  }

  .menu > li.current-page {
    color: var(--clr-accent);
  }

  .menu > li.current-page > .submenu__active > li {
    color: var(--clr-primary);
  }

  .menu > li.current-page > .submenu__active > li.current-page {
    color: inherit;
  }

  .menu {
    position: relative;
    display: flex;
    justify-content: space-between;
    background: #fff;
    font-size: 95%;
    color: var(--clr-primary);
    transform: none;
    padding: 0;
  }

  .submenu {
    position: absolute;
    top: 2.2rem;
    background: #fff;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s linear;
  }

  .submenu.submenu__active {
    opacity: 1;
    overflow: visible;
  }

  .submenu__active::before,
  .submenu__active::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    background: #fff;
    width: 1.5rem;
    height: 100%;
  }

  .submenu__active::before {
    left: 100%;
  }

  .submenu__active::after {
    right: 100%;
  }

  .submenu__active > li:last-of-type {
    margin-bottom: 1rem;
  }

  .submenu > li,
  .submenu__active {
    margin: 0 0 0.3rem 0;
  }
}

/* === HOME === */

.hero {
  position: relative;
  padding-top: 3rem;
  height: 100vh;
}

.hero > * {
  position: absolute;
  bottom: 0;
}

.hero__img {
  z-index: -10;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 0;
  transform: translateY(0);
}

.hero__text {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 7%;
  text-shadow: 0 0 6px #000;
  height: 100%;
  color: #fff;
  padding: 0 2rem 1rem;
}

.hero__text > h1 {
  font-size: 160%;
  font-weight: var(--fw-normal);
  text-transform: uppercase;
  line-height: initial;
  hyphens: initial;
  width: 100%;
}

.home__content {
  padding: 0 1rem;
}

.intro {
  margin: 1.5rem 0;
}

.info__section {
  --info-img-height: 17rem;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--info-img-height)), 1fr)
  );
  column-gap: 2rem;
  row-gap: 2.5rem;
  padding-bottom: 2rem;
}

.info__item {
  width: min(24rem, 100%);
  height: 100%;
  align-self: center;
  justify-self: center;
  box-shadow: 0 0 10px -5px rgba(0, 0, 0, 0.38);
  border-radius: var(--bord-rad);
  position: relative;
  padding-bottom: 2rem;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.info__item:hover {
  box-shadow: 2px 2px 17px -3px rgba(0, 0, 0, 0.38);
}

.info__img {
  height: var(--info-img-height);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
  margin-bottom: 0.8rem;
  border-top-left-radius: var(--bord-rad);
  border-top-right-radius: var(--bord-rad);
}

.info__item h2 {
  font-weight: var(--fw-bold);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.2rem;
}

.info__text {
  margin-bottom: 1.5rem;
}

.info__more {
  font-style: italic;
  text-decoration: underline;
  position: absolute;
  bottom: 1.2rem;
}

.info__item *:is(h2, p) {
  padding: 0 1rem;
}

@media only screen and (min-width: 920px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__text {
    font-size: 110%;
    width: 80%;
    letter-spacing: 0.07em;
    margin-bottom: 9%;
  }

  .hero__text > h1 {
    font-weight: var(--fw-normal);
  }

  .home__content {
    display: grid;
  }

  .info__section {
    margin-top: 7rem;
  }
}

/* === PAGES === */
.page__content {
  width: 100%;
  margin-top: calc(var(--nav-pt) + var(--logo-h) + var(--logo-mb));
  display: grid;
  grid-template-columns: 1fr min(65ch, 100%) 1fr;
  place-items: center;
}

.page__main-img {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
}

.page__img {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  aspect-ratio: 4/3;
  object-fit: cover;
  margin: 0 auto;
}

.page__img-bg {
  display: none;
}

.page__copy {
  grid-column: 2;
  padding: 0 1rem;
  margin: 1.5rem 0;
}

@media only screen and (min-width: 960px) {
  .page__main-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 15px;
    bottom: -15px;
    background-color: #fff;
  }

  .page__img-bg {
    display: initial;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    opacity: 0.6;
    transform: scale(1.05);
    transform-origin: bottom;
  }

  .page__copy {
    margin: 3rem 0;
  }
}

.page__copy__title {
  font-size: 150%;
  font-weight: var(--fw-normal);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page__copy__subtitle {
  font-size: 150%;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  text-transform: uppercase;
  hyphens: initial;
  margin-bottom: 1rem;
}

.page__copy__main > * + * {
  margin-top: 0.7rem;
}

.offer__list-infos {
  margin-top: 1rem;
}

.offer__list-infos > h2 {
  font-size: 100%;
  font-weight: var(--fw-bold);
}

.offer__list-infos > ul {
  margin-top: 0.5rem;
}

.offer__additional {
  margin-top: 2rem;
}

.offer__additional > p:first-of-type {
  margin-bottom: 0.2rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
}

/* === ABOUT === */
.about__copy > p:first-of-type {
  margin: 0.7rem 0;
}

.about__item {
  margin-bottom: 1rem;
}

.about__item > h2 {
  font-size: 100%;
  font-weight: var(--fw-bold);
  hyphens: initial;
}

.about__item > h2::before {
  content: ". ";
}

.about__outro {
  margin-top: 2.7rem;
}

.about__outro > * + * {
  margin-top: 0.7rem;
}

/* === CONTACT === */
.contact__header {
  --contact-img-w: min(25vw, 9rem);
  display: grid;
  grid-template-columns: var(--contact-img-w) auto;
  align-items: center;
  gap: calc(var(--contact-img-w) * 0.2);
  margin: 1.5rem 0;
}

.contact__img {
  display: inline;
  content: "";
  width: var(--contact-img-w);
  height: var(--contact-img-w);
  border-radius: 100vw;
  background-size: cover;
  background-repeat: no-repeat;
}

/* STUFF */
.contact__button {
  display: flex;
  align-items: center;
  font-size: 90%;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  border: 1px solid var(--clr-primary);
  border-radius: 100vw;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
}

.contact__button > svg {
  width: 1.2rem;
  fill: var(--clr-primary);
  margin-right: 0.5rem;
}

.contact__button:hover {
  background-color: var(--clr-primary);
  color: #fff;
}

.contact__button:hover > svg {
  fill: #fff;
}

/* LIST-INDENT */
.indent {
  --indent: 1rem;
  padding-left: var(--indent);
}

.indent > li {
  position: relative;
}

.indent > li::before {
  content: "\2022";
  position: absolute;
  left: calc(var(--indent) * -1);
}

/* === LEGAL/PRIVACY === */
.legal__content,
.privacy__content {
  margin-top: 7rem;
  padding: 0 1rem;
  width: min(65ch, 100%);
}

.legal__content *:is(h1, h2, h3, h4, strong, b),
.privacy__content *:is(h1, h2, h3, h4, strong, b) {
  font-weight: var(--fw-bold);
}

.contact__block {
  margin: 1.2rem 0 1.2rem;
}

.contact__phonemail {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 2ch 1fr;
}

.legal__markdown__content a,
.privacy__markdown__content a {
  color: var(--clr-accent);
}

.legal__markdown__content > p:first-of-type > strong {
  display: block;
}

.legal__markdown__content > p:first-of-type > a::after {
  content: "\a";
  white-space: pre;
}

.legal__markdown__content > h2 {
  margin: 1.5rem 0 1rem;
}

.legal__markdown__content > h3 {
  margin-bottom: 0.2rem;
  font-weight: var(--fw-bold);
}

.legal__markdown__content > h3 + p,
.privacy__markdown__content > h3 + p {
  margin-bottom: 0.5rem;
  white-space: pre-line;
}

/* === PRIVACY === */
.privacy__content > h1 {
  margin-bottom: 1.2rem;
  hyphens: auto;
}

.privacy__markdown__content > p:first-of-type {
  margin-bottom: 2rem;
}

.privacy__markdown__content > h2 {
  margin-bottom: 0.5rem;
}

.privacy__markdown__content > ul {
  padding-left: 0.8rem;
  margin-bottom: 0.5rem;
}

.privacy__markdown__content > ul > li {
  margin-bottom: 0.5rem;
  white-space: pre-line;
}

.privacy__markdown__content > ul:first-of-type > li:first-line {
  font-weight: var(--fw-bold);
}

.privacy__markdown__content > p {
  margin-bottom: 0.5rem;
  white-space: pre-line;
}

.privacy__markdown__content > p > em {
  display: block;
  margin-top: 0.2rem;
}

.privacy__markdown__content > ul:nth-of-type(2) > li {
  font-weight: var(--fw-bold);
}

.privacy__markdown__content > ul:nth-of-type(2) > li > a {
  font-weight: var(--fw-normal);
  display: block;
}

.privacy__markdown__content > ul > li > ul {
  padding-left: 0.8rem;
}

.privacy__markdown__content > ul:nth-of-type(3) > li > ul {
  white-space: normal;
}

.privacy__markdown__content > ul:nth-of-type(3) > li > ul > li {
  margin-top: 0.2rem;
}

.privacy__content > p:last-of-type {
  margin-top: 1rem;
}

/* COOKIE CONSENT */
.cookie-consent-banner button,
#sansCookies .cookie-accept-btn {
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  border-radius: 100vw;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
}

#sansCookies .cookie-accept-btn {
  margin: 1rem 0 0 0;
}

.cookie-consent-banner {
  font-size: inherit;
  position: fixed;
  left: 0;
  bottom: -100%;
  z-index: 40;
  width: 100%;
  padding: 3rem 2rem 2rem;
  color: #fff;
  background-color: var(--clr-accent);
  text-align: right;
  transition: 0.5s;
}

.cookie-consent-banner.active {
  bottom: 0;
}

.cookie-consent-banner a {
  text-decoration: underline;
  color: inherit;
  hyphens: initial;
}

.cookie-consent-banner .button-container {
  margin-top: 2rem;
}

.cookie-accept-btn {
  margin-left: 1rem;
  color: var(--clr-primary);
  background-color: #96b312;
}

.cookie-decline-btn {
  color: #fff;
  background-color: var(--clr-primary);
}
