/******************/
/* General styles */
/******************/
:root {
  /* Website colors */
  --dark-80: #1e1e1e;
  --dark-100: #2c2c2c;
  --blue-80: #124fdc;
  --blue-100: #1942a2;
  --white-80: #f8f8f8;
  --white-60: #808080;

  /* Generic colors */
  --black-color: #000;
  --white-color: #fff;
}

/* 1. MOBILE HEADER */
header {
  background-image: url("../assets/backgrounds/grid-dark.png");
  background-size: cover;
  /* padding: 50px 0; */
}

.header-wrapper-black {
  width: 100%;
  /* position: absolute; */
  /* top: 50px; */
  /* left: 0; */

  /* height: 50px; */
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* temp line to check presence */
  /* background-color: violet; */

  /* margin-bottom: 50px; */
}

/* the underline effect on hover */
.nav-link:after {
  background-color: var(--dark-100);
}

.nav-link,
.nav-link:link,
.nav-link:visited {
  color: var(--dark-100);
}

/* Lets the user know that link is disabled */
.cursor-not-allowed {
  cursor: not-allowed;
}

/* 2. RETURN TO HOMEPAGE - FIXED POSITIONED */

.return-to-homepage {
  display: inline-block;
  position: fixed;
  right: calc((99vw - 1200px) / 2);
  transform: scale(1);
  transition: 0.3s ease-in;
  /* top: 0;
  left: 0; */
  z-index: 10;
  top: 100px;
  /* background-color: palevioletred; */
}

.return-to-homepage a:link,
.return-to-homepage a:visited {
  display: flex;
  gap: 20px;
  align-items: center;

  background-color: var(--dark-100);

  padding: 20px 30px;
  border-radius: 50px;
  text-decoration: none;

  transition: all 0.3 ease-out;
}

.return-to-homepage a:hover {
  background-color: var(--blue-80);
  box-shadow: 0 5px 10px 5px rgba(18, 79, 220, 0.3);
}

.return-to-homepage a:active {
  background-color: var(--blue-100);
  box-shadow: 0 5px 10px 5px rgba(25, 66, 162, 0.3);
}

