* {
  box-sizing: border-box;
}

/* variables */

:root {
  --pink: #C86BC8;
  --nav-font-size: clamp(14px, 4vw, 20px);
  --page-dependant-color: #ffffff;
  --grey: #343434;
}

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
}

/* standard classes */

.font-bold {
  font-weight: bold;
}

.font-light {
  font-weight: 300;
}

.font-italic {
  font-style: italic;
}

.display-flex {
  display: flex;
}

.display-flex-between {
  display: flex;
  justify-content: space-between;
}

div,
h2,
h3 {
  scroll-margin-top: 80px;
}

/* button styling */

.button {
  background-color: var(--pink);
  font-weight: 600;
  border-radius: 25px;
  height: 40px;
}

.button a {
  text-decoration: none;
  color: white;
}

.button-container {
  margin: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.button:hover {
  transform: scale(103%);
  transition: 0.3s ease;
}

.button:active {
  transform: scale(100%);
  transition: 0.1s ease;
}

/* nav styling */

nav {
  display: flex;
  justify-content: space-between;
  /* space between left and right sections */
  align-items: center;
  /* vertical center */
  padding: 0 18px;
  height: 60px;
  box-sizing: border-box;
  font-family: sans-serif;
  position: fixed;
  z-index: 999;
  width: 100%;
}

nav img {
  width: 80px;
}

/* Left section (logo + link) */
nav>div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  text-decoration: none;
  color: var(--page-dependant-color);
  font-size: var(--nav-font-size);

}

/* Hamburger menu */
#hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

#hamburger span {
  display: block;
  height: 3px;
  background-color: var(--page-dependant-color);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* When active (turn into X) */
#hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);

}

#hamburger.active span:nth-child(2) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* mobile nav */

#mobile-nav {
  width: 100vw;
  height: 100vh;
  background-color: var(--pink);
  position: fixed;
  z-index: 1;
  transform: translateX(100vw);
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#mobile-nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 2rem;
  padding: 15px 0;
}

.nav-open {
  transform: translateX(0) !important;
}

/* hero */

#hero-section {
  background-image: url(img/hero.png);
  background-repeat: no-repeat;
  position: relative;
  height: 60vh;
}

.gradient {
  position: relative;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 25%,
      rgba(0, 0, 0, 0) 75%,
      rgba(0, 0, 0, 0.5) 100%);
}

/* mission statement */

#mission-statement-section {
  background-color: var(--pink);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 300px 20px;
}

#mission-statement-section div {
  color: white;
  padding: 25px;
  margin-top: -200px;
}

#mission-statement-section h2 {
  font-weight: 500;
  margin-bottom: 0px;
}

#mission-statement-section p {
  font-weight: 200;
}

/* services section */

#service-showcase {
  margin: -200px 25px 200px 25px;
  color: white;
}

.service-icons {
  display: flex;
  justify-content: space-between;
}

.service-icons img {
  width: 20px;
}

#service-showcase h3 {
  font-weight: bold;
}

.service-container {
  width: 100%;
  height: 250px;
  border: 3px solid white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 15px;
}

.service-info h4 {
  margin: 0;
}

.service-info p {
  margin: 0px 0 10px;
  font-weight: 100;
  font-size: 0.85rem;
}

/* specific services */

#house-cleaning {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.5) 100%),
    url(img/house-cleaning.jpeg) center / auto 100% no-repeat;
}

#exit-cleaning {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.5) 100%),
    url(img/exit-cleaning.jpeg) center / auto 100% no-repeat;
}

#deep-cleaning {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.5) 100%),
    url(img/exit-cleaning.jpeg) center / auto 100% no-repeat;
}

#air-bnb {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.5) 100%),
    url(img/exit-cleaning.jpeg) center / auto 100% no-repeat;
}

#commerical-cleaning {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.5) 100%),
    url(img/exit-cleaning.jpeg) center / auto 100% no-repeat;
}

#carpet-cleaning {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.5) 100%),
    url(img/exit-cleaning.jpeg) center / auto 100% no-repeat;
}

/* info section */

#info-section {
  background-color: var(--grey);
}

#info-container {
  color: white;
  padding: 200px 25px 0;
}

#cleaning-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

#cleaner-img {
  width: 100%;
  padding: 35px 0 0;
}

.devider-line {
  border-left: 1px solid white;
  margin: 15px;
}

.white-background {
  background-color: white;
  width: 100%;
  height: 50vw;
  margin-top: -50vw;
}

/* reviews section  */

.review-section {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
}

.review-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.review-card {
  background: var(--grey);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  color: white;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.name {
  font-weight: bold;
}

.stars {
  color: #1877f2;
  margin: 5px 0;
}

.review-text {
  line-height: 1.5;
}

.fb-button {
  display: block;
  text-align: center;
  margin-top: 30px;
  padding: 12px;
  background: #1877f2;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.fb-button:hover {
  background: #145dbf;
}

/* footer */

.contact-details p {
  margin: 10px 0;
}

footer hr {
  margin: 35px 0;
}

footer {
  padding: 200px 35px;
  color: white;
  position: relative;
  overflow: hidden;
  background-color: var(--pink);
  z-index: 0;
  /* creates stacking context */
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 10%;

  background-image: url(img/footer-background.png);
  background-size: cover;
  background-position: center;

  z-index: -1;
  /* push behind everything */
}

#footer-content {
  position: relative;
}

footer div a {
  color: white;
  text-decoration: none;
  margin: 10px;
  border-bottom: 1px solid white;
}

@media (min-width: 768px) {

  #hamburger {
    display: none;
  }

  #desktop-nav-links {
    display: inline !important;
  }
  #desktop-nav-links a {
    padding: 0 10px;
  }

  #desktop-nav-links a:hover {
    border-bottom: 1px solid white;
  }

  #hero-section {
    background-size: cover;
    height: 100vh;
  }

  #service-showcase-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns desktop */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
  }

  #info-container {
    max-width: 800px;
    margin: 0 auto;
  }


  footer img {
    max-width: 200px;
  }

}