@import url("/css/whatBlock.inc.css");
@import url("/css/_modules/List.mod.css");

.homeRow {
  padding: 50px 0;
}

@media screen and (min-width: 769px) {
  .homeRow {
    padding: 60px 0;
  }
}

.homeRow--light {
  background-color: var(--color-very-light-gray);
}

.homeRow__icon {
  display: inline-block;
  color: var(--color-primary);
  font-size: 80px;
  margin-bottom: 20px;
}

.homeSlide {
  background-image: url(/img/homepage/slider1.jpg);
  background-position: center 25%;
  background-repeat: no-repeat;
  background-size: cover;
  /*display: flex;
	align-items: flex-end;*/
  height: 70vh;
  min-height: 450px;
  /*justify-content: center;*/
}

.homeSlide > .container {
  position: relative;
  height: 55vh;
}

.homeSlide__text {
  line-height: 1;
  position: absolute;
  bottom: 20px;
  left: 14%;
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
  text-align: center;
  width: 300px;
}

.homeSlide__textText {
  font-size: 32px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.homeDiscount__container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.homeDiscount__wrapper {
  height: 30px;
  width: 700px;
  background-color: rgb(0, 74, 173);
  display: flex;
  justify-content: center;
}

.homeDiscount__text {
  color: rgb(255, 255, 255);
  margin-right: 20px;
  height: 20px;
  margin-top: 3px;
}

.homeDiscount__coupon {
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  height: 20px;
  margin-top: 5px;
  line-height: 16px;
  border-style: dashed;
  border-width: 2px;
  border-color: rgb(0, 0, 0);
}

.homeSupportBlock {
  background: url("/img/homepage/tech-support.jpg");
  position: relative;
}

.homeSupportBlock:before {
  content: " ";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
}

.homeSupportBlock .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 769px) {
  .homeSupportBlock .container {
    flex-direction: row;
  }
}

.homeSupportBlock__block {
  flex-grow: 1;
  text-align: center;
}

.homeSupportBlock__block:not(:last-child) {
  margin-bottom: 50px;
}

@media screen and (min-width: 769px) {
  .homeSupportBlock__block:first-child {
    margin-right: 135px;
    text-align: left;
  }
}

.homeSupportBlock__phone {
  border-color: rgba(255, 255, 255, 0.3);
  margin: 0 auto;
  white-space: nowrap;
  width: auto;
  max-width: 390px;
}

.homeSupportBlock__phone .icofont {
  color: var(--color-primary);
}

/* Pop-up Styling */
/* Pop-up Background */
.popup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

/* Pop-up Content */
.popup-content {
  background: linear-gradient(145deg, var(--color-secondary), #1c1c1c);

  color: white;
  padding: 40px 35px;

  width: 40vw;
  max-width: 500px;
  max-height: 90vh;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  position: relative;

  border-radius: 14px;

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.45),
    0 5px 15px rgba(0, 0, 0, 0.25);

  animation: popupFade 0.45s ease;
}

/* Popup entrance animation */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.popup-content h1 {
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Subtext */
.popup-content p {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  opacity: 0.9;
}

/* Row container */
.popup-row {
  width: 100%;
  padding: 5px;
  text-align: center;
}

/* Close Button */
.close-button {
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  font-size: 26px;
  color: white;
  opacity: 0.8;
  transition: 0.2s ease;
}

.close-button:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Buttons container */
#popup-buttons {
  margin-top: 10px;
}

/* Buttons */
#popup-buttons button {
  margin: 8px;

  padding: clamp(10px, 1.5vw, 14px) clamp(18px, 2vw, 26px);

  cursor: pointer;

  background: white;
  color: var(--color-secondary);

  border: none;

  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;

  border-radius: 6px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

  transition: all 0.25s ease;
}

#popup-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background: #f5f5f5;
}

/* Countdown container */
#countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 5px;
}

/* Countdown blocks */
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 14px 10px;

  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);

  border-radius: 8px;

  width: clamp(65px, 6vw, 85px);

  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.4);

  transition: transform 0.2s ease;
}

.countdown-block:hover {
  transform: translateY(-2px);
}

/* Countdown labels */
.countdown-block label {
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  font-weight: 500;
  margin-top: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Tablet adjustments */
@media (max-width: 600px) {
  .popup-content {
    width: 85vw;
    padding: 30px 22px;
  }

  #popup-buttons button {
    width: 100%;
    max-width: 260px;
  }
}

/* Small phone adjustments */
@media (max-width: 400px) {
  .popup-content {
    width: 90vw;
  }

  .countdown-block {
    width: clamp(55px, 7vw, 70px);
  }
}

/* End Pop-up Styling */
