:root {
  --primary-color: #ae8f53;
  --secondary-color: #3a4854;
  --card-color: #f3eee5;
  --white-color: #fff;
  --background-color: #f3eee5;
  --max-width: 1300px;
  --pattern-white: url('assets/pattern-white.svg');
  --card-radius: 150px;
  --base-font-size: 16px;
}

@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: var(--white-color);
  background-image: var(--pattern-white);
}

html {
  --width: min(0.3906vw, 7.5px);
  font-size: calc(var(--base-font-size) + var(--width));
}

h1 {
  font-size: 1.7rem;
}
h2 {
  font-size: 1.5rem;
}
p {
  font-size: 1.1rem;
}

/* #region MARK: Common */

/* Gradient Card */
.gradient-card {
  padding-block: 2em;
  margin: auto;
  max-width: var(--max-width);
  border-radius: var(--card-radius);
  background: linear-gradient(to bottom, var(--card-color) 0%, transparent 50%, var(--card-color) 116%);
  transition: border-radius 0.2s;
  overflow: clip;
}

/* Header Image */
.header-img-container {
  display: grid;
  justify-items: center;
  width: 40%;
  margin: auto;
}
.header-img-container img {
  grid-area: 1 / 1;
  padding-top: 3em;
  width: 100%;
  height: auto;
  opacity: 0;
  animation: puff-in-top 0.5s 0.3s cubic-bezier(0.47, 0, 0.745, 0.715) forwards;
}
.header-img-container .egg {
  grid-area: 1 / 1;
  width: 100%;
  height: 65%;
  border-radius: 220px;
  background: linear-gradient(to top, var(--primary-color) 0%, #e0d3b9 100%);
  opacity: 0;
  animation: slide-in-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.header-img-container .egg p {
  color: var(--white-color);
  text-align: center;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  opacity: 0;
  animation: text-focus-in 0.7s 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}
.header-img-container .dom {
  grid-area: 1 / 1;
  width: 120%;
  height: 70%;
  border-top-left-radius: 500px;
  border-top-right-radius: 500px;
  background: linear-gradient(to bottom, #ffffff 40%, #00000000 100%);
  align-self: end;
  opacity: 0;
  animation: slide-in-bottom 0.5s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Dots */
.dots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-block: 2em;
  gap: 0.8em;
  opacity: 0;
  animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}
.dots div {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* Numbered Card */
.numbered-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 80%;
  margin: 50px auto;
}
.numbered-cards-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 2em;
}
.numbered-card {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  padding: 0.4rem;
  border-radius: 12px;
  background-color: var(--card-color);
}
.numbered-card p {
  line-height: 1.5;
  margin: 0;
}
.numbered-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.numbered-card .numbered-card-num {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 8px;
  padding: 0.6rem;
}
.numbered-card .numbered-card-num p {
  font-weight: 900;
  font-size: 1.8rem;
}
.numbered-card .numbered-card-title {
  flex: 1;
  color: var(--secondary-color);
  border: solid 2px var(--primary-color);
  border-radius: 8px;
  padding: 0.6rem;
}

/* Whatsapp button */
.contact-us {
  text-align: center;
  margin-block: 1em;
}
.contact-us p {
  margin: 0;
  color: var(--secondary-color);
}
.whatsapp-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  max-width: 500px;
  margin: auto;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 16px;
  text-align: center;
  margin-top: 1em;
  padding: 0.5em 1em;
  cursor: pointer;

  transform: scale(1);
  transition: transform 0.2s;
}

/* Footer */
.footer-image {
  display: grid;
  width: 100%;
}
.footer-image img {
  grid-area: 1 / 1;
  height: auto;
  width: 100%;
  margin: auto;
}
.footer-image .gradient {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Links */
.links-container {
  grid-area: 1 / 1;
  align-self: baseline;
  justify-self: center;
  margin-top: 10%;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 0.8em;
  border-radius: 200px;
}
.links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1em;
}
.links svg {
  width: 2.4em;
  height: 2.4em;
  fill: var(--primary-color);
}
.links .link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-button:hover {
    transform: scale(1.01);
  }
}

@media screen and (max-width: 800px) {
  :root {
    --base-font-size: 14px;
    --card-radius: 40px;
  }
  .header-img-container img {
    padding-top: 5em;
  }
  .numbered-cards-container {
    max-width: 90%;
  }
}
@media screen and (max-width: 600px) {
  .gradient-card {
    padding-inline: 1em;
  }
  .header-img-container {
    width: 100%;
  }
  .header-img-container .egg {
    width: 70%;
  }
  .header-img-container .dom {
    width: 90%;
  }
  .numbered-cards-container {
    max-width: unset;
  }
  .numbered-cards-row {
    flex-direction: column;
    gap: 1em;
  }
}

/* #endregion */

/* #region MARK: First section */

.first-section {
  padding-block: 2em;
  padding-inline: 1em;
}

.first-section .container {
  display: flex;
  flex-direction: row;

  padding-block: 2em;
  padding-left: 2em;

  margin: auto;
  max-width: var(--max-width);
  border-radius: var(--card-radius);
  background-color: var(--card-color);
  transition: border-radius 0.2s;
  overflow: clip;
}

.first-section .img-container {
  flex: 1;
  display: grid;
  align-items: center;
}

