@import "./styles.css";

/* ------------------------------ GENERAL STYLING ------------------------------ */
section {
  position: relative;
  width: 100%;
}
label,
input,
::placeholder {
  font-size: var(--p);
  font-family: inherit;
}
.image-container.dots {
  position: absolute;
  right: 0;
  opacity: 0.1;
  z-index: 1;
}
[data-aos] {
  max-width: 100%;
}
/* ------------------------------ GENERAL STYLING ------------------------------ */

/* ------------------------------ HERO SECTION ------------------------------ */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-height) - var(--strip-height));
  padding: 5%;
  display: grid;
  place-items: center;
  background: var(--primary) url("../images/home/kingrek-hero-image.webp")
    no-repeat center;
  color: var(--white);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 30, 30, 0.9);
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero > * {
  position: relative;
  z-index: 2;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero .pill {
  color: var(--white);
  background-color: rgba(173, 0, 0, 0.65);
}
.hero h1 {
  font-weight: 800;
}
.hero p:not(.pill) {
  color: var(--white);
  width: 70%;
  margin: 1.5rem auto;
}
/* ------------------------------ HERO SECTION ------------------------------ */

/* ------------------------------ CLIENTS SECTION ------------------------------ */
.clients {
  padding: 5%;
}
.clients .logo-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #fff;
  padding: 20px 0;
}
.clients .logo-carousel::before,
.clients .logo-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}
.clients .logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.clients .logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}
.clients .logo-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.clients .logo-track img {
  height: 60px;
  margin: 0 40px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 300ms ease-in-out;
}
.clients .logo-track img:hover {
  filter: grayscale(0);
}

/* Infinite scrolling animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* ------------------------------ CLIENTS SECTION ------------------------------ */

/* ------------------------------ WHY CHOOSE US SECTION ------------------------------ */
.quote {
  position: relative;
  padding: 5%;
  background: var(--primary) url("../images/home/kingrek-form-bg-image.webp")
    no-repeat center;
  background-size: cover;
  align-items: stretch;
}
.quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(173, 0, 0, 0.85);
  z-index: 1;
}
.quote > * {
  position: relative;
  z-index: 2;
}
.quote .form {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 3rem;
  color: var(--white);
  width: 50%;
}
.quote .form h2 {
  margin-bottom: 2rem;
}
.quote .info {
  width: 45%;
  color: var(--white);
}
.quote .info h2 {
  width: 70%;
}
.quote .info p:not(.pill) {
  width: 90%;
  color: var(--white);
  margin: 1rem 0;
}
.quote .info h3 {
  margin-bottom: 1rem;
}
.quote .info ul li {
  margin-bottom: 1rem;
}
.quote .info ul li .fas {
  color: var(--secondary);
}
/* ------------------------------ WHY CHOOSE US SECTION ------------------------------ */

/* ------------------------------ STATISTICS SECTION ------------------------------ */
.stats {
  background: var(--background) url("../images/home/sadc-countries.webp")
    no-repeat center;
}
.stats .stat {
  padding: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stats .stat h2 {
  color: var(--secondary);
  font-size: calc(var(--h2) * 4);
  margin-bottom: 1rem;
}
.stats .stat h3 {
  color: var(--text);
  font-size: calc(var(--h3) * 1.5);
  text-align: center;
  width: 80%;
  margin: 0 auto;
}
/* ------------------------------ STATISTICS SECTION ------------------------------ */

/* ------------------------------ SERVICES SECTION ------------------------------ */
.services {
  position: relative;
}
.services .services-intro {
  padding: 5%;
  padding-right: 0;
}
.services .services-intro .info h2 {
  color: var(--primary);
  width: 80%;
}
.services .services-intro .info p:not(.pill) {
  margin: 1rem 0;
  width: 80%;
}
.services .services-intro .image-container {
  width: 80%;
}
.services .service-items {
  padding: 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.services .service-items .service-item {
  position: relative;
  height: 250px;
  width: 100%;
  overflow: hidden;
  background-color: var(--white);
}
.services .service-items .service-item .image-container {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  filter: blur(0px);
  z-index: 1;
  transition: filter 300ms ease-in-out;
}
.services .service-items .service-item i.fa-circle-info{
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: var(--secondary);
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.25));
  cursor: pointer;
  z-index: 3;
}
.services .service-items .service-item .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 70%;
  left: 0;
  overflow: hidden;
  padding: 5%;
  background-color: var(--primary);
  z-index: 2;
  color: var(--white);
  transition:
    top 300ms ease-in-out,
    background-color 300ms ease-in-out;
}
.services .service-items .service-item i.fa-circle-info:hover + .overlay {
  background-color: rgba(85, 0, 0, 0.85);
  top: 0;
}
.services .service-items .service-item i.fa-circle-info:hover ~ .image-container {
  filter: blur(5px);
}
.services .service-items .service-item .overlay h3 {
  position: relative;
}
.services .service-items .service-item .overlay h3::after {
  content: "";
  height: 3px;
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 25%;
  background-color: var(--secondary);
}
.services .service-items .service-item .overlay p {
  color: var(--white);
  margin: 2rem 0 1rem;
  width: 80%;
}
.services .service-items .service-item .overlay p.countries {
  margin-top: -1rem;
}
.services .service-items .service-item .overlay ul {
  margin-top: -1rem;
  margin-bottom: 1rem;
}
.services .service-items .service-item .overlay ul li {
  margin-bottom: 0.5rem;
}
/* ------------------------------ SERVICES SECTION ------------------------------ */

