:root {
  --milk: #FFFAF6;
  --latte: #CFB69E;
  --chocolate: #67482C;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@font-face {
  font-family: 'Michal';
  src: url('assets/Michal.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('assets/fonts/IBMPlexSansHebrew-Thin.woff2') format('woff2'), url('assets/fonts/IBMPlexSansHebrew-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('assets/fonts/IBMPlexSansHebrew-ExtraLight.woff2') format('woff2'), url('assets/fonts/IBMPlexSansHebrew-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('assets/fonts/IBMPlexSansHebrew-Light.woff2') format('woff2'), url('assets/fonts/IBMPlexSansHebrew-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('assets/fonts/IBMPlexSansHebrew-Regular.woff2') format('woff2'), url('assets/fonts/IBMPlexSansHebrew-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('assets/fonts/IBMPlexSansHebrew-Medium.woff2') format('woff2'), url('assets/fonts/IBMPlexSansHebrew-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('assets/fonts/IBMPlexSansHebrew-SemiBold.woff2') format('woff2'), url('assets/fonts/IBMPlexSansHebrew-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Hebrew';
    src: url('assets/fonts/IBMPlexSansHebrew-Bold.woff2') format('woff2'), url('assets/fonts/IBMPlexSansHebrew-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/*
 * This normalization section was partially
 * taken from Tailwind's preflight.css
 */

/* Prevent padding and border from affecting element width.*/

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

/*
1. Set font family for the whole site
2. Prevent adjustments of font size after orientation changes in iOS.
3. Disable tap highlights on iOS
*/

html {
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  font-weight: 400;
  letter-spacing: 0.11em;
  -webkit-text-size-adjust: 100% /* 2 */
  -webkit-tap-highlight-color: transparent; /* 3 */
}

body {
  margin: 0;
  background-color: var(--milk);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button {
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  /* Remove the inheritance of text transform in Edge and Firefox. */
  text-transform: none;
  /* Correct the inability to style clickable types in iOS and Safari. */
  -webkit-appearance: button;
  letter-spacing: 0.11em;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Add the correct font weight in Edge and Safari. */

b, strong {
  font-weight: bolder;
}

/* END */

header {
  display: none;
}

#intro {
  display: flex;
  position: relative;
  height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1.39;
  font-weight: 500;
  font-family: 'IBM Plex Sans Hebrew', sans-serif;
  font-size: 2.0rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--chocolate);
  background-image: url('assets/Michal-18.webp');
  background-size: 550%;
  background-position: 35% 93%;
  background-repeat: no-repeat;
  z-index: 1;
}

#intro p {
  margin-bottom: 10%;
}

#intro button {
  border: 0;
  padding: 12px 20px;
  background-color: var(--milk);
  transition: background-color 0.3s;
  font-size: 1.1rem;
  color: var(--chocolate);
}

#intro button:hover {
  background-color: var(--latte);
  color: var(--milk);
}

#about {
  display: flex;
  background-color: var(--milk);
  flex-direction: column;
  height: auto;
  padding: 0vh 8vw;
  align-items: center;
}

#about img {
  width: 100%;
  margin-top: 3vh;
  margin-bottom: 3vh;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.20);
}

.about-container {
  text-align: center;
  align-self: center;
  margin-bottom: 2.5vh;
  color: var(--chocolate);
}

.about-container h1 {
  font-family: 'Michal';
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  margin: 0.5em 0;
}

.about-container p {
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  line-height: 1.83;
  margin-bottom: 1.6em;
}

.about-container button {
  background-color: var(--milk);
  color: var(--chocolate);
  padding: 11px 30px;
  border: 1px solid #000;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 1%;
  font-size: 0.95rem;
}

.about-container button:hover {
  background-color: var(--latte);
  color: var(--milk);
  border-color: var(--latte);
}

#services {
  height: auto;
  padding: 10vh 8vw;
  background-color: var(--latte);
}

#services h2 {
  margin: 0 0 6vh 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chocolate);
  font-weight: 500;
  font-size: 1.2em;
  grid-column: 1 / -1;
  font-size: 1.7rem;
}

