/* 
  Huddle landing page with single introductory section

    SPACING SYSTEM (px)
    2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

    FONT SIZE SYSTEM (px)
    10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

*/

:root {
  --purple-700: hsl(257, 40%, 49%);
  --magenta-400: hsl(300, 69%, 71%);
  --white: hsl(0, 0%, 100%);

  --fw-normal: 400;
  --fw-bold: 600;

  --ff-poppins: "Poppins", sans-serif;
  --ff-open-sans: "Open Sans", sans-serif;
}

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

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

a {
  text-decoration: none;
}

body {
  font-family: var(--ff-open-sans);
  font-weight: var(--fw-normal);
  background-color: var(--purple-700);
  color: var(--white);
  position: relative;

  background-image: url(../images/bg-desktop.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: -40px top;
}

.header {
  padding-left: 48px;
  padding-top: 16px;
}

.huddle__logo-img {
  width: 180px;
}

.hero__section {
  min-height: 100vh;
  padding: 16px 64px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
}

.content {
  flex: 40%;
  margin-top: -60px;
}

.content h1 {
  font-size: 36px;
  font-family: var(--ff-poppins);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 12px;
}

.content p {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  background-color: var(--white);
  color: var(--purple-700);
  padding: 12px 56px;
  border-radius: 50px;
  font-weight: var(--fw-bold);
  box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.75);
  transition: 0.3s ease;
  outline: none;
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
  background-color: var(--magenta-400);
  color: var(--white);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.image {
  flex: 60%;
  margin-top: 40px;
}

.huddle__img {
  width: 100%;
  max-width: 800px;
}

.icons {
  position: absolute;
  bottom: 40px;
  right: 64px;

  display: flex;
  gap: 16px;
}

.icons ion-icon {
  font-size: 20px;
  border: 1px solid white;
  border-radius: 50%;
  color: var(--white);
  padding: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.icons ion-icon:hover {
  color: var(--magenta-400);
  border-color: var(--magenta-400);
}

.icons a:focus-visible {
  outline: 2px solid var(--magenta-400);
  outline-offset: 3px;
}

/* 
  Responsive Design
*/
@media (max-width: 768px) {
  body {
    background-image: url(../images/bg-mobile.svg);

    background-position: top;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .header {
    padding: 16px;
  }

  .huddle__logo-img {
    width: 120px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__section {
    padding-inline: 16px;
  }

  .content {
    max-width: none;
    margin-top: 10px;
  }

  .content h1 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .huddle__img {
    max-width: 100%;
  }

  .image {
    margin-top: -30px;
  }

  .btn {
    text-align: center;
  }

  .icons {
    position: static;
    margin: 16px 0;
    justify-content: center;
  }
}
