/* Main page styles */

.skip {
  z-index: -100;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

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

.icon {
  transition: all 0.3s ease-in-out;
}

.btn {
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  text-wrap: nowrap;
  border-radius: 9rem;
  border: 2px solid var(--red);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
}

.btn-sm {
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  gap: 0.75rem;
}

.btn-primary {
  background-color: var(--red);
  color: var(--snow);
}

.btn-primary:hover, .btn-primary:focus {
  border: 2px solid var(--red-dark);
  background-color: var(--red-dark);
}

.btn-secondary {
  background-color: var(--snow);
  color: var(--red);
}

.btn-secondary:hover, .btn-secondary:focus {
  border: 2px solid var(--red-dark);
  background-color: var(--parchment);
  color: var(--red-dark);
}

.link {
  font-family: var(--font-body);
  color: var(--red);
  text-decoration: underline;
}

/**
 * =======================================
 * Image, section, tiles
 * =======================================
 */

.img-zoom {
  transition: all 0.3s ease-in-out;
}

.img-zoom:hover {
  transform: scale(1.015);
}

.section {
  position: relative;
  width: 100vw;
  padding: 6rem 1rem 0 1rem;
  background-color: var(--snow);
  z-index: 20;
}

.section.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section.bottom {
  padding-bottom: 6rem;
}

.section.top {
  padding-top: 7rem;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-intro.row {
  flex: 1 1 0;
}

.section-intro.left {
  align-items: start;
}

.section-intro.center {
  align-items: center;
}

.section-btns {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.section-btns.row {
  flex-direction: row;
  align-items: center;
  margin-right: 0;
}

.tile-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 1rem;
}

.tile-grid-1, .tile-grid-2 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.tile-grid-1 {
  grid-template-rows: repeat(3, 1fr);
}

.tile-grid-2 {
  grid-template-rows: repeat(6, 1fr);
}

.tile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  /* justify-content: center; */
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--black-a30);
}

.tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-dark);
  border-radius: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
}

.tile-icon > .icon {
  width: 2.75rem;
  height: 2.75rem;
}

.tile-heading {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--black);
}

.tile > .body2 {
  margin-bottom: auto;
}

.tile-link {
  position: relative;
  font-size: 0.9rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.tile-link:hover, .tile-link:focus {
  color: var(--red-dark);
}

.tile-link > .icon {
  width: 1rem;
  height: 1rem;
}

.tile-link:hover > .icon, .tile-link:focus > .icon {
  transform: translateX(4px);
}

/**
 * =======================================
 * Home section
 * =======================================
 */

.hero-img {
  z-index: 0;
  position: absolute;
  inset: 0;
  flex: 1;
  width: 100%;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
}

.hero-img img {
  z-index: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
}

#carousel-img-1 {
  transform: translateX(-400vw);
}

#carousel-img-2 {
  transform: translateX(-300vw);
}

#carousel-img-3 {
  transform: translateX(-200vw);
}

#carousel-img-4 {
  transform: translateX(-100vw);
  z-index: 2;
}

#carousel-img-5 {
  transform: translateX(0vw);
}

#carousel-img-6 {
  transform: translateX(100vw);
}

#carousel-img-7 {
  transform: translateX(200vw);
}

#carousel-img-8 {
  transform: translateX(300vw);
}

#carousel-img-9 {
  transform: translateX(400vw);
}

#carousel-img-10 {
  transform: translateX(500vw);
}

#carousel-img-11 {
  transform: translateX(600vw);
}

#carousel-img-12 {
  transform: translateX(700vw);
}

#hero-carousel {
  position: relative;
  width: 100vw;
  height: 100%;
  min-height: 20rem;
  overflow-x: hidden;
}

#hero-carousel > .carousel-control {
  z-index: 5;
  position: absolute;
  top: 0;
  bottom: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--snow);
  cursor: pointer;
}

#hero-carousel > .carousel-control > .icon {
  width: 2.5rem;
  height: 2.5rem;
}

#hero-carousel > .carousel-control.left {
  left: 0.25rem;
}

#hero-carousel > .carousel-control.right {
  right: 0.25rem;
}

#hero-carousel > .carousel-dots {
  z-index: 5;
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