/* ------------------------------ ABOUT SECTION ------------------------------ */
.about {
  padding: 5%;
  position: relative;
}
.about .container {
  position: relative;
  padding: 2rem;
  align-items: stretch;
  background-color: var(--primary);
  color: var(--white);
}
.about .container .image-container {
  width: 50%;
  z-index: 2;
}
.about .container .image-container.dots {
  top: 0;
  transform: rotate(-90deg);
  width: 30%;
}
.about .container .info {
  width: 50%;
  z-index: 2;
}
.about .container .info h2 {
  width: 70%;
}
.about .container .info p:not(.pill) {
  margin: 1.5rem 0;
  color: var(--white);
  width: 80%;
}
/* ------------------------------ ABOUT SECTION ------------------------------ */

/* ------------------------------ CARDS SECTION ------------------------------ */
.cards {
  position: relative;
  padding: 5%;
  align-items: stretch;
}
.cards .card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  padding: 2rem;
  position: relative;
  width: 50%;
  background-color: rgba(0, 0, 0, 0.05);
}
.cards .card .image-container.dots {
  bottom: 0;
  width: 50%;
}
.cards .card h2 {
  width: 70%;
  color: var(--primary);
}
.cards .card p {
  width: 80%;
  margin: 1rem 0;
}
.cards .card ul {
  margin-top: -1rem;
}
.cards .card ul li {
  margin: 0.5rem 0;
  list-style: circle;
  list-style-position: inside;
}
/* ------------------------------ CARDS SECTION ------------------------------ */

/* ------------------------------ FAQ SECTION ------------------------------ */
.faq {
  position: relative;
  padding: 2rem 5% 5%;
  align-items: flex-start;
}
.faq .container {
  width: 100%;
  align-items: flex-start;
}
.faq .container h2 {
  width: 20%;
  color: var(--primary);
}
.faq .container .questions {
  width: 70%;
}
.faq-item {
  border-bottom: 1px solid var(--secondary);
}
.question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}
.question .icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}
.question[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}
.answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  padding: 0 1rem;
}
.answer p {
  margin: 0.5rem 0 1rem;
}
.faq-item.active .answer {
  max-height: 200px; /* enough to fit content */
}
/* ------------------------------ FAQ SECTION ------------------------------ */

/* ------------------------------ MAST SECTION ------------------------------ */
.mast {
  position: relative;
  background-color: var(--primary);
  padding: 2rem 5%;
  margin: 3rem 0;
}
.mast .image-container {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 50%;
}
.mast .info {
  margin-left: auto;
  width: 40%;
  color: var(--white);
}
.mast .info p {
  color: var(--white);
}
.mast .info p:nth-child(3) {
  width: 70%;
  margin: 0.5rem 0;
}
.mast .info .contacts {
  margin: 1rem 0;
}
.mast .flex {
  justify-content: flex-start;
}
.mast .cta {
  margin-top: 2rem;
}
/* ------------------------------ MAST SECTION ------------------------------ */

@media screen and (max-width: 550px) {
  p:not(.pill),
  .quote .form,
  .info,
  h2:not(footer h2),
  h3:not(footer h3),
  .card,
  .image-container,
  .questions {
    width: 100% !important;
  }
  .card ul li,
  .quote .info ul li {
    text-align: center;
  }
  .pill,
  .btn {
    margin: 1rem auto;
  }
  .quote .form .inputs {
    padding: 0;
  }
  .quote .form .input .error {
    text-align: right;
  }
  .quote .info ul li i {
    display: none;
  }
  .stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
  }
  .stats > * {
    position: relative;
    z-index: 1;
  }
  .services .service-items .service-item .overlay h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .cards .card .image-container.dots {
    opacity: 0.05;
  }
  .card ul {
    width: 100%;
  }
  .faq p {
    text-align: left;
  }
  .mast {
    flex-direction: column-reverse;
  }
  .mast .image-container {
    position: relative;
    top: 0;
    transform: none;
  }
  .mast .cta {
    flex-direction: column;
  }
  .mast .cta .btn {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
}
