/* Global styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --strong-cyan: hsl(171, 66%, 44%);
  --light-blue: hsl(233, 100%, 69%);
  --dark-grayish-blue: hsl(210, 10%, 33%);
  --grayish-blue: hsl(201, 11%, 66%);
}

img {
  width: 100%;
  display: block;
  height: auto;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  display: inline-block;
}

body {
  font-family: 'Bai Jamjuree', sans-serif;
}

/* Utilities */
.container {
  padding-inline: 1rem;
  max-width: 1440px;
}

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

button {
  background-color: transparent;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 5rem;
  transition: background-color 0.3s ease;
}

.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
}

.button--ios {
  background-color: var(--strong-cyan);
  box-shadow: 0 6px 10px 0 hsla(171, 66%, 44%, 0.4);
}

.button--mac {
  background-color: var(--light-blue);
  box-shadow: 0 5px 10px 0 hsla(233, 100%, 69%, 0.4);
}

.button--ios:hover {
  background-color: hsla(171, 66%, 44%, 0.8);
}

.button--mac:hover {
  background-color: hsla(233, 100%, 69%, 0.8);
}

.title {
  text-align: center;
}

.title__text,
.feature__title {
  color: var(--dark-grayish-blue);
  margin-bottom: 1rem;
}

.title__text {
  font-size: 1.5rem;
}

.title__description,
.feature__text {
  font-size: 1rem;
  color: var(--grayish-blue);
  max-width: 600px;
  margin-inline: auto;
}

/* Hero section */
.hero {
  height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  background-image: url('./images/bg-header-mobile.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__image {
  width: 100px;
  margin-bottom: 2.5rem;
  margin-inline: auto;
}

.hero__content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-grayish-blue);
  margin-bottom: 1rem;
}

.hero__content p {
  color: var(--grayish-blue);
  max-width: 600px;
  margin-inline: auto;
}

/* Features section */
.features__content {
  margin-top: 4rem;
}

.features__image {
  margin-bottom: 3rem;
}

.features__content .feature {
  text-align: center;
}

.features__content .feature:not(:last-child) {
  margin-bottom: 2rem;
}

/* Access section */
.access .access__image {
  margin-top: 4rem;
}

/* Workflow section */
.workflow__features {
  margin-top: 3rem;
}

.workflow__features .feature {
  text-align: center;
}

.workflow__features .feature:not(:last-child) {
  margin-bottom: 2rem;
}

.workflow__features .feature img {
  width: 50px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.workflow__features .feature h3 {
  color: var(--dark-grayish-blue);
}

.workflow__features .feature p {
  max-width: 400px;
  margin-inline: auto;
}

/* Sponsors section */
.sponsors__image img {
  width: 120px;
  margin-inline: auto;
}

.sponsors__image img:not(:last-child) {
  margin-bottom: 5rem;
}

/* Footer section */
.footer {
  background-color: #f5f6f8;
  margin-top: 7rem;
  padding-block: 2rem;
  text-align: center;
}

.footer img {
  width: 50px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.footer a {
  color: var(--dark-grayish-blue);
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--strong-cyan);
}

.footer .links a {
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer .social {
  margin-top: 1.3rem;
}

.footer .social a {
  font-size: 1.2rem;
  margin-inline: 0.5rem;
}

/* Media query */
@media (min-width: 768px) {
  .container {
    width: 768px;
    margin-inline: auto;
  }

  .title__text {
    font-size: 2.3rem;
  }

  .title__description {
    font-size: 1.1rem;
  }

  /* Hero section */
  .hero {
    background-image: url('./images/bg-header-desktop.png');
  }

  .hero__content h1 {
    font-size: 3rem;
  }

  .hero__content p {
    font-size: 1.1rem;
  }

  /* Features section */
  .features__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .features__image {
    transform: translateX(-5rem);
    margin-bottom: 0;
  }

  .features__content .feature {
    text-align: left;
  }

  .feature__text {
    font-size: 1.1rem;
  }

  /* Workflow section */
  .workflow__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .workflow__features .feature:not(:last-child) {
    margin-bottom: 0;
  }

  /* Sponsors section */
  .sponsors__image {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .sponsors__image img:not(:last-child) {
    margin-bottom: 0;
  }

  /* Footer section */
  .footer {
    text-align: left;
  }

  .footer img {
    margin-inline: initial;
    margin-bottom: 0;
  }

  .footer .social {
    margin-top: 0;
  }

  .footer__content {
    display: flex;
    justify-content: space-between;
  }

  .footer__content .logo_links {
    display: flex;
    align-items: start;
    gap: 7rem;
  }

  .footer__content .links {
    display: flex;
    gap: 5rem;
  }
}

/*  1200px and up */
@media (min-width: 1200px) {
  .container {
    width: 1100px;
  }

  .features__content {
    gap: 4rem;
  }

  .features__image img {
    width: 145%;
    transform: translateX(-10rem);
  }

  .mt {
    margin-top: 3rem;
  }

  .sponsors__image {
    grid-template-columns: repeat(5, 1fr);
  }
}
