* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

:root {
  --header-height: 4.5rem;
  --base-color: #1d7065;
  --base-color-second: #e8f1f0;
  --base-color-alt: #145048;
  --title-color: #111111;
  --text-color: #4a4a4a;
  --text-color-light: #ffffff;
  --body-color: #ffffff;
  --title-font-size: 1.875rem;
  --subtitle-font-size: 1rem;
  --title-font: 'Poppins', sans-serif;
  --body-font: 'Cooper Hewitt', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem var(--body-font), sans-serif;
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialised;
}

.title {
  font: 700 var(--title-font-size) var(--title-font), sans-serif;
  color: var(--title-color);
  -webkit-font-smoothing: auto;
}

.button {
  background: linear-gradient(135deg, var(--base-color) 0%, var(--base-color-alt) 100%);
  color: var(--text-color-light);
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  border-radius: 0.25rem;
  font: 500 1rem var(--body-font), sans-serif;
  box-shadow: 0 4px 15px hsla(140, 30%, 65%, 0.4);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.button:hover {
  background: linear-gradient(135deg, var(--base-color-alt) 0%, var(--base-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px hsla(140, 30%, 65%, 0.6);
}

.divider-1 {
  height: 2px;
  background: linear-gradient(270deg, var(--base-color), var(--base-color-second));
}

.divider-2 {
  height: 2px;
  background: linear-gradient(-270deg, var(--base-color), var(--base-color-second));
}

.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: calc(5rem + var(--header-height)) 0;
}

.section .title {
  margin-bottom: 1rem;
}

.section .subtitle {
  font-size: var(--subtitle-font-size);
}

.section header {
  margin-bottom: 4rem;
}

.section header strong {
  color: var(--base-color);
}

#header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
  display: flex;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
}

#header.scroll {
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
  font: 700 1.31rem var(--title-font), sans-serif;
  color: var(--title-color);
}

.logo span {
  color: var(--base-color);
}

.logo-alt span {
  color: var(--body-color);
}

nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  transition: color 0.3s;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--base-color);
}

nav ul li a::after {
  content: '';
  width: 0%;
  height: 2px;
  background: var(--base-color);

  position: absolute;
  left: 0;
  bottom: -1.5rem;

  transition: width 0.2s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav .menu {
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  transition: 0.2s;
}

nav .menu ul {
  display: none;
}

nav.show .menu {
  opacity: 1;
  visibility: visible;

  background: var(--body-color);

  height: 100vh;
  width: 100vw;

  position: fixed;
  top: 0;
  left: 0;

  display: grid;
  place-content: center;
}

nav.show .menu ul {
  display: grid;
}

nav.show ul.grid {
  gap: 4rem;
}

.toggle {
  color: var(--base-color);
  font-size: 1.5rem;
  cursor: pointer;
}

nav .icon-close {
  visibility: hidden;
  opacity: 0;

  position: absolute;
  top: -1.5rem;
  right: 1.5rem;

  transition: 0.2s;
}

nav.show div.icon-close {
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}

#home {
  overflow: hidden;
}

#home .container {
  margin: 0;
}

#home .image {
  position: relative;
}

#home .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--base-color-second);
  position: absolute;
  top: -8%;
  left: 8%;
  z-index: 0;
}

#home .image img {
  position: relative;
  right: -1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#home .image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#home .image img,
#home .image::before {
  border-radius: 0.25rem;
}

#home .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  text-align: center;
}

#home .text h1 {
  margin-bottom: 1rem;
}

#home .text p {
  margin-bottom: 2rem;
}

#about {
  background: white;
}

#about .container {
  margin: 0;
}

#about .image {
  position: relative;
}

#about .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--base-color-second);
  position: absolute;
  top: -8.3%;
  left: -33%;
  z-index: 0;
}

#about .image img {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about .image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#about .image img,
#about .image::before {
  border-radius: 0.25rem;
}


#about .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  align-self: center;
}

#services {
  padding-top: 6rem;
  padding-bottom: 7rem;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

#services header {
  margin-bottom: 0;
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cards .grid {
  gap: 1.5rem;
}

.card {
  padding: 3.625rem 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--base-color);
  border-radius: 0.25rem 0.25rem 0 0;
  text-align: center;
}

.card i {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 5rem;
  color: var(--base-color);
}

.card .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-img {
  width: 100%;
  max-width: 300px;
  border-radius: 1rem;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.service-images img {
  width: 30%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.service-images img:hover {
  transform: scale(1.03);
}

#testimonials {
  background: white;
}

#testimonials .container {
  margin-left: 0;
  margin-right: 0;
}

#testimonials header {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 0;
}

#testimonials blockquote {
  padding: 2rem;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  background-color: var(--base-color-second);
  border-left: 6px solid var(--base-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials blockquote:hover {
  transform: translateY(-10px);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.08);
}

#testimonials blockquote p {
  position: relative;
  text-indent: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--title-color);
}

#testimonials blockquote p span {
  font: 700 3rem serif;
  position: absolute;
  top: -0.875rem;
  left: -1.875rem;
  color: var(--base-color);
}

#testimonials cite {
  display: flex;
  align-items: center;
  font-style: normal;
  color: var(--title-color);
}

