@import url("https://fonts.googleapis.com/css2?family=Alice&family=Oxygen:wght@300;400;700&family=Playfair+Display:wght@400;600;800&display=swap");

:root {
  --primary-color: #71D9E2;
  --primary-color-light: #B9E4E8;
  --primary-color-dark: #325F63;
  --primary-color-muted: #58A9B0;
  --primary-color-darkest: #506263;
  --secondary-color: #ff9980;
  --secondary-color-light: #ffeeea;
  --secondary-color-dark: #b34e36;
  --secondary-color-darker: #ab3011;
  --background-color-white: #fffafa;
  --color-black-opaque:rgba(0, 0, 0, 0.05);
  --color-black-opaque-more:rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(340deg, #325F63, #71D9E2 170%);
  --instagram-background: -webkit-linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

/* universal styles */

body {
  margin: auto;
  font-family: "Oxygen", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.02rem;
  background-color: var(--background-color-white);
  /* background-image: url(./assets/images/light-grey-terrazzo.png); */
  background-repeat: repeat;
  background-blend-mode: lighten;
}

.noscroll {
  height: 100%;
  overflow: hidden;
}

h1,
h2 {
  font-family: "Alice", "Times New Roman", Times, serif;
  letter-spacing: 0.05rem;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  color: var(--primary-color-dark);
  font-size: 2.4rem;
  font-weight: 400;
}

h3 {
  color: var(--primary-color-muted);
}

p {
  color: var(--primary-color-darkest);
}

hr {
  margin: 20px 160px;
  height: 1px;
  border: none;
  background-color: var(--primary-color-dark);
}

.padding {
  padding: 20px 60px 20px 120px;
}

.container {
  max-width: 100vw;
}

img {
  max-width: 100%;
  max-height: 100%;
}

.shadow {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

input:focus,
select:focus {
  outline: none;
  border-radius: 3px;
  box-shadow: 0 0 0 3px var(--primary-color-light);
}

/* flex styles */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.wrapper {
  justify-content: center;
  align-items: center;
}

/* button styles */

.button {
  font-family: "Oxygen", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.button:active {
  box-shadow: 0 0 0 3px var(--primary-color);
}

.btn-light:hover {
  background-color: var(--primary-color-muted);
  color: var(--background-color-white);
}

.btn-light {
  background-color: var(--background-color-white);
  color: var(--primary-color-dark);
  border: none;
}

.btn-dark {
  background-color: var(--primary-color-muted);
  color: var(--background-color-white);
  border: none;
}

.btn-dark:hover {
  background-color: var(--background-color-white);
  color: var(--primary-color-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--background-color-white);
  border: solid var(--background-color-white);
}

.btn-outline:hover {
  background-color: var(--background-color-white);
  color: var(--primary-color-dark);
  border: solid var(--background-color-white);
}

.btn-outline:active {
  background-color: var(--background-color-white);
  color: var(--primary-color-dark);
  border: solid var(--primary-color-light);
}

.btn-second {
  background-color: var(--secondary-color-dark);
  color: var(--secondary-color-light);
  border: var(--secondary-color-dark);
}

.btn-second:hover {
  background-color: var(--secondary-color-darker);
}

.expand-text {
  border: none;
  padding: 8px;
  font-size: 0.9rem;
  color: var(--primary-color-muted);
  text-align: center;
}

.expand-text:hover {
  color: var(--primary-color-dark);
  min-height: auto;
}

/* to top button */

#to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px;
  height: 20px;
  width: 20px;
  color: var(--primary-color-dark);
  background-color: var(--background-color-white);
  opacity: 0.6;
  border: none;
  border-radius: 50%;
  z-index: 100;
  cursor: pointer;
  transition: 0.3s;
}

#to-top span {
  font-size: 1.2rem;
  font-weight: 700;
}

#to-top:hover {
  color: var(--primary-color-light);
  background-color: var(--primary-color-muted);
  opacity: 1;
  bottom: 26px;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  height: calc(var(--vh,1vh)*100);
  width: 100vw;
  z-index: 100;
  transition: all 0.3s ease-out;
}

#modal-specials {
  background-color: var(--secondary-color-dark);
  text-align: center;
  padding: 20px 40px;
  max-height: 75vh;
  max-height: calc(var(--vh, 1vh)*75);
  max-width: 75vw;
}

#modal-specials h2, #modal-specials p {
  color: var(--secondary-color-light);
}

#modal-specials h2 {
  margin-bottom: 6px;
}

#modal-specials h3 {
  color: var(--secondary-color);
  margin-bottom: 3px;
}

#modal-specials a {
  text-decoration: none;
  color: var(--background-color-white);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 12px;
  transition: 0.2s;
}

