/*
 * Kerawa Space adjustments on top of the home template (main.css).
 */

html {
  font-family: var(--font-primary);
}

/* Hero: the video carries its own centred texts, so the slogan and its
   button sit low, a few millimetres above the footer bar. The slogan stays
   on a single line. */
.hero-signature {
  position: absolute;
  left: 0;
  right: 0;
  /* Footer bar (5rem) + a few millimetres */
  bottom: 6.6rem;
  z-index: 3;
  padding: 0 1.6rem;
  text-align: center;
}
@media only screen and (min-width: 1200px) {
  .hero-signature {
    /* Footer bar (6rem) + a few millimetres */
    bottom: 7.6rem;
  }
}

.hero-signature .headline__title {
  margin: 0 0 1.6rem;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(1.6rem, 6.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* "Discover our artworks": a quiet text link with a fine underline that
   draws in on hover. */
.hero-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
  font: normal 400 1.3rem/1.4 var(--font-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}
.hero-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left;
  transition: background-color 0.3s ease, transform 0.4s ease;
}
.hero-link:hover,
.hero-link:focus-visible {
  color: #ffffff;
}
.hero-link:hover::after,
.hero-link:focus-visible::after {
  background: #ffffff;
  animation: hero-link-draw 0.5s ease;
}
@keyframes hero-link-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Footer bar on every screen size (the template only showed it from 1200px),
   lower than the template's 8-9rem bar. */
.footer-desktop {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  overflow: hidden;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-desktop .container-desktop {
  padding: 0 1.6rem 1rem;
}
/* Contact and copyright sit at the bottom of the bar, away from its top rule. */
.footer-desktop > .container-fluid,
.footer-desktop .row,
.footer-desktop .footer-desktop__left,
.footer-desktop .footer-desktop__right,
.footer-desktop .container-desktop {
  height: 100%;
}
.footer-desktop .container-desktop.align-items-center {
  align-items: flex-end !important;
}
@media only screen and (min-width: 1200px) {
  .footer-desktop,
  .footer-desktop.split {
    height: 6rem;
  }
  .footer-desktop .container-desktop {
    padding: 0 4rem 1.4rem;
  }
}
