@import url("./constants.css");

/* Defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body,
html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

li {
  list-style: none;
}
input,
textarea {
  font-size: 16px;
}
textarea {
  line-height: 1.6;
}
a {
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Champ;
}
h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p,
span {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

button {
  font-family: "Inter", sans-serif;
}

/* Navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: var(--color-2);
  padding-bottom: 30px;
}

.hamburger {
  display: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--dark---d500);
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar svg {
  height: 50px;
  fill: var(--dark---d500);
}

.nav-link {
  color: var(--dark---d500);
}

.nav-link:hover {
  color: var(--dark---d900);
  text-decoration: underline;
}

@media only screen and (max-width: 975px) {
  body.nav-open {
    overflow: hidden;
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 5rem;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--dark---d0);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    height: 100%;
    gap: 32px;
    background-image: url("../assets/paw-print.svg");
    background-repeat: no-repeat;
    background-position: top right;
    background-color: var(--color-2);
    z-index: 100;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    color: var(--dark---d500);
    background: none;
    border: none;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Call to action */

.call-to-action-wrapper {
  background-color: var(--color-2);
  text-align: center;
  padding-bottom: 16px;
}

.call-to-action-wrapper > div {
  margin-bottom: 16px;
}

.call-to-action-wrapper h1 {
  margin: 0px 24px 8px 24px;

  color: var(--dark---d900);
}

.call-to-action-wrapper p {
  margin-left: 24px;
  margin-right: 24px;
  font-size: small;
}

/* About me*/

#about-me {
  background: url(../assets/paw-print.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 60%;
  display: flex;
}

.about-me-content-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-me-content-inner img {
  display: none;
}

.about-me-wrapper-content-wrapper {
  margin-left: 24px;
  margin-right: 24px;
}

.about-me-wrapper header h2 {
  color: var(--dark---d900);
  margin-top: 16px;
  margin-bottom: 16px;
}

.about-me-wrapper p {
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-me-wrapper button {
  color: var(--dark---d0);
  background-color: var(--dark);
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
}

.about-me-wrapper button a {
  color: var(--dark---d0);
}

/* Services */

.services-wrapper {
  background-color: var(--helping);
  padding-bottom: 4px;
}

.services-content-wrapper {
  margin-left: 24px;
  margin-right: 24px;
}

.services-wrapper h2 {
  color: var(--dark---d900);
  padding-top: 16px;
  margin-bottom: 16px;
}

.services-wrapper h3 {
  margin-bottom: 8px;
}
.services-wrapper img {
  margin-bottom: 8px;
}

.services-wrapper p {
  margin-bottom: 8px;
}

.services-wrapper a {
  color: var(--dark---d900);
  font-weight: bold;
}

.services-wrapper a:hover {
  text-decoration: underline;
  font-weight: bold;
}

.services-content-wrapper > p {
  color: var(--dark---d0);
}

.services-content-inner {
  display: flex;
  flex-direction: column;
}

.service-card {
  background-color: var(--dark---d0);
  border-radius: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
  text-align: center;
  padding: 24px;
}

/* Areas covered + Contact */

.areas-covered {
  background-color: var(--color-2);
  padding: 24px;
}

.areas-covered h2 {
  margin-bottom: 16px;
}

.areas-covered p {
  margin-bottom: 16px;
}

#map {
  height: 300px;
  width: 100%;
}
/* Reviews */

#reviews {
  margin-left: 24px;
  margin-right: 24px;
}

.reviews-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review {
  background-color: var(--secondary---s30);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.review p a:hover {
  text-decoration: underline;
}

.review blockquote p {
  font-style: italic;
}

.review blockquote p a {
  font-style: normal;
}

.review-header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-header img {
  height: 75px;
  width: 75px;
  border-radius: 75px;
}

.review p {
  margin-bottom: 16px;
}

#reviews header h2 {
  margin-bottom: 24px;
}

#reviews {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Contact form */

.contact-form {
  background-color: var(--color-2);
  padding: 24px;
}

.contact-form .field {
  margin-bottom: 24px;
}

.contact-form input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  display: inline-block;
  border: none;
  background: none;
  border-bottom: solid 1px var(--dark---d100);
  padding-top: 32px;
  outline: none;
}

.contact-form input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-bottom: solid 1px var(--dark---d900);
}

.contact-form input[type="submit"] {
  color: var(--dark---d0);
  background-color: var(--dark);
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
}

.contact-form h2 {
  margin-bottom: 16px;
}

.contact-form label {
  display: inline-block;
}

.happy-tails-logo {
  height: 75px;
}

.floating-messenger {
  position: fixed;
  z-index: 99;
  bottom: 8px;
  right: 4px;
}

.floating-messenger svg {
  height: 75px;
}

@-moz-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
  }

  40% {
    -moz-transform: translateY(-30px);
  }

  60% {
    -moz-transform: translateY(-15px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -webkit-transform: translateY(-30px);
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -o-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -webkit-transform: translateY(-15px);
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -o-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

.bounce {
  -webkit-animation: bounce 2s 2s;
  animation: bounce 2s 2s;
}

.mobile-hide {
  display: none;
}

@media only screen and (min-width: 850px) {
  .reviews-wrapper {
    flex-direction: row;
  }
  .review {
    width: 33%;
  }

  .about-me-wrapper {
    display: flex;
    justify-content: center;
  }
  .about-me-wrapper-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 60%;
    align-items: center;
    justify-content: center;
  }
  .about-me-wrapper-content-wrapper button {
    align-self: flex-start;
  }
  .areas-covered-contact-container {
    padding-left: 56px;
    padding-right: 56px;
    background-color: var(--color-2);
  }
  #reviews {
    padding-left: 56px;
    padding-right: 56px;
  }
}

@media only screen and (min-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
  }
  .nav-menu {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 24px;
  }
  .mobile-hide {
    display: initial;
  }
  .landing-image {
    height: 350px;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
  }
  .call-to-action-wrapper p {
    margin-bottom: 40px;
  }
  .call-to-action-wrapper {
    padding-bottom: 0px;
    background-image: url(../assets/stoke-orange.svg),
      url(../assets/stroke-blue.svg);
    background-position: 5% 0%, 95% 30%;
    background-size: 100px, 100px;
    background-repeat: no-repeat;
  }
  .landing-image {
    margin-bottom: -4px;
  }
  .about-me-content-inner {
    display: flex;
    flex-direction: row;
    gap: 24px;
  }
  .about-me-content-inner img {
    display: inline-block;
    border-radius: 50px;
    height: 400px;
  }
  .services-content-inner {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
  }
  .services-content-wrapper h2 {
    text-align: center;
  }
  .service-card {
    width: 30%;
  }
  .areas-covered-contact-container {
    display: flex;
  }
  .areas-covered-contact-container #locations,
  #contact {
    flex: 1;
  }
  #contact {
    background-color: var(--color-2);
  }
}