#modal-specials a:hover {
  color: var(--secondary-color)
}

.overlay {
  position: fixed;
  z-index: -1;
  height: 100vh;
  height: calc(var(--vh,1vh)*100);
  width: 100vw;
  background: var(--color-black-opaque-more);
  backdrop-filter: blur(3.5px);
}

/* nav header */

#navigation {
  position: relative;
  height: 140px;
  background: linear-gradient(
    340deg,
    var(--primary-color-dark),
    var(--primary-color) 170%
  );
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  overflow: hidden;
}

#logo {
  position: relative;
  /* background-color: red */
}

#logo > object {
  position: absolute;
  left: -50px;
  padding: 0;
  margin: 0;
}

#logo h1 {
  color: var(--primary-color);
  line-height: 2.2rem;
  text-align: center;
  /* filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)); */
  z-index: 2;
}

#logo span {
  color: var(--primary-color-light);
  padding-left: 1.2rem;
}

#logo span.sub {
  font-family: 'Oxygen', Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
}

#nav-links > ul {
  list-style: none;
  padding-left: 10px;
}

.link {
  display: inline-block;
  text-transform: uppercase;
  padding: 10px;
}

.link > a {
  text-decoration: none;
  color: var(--primary-color-light);
  font-size: 1rem;
  font-weight: 400;
  transition: 0.2s;
  cursor: pointer;
}

.link > a:hover {
  color: var(--primary-color-muted);
}

.icon {
  color: var(--primary-color-light);
  margin: 10px;
  font-size: 35px;
}

.icon:hover {
  transition: 0.2s;
}

a #instagram-icon:hover {
  background: var(--instagram-background);
  -webkit-background-clip: text;
  animation: 0.2s ease-in forwards fadeInHover;
}

@keyframes fadeInHover {
  0% {
    -webkit-text-fill-color: rgb(204, 255, 238, 1);
  }
  20% {
    -webkit-text-fill-color: rgb(204, 255, 238, 0.8);
  }
  40% {
    -webkit-text-fill-color: rgb(204, 255, 238, 0.6);
  }
  60% {
    -webkit-text-fill-color: rgb(204, 255, 238, 0.4);
  }
  60% {
    -webkit-text-fill-color: rgb(204, 255, 238, 0.2);
  }
  100% {
    -webkit-text-fill-color: rgb(204, 255, 238, 0);
  }
}

a #facebook-icon:hover {
  color: #3b5998;
}

/* main */

#main-container {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 220px);
}

#main-title {
  flex: 0.6;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

#main-title > h1 {
  color: var(--primary-color-light);
  font-size: 5rem;
  margin-bottom: 0;
}

#main-title > h2 {
  color: var(--primary-color-light);
  font-size: 2rem;
}

#main-title > p {
  color: var(--background-color-white);
  margin-right: 20px;
}

#main-btn-about {
  margin-right: 20px;
}

#main-image {
  position: absolute;
  flex: 1;
  background-color: var(--secondary-color-light);
  z-index: -1;
}

#main-image > img {
  height: 100%;
  min-width: 1080px;
  filter: contrast(40%);
  mix-blend-mode: darken;
}

/* welcome */
#welcome-container p > span {
  font-weight: 500;
}

#treatments-list-container {
  background: var(--gradient-primary);
  margin: 25px 0;
  padding: 20px;
  max-width: 90vw;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  border-radius: 12px;
}

#treatments-list {
  flex: 1;
  width: 100%;
}

#treatments-list-container h3 {
  color: var(--background-color-white)
}

.grid-box {
  position: relative;
  margin: 20px;
  padding: 12px;
  border-radius: 6px;
  width: 210px;
  height: 40px;
  font-weight: 500;
  background-color: var(--primary-color-light);
  transition: 0.6s;
}

.grid-box:hover {
  transform: scale(105%);
}

.grid-box > object {
  opacity: 0.2;
}

.grid-box p {
  position: absolute;
  top: 2px;
  left: 35px;
  z-index: 1;
  text-align: left;
}

/* about */

#about-content {
  /* background-color: red; */
  overflow: hidden;
}

#about-text {
  flex: 1;
  /* background-color: blue; */
}

#about-image {
  flex: 1;
  min-width: 540px;
  max-height: 80svh;
  overflow: hidden;
}

#about-image img {
  width: 1080px;
  filter: contrast(40%);
  mix-blend-mode: darken;
}

#about-profile {
  padding-top: 60px;
}

#profile {
  margin: 40px 80px;
  padding: 20px 20px 20px 20px;
  width: 80vw;
  height: fit-content;
  border-radius: 12px;
  background: var(--primary-color-dark);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

