/* ===========================
Fonts
=========================== */

@font-face {
  font-family: "Allumi";
  src: url("fonts/otf/AllumiSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Allumi";
  src: url("fonts/otf/AllumiSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===========================
Overlay
=========================== */

#ich-popup-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 999999;

  font-family: "Allumi", sans-serif;

  opacity: 0;

  transition: opacity 0.3s ease;
}

#ich-popup-overlay.active {
  opacity: 1;
}

/* ===========================
Popup
=========================== */

#ich-popup-overlay .ich-popup-wrapper {
  width: 900px;
  height: 720px;

  max-width: 95%;
  max-height: 95vh;

  background:
    linear-gradient(rgba(216, 211, 198, 0.33), rgba(255, 255, 255, 0.77)),
    url("images/bg.png");

  background-position: center;
  background-size: cover;

  border-radius: 24px;

  overflow: hidden;

  position: relative;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);

  transform: translateY(20px) scale(0.97);

  transition: transform 0.35s ease;

  will-change: transform;
}

#ich-popup-overlay.active .ich-popup-wrapper {
  transform: translateY(0) scale(1);
}

/* ===========================
Close
=========================== */

.ich-popup-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  border: none;

  background: #fff;

  color: #4b2b15;

  font-size: 30px;

  line-height: 1;

  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

  z-index: 10;
}

.ich-popup-close:hover {
  background: #9a663b;
  color: white;
}

/* ===========================
Content
=========================== */

.ich-popup-content {
  height: 100%;
  width: 100%;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding: 45px 50px;

  box-sizing: border-box;

  position: relative;
}

/* ===========================
Logo
=========================== */

.ich-popup-logo {
  width: 100%;

  max-width: 80%;

  height: auto;

  margin-bottom: 25px;

  animation: ichFadeUp 0.5s ease both;
}

/* ===========================
Motto
=========================== */

.ich-popup-motto {
  font-size: 16px;

  letter-spacing: 4px;

  text-transform: uppercase;

  color: #8a562d;

  font-weight: 700;

  margin: 50px 0 15px;
}

/* ===========================
Heading
=========================== */

.ich-popup-content h2 {
  max-width: 650px;

  font-size: 28px;

  line-height: 1.25;

  color: #3b2415;

  font-weight: 700;

  margin: 0 0 18px;
}

/* ===========================
Description
=========================== */

.ich-popup-content > p:not(.ich-popup-motto) {
  max-width: 600px;

  font-size: 16px;

  line-height: 1.6;

  color: #5b4632;

  margin-bottom: 40px;
}

/* ===========================
Buttons
=========================== */

.ich-popup-buttons {
  display: flex;

  gap: 40px;

  justify-content: center;
}

.ich-popup-button {
  width: 260px;
}

.ich-popup-button p {
  color: #4b2b15;

  font-weight: 700;

  font-size: 15px;
}

.ich-popup-button .ich-btn {
  display: block;

  padding: 15px 25px;

  border-radius: 10px;

  text-decoration: none;

  font-weight: 700;

  font-size: 16px;

  transition: 0.25s ease;
}

.ich-popup-button .ich-btn-secondary {
  background: #3b3028;

  color: white;
}

.ich-popup-button .ich-btn-secondary:hover {
  background: #211b17;

  color: white;
}

.ich-popup-button .ich-btn-primary {
  background: #9a663b;

  color: white;
}

.ich-popup-button .ich-btn-primary:hover {
  background: #744722;

  color: white;
}

/* ===========================
Animation
=========================== */

@keyframes ichFadeUp {
  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ===========================
Tablet
=========================== */

@media (max-width: 1024px) {
  #ich-popup-overlay .ich-popup-wrapper {
    width: 90vw;

    height: 85vh;
  }

  .ich-popup-logo {
    width: 100%;
  }

  .ich-popup-content h2 {
    font-size: 32px;
  }
}

/* ===========================
Mobile
=========================== */

@media (max-width: 768px) {
  #ich-popup-overlay .ich-popup-wrapper {
    width: 92vw;

    height: auto;

    min-height: 620px;

    max-height: 90vh;

    overflow-y: auto;
  }

  .ich-popup-content {
    padding: 60px 25px 35px;
  }

  .ich-popup-logo {
    width: 320px;

    margin-bottom: 20px;
  }

  .ich-popup-motto {
    font-size: 16px;

    letter-spacing: 3px;
  }

  .ich-popup-content h2 {
    font-size: 30px;
  }

  .ich-popup-content > p:not(.ich-popup-motto) {
    font-size: 18px;
  }

  .ich-popup-buttons {
    flex-direction: column;

    gap: 25px;
  }

  .ich-popup-button {
    width: 100%;

    max-width: 280px;
  }
}

/* ===========================
Small Phones
=========================== */

@media (max-width: 480px) {
  .ich-popup-logo {
    width: 100%;
  }

  .ich-popup-content h2 {
    font-size: 26px;
  }

  .ich-popup-content {
    padding: 55px 20px 30px;
  }

  .ich-popup-motto {
    font-size: 14px;
  }

  .ich-popup-content > p:not(.ich-popup-motto) {
    font-size: 16px;
  }
}

/* ===========================
Very Small Phones
=========================== */

@media (max-width: 360px) {
  .ich-popup-logo {
    width: 100%;
  }

  .ich-popup-content h2 {
    font-size: 24px;
  }

  .ich-popup-content > p:not(.ich-popup-motto) {
    font-size: 15px;
  }
}
