/* ==========================================================================
   Mania de Alisar – Curso "Hair Liss Perfect"
   Breakpoints: tablet <= 1024px, mobile <= 767px (layout)
                >= 576px and >= 960px (base typography)
   ========================================================================== */

/* Fonts
   -------------------------------------------------------------------------- */
/* Montserrat is a variable font: one file per subset serves every weight. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  --color-text: #272626;
  --color-ink: #111111;
  --color-white: #ffffff;
  --color-light: #f1f1f1;
  --color-gray: #e2e2e2;
  --color-gold: #f1c65f;
  --color-green: #81d808;
  --color-link-hover: #ffd900;

  --font-body: Montserrat, Arial, Helvetica, sans-serif;
  --font-heading: "Montserrat", sans-serif;
  /* The Poppins webfont is not shipped (the original page never loaded it),
     so copy renders in the browser's default sans-serif. */
  --font-text: "Poppins", sans-serif;

  --container-width: 1140px;
  --spacing: 20px;
}

/* Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

body {
  overflow-x: hidden;
  background-color: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  opacity: 0.9;
}

img.emoji {
  display: inline;
  width: 1em;
  height: 1em;
  margin: 0 0.07em;
  vertical-align: -0.1em;
}

@media (min-width: 576px) {
  body {
    font-size: 16px;
  }
}

@media (min-width: 960px) {
  body {
    line-height: 1.7;
  }
}

/* Layout
   -------------------------------------------------------------------------- */
.section {
  --pad-x: 15%;
  --pad-y: 15%;

  position: relative;
  display: flex;
  flex-direction: column;
  padding-inline: var(--pad-x);
}

.section--gray {
  background-color: var(--color-gray);
}

.section--light {
  background-image: linear-gradient(90deg, #f9f9f9 0%, #f3f3ee 100%);
}

.section--dark {
  background-color: var(--color-ink);
}

.section__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--spacing);
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-block: var(--pad-top, var(--pad-y)) var(--pad-y);
}

.section__inner--row {
  flex-direction: row;
  justify-content: center;
  gap: 0;
}

.section__inner--gap {
  gap: 25px;
}

.col {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: var(--spacing);
  width: 100%;
  min-width: 0;
  padding: 10px;
}

.col > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.col--half {
  width: 50%;
}

.col--center {
  align-items: center;
}

.col--middle {
  justify-content: center;
}

/* Centered title block that opens a section */
.section-title {
  flex: 0 0 auto;
}

.section-heading {
  width: 100%;
  padding-bottom: 20px;
}

/* Components
   -------------------------------------------------------------------------- */
.heading {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.heading--center {
  text-align: center;
}

.accent {
  color: var(--color-gold);
}

@media (min-width: 576px) {
  .heading {
    font-size: 30px;
  }
}

@media (min-width: 960px) {
  .heading {
    font-size: 32px;
  }
}

.text {
  color: var(--color-ink);
  font-family: var(--font-text);
  font-weight: 400;
}

.text p {
  margin-bottom: 30px;
}

.media {
  text-align: center;
}

.media img {
  display: inline-block;
  vertical-align: middle;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  background-color: var(--color-green);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: all 0.3s;
}

.btn:hover,
.btn:focus {
  color: var(--color-ink);
}

/* Dark card with icon, title and description */
.card-row {
  flex-direction: row;
}

.card {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing);
  padding: 30px;
  border-radius: 10px;
  background-color: var(--color-ink);
}

.feature {
  width: 89.242%;
  max-width: 100%;
  text-align: center;
}

.feature__icon {
  display: inline-block;
  width: 30%;
  margin: 0 auto 9px;
}

.feature__icon img {
  display: block;
}

.feature__content {
  width: 100%;
}