#services p {
  font-size: 1.0rem;
  line-height: 1.83;
  font-weight: 500;
  margin-bottom: 1.6em;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 5vh;
  text-align: center;
  background-color: var(--latte);
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--chocolate);
  grid-column: span 1;
  padding: 0 2vw;
  font-size: 1.4rem;
  line-height: 1.83;
  gap: 2vh;
}

.service .sparkle {
  width: 20vw;
  height: 10vh;
  background-image: url('assets/Sparkle.png');
  background-size: cover;
  background-position: center;
}

#reviews {
  display: grid;
  position: relative;
  grid-template-columns: 0.5fr 2fr 0.5fr;
  grid-template-rows: 10% 90%;
  align-items: center;
  background-color: var(--milk);
  padding: 8vh 2vw;
  height: 70vh;
}

#reviews h2 {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--chocolate);
  font-weight: 500;
  font-size: 1.7rem;
  grid-column: 1 / -1;
  padding: 0 0;
  margin-bottom: 5vh;
}

#reviews button {
  display: none;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 2;
  padding-bottom: 14vh;
}

#reviews p {
  font-size: 1.0rem;
  line-height: 1.83;
  margin-bottom: 1.6em;
}

.reviews-carousel {
  grid-column: 2;
  display: flex;
  position: relative;
  height: 100%;
}

.review {
  display: flex;
  position: absolute;
  width: 90vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100%;
  color: var(--chocolate);
  font-size: 1.4rem;
  line-height: 1.83;
  padding: 0.7vh 2.1vw;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.review.active {
  opacity: 1;
}

.stars {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 1vh;
}

.stars svg {
  width: 5.0vw;
  height: auto;
  fill: var(--latte);
}

#prev {
  grid-column: 1;
}

#next {
  grid-column: 3;
}

#fyi {
  display: flex;
  background-image: url('assets/fyi-background.webp');
  background-size: 195%;
  background-position: 90% 100%;
  background-repeat: no-repeat;
  height: 90vh;
  padding-top: 10vh;
  align-items: center;
  text-align: center;
  color: var(--milk);
  flex-direction: column;
  position: relative;
  z-index: 1;
}

#fyi h1 {
  width: 100%;
  font-family: 'Michal';
  font-weight: 500;
  margin: 0.3em 0;
  font-size: 5.0rem;
}

#fyi::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.fyi-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.fyi-container p {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  font-weight: 500;
  margin: 0 0;
  max-width: 58vw;
  line-height: 1.4;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
}

.fyi-container p.active {
  opacity: 1;
}

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 6vh 0vw;
  background-color: var(--latte);
}

#contact h2 {
  color: var(--chocolate);
  font-size: 1.0rem;
  letter-spacing: 1.5px;
}

#contact .nav {
  display: none;
  grid-column: 1;
  font-size: 1.4rem;
  line-height: 1.83;
  padding: 3vh 20vw 3vh 0vw;
}

#contact .nav ul {
  list-style-type: none;
  text-decoration: none;
  padding: 0;
}

#contact .nav ul li {
  margin: 0;
}

#contact .nav ul li a {
  font-size: 1.0rem;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: var(--chocolate);
}

#contact .nav ul li a:hover {
  text-decoration: underline;
}

#contact .contact {
  order: 1;
  font-size: 1.4rem;
  width: 100%;
  padding: 0;
  line-height: 2.5;
}

#contact .contact p {
  font-size: 1.0rem;
  letter-spacing: 1.5px;
  margin: 0;
  color: var(--chocolate);
}

#contact .logo {
  order: 2;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#contact .logo img {
  width: 50vw;
  object-fit: cover;
}

#contact .logo button {
  padding: 1.2vh 1.6vw;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: var(--chocolate);
  background-color: var(--milk);
  border: 0 solid #000;
  transition: background-color 0.3s, color 0.3s;
}

#contact .logo button:hover {
  background-color: var(--chocolate);
  color: var(--milk);
}

#contact iframe {
  padding-top: 3.5vh;
  padding-right: 14vw;
}

#copyright {
  display: flex;
  max-height: 3vh;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

#copyright p span {
  font-weight: 600;
}