#testimonials cite img {
  height: 2rem;
  width: 2rem;
  object-fit: cover;
  clip-path: circle();
  margin-right: 0.5rem;
}

.swiper-slide {
  height: auto;
  padding: 4rem 1rem;
}

.swiper-pagination-bullet-active {
  background: var(--base-color);
}

#contact .grid {
  gap: 4rem;
}

#contact p {
  margin-bottom: 2rem;
}

#contact .button i,
#contact ul li i {
  font-size: 1.5rem;
  margin-right: 0.625rem;
}

#contact ul.grid {
  gap: 2rem;
}

#contact ul li {
  display: flex;
  align-items: center;
}

#contact ul li i {
  color: var(--base-color);
}

footer {
  background: var(--base-color);
}

footer.section {
  padding: 4rem 0;
}

footer .logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

footer .brand,
footer .schedule {
  align-self: flex-end;
}

footer .brand p,
footer .schedule p {
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
}

footer .brand p:last-child,
footer .schedule p:last-child {
  margin-bottom: 0;
}

footer .schedule h3 {
  color: var(--text-color-light);
  margin-bottom: 1rem;
  font-family: var(--title-font);
}

footer i {
  font-size: 1.5rem;
  color: var(--text-color-light);
}

footer .social {
  grid-auto-flow: column;
  width: fit-content;
}

footer .social a {
  transition: 0.3s;
  display: inline-block;
}

footer .social a:hover {
  transform: translateY(-5px);
  font-size: 2rem;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 hsla(140, 30%, 65%, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px hsla(140, 30%, 65%, 0);
  }

  100% {
    box-shadow: 0 0 0 0 hsla(140, 30%, 65%, 0);
  }
}

.back-to-home {
  background: linear-gradient(135deg, var(--base-color) 0%, var(--base-color-alt) 100%);
  color: var(--text-color-light);
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  font-size: 1.5rem;
  padding: 0.5rem;
  clip-path: circle();
  visibility: hidden;
  opacity: 0;
  transition: 0.3s, transform 0.3s;
  transform: translateY(150%);
}

.back-to-home:hover {
  transform: translateY(-5px);
}

.back-to-home.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  animation: pulseGlow 2s infinite;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 10rem 0;
  }

  .section header,
  #testimonials header {
    max-width: 70rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .button {
    height: 3.125rem;
  }

  nav .menu {
    opacity: 1;
    visibility: visible;
    top: 0;
  }

  nav .menu ul {
    display: flex;
    gap: 2rem;
  }

  nav .menu ul li a.title {
    font: 400 1rem var(--body-font), sans-serif;
    -webkit-font-smoothing: antialised;
  }

  nav .menu ul li a.title.active {
    font-weight: bold;
    -webkit-font-smoothing: auto;
  }

  nav .icon-menu {
    display: none;
  }

  main {
    margin-top: var(--header-height);
  }

  #home .container {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
  }

  #home .image {
    order: 1;
  }

  #home .text {
    order: 0;
    max-width: 24rem;
    text-align: left;
  }

  #about .container {
    grid-auto-flow: column;
    margin: 0 auto;
    align-items: start;
  }

  #about .image {
    margin-top: 3rem;
  }

  #about .text {
    margin-top: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  #testimonials .container {
    margin-left: auto;
    margin-right: auto;
  }

  #contact .container {
    grid-auto-flow: column;
    align-items: center;
  }

  #contact .text {
    max-width: 25rem;
  }

  footer.section {
    padding: 3.75rem 0;
  }

  footer .container {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }

  footer .logo {
    font-size: 2.25rem;
  }
}

.swiper-slide img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}



@media (min-width: 992px) {
  :root {
    --title-font-size: 2.25rem;
    --subtitle-font-size: 1.125rem;
  }

  main {
    margin-top: var(--header-height);
  }

  #home .container {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
  }

  #home .image {
    order: 1;
  }

  #home .text {
    order: 0;
    max-width: 24rem;
    text-align: left;
  }

  #about .container {
    grid-auto-flow: column;
    margin: 0 auto;
    align-items: start;
  }

  #about .image {
    margin-top: 3rem;
  }

  #about .text {
    margin-top: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  #testimonials .container {
    margin-left: auto;
    margin-right: auto;
  }

  #contact .container {
    grid-auto-flow: column;
    align-items: center;
  }

  #contact .text {
    max-width: 25rem;
  }

  footer.section {
    padding: 3.75rem 0;
  }

  footer .container {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }

  footer .logo {
    font-size: 2.25rem;
  }
}


@media (max-width: 991px) {

  #home .text,
  #about .text {
    order: -1;
  }

  #home .image,
  #about .image {
    margin-top: 3rem;
  }

  /* Fix home image overflow on mobile */
  #home .image img {
    right: 0;
  }

  #home .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Adjust decorative ::before elements so they don't overflow on mobile */
  #home .image::before {
    top: -5%;
    left: 4%;
  }

  #about .image::before {
    top: -5%;
    left: -15%;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 762px) {

  .testimonials .swiper-wrapper {
    flex-direction: column !important;
    transform: none !important;
    width: 100% !important;
  }

  .testimonials .swiper-slide {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1rem;
  }

  .testimonials .swiper-pagination {
    display: none !important;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}