.feature__title {
  margin-bottom: 4px;
  color: var(--color-white);
  font-family: var(--font-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.feature__description {
  color: var(--color-white);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
}

/* Gold bonus card */
.bonus-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing);
  padding: 21px;
  border-radius: 14px;
  background-image: linear-gradient(90deg, #f1c55f 10%, #dca62a 100%);
}

.bonus-card__text {
  align-self: center;
  width: 90.531%;
  max-width: 100%;
  text-align: start;
}

/* Carousel
   Slides per view and spacing are configured from CSS (--slides, --gap);
   js/main.js reads them and handles looping, autoplay, arrows and bullets.
   -------------------------------------------------------------------------- */
.carousel {
  --slides: 1;
  --gap: 0px;
  --slide-width: calc((100% - (var(--slides) - 1) * var(--gap)) / var(--slides));
  --pagination-space: 30px;

  position: relative;
}

.carousel__viewport {
  overflow: hidden;
  padding-bottom: var(--pagination-space);
  touch-action: pan-y;
}

.carousel__track {
  display: flex;
  transition: transform 0s ease;
}

.carousel__slide {
  position: relative;
  flex-shrink: 0;
  width: var(--slide-width);
  margin-right: var(--gap);
  overflow: hidden;
  text-align: center;
  user-select: none;
}

.carousel__arrow {
  position: absolute;
  top: calc(50% - var(--pagination-space) / 2);
  z-index: 1;
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: hsla(0, 0%, 93%, 0.9);
  font-size: 25px;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel__arrow svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.carousel__arrow--prev {
  left: 10px;
}

.carousel__arrow--next {
  right: 10px;
}

.carousel__pagination {
  position: absolute;
  bottom: 5px;
  left: 0;
  z-index: 10;
  width: 100%;
  text-align: center;
}

.carousel__bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: #000000;
  opacity: 0.2;
  cursor: pointer;
}

.carousel__bullet.is-active {
  opacity: 1;
}

/* Testimonials variant */
.carousel--reviews {
  --gap: 10px;
  --pagination-space: 40px;
}

.carousel--reviews .carousel__viewport {
  width: calc(91% - 40px);
  margin: 0 auto;
}

.carousel--reviews .carousel__arrow {
  font-size: 44px;
}

.review {
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  background-color: var(--color-white);
  text-align: start;
}

.review__header {
  display: flex;
  padding: 15px 15px 6px;
  border-bottom: 1px solid #e1e8ed;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
}

.review__cite {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.review__name {
  color: #1c2022;
  font-size: 16px;
}

.review__content {
  padding: 6px 15px 15px;
}

.review__text {
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

/* Sections
   -------------------------------------------------------------------------- */

/* 1. Hero */
.hero {
  min-height: 97vh;
  background: url("../assets/images/img-bg.png") center center / cover no-repeat;
}

.hero .section__inner {
  gap: 10px 0;
}

.hero__content {
  width: 50%;
}

.hero__logo img {
  display: inline-block;
  width: 100px;
  vertical-align: middle;
}

.hero__logo a {
  display: inline-block;
}

.hero__title {
  color: var(--color-light);
  font-family: var(--font-text);
}

.hero__text {
  color: var(--color-light);
}

.hero__action {
  margin-top: 8px;
}

/* 2. About */
.about__image {
  width: 72%;
}

.about__title {
  width: 63.455%;
}

.about__text {
  width: 87.455%;
}

/* 3. Intro */
.intro__content {
  width: 45%;
}

.intro__title {
  width: 54.364%;
}

.intro__text {
  width: 87.455%;
}

/* 4. Learn – slides per view switch at 767px and 1024px */
.learn .carousel {
  --slides: 1;
}

@media (min-width: 767px) {
  .learn .carousel {
    --slides: 2;
  }
}

@media (min-width: 1024px) {
  .learn .carousel {
    --slides: 3;
  }
}

.learn__title,
.testimonials__title {
  width: 57.31%;
  text-align: center;
}

/* 7. Benefits */
.benefits__title,
.bonus__title {
  width: 79.647%;
}

.benefits__text {
  width: 94.71%;
}

/* 9. Bonus */
.bonus__content {
  row-gap: 7px;
}

.bonus__title {
  color: #f1c55f;
}

.bonus__text {
  width: 59.544%;
  color: var(--color-white);
}

/* 10. Call to action */
.cta {
  background-image: url("../assets/images/bg-04-min.png");
}

.cta__title {
  width: 76.182%;
}

.cta__note {
  width: 66.727%;
  font-size: 12px;
}

.cta__image {
  width: 94.724%;
}

/* 11. Guarantee */
.guarantee__image {
  width: 72%;
}

.guarantee__title {
  width: 74.364%;
}

.guarantee__text {
  width: 87.455%;
}

/* Desktop only (>= 1025px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .hero {
    --pad-y: 20%;
  }

  .about {
    --pad-x: 0px;
    --pad-y: 60px;
  }

  .intro {
    --pad-x: 13%;
    --pad-y: 10%;
  }
}

/* Tablet (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section {
    --pad-x: 45px;
    --pad-y: 45px;
  }

  .hero {
    --pad-top: 698px;

    background-image: url("../assets/images/secao-01-m-min.png");
    background-position: top center;
  }

  .hero__content {
    width: 100%;
  }

  .hero__logo,
  .hero__action {
    text-align: center;
  }

  .hero__title {
    width: 677.067px;
    text-align: center;
  }

  .hero__text {
    width: 675.183px;
    text-align: center;
  }

  .intro__media,
  .cta__media {
    justify-content: center;
  }

  .intro__image {
    width: 341.55px;
  }
}

/* Mobile (<= 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .section {
    --pad-x: 30px;
    --pad-y: 30px;
  }

  /* Wrapping also lets fixed-width blocks keep their own width on narrow screens */
  .section__inner,
  .col,
  .card,
  .bonus-card {
    flex-wrap: wrap;
  }

  .section-heading .heading {
    width: 305.3px;
    max-width: 100%;
  }

  .col--half,
  .intro__content {
    width: 100%;
  }

  .col--center-mobile {
    align-items: center;
  }

  .hero {
    --pad-top: 354px;
  }

  .hero .section__inner,
  .hero__content {
    align-items: center;
  }

  .hero__title {
    width: 329.15px;
    margin-top: 15px;
  }

  .hero__text {
    width: 301.05px;
  }

  .hero__action {
    margin-top: 0;
  }

  .about__title,
  .guarantee__title,
  .guarantee__text,
  .cta__text,
  .cta__note,
  .cta__action {
    text-align: center;
  }

  /* Stacked order: intro shows the image first, benefits the text first */
  .intro__content {
    order: 1;
  }

  .benefits__content {
    order: -1;
  }

  .intro__title,
  .benefits__title,
  .bonus__title {
    width: 199.3px;
    text-align: center;
  }

  .learn__header {
    width: 272.15px;
  }

  .learn__title {
    width: 202.3px;
  }

  .testimonials .section__inner {
    align-items: center;
  }

  .testimonials__header {
    width: 287.15px;
  }

  .testimonials__title {
    width: 222.3px;
  }

  .carousel--reviews {
    width: 300.15px;
  }

  .bonus__text {
    width: 211.8px;
    text-align: center;
  }

  .cta__title {
    width: 244.417px;
    text-align: center;
  }
}