#profile-content {
  position: relative;
  height: fit-content;
  width: 100%;
  padding: 60px;
}

#profile-content h2 {
  color: var(--primary-color-muted);
  font-size: 2.5rem;
}

#profile-content p {
  color: var(--background-color-white);
}

#profile-text {
  flex: 1;
}

#welcome-image {
  flex: 1;
  max-height: 300px;
  max-width: 300px;
  min-height: 300px;
  min-width: 300px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  margin: 20px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  overflow: hidden;
}

#welcome-image > img {
  width: 100%;
  padding-top: 210px;
  transform: rotate(4deg)
}

#profile-image {
  flex: 1;
  max-width: 400px;
  margin: 0 40px 0 40px;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--secondary-color-light);
}

#profile-image > img {
  width: 100%;
  mix-blend-mode: multiply;
}

#association-seal {
  max-width: 200px;
  max-height: 200px;
  background-color: transparent;
}

/* contact */

#email-icon {
  padding: 25px;
  background-color: var(--color-black-opaque);
  border: solid 1.6px #325F63;
  border-radius: 1.2px;
}

#email-icon span {
  margin-left: 12px;
}

#email-link {
  text-decoration: none;
}

#email-link:hover {
  background-color: var(--secondary-color-light);
  transition: 0.3s ease-in-out;
}

.contact-link {
  color: var(--primary-color-dark);
}

.form-color-dark {
  --bg-color: var(--primary-color-darkest);
  --header-color: var(--primary-color-light);
  --input-border: var(--background-color-white);
  --input-text: var(--primary-color-light);
  --placeholder-color: var(--primary-color-light);
  --select-bg: var(--primary-color-dark);
  --label-text: var(--background-color-white);
}

.form-color-light {
  --bg-color: var(--background-color-white);
  --header-color: var(--primary-color-dark);
  --input-border: var(--primary-color-darkest);
  --input-text: var(--primary-color-darkest);
  --placeholder-color: var(--primary-color-dark);
  --select-bg: var(--primary-color-light);
  --label-text: var(--primary-color-darkest);
}

#contact-form {
  width: 60vw;
  height: fit-content;
  background-color: var(--bg-color);
  border-radius: 6px;
  padding: 40px;
  margin-bottom: 60px;
}

#contact-form h2 {
  color: var(--header-color);
  font-size: 3rem;
  text-align: center;
  line-height: 0.2rem;
}
#contact-form p {
  font-size: 1rem;
  font-weight: 700;
}

.icon-small {
  margin-right: 0.6rem;
  color: var(--header-color);
}

#contact-form input[type="text"], textarea, 
label,
select {
  font-family: "Oxygen", Arial, Helvetica, sans-serif;
  margin: 12px;
}

#contact-form input[type="text"], textarea,
select {
  height: 40px;
  border: none;
  border-bottom: solid 1px var(--input-border);
  background-color: var(--bg-color);
  color: var(--input-text);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  padding: 0.6rem;
  transition: 0.3s;
}

#contact-form > input[type="text"]::placeholder {
  color: var(--placeholder-color);
  opacity: 0.6;
}

#contact-form select {
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  background: var(--bg-color);
}

#contact-form > p,
label {
  font-weight: 300;
  color: var(--label-text);
}

#contact-form button {
  margin-top: 30px;
  max-width: fit-content;
}

#contact-form #message {
  padding: 0 0 40px 0;
  resize: vertical;
}

#contact-form #mobile {
  display: none;
}

/* footer */

#footer {
  background-color: var(--primary-color-dark);
  height: 80px;
  overflow: hidden;
}

#footer h1 {
  font-size: 1.2rem;
}

#footer a {
  text-decoration: none;
  color: var(--primary-color-light);
}

#footer p {
  color: var(--primary-color-light);
}

/* Card scrollbar styling */

/* backgrounds */

.card-bg {
  background-repeat: none;
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.bg-image-hand {
  background-image: url('assets/images/hands-1327811_1280.jpg');
}

.bg-image-foot {
  background-image: url('./assets/images/foot-massage-2277450_1920.jpg');
}

.bg-image-pregnant {
  background-image: url('assets/images/pregnant-5749676_1280.jpg');
}

.bg-image-back {
  background-image: url('assets/images/woman-567021_1280.jpg');
}

.bg-image-head {
  background-image: url('./assets/images/head-650878_1280.jpg');
}

#treatments-container {
  max-width: 1400px;
  padding: 20px;
  margin: none;
  text-align: left;
  /* background-color: red; */
}

#treatments-container h2 {
  text-align: center;
}

.cards {
  padding: 15px 0px;
  list-style: none;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
}