#hero-carousel > .carousel-dots > .carousel-dot {
  width: 0.85rem;
  height: 0.85rem;
  background-color: var(--snow);
  border: 1px solid var(--snow);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  transition: all 0.6s ease-in-out;
}

#hero-carousel > .carousel-dots > .carousel-dot.selected {
  background-color: var(--red);
}

#home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: transparent;
}

.hero-text {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 6rem 1rem 1rem 1rem;
  background-color: var(--snow);
}

.hero-h1 {
  color: var(--black);
  font-weight: 600;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.25rem;
  flex-shrink: 1;
  margin-bottom: 0.75rem;
}

.hero-btns {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

/**
 * =======================================
 * About section
 * =======================================
 */
#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-logo {
  height: 6rem;
}

.about-verse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.about-verse .arabic {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-verse .translation {
  font-size: 1.25rem;
  color: var(--text);
}

.about-verse .source {
  font-size: 1rem;
  font-weight: 600;
  color: var(--red-dark);
}

.welcome {
  width: 100%;
}

.welcome h2 {
  text-align: center;
}

.about-subsection {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/**
 * =======================================
 * What we offer section
 * =======================================
 */
#offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.offer-intro {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.5rem;
}

/**
 * =======================================
 * Testimonials section
 * =======================================
 */
#testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.testimonial-intro {
  z-index: 2;
  background-color: var(--snow);
}

#testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-carousel-control {
  background-color: var(--red-a00);
  border: 2px solid var(--black-a30);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.testimonial-carousel-control:hover, .testimonial-carousel-control:focus {
  background-color: var(--red-a10);
}

.testimonial-carousel-control > .icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--black);
}

.testimonial {
  padding: 0.125rem;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  transition: all 0.5s ease-in-out;
}

#testimonial-1 {
  transform: translateX(-400%);
}

#testimonial-2 {
  transform: translateX(-300%);
}

#testimonial-3 {
  transform: translateX(-200%);
}

#testimonial-4 {
  transform: translateX(-100%);
}

#testimonial-5 {
  position: relative;
  transform: translateX(0%);
}

#testimonial-6 {
  transform: translateX(100%);
}

#testimonial-7 {
  transform: translateX(200%);
}

#testimonial-8 {
  transform: translateX(300%);
}

.testimonial .figure {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial > .icon {
  margin: -0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--red-dark);
  transform: rotate(180deg);
}

.testimonial .quote {
  font-size: 1.5rem;
}

.testimonial-1 .quote, .testimonial-3 .quote {
  font-size: 1.25rem;
}

.testimonial .author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.testimonial .author > .icon {
  width: 3rem;
  height: 3rem;
  color: var(--red);
  opacity: 0.5;
}

.testimonial .caption {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial .name {
  font-size: 1.25rem;
  font-weight: 600;
}

.testimonial .title {
  font-size: 0.9rem;
}

/**
 * =======================================
 * Join our community section
 * =======================================
 */
#join {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

/**
 * =======================================
 * Footer section
 * =======================================
 */

footer {
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 10rem 4rem 2rem 4rem;
}

#footer {
  background-color: var(--parchment);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--red);
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  gap: 1.25rem;
  position: relative;
}

.footer-logo {
  width: auto;
  height: 5rem;
}

#footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-middle {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-sitemap {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin: 1rem 0 0 -2rem;
}

.footer-list {
  margin: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 2rem;
}

.footer-map-socials > .footer-list {
  margin-left: -2rem;
}

.footer-list li {
  padding: 0.25rem 0;
}

.footer-list a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}

.footer-list a:hover, .footer-list a:focus {
  color: var(--red);
}

.footer-social {
  font-family: var(--font-body);
  font-size: 1rem !important;
  color: var(--text);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.125rem 0;
  text-wrap: nowrap;
}

.footer-social > .icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--red-dark);
}

.footer-social > .icon.fill {
  stroke: none;
  fill: var(--red-dark);
}

.footer-map-socials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.footer-map {
  width: 100%;
  height: 20rem;
  border-radius: 0.5rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
}

/**
 * =======================================
 * Media queries
 * =======================================
 */

/* width >= 400px */
@media (min-width: 25rem) {
}