.return-to-homepage_span {
  color: var(--white-color);

  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

/* 3. SECTION ABOUT US */
.section-about-us {
  background-image: url("../assets/backgrounds/grid-dark.png");
  background-size: contain;
  padding-top: 150px;
}

h1 {
  color: var(--black-color);
  font-size: 52px;
  font-weight: 600;
  text-transform: uppercase;
}

.margin-left {
  margin-left: 300px;
}

.about-img-container {
  height: 230px;
  width: 900px;
  position: relative;

  margin-bottom: 50px;
	margin-top: 300px;
}

.about-img-container img {
  width: 1050px;
  position: absolute;
  bottom: 0;
  left: 0;

  /* For text to lay above this image */
  z-index: -1;
}

.about-text-container {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.about-text-container h2,
.about-text-container ul {
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text-container ul li {
  margin-left: 25px;
  line-height: 1.8;
}

.about-text-container p {
  line-height: 2;
}

/* 4. SECTION FAQ */
.section-faq {
  background-image: url("../assets/backgrounds/grid-dark.png");
  background-size: contain;
  padding: 150px 0 100px;
}

.faq-section-heading {
  display: flex;
  gap: 30px;
  margin-bottom: 75px;
}

.faq-section-heading svg {
  /* width: 30px; */
  height: 30px;

  transform: translate(-50%, -50%);
}

.faq-section-heading h2 {
  color: var(--black-color);
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 600px;
}

.faq-item {
  border-top: 1px solid var(--black-color);
  /* padding-top: 10px; */
}

.faq-question {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  /* gap: auto; */
  /* position: relative; */

  /* padding: 50px 0; */
  margin: 50px 0;
}

.faq-question span {
  width: 5%;
  color: var(--black-color);
  font-size: 40px;
  text-transform: uppercase;
}

.faq-text {
  width: 55%;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: 30px;
}

.faq-text-question {
  color: var(--dark-100);
  font-size: 28px;
  font-weight: 400;
  /* font-weight: 600; */
  line-height: 1.4;

  /* align-self: center; */
  /* justify-self: center; */
  align-self: left;
  cursor: pointer;
}

.faq-text-answer {
  line-height: 1.4;
  font-size: 20px;
  font-weight: 400;

  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease;
}

.faq-item.open .faq-text-answer {
  max-height: 500px;
}

.question-svg-container svg {
  height: 50px;
  width: 50px;
  cursor: pointer;

  /* For smooth rotation */
  transition: transform 0.4s ease-in;
}

/* Behavior at click */
.faq-item.open .question-svg-container svg {
  transform: rotate(180deg);
}

/* 5. MOBILE FOOTER - from style.css  */
/******************************/
/******************************/
/******************************/
/* MOBILE version (360-480px) */
/* (max-width: 480px) */
@media screen and (max-width: 480px) {
  /* MOBILE NAV */
  .header-wrapper.show .nav-link,
  .header-wrapper.show .nav-link:link,
  .header-wrapper.show .nav-link:visited {
    color: var(--white-color);
  }

  /* Change nav icons stroke on click for mobile nav */
  .nav-icons svg > path {
    fill: var(--white-80);
  }

  .nav-icons svg > rect {
    stroke: var(--white-80);
  }

  .return-to-homepage {
    top: 100px;
    right: calc((99vw - 360px) / 2);
  }

  /* 3. SECTION ABOUT US */
  .section-about-us {
    background-size: contain;
    /* background-size: cover; */
    background-position: center;

    /* Essential for spacing */
    padding-top: 150px;
  }

  h1 {
    font-size: 36px;
    font-weight: 400;
  }

  .margin-left {
    margin-left: 0;
  }

  .about-img-container {
    min-height: 200px;
    width: 100%;

    margin-bottom: 80px;
  }

  .about-img-container img {
    width: 100%;

    /* Unset settings for absolute positioning from desktop version */
    bottom: unset;
    left: unset;

    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    scale: 1.6;
  }

  .about-text-container {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
  }

  .about-text-container h2,
  .about-text-container ul {
    margin-bottom: 16px;
  }

  .about-text-container ul li {
    margin-left: 16px;
  }

  /* 4. SECTION FAQ */
  .section-faq {
    background-size: contain;
    /* background-size: cover; */
    background-position: center;
    padding: 100px 0 60px;
  }

  .position-relative {
    position: relative;
  }

  .faq-section-heading {
    gap: 15px;
    margin-bottom: 60px;
  }

  .faq-section-heading svg {
    height: 15px;
    /* width: 15px; */
  }

  .faq-section-heading h2 {
    font-size: 24px;
    font-weight: 600;
    /* max-width: 600px; */
  }

  .faq-question {
    flex-direction: column;
    /* align-items: center; */
    gap: 20px;

    /* padding: 50px 0; */
    margin: 32px 0;
  }

  .faq-question span {
    width: unset;
    font-size: 32px;
    font-weight: 500;
  }

  .faq-text {
    width: 75%;

    gap: 24px;
  }

  .faq-text-question {
    font-size: 18px;
    font-weight: 400;
    /* text-align: left; */
  }

  .faq-text-answer {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
  }

  /* previous, works */
  /* .question-svg-container {
    skipped width because height is enough
    height: 56px;

    position: absolu  te;
    right: 0;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
  }

  .question-svg-container svg {
    height: 100%;
    width: 100%;
  } */

  /* new trial */
  .question-svg-container {
    /* skipped width because height is enough */
    position: absolute;
    height: 100%;
    width: 100%;
    text-align: right;

    /* right: 0; */
    /* right: 5px;
    top: 50%;
    transform: translateY(-50%); */
  }

  .question-svg-container svg {
    height: 56px;
    width: 56px;
    position: relative;
  }

  /* Fixing bold elements for mobile */
  h1,
  .about-text-container h2,
  .faq-section-heading h2 {
    font-weight: unset;
    -webkit-text-stroke: 1px;
  }
}