/* Mobile drawer */
.hamburger-menu {
  display: block;
  font-size: 3.3rem;
  color: var(--chocolate);
  cursor: pointer;
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 1001;
}

.mobile-drawer {
  display: none;
  position: fixed;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--milk);
  z-index: 1000;
}

.mobile-drawer img {
  width: 60vw;
  margin: 0;
}

.mobile-drawer nav {
  display: block;
  height: 100%;
}

.mobile-drawer nav ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-drawer nav ul li {
  margin: 20px 0;
}

.mobile-drawer nav ul li a {
  text-decoration: none;
  color: var(--chocolate);
  font-size: 1.5rem;
  font-weight: 500;
}

.mobile-drawer.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 2vh;
  animation: slideDown 0.5s ease-out forwards;
}

.mobile-drawer.inactive {
  display: flex;
  animation: slideUp 0.5s ease-out forwards;
}

/* Very large screens (i.e., iMac, large monitors) */
@media screen and (min-width: 1024px) {
  nav {
    display: flex;
    align-items: center;
    height: 100%;
  }
  nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style-type: none;
    gap: 4vw;
  }
  nav ul li a {
    text-decoration: none;
    color: var(--chocolate);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }
  nav ul li a:hover {
    text-decoration: underline;
  }
  header {
    display: flex;
    position: fixed;
    top: 0px;
    right: 0px;
    height: 13vh;
    width: 100vw;
    max-height: 134px;
    padding: 0 4vw;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s;
    justify-content: space-between;
    font-size: 1.3rem;
    z-index: 1000;
  }
  header.scrolled {
    background-color: var(--milk);
  }
  header img {
    width: 18vw;
    margin-left: 21.0vw;
    object-fit: cover;
  }
  header button {
    padding: 1.2vh 1.6vw;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    border: 0;
    background-color: var(--latte);
    transition: background-color 0.3s;
    color: var(--milk);
  }
  header button:hover {
    background-color: var(--chocolate);
    color: var(--milk);
  }
  #intro {
    background-size: 110%;
    background-position: 90% 50%;
    background-repeat: no-repeat;
  }
  #intro p {
    margin-bottom: 2%;
  }
  .intro-content {
    max-width: 100%;
    z-index: 2;
  }
  #intro button {
    padding: 1.2vh 1.6vw;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }
  #about {
    display: grid;
    height: 95vh;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10vw;
  }
  #about img {
    grid-column: 2;
    width: 100%;
  }
  .about-container {
    grid-column: 1;
  }
  #services {
    height: 65vh;
    padding: 16vh 14vw 11vh 14vw;
  }
  #services p {
    font-size: 1.0rem;
    line-height: 1.78;
    font-weight: 500;
  }
  .services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 6vw;
  }
  .service .sparkle {
    width: 6vw;
    height: 12vh;
  }
  #reviews {
    grid-template-rows: 0.35fr 1fr;
    height: 80vh;
    padding: 13vh 18vw 11vh 18vw;
  }
  #reviews h2 {
    padding: 0 0 6vh 0;
  }
  #reviews button {
    display: flex;
  }
  #reviews p {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }
  .review {
    width: 100%;
  }
  .stars svg {
    width: 1.2vw;
  }
  #prev {
    display: block;
    grid-column: 1;
  }
  #next {
    display: block;
    grid-column: 3;
  }
  #fyi {
    background-size: cover;
    background-position: center;
    height: 100vh;
    padding-top: 35vh;
  }
  #contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    column-gap: 5vw;
    padding: 6vh 0vw 6vh 0vw;
  }
  #contact .nav {
    display: block;
    text-align: right;
    grid-row: 1;
  }
  #contact .contact {
    grid-column: 3;
    grid-row: 1;
    line-height: 1.83;
    padding: 3vh 0vw 3vh 0vw;
    text-align: right;
  }
  #contact .contact p {
    margin: 1rem 0;
  }
  #contact .logo {
    grid-column: 2;
    grid-row: 1;
  }
  #contact .logo img {
    width: 20vw;
  }
  #contact iframe {
    padding-top: 1.8vh;
    padding-right: 0;
  }
  #copyright {
    font-size: 0.8rem;
  }
  .hamburger-menu {
    display: none;
  }
}
