/* Header — matches https://pandi-mauritius.mosociete.com/ */

:root {
  --header-navy: #28304c;
  --header-cyan: #0099cc;
  --header-white: #ffffff;
  --header-ink: #16163f;
  --header-gold: #d3b574;
  --header-h: 110px;
  --header-max: 1200px;
}

@font-face {
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/proxima/dehinted-FONTSPRINGDEMO-ProximaNovaRegular.ttf") format("truetype");
}

@font-face {
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/proxima/dehinted-FONTSPRINGDEMO-ProximaNovaExtraboldRegular.ttf") format("truetype");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  min-height: var(--header-h);
  background: var(--header-navy);
  box-shadow: none;
  overflow: visible;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.header-tilt {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 36px;
  background: var(--header-navy);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
  z-index: 2;
  transform-origin: top center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.site-header.is-scrolled .header-tilt {
  opacity: 0;
  transform: scaleY(0);
}

.group-headline {
  position: absolute;
  top: calc(50% - 17px);
  right: 43px;
  z-index: 4;
}

.group-headline a {
  display: block;
  text-decoration: none;
}

.group-headline .headline {
  margin: 0;
  color: var(--header-white);
  font-family: "Proxima Nova", Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 100;
  line-height: 1.2;
  white-space: nowrap;
}

.headline-dynamic {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.headline-dynamic-text {
  font-weight: 900;
}

.headline-dynamic-text .letter {
  visibility: hidden;
}

.headline-dynamic-text .letter.is-in {
  visibility: visible;
}

.headline-dynamic::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 100%;
  background: #0d0d0d;
  transform: translateY(-50%) scale(0.5894);
  animation: headline-cursor 1s infinite;
}

@keyframes headline-cursor {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--header-max);
  min-height: var(--header-h);
  margin-inline: auto;
  position: relative;
  z-index: 3;
}

.header-col {
  display: flex;
  align-items: center;
}

.header-col-logo {
  width: 22%;
}

.header-col-nav {
  width: 78%;
  padding-left: 30px;
}

.brand {
  display: block;
}

.brand img {
  width: 218.45px;
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop li {
  margin: 0 20px;
}

.nav-desktop a {
  display: block;
  color: var(--header-white);
  font-family: Khula, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  padding: 0;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a:focus,
.nav-desktop a.is-active {
  color: var(--header-cyan);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: var(--header-white);
  color: var(--header-navy);
  border: 0;
  border-radius: 3px;
  font-size: 30px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: var(--header-navy);
  color: var(--header-cyan);
}

.menu-toggle .fa-times {
  display: none;
}

.menu-toggle[aria-expanded="true"] .fa-bars {
  display: none;
}

.menu-toggle[aria-expanded="true"] .fa-times {
  display: inline-block;
}

.nav-drawer {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 42.5px);
  z-index: 5;
  background: var(--header-white);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer a {
  display: block;
  padding: 20px 10px;
  color: var(--header-ink);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.nav-drawer a:hover,
.nav-drawer a:focus,
.nav-drawer a.is-active {
  color: var(--header-gold);
  text-decoration: none;
}

/* Offset page content for fixed header */
body {
  padding-top: var(--header-h);
}

#bodywrapper {
  margin-top: 0;
  padding-top: 0;
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 10px;
  }

  .header-col-logo {
    width: 33%;
    min-width: 0;
  }

  .header-col-nav {
    width: 67%;
    padding-left: 0;
  }

  .brand {
    width: 100%;
  }

  .brand img {
    width: 215px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .group-headline {
    right: 70px;
  }
}

@media (max-width: 767px) {
  .header-col-logo,
  .header-col-nav {
    width: 50%;
  }

  .brand img {
    width: 160px;
  }

  .group-headline .headline {
    font-size: 14px;
  }

  .nav-drawer a {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .headline-dynamic::after {
    animation: none;
  }

  .header-tilt {
    transition: none;
  }
}
