/* ================= FONTS ================= */
@font-face {
  font-family: "Alta";
  src: url("/fonts/Alta_light.otf") format("opentype");
  font-style: normal;
  font-synthesis: none;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #fff;
  color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

/* ================= HEADER ================= */
header {
  position: fixed;
  top: 35px;
  left: 35px;
  z-index: 10;
}

header img {
  width: 60%;
  height: auto;
}

/* ================= MAIN ================= */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 120px);
  padding: 0 clamp(150px, 4vw, 200px);
}

/* ================= TEXT ================= */
.text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

h1 {
  font-family: "Alta", sans-serif;
  font-size: clamp(64px, 8vw, 140px);
  line-height: 0.9;
}

h1 div {
  display: block;
}

h2 {
  font-size: clamp(16px, 1.5vw, 24px);
  max-width: 520px;
  margin-top: 8px;
}

.accent {
  color: #ff941d;
}

/* ================= CTA ================= */
.cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  width: fit-content;
}

.cta-slot {
  width: clamp(220px, 25vw, 344px);
}

/* ================= BUTTON ================= */
button {
  width: 100%;
  height: 50px;
  border-radius: 50px;
  border: none;
  background: #ff941d;
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 24px);
  cursor: pointer;

  box-shadow:
    -10px -10px 30px #fff,
    10px 10px 30px rgba(174, 174, 192, 0.4),
    inset -10px -10px 10px rgba(0, 0, 0, 0.1),
    inset 10px 10px 10px rgba(255, 255, 255, 0.4);
}

/* CTA animation */
#ctaButton {
  transition: 0.25s ease;
}

/* ================= FORM ================= */
#emailForm {
  display: flex;
  flex-direction: column;
  gap: 6px;

  max-height: 0;
  opacity: 0;
  overflow: hidden;

  transform: translateY(-6px);
  filter: blur(4px);

  transition: 0.35s ease;
}

#emailForm.active {
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

input {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border-radius: 50px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* ================= CAROUSEL ================= */
.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel {
  width: clamp(240px, 28vw, 250px);
  aspect-ratio: 365 / 661;
  overflow: hidden;
  border-radius: 50px;
  position: relative;

  z-index: 0;

  box-shadow:
    inset 10px 10px 10px rgba(255, 255, 255, 0.5),
    inset -10px -10px 10px rgba(0, 0, 0, 0.1),
    10px 10px 30px rgba(174, 174, 192, 0.4),
    -10px -10px 30px #fff;
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  pointer-events: none;

  z-index: 5; /* belangrijk: hoger dan track */

  box-shadow:
    inset 10px 10px 10px rgba(255, 255, 255, 0.5),
    inset -10px -10px 10px rgba(0, 0, 0, 0.15);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-out;
  cursor: grab;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.carousel-track.dragging {
  cursor: grabbing;
  transition: none;
}

.carousel-slide {
  flex: 0 0 100%;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= DOTS ================= */
.dots {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
  border: none;
}

.dot.active {
  background: #626365;
}

/* ================= FOOTER ================= */
footer {
  border-top: 1px solid #626365;
  margin: 0 183px;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #626365;
}

footer img {
  width: 40px;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  main {
    grid-template-columns: 1fr;
    padding: 120px 20px 20px;
    text-align: center;
  }

  .cta-wrapper {
    width: 100%;
    align-items: center;
  }

  .cta-slot {
    width: 100%;
    max-width: 344px;
  }

  footer {
    margin: 0;
    padding: 22px 20px;
  }
}
