:root {
  --primary-color: #2257b5;
  --text-color: #333333;
  --logo-size: 40px;
  --header-y-padding: 0.5em;
  --header-height: calc(var(--logo-size) + var(--header-y-padding) * 2);
  --nav-background-color: #ffffff;
  --blue-gradient: linear-gradient(135deg, #0f1c45, #2257b5, #6c9eff, #a9baff);
}

* {
  font-family: 'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  padding-top: var(--header-height);
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
}

@keyframes show {
  0% {
    opacity: 0;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scaleBounce {
  0%,
  100% {
    transform: scale(0.985);
  }
  50% {
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
}

.reveal.show {
  animation: show 1s ease-in-out both;
}

/* -------------------------- */
/* -------- misc -------- */
/* -------------------------- */
.language-switch {
  width: 56px;
  height: 30px;
  background: var(--blue-gradient);
  background-size: 200% 200%;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-position 0.1s;
  overflow: hidden;
}
.language-switch::before {
  font-size: 14px;
  line-height: 30px;
  position: absolute;
  top: 0;
}
.language-switch[data-lang='pt']::before {
  content: '🇧🇷';
  right: 7px;
}
.language-switch[data-lang='en']::before {
  content: '🇺🇸';
  left: 7px;
}

.language-switch::after {
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.1s;
}
.language-switch[data-lang='pt']::after {
  left: 2px;
}
.language-switch[data-lang='en']::after {
  left: 28px;
}

.btn-download {
  padding: 0.25em 1em 0.25em 0.75em;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  background: black;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.btn-download > i {
  width: 40px;
  height: 40px;
  font-size: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-download--google > i {
  font-size: 22px;
}

.download-platforms {
  display: flex;
  gap: 1em;
}
.download-platforms a > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.download-platforms a > div :first-child {
  font-size: 0.6rem;
  white-space: nowrap;
}
.download-platforms a > div :last-child {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

.social-networks {
  display: flex;
  gap: 1em;
}
.social-networks a {
  font-size: 1.5rem;
  color: var(--text-color);
}

/* -------------------------- */
/* -------- main-nav -------- */
/* -------------------------- */
.main-nav {
  width: 100%;
  padding: var(--header-y-padding) 0;
  background-color: var(--nav-background-color);
  position: fixed;
  top: 0;
  z-index: 10;
  transition: box-shadow 0.5s;
}
.main-nav--shadow {
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}
.main-nav .container {
  display: flex;
  flex-direction: column;
}
.main-nav a {
  color: var(--text-color);
}
.main-nav__logo {
  margin: 0;
  display: flex;
  align-items: center;
  text-indent: -9999px;
  font-size: 0;
}
.main-nav__logo img {
  display: block;
  height: var(--logo-size);
}
.main-nav__menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}
.main-nav__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}
.main-nav__toggle-btn {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 10px;
  right: 20px;
}

@media (max-width: 767px) {
  .main-nav .container {
    gap: 3em;
  }
  .main-nav__menu-container,
  .main-nav__menu,
  .main-nav__menu li,
  .main-nav__menu a {
    width: 100%;
  }
  .main-nav:has([data-is-opened='true']) {
    bottom: 0;
  }
  .main-nav__menu-container[data-is-opened='false'] {
    display: none;
  }
  .main-nav__menu li {
    display: flex;
  }
  .main-nav__menu a {
    text-align: center;
    padding: 1em 0;
  }
}

@media (min-width: 768px) {
  .main-nav {
    padding: var(--header-y-padding) 0;
    background-color: var(--nav-background-color);
    bottom: unset;
  }

  .main-nav .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .main-nav__menu-container {
    flex-direction: row;
  }

  .main-nav__menu {
    flex-direction: row;
  }

  .main-nav__toggle-btn {
    display: none;
  }
}

/* -------------------------- */
/* ---------- hero ---------- */
/* -------------------------- */
.hero {
  height: 530px;
}
.hero .container {
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.hero__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 2em;
}
.hero__title {
  margin: 0;
  color: var(--primary-color);
  font-weight: 400;
  text-align: center;
}
.hero__subtitle {
  max-width: 450px;
  margin: 0 0 10px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .hero .container {
    align-items: flex-start;
    justify-content: center;
  }
  .hero__info {
    align-items: flex-start;
    margin: 0;
  }
  .hero__title {
    font-size: 1.8rem;
  }
  .hero__subtitle {
    text-align: left;
  }
}

/* -------------------------- */
/* ---------- about --------- */
/* -------------------------- */
.about {
  background-color: #ebebeb;
}
.about > div {
  padding: 2em 0;
}
.about h3 {
  font-weight: 400;
}
.about p {
  font-weight: 300;
}
/* ---------- about callout ---------- */
.about__callout {
  background: var(--blue-gradient);
  background-size: 200% 200%;
  color: white;
}
.about__callout .container {
  position: relative;
}
.about__callout p {
  max-width: 400px;
}
.about__mockup {
  display: block;
  width: 300px;
  margin: -300px auto 0 auto;
  animation: scaleBounce 5s infinite both;
}

@media (min-width: 768px) {
  .about__mockup {
    margin-top: 0;
    position: absolute;
    right: 20px;
    bottom: -2em;
  }
  .about__callout {
    padding: 4em 0 !important;
  }
}

/* ---------- about 01 ---------- */
.about__01 .container {
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.about__01 img {
  width: 100%;
}

@media (min-width: 768px) {
  .about__01 .container {
    flex-direction: row-reverse;
    align-items: center;
  }
  .about__01 img {
    max-width: 400px;
  }
}

/* ---------- about 02 ---------- */
.about__02 {
  background: var(--blue-gradient);
  background-size: 200% 200%;
  color: white;
}
.about__02 .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about__02 img {
  width: 250px;
  transform: rotate(-10deg);
}

@media (min-width: 768px) {
  .about__02 .container:first-of-type {
    flex-direction: row-reverse;
    gap: 2em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  .about__02 img {
    transform: rotate(-25deg);
    margin: -20px 20px -20px 100px;
  }
}

/* ---------- about desktop callout ---------- */
.about__desktop-callout {
  padding-bottom: 0 !important;
}
.about__desktop-callout p {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
}

@media (min-width: 768px) {
  .about__desktop-callout p {
    text-align: center;
    line-height: 2;
  }
}

/* ---------- about 03 ---------- */
.about__03 img {
  width: 100%;
}
@media (min-width: 1050px) {
  .about__03 img {
    --mac-extra-space: 90px;
    width: calc(100% + var(--mac-extra-space) * 2);
    margin: 0 calc(var(--mac-extra-space) * -1);
  }
}
/* ---------- about 4 ---------- */
.about__04 img {
  width: 100%;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* ---------- about 5 ---------- */
.about__05 img {
  width: 100%;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* ---------- about 6 ---------- */
.about__06 img {
  width: 100%;
}
@media (min-width: 1050px) {
  .about__06 img {
    --mac-extra-space: 90px;
    width: calc(100% + var(--mac-extra-space) * 2);
    margin: 0 calc(var(--mac-extra-space) * -1);
  }
}

/* ---------- salon callout ---------- */
.about__salon-callout {
  background: var(--blue-gradient);
  background-size: 200% 200%;
  color: white;
}
.about__salon-callout p {
  max-width: 450px;
}

/* ---------- about 7 (agenda admin web) ---------- */
.salon-admin {
  display: block;
  width: 100%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}
@media (min-width: 1050px) {
  .about__07 .salon-admin {
    --mac-extra-space: 90px;
    width: calc(100% + var(--mac-extra-space) * 2);
    margin: 0 calc(var(--mac-extra-space) * -1);
  }
}

/* ---------- about 8 (agendamento no app) ---------- */
.about__08 .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}
.salon-phones {
  display: flex;
  justify-content: center;
  gap: 1.5em;
}
.salon-phones img {
  display: block;
  width: 240px;
  flex-shrink: 0;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.25));
}
@media (max-width: 767px) {
  .salon-phones {
    flex-wrap: wrap;
  }
}
@media (min-width: 768px) {
  .about__08 .container {
    flex-direction: row-reverse;
    align-items: center;
    gap: 3em;
  }
  .salon-phones img:last-child {
    margin-top: 40px;
  }
}

/* -------------------------- */
/* -------- contact --------- */
/* -------------------------- */
.contact {
  padding: 2em 0;
}
.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}
.contact p {
  margin: 0;
}
.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}
.contact__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

@media (min-width: 768px) {
  .contact .container {
    flex-direction: row;
    justify-content: space-between;
  }
  .contact__info {
    display: flex;
    align-items: flex-start;
  }
  .contact__links {
    align-items: flex-end;
  }
}

/* -------------------------- */
/* --------- footer --------- */
/* -------------------------- */
.footer {
  padding: 1em 0;
  background: var(--blue-gradient);
  background-size: 200% 200%;
  font-size: 0.75rem;
  color: white;
}
.footer .container {
  text-align: center;
}
@media (min-width: 768px) {
  .footer .container {
    display: flex;
    justify-content: space-between;
  }
}