/* width >= 640px */
@media (min-width: 40rem) {
  .section-btns {
    flex-direction: row;
    align-items: center;
    margin-right: 0;
  }

  .tile-link {
    font-size: 1.1rem;
  }

  .footer-top {
    justify-content: start;
  }

  .footer-list a {
    font-size: 1.125rem;
  }
}

/* width >= 768px */
@media (min-width: 48rem) {
  .section {
    padding: 6rem 2.5rem 0 2.5rem;
  }

  .tile-grid-1 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .tile-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .tile {
    padding: 1.5rem;
  }

  .hero-text {
    padding: 6rem 2.5rem 1rem 2.5rem;
  }

  .hero-h1 {
    font-size: 2rem;
  }

  .about-verse .arabic {
    font-size: 2.5rem;
  }

  .tile-icon, .tile-icon > .icon {
    width: 4rem;
    height: 4rem;
  }

  .testimonial > .icon {
    width: 3.25rem;
    height: 3.25rem;
  }

  .testimonial .quote {
    font-size: 2rem;
  }

  .testimonial-1 .quote, .testimonial-3 .quote {
    font-size: 1.65rem;
  }

  .testimonial .author > .icon {
    width: 3.75rem;
    height: 3.75rem;
  }

  .testimonial .name {
    font-size: 1.5rem;
  }

  .testimonial .title {
    font-size: 1rem;
  }

  .footer-map-socials {
    flex-direction: row;
    gap: 0;
  }

  .footer-map-socials > .footer-list {
    margin-left: 0;
  }

  .footer-map {
    width: 50%;
  }

  .footer-list a {
    font-size: 1.125rem;
  }

  .footer-bottom {
    flex-direction: row;
    gap: 2rem;
  }
}

/* width >= 1024px */
@media (min-width: 64rem) {
  .hero-text {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 14.5rem;
  }

  #testimonials {
    flex-direction: row-reverse;
  }

  #testimonials .section-btns {
    margin-top: 0.5rem;
  }

  .testimonial > .icon {
    width: 4rem;
    height: 4rem;
  }

  .testimonial-carousel-control {
    width: 3.75rem;
    height: 3.75rem;
  }

  .testimonial-carousel-control > .icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .footer-sitemap {
    width: 100%;
    gap: 4rem;
  }
}

/* width >= 1280px */
@media (min-width: 80rem) {
  .btn {
    font-size: 1.25rem;
    padding: 0.65rem 1.75rem;
    gap: 1rem;
  }

  .btn-sm {
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    gap: 0.75rem;
  }

  .section {
    position: relative;
    width: 100vw;
    padding: 6rem 6rem 0rem 6rem;
  }

  .section.top {
    padding-top: 8rem;
  }

  .hero-text {
    padding: 6rem 6rem 1rem 6rem;
  }

  .hero-h1 {
    font-size: 2.75rem;
  }

  .tile-grid-1 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
  }

  .tile-grid-2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .tile {
    padding: 2rem;
  }

  .tile-heading {
    font-size: 1.85rem;
  }

  #about {
    gap: 3rem;
  }

  .about-logo {
    height: 14rem;
  }

  .about-verse {
    gap: 0.5rem;
    margin-top: -0.5rem;
  }

  .about-verse .arabic {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .about-verse .translation {
    font-size: 1.25rem;
  }

  .about-verse .source {
    font-size: 1rem;
  }

  .welcome {
    width: 60rem;
  }

  #offer {
    gap: 3rem;
  }

  #testimonials {
    gap: 4rem;
  }

  #join {
    gap: 3rem;
    padding-bottom: 6rem;
  }

  #footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .footer-middle {
    gap: 0.75rem;
  }

  .footer-map-socials {
    max-width: 60%;
    width: auto;
    gap: 1rem;
  }

  .footer-map {
    min-width: 14rem;
  }

  .footer-sitemap {
    margin-top: 0;
    margin-left: auto;
    max-width: 50%;
    width: auto;
    gap: 1.5rem;
  }
}

/* width >= 1536px */
@media (min-width: 96rem) {
  .tile-heading {
    font-size: 2rem;
  }
}

/* width >= 1920px */
@media (min-width: 120rem) {
}