.card {
  flex: 0 0 80%;
  max-width: 300px;
  min-height: 400px;
  padding: 20px 20px 40px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 15%);
  scroll-snap-align: start;
  transition: all 0.3s;
  background-color: var(--primary-color-darkest);
}

.card:not(:last-child) {
  margin-right: 10px;
}

.card:hover {
  outline: var(--primary-color-light) 3px;
}

.card .card-title {
  font-size: 1.4rem;
  color: var(--background-color-white);
}

.card .card-content {
  margin: 20px 0;
  max-width: 85%;
}

.card .card-content > h4 {
  color: var(--primary-color-light)
}

.card .card-content > p {
  color: var(--background-color-white);
  text-align: left;
}

.card .card-link {
  text-decoration: none;
}

.cards::-webkit-scrollbar {
  height: 6px;
}

.cards::-webkit-scrollbar-thumb,
.cards::-webkit-scrollbar-track {
  border-radius: 92px;
}

.cards::-webkit-scrollbar-thumb {
  background: var(--primary-color-muted);
  max-width: 30px;
}

.cards::-webkit-scrollbar-track {
  background: var(--color-black-opaque);
}

#specials-button {
  width: fit-content;
}

@media screen and (max-width: 840px) {

  p, h2, h3 {
    text-align: center;
    word-spacing: 0.2rem;
  }

  .padding {
    padding: 20px 40px;
  }

  #logo {
    left: 15px;
  }

  #main-title {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  #main-buttons {
    justify-content: center;
  }

  #navigation {
    transition: 0.2s;
  }

  #nav-links, #nav-button, #nav-socials {
    width: 100%;
    margin-top: 20px;
  }

  #nav-socials {
    flex-direction: column;
  }

  #nav-links {
    text-align: center;
  }

  .link {
    display: block;
    padding-left: 0;
    margin-bottom: 20px;
  }

  .card {
    max-width: 250px;
  }

  .card h3 {
    text-align: left;
  }

  #icon {
    position: absolute;
    top: 60px;
    right: 20px;
    cursor: pointer;
  }

  #icon div {
      height: 6px;
      width: 50px;
      background-color: var(--primary-color-light);
      margin: 0 5px 0 5px;
      border-radius: 10px;
      transition: 0.3s ease-in-out;
  }

  #icon div:nth-child(1) {
      position: relative;
      top: 10px;
  }

  #icon div:nth-child(2) {
      position: relative;
      top: 20px;
  }

  #icon div:nth-child(3) {
      position: relative;
      top: 14px;
  }

  #icon div:nth-child(4) {
      position: relative;
      top: 24px;
  }

  #icon div:nth-child(5) {
      position: absolute;
      background-color: transparent;
      top: 0;
      height: 50px;
  }

  #icon.active div:nth-child(1) {
      top: 20px;
      opacity: 0;
  }

  #icon.active div:nth-child(2) {
      position: relative;
      transform: rotate(45deg);
  }

  #icon.active div:nth-child(3) {
      position: relative;
      transform: rotate(-45deg);
  }

  #icon.active div:nth-child(4) {
      top: 20px;
      opacity: 0;
  }

  .mobile-scroll {
    flex-direction: column;
    overflow: scroll;
    max-height: fit-content;
    max-width: 100dvw;
    padding: none;
    margin: auto;
  }

  #welcome .mobile-scroll {
    max-height: 200px;
  }

  #treatments .mobile-scroll {
    max-height: 600px;
  }

  #treatment-cards {
    padding: 15px;
    margin: none;
  }

  #footer {
    flex-direction: column;
  }

  #footer #logo {
    display: none;
  }

  #footer a, #footer p {
    font-size: 0.8rem;
  }

  #to-top {
    color: var(--primary-color-light);
    background-color: var(--primary-color-muted);
    opacity: 0.2;
  }
}

@media screen and (max-width: 550px) {

  html {
    height: 100%;
    width: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
  }

  p {
    font-size: 1rem;
  }

  .padding {
    padding: 15px;
  }

  #navigation {
    height: 70px;
  }

  #logo {
    top: -25px;
  }

  #logo h1 {
    position: relative;
    font-size: 1.8rem;
    line-height: 1.6rem;
    left: 45px;
  }

  #logo h1 .sub {
    font-size: 1rem;
  }

  #logo > object {
    left: -15px
  }

  #icon {
    top: 20px;
  }

  #main-title > h1 {
    font-size: 3rem;
  }

  #main-title > h2 {
    font-size: 1.4rem;
  }

  #profile {
    margin: 15px;
    width: 80vw;
    align-content: center;
  }
  
  #profile-content {
    position: relative;
    height: fit-content;
    width: 100%;
    padding: 15px;
  }

  #profile-image {
    min-width: 300px;
  }

}