.first-section .img-container img {
  grid-area: 1 / 1;
  margin-top: 6%;
  margin-bottom: 6%;
  margin-block: 6%;
  width: 80%;
  height: auto;
  opacity: 0;
  animation: slide-in-right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.first-section .img-container .img-background {
  grid-area: 1 / 1;
  margin-right: 24%;
  width: 50%;
  height: 90%;
  border-top-left-radius: calc(var(--card-radius) - 10px);
  border-top-right-radius: calc(var(--card-radius) - 10px);
  background: linear-gradient(to bottom, #ae8f53 0%, #00000000 90%);
  transition: border-radius 0.2s;
}

.first-section .text-container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1em;
  flex: 1.2;
}

.first-section .text-container h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin: 0;
  max-width: 500px;
}
.first-section .text-container hr {
  width: 70%;
  margin: 0;
  border: none;
  background-color: var(--primary-color);
  height: 1px;
}
.first-section .text-container h2 {
  color: var(--primary-color);
  margin: 0;
}
.first-section .text-container p {
  color: var(--secondary-color);
  margin: 0;
  max-width: 500px;
}

@media screen and (max-width: 800px) {
  .first-section .img-container img {
    width: 90%;
  }
  .first-section .img-container .img-background {
    width: 60%;
    margin-right: 20%;
  }
}
@media screen and (max-width: 600px) {
  .first-section .container {
    flex-direction: column;
    padding-left: 0;
    padding: 1em;
  }
  .first-section .img-container img {
    width: 100%;
  }
  .first-section .img-container .img-background {
    margin-right: unset;
    place-self: center;
    width: 100%;
    height: 100%;
  }
  .first-section .text-container {
    text-align: center;
    margin-bottom: 30px;
  }
  .first-section .text-container hr {
    width: 100%;
  }
}

/* #endregion */

/* #region MARK: Second section */

.second-section {
  padding-block: 2em;
  padding-inline: 1em;
}

.second-section .container .title {
  color: var(--secondary-color);
  text-align: center;
  margin-top: 0;
}

.second-section .desc {
  max-width: 700px;
  margin: auto;
}
.second-section .desc p {
  color: var(--secondary-color);
  text-align: center;
  margin: 0;
}
.second-section .desc .sub {
  color: var(--primary-color);
  font-weight: bold;
}

.second-section .subtitle {
  color: var(--secondary-color);
  text-align: center;
  max-width: 600px;
  margin: auto;
}

/* #endregion */

/* #region MARK: Third section */

.third-section {
  padding-block: 2em;
  padding-inline: 1em;
}

.third-section .container .title {
  color: var(--secondary-color);
  text-align: center;
  margin-top: 0;
}

.third-section .desc {
  max-width: 700px;
  margin: auto;
}
.third-section .desc p {
  color: var(--secondary-color);
  text-align: center;
  margin: 0;
}
.third-section .desc .sub {
  color: var(--primary-color);
  font-weight: bold;
}

.third-section .subtitle {
  color: var(--secondary-color);
  text-align: center;
  max-width: 80%;
  margin: auto;
}

.third-section .star-cards-container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin: auto;
  margin-block: 80px;
  max-width: 90%;
  gap: 1em;
}
.third-section .star-card {
  flex: 1;
  border: solid var(--primary-color) 1px;
  border-radius: 32px;
  padding: 6px;
  background-color: #fff;
  box-shadow: 0px 0px 20px 7px rgba(174, 143, 83, 0.1);
}
.third-section .star-card-inner {
  border-radius: 24px;
  padding: 0.5em 2em;
  background: linear-gradient(to bottom, var(--gradient-color) 0%, transparent 100%);
}
.third-section .start-card-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.third-section .start-card-img img {
  height: auto;
  width: 100px;
  opacity: 0;
  animation: slide-in-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.third-section .star-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.third-section .star-card-text .class {
  color: var(--secondary-color);
  margin: 0;
}
.third-section .star-card-text .count {
  color: var(--primary-color);
  font-weight: bold;
  margin: 0;
}

@media screen and (max-width: 600px) {
  .third-section .star-cards-container {
    max-width: unset;
  }
}

/* #endregion */

/* #region MARK: Fourth section */

.fourth-section {
  padding-block: 2em;
  padding-inline: 1em;
}

.fourth-section .container .title {
  color: var(--secondary-color);
  text-align: center;
  margin-top: 0;
}

.fourth-section .desc {
  max-width: 700px;
  margin: auto;
}
.fourth-section .desc p {
  color: var(--secondary-color);
  text-align: center;
  margin: 0;
}
.fourth-section .desc .sub {
  color: var(--primary-color);
  font-weight: bold;
}

.fourth-section .subtitle {
  color: var(--secondary-color);
  text-align: center;
  max-width: 80%;
  margin: auto;
}

/* #endregion */

/* #region MARK: Fifth section */

.fifth-section {
  padding-block: 2em;
  padding-inline: 1em;
}

.fifth-section .container .title {
  color: var(--secondary-color);
  text-align: center;
  margin-top: 0;
}

.fifth-section .desc {
  max-width: 700px;
  margin: auto;
}
.fifth-section .desc p {
  color: var(--secondary-color);
  text-align: center;
  margin: 0;
}
.fifth-section .desc .sub {
  color: var(--primary-color);
  font-weight: bold;
}

.fifth-section .subtitle {
  color: var(--secondary-color);
  text-align: center;
  max-width: 80%;
  margin: auto;
}

/* #endregion */

/* #region MARK: Animations */
.fade-scroll {
  opacity: 0;
}
@keyframes slide-in-right {
  0% {
    transform: translateX(1000px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes puff-in-top {
  0% {
    transform: scale(2);
    transform-origin: 50% 0%;
    opacity: 0;
  }
  100% {
    transform: scale(1);
    transform-origin: 50% 0%;
    opacity: 1;
  }
}
@keyframes text-focus-in {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}
@keyframes slide-in-bottom {
  0% {
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes tracking-in-contract {
  0% {
    gap: 8em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    gap: 0.8em;
    opacity: 1;
  }
}
/* #endregion */
