:root {
  font-size: 16px;
  --primary-color: #1d3f9b;
  --secondary-color: #ef1820;
  --max-screen-width: 1536px;
}

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

body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

header {
  max-width: var(--max-screen-width);
  margin: 0 auto;
}

li {
  list-style: none;
}

a {
  color: black;
  text-decoration: none;
}

/* -------------- NAVBAR ----------------------- */
.navbar {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  margin-top: 10px;
}

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

.nav-branding {
  display: flex;
}

.nav-company-name {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
}

.nav-branding img {
  align-self: start;
  width: 60px;
  height: auto;
  margin: 10px 5px 0 0;
}

.nav-branding a {
  font-size: 2rem;
  font-weight: 700;
}

.nav-branding p {
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 5px;
}

.nav-btn {
  background-color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 5px;
  color: white;
}

.nav-link {
  transition: 0.7s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-menu li:last-child a:hover {
  color: white;
  background-color: var(--secondary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--secondary-color);
}

/* -------------- ABOUT ----------------------- */

.about-container {
  padding: 0 1.5rem;
  max-width: var(--max-screen-width);
  margin: 3rem auto;
  display: flex;
  gap: 2rem;
}

.about-description {
  display: flex;
  flex-direction: column;
}

.about-description p {
  line-height: 2;
  font-size: 1rem;
}

.about-container a {
  font-size: 1.2rem;
  align-self: flex-start;
  background-color: var(--primary-color);
  color: white;
  padding: 0.3rem 1.8rem;
  margin-top: 1rem;
  border-radius: 0.4rem;
  transition: 0.3s ease-in;
}

.about-container a:hover {
  background-color: var(--secondary-color);
}

.about-container img {
  align-self: start;
  width: 50vw;
  border-radius: 2rem;
}

/* -------------- SERVICES ----------------------- */
#services {
  background-color: var(--primary-color);
  margin: 3rem auto;
}

.services-container {
  max-width: var(--max-screen-width);
  text-align: center;
  margin: 0 auto;
  padding: 2rem 0;
}

#services .section-title {
  padding: 1rem 0 2.5rem 0;
}

.card-container {
  display: flex;
  row-gap: 1rem;
  column-gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 2.5rem;
}

.card {
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
  border-radius: 1rem;
  width: 30rem;
  align-items: center;
}

.card h3 {
  align-self: center;
}

.card p {
  align-self: center;
  width: 80%;
}

.card-logo {
  width: 3rem;
  margin: 1rem 0;
}

.card-img {
  width: 30rem;
  align-self: center;
  margin: 1rem 0;
}

.is-hidden {
  display: none;
}

/* -------------- CONTACT  US ----------------------- */
#contactus {
  background-color: var(--primary-color);
  margin: 4rem auto 3rem;
}

.contactus-container {
  max-width: var(--max-screen-width);
  margin: 0 auto;
  text-align: center;
  color: white;
  padding: 2rem 0;
}

.contact-description {
  margin: 2rem;
}

.contact-info {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  width: 3rem;
}

.contact-description p {
  margin: 1rem;
}

#contactus a {
  color: white;
}

/* -------------- FOOTER ----------------------- */
footer {
  display: block;
  width: 100vw;
  text-align: center;
  margin: 0 auto;
  padding: 1rem;
}

footer p {
  font-size: 0.8rem;
}

.footer-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  margin-top: 1rem;
}

.footer-icon {
  width: 2rem;
}

@media screen and (max-width: 768px) {
  /* -------------- NAVBAR ----------------------- */
  .nav-branding img {
    display: none;
  }

  .nav-company-name a {
    font-size: 1.5rem;
    flex: content;
  }

  .nav-company-name p {
    display: none;
  }

  .hamburger {
    display: block;
  }

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

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

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

  .nav-menu {
    position: fixed;
    left: -100%;
    background-color: var(--secondary-color);
    color: white;
    top: 80px;
    gap: 0;
    flex-direction: column;
    width: 100vw;
    text-align: center;
    transition: 0.3s;
  }

  .nav-item {
    margin: 16px 0;
  }

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

  .nav-btn {
    padding: 0;
    background: none;
  }

  .nav-link {
    color: white;
  }

  .nav-link:hover {
    color: white;
  }

  /* -------------- ABOUT ----------------------- */
  .about-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .about-container img {
    width: 85vw;
    align-self: center;
  }

  .about-container a {
    align-self: center;
  }

  /* -------------- SERVICES ----------------------- */
  .card {
    width: 85vw;
  }

  .card-img {
    width: 85vw;
  }

  .card p {
    width: 100%;
  }

  /* -------------- CONTACT  US ----------------------- */
  .contact-info {
    flex-direction: column;
  }
}

#gallery {
  line-height: 0;
  -webkit-column-gap: 0px;
  -moz-column-gap: 0px;
  column-gap: 0px;
}

#gallery .gallery-img {
  width: 100% !important;
  height: auto !important;
  padding: 1px;
}

@media (min-width: 1024px) {
  #gallery {
    -webkit-column-count: 4;
    -moz-column-count: 4;
    column-count: 4;
  }
}

@media (min-width: 601px) and (max-width: 1023px) {
  #gallery {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
  }
}

/* Mobile Screens */
@media (max-width: 600px) {
  #gallery {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
  }
}

#contact-us-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  border-radius: 10px;
  z-index: 10;
  background-color: white;
  width: 80vw;
  max-width: 80%;
  padding: 2rem;
}

#contact-us-popup.active {
  transform: translate(-50%, -50%) scale(1);
}

#contact-us-popup-close-btn {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: 3rem;
  font-weight: 400;
  color: var(--secondary-color);
  position: absolute;
  top: -15px;
  right: 5px;
  transition: 200ms ease-in-out;
  padding: 0.25rem;
}

#overlay {
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 640px) {
  #contact-us-popup-info {
    display: block;
  }

  .popup-contact-item {
    margin: 1rem 0;
  }
}

@media (min-width: 640px) {
  #contact-us-popup-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
  }
}

#contact-us-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  transition: 200ms ease-in-out;
  background-color: var(--primary-color);
  color: white;
}

.popup-contact-item:hover {
  scale: 1.1;
}

.popup-contact-item svg {
  width: 1rem;
  height: 1rem;
}

#pet-card-img-container {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

#pet-card-img-container img {
  margin: 0;
  padding: 0;
}
