@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100;400;700&display=swap");

*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

svg,
img {
  height: 100%;
  width: 100%;
}

a {
  -webkit-tap-highlight-color: transparent; /* For iOS and older Android browsers */
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
  line-height: 1.6;
  word-spacing: 0.6px;
}

.facebook-link {
  height: 6rem;
  border-radius: 3rem;
}

/* HEADER START  -----------------------------------------------------------------------------------------------*/

header {
  height: 7.5rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.25px inset lightgrey;
  color: lightgrey;
}

.primary-navigation {
  list-style: none;
  font-size: 15px;
  margin-right: 3rem;
  margin-left: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 4.5rem;
  gap: var(--gap, 10px);
}

.primary-navigation a {
  text-decoration: none;
  color: black;
}

/* LOGO START  -----------------------------------------------------------------------------------------------*/

.logo-wrapper {
  max-height: 123px;
}

.svg-logo {
  max-height: 115px;
  min-width: 200px;
  width: 100%;
  height: 100%;
}

/* Default circle color */
.svg-logo .st0 {
  fill: #5b7492; /* Original blue */
  transition: fill 0.8s ease-in-out;
}

/* Hover color change */
.svg-logo:hover .st0 {
  fill: #aabfda !important; /* New color on hover */
}

/* LOGO END  -----------------------------------------------------------------------------------------------*/

.header-separator {
  color: black;
}

header .primary-navigation a {
  position: relative;
}
header .primary-navigation a:after {
  content: "";
  position: absolute;
  background-color: black;
  height: 1px;
  width: 100%;
  left: 0;
  bottom: -1px;
  background-color: black;
  opacity: 0;
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

header .primary-navigation a:hover:after {
  opacity: 1;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 1017px) {
  .primary-navigation {
    font-size: 11px;
  }

  .svg-logo {
    max-height: 95px;
  }
}

@media (max-width: 845px) {
  .header-separator {
    display: none;
  }
  .primary-navigation {
    position: fixed;
    inset: 0 0 0 40%;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #ebeced;
    padding: min(80vh, 15rem) 2em;
    margin: 0;
    backdrop-filter: blur(1rem);
    transform: translateX(50%);
    margin-right: 1rem;
    z-index: 9999;
  }

  .primary-navigation[data-visible="false"] {
    display: none;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }
  .svg-logo {
    max-height: 95px;
  }
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    z-index: 9999;
    width: 3rem;
    aspect-ratio: 1;
    background: none;
    border: 0;
    top: 2.5rem;
    right: 0.5rem;
  }
  .mail-icon {
    display: none;
  }
}

.contact-top-right {
  position: absolute;
  top: 0;
  right: 0;
  margin: 10px;
  z-index: 1000;
  text-decoration: none;
}

.contact-top-right-a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black; /* Change as needed */
  font-size: 16px; /* Change as needed */
}

.contact-top-right-a:hover:after {
  opacity: 1;
}

.mail-icon {
  margin-right: 10px; /* Space between the icon and text */
  height: 20px;
  fill: #fcefe9; /* Icon color matches the text color */
  text-decoration: none;
}

.mail-icon:hover {
  fill: #cedff0;
}

/* HEADER ENDS  -----------------------------------------------------------------------------------------------*/

/* FOOTER START  -----------------------------------------------------------------------------------------------*/

footer {
  margin-top: auto;
  margin-bottom: 0;
  background: #ebeced;
  /* background: #c9c9c9; */
  /* background: linear-gradient(45deg, rgba(245,245,245,1) 0%, rgba(252,239,233,1) 100%); */
  /* background: linear-gradient(45deg, rgba(209, 204, 192, 1) 0%, rgba(252,239,233,1) 58%, rgba(209, 204, 192, 1) 100%); */
  font-family: "Poppins", sans-serif;
}

footer .secondary-navigation a {
  position: relative;
}
footer .secondary-navigation a:after {
  content: "";
  position: absolute;
  background-color: black;
  height: 1px;
  width: 100%;
  left: 0;
  bottom: -1px;
  opacity: 0;
  background-color: black;
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

footer .secondary-navigation a:hover:after {
  opacity: 1;
}

.footer-titles {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: black;
}

.footer-nav {
  margin-top: 1rem;
  margin-left: 1.5rem;
  margin-right: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 14px;
}

.secondary-navigation {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap, 1rem);
}

#secondary-navigation-first-column {
  margin-left: 3rem;
}

.follow-us {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-right: 2rem;
}

.follow-us-svg {
  text-decoration: none;
  height: 20px;
  margin-top: 1rem;
}

.follow-us-svg:hover {
  fill: #cedff0;
}

.secondary-navigation a {
  text-decoration: none;
  color: black;
}

.copyright-container {
  border-top: 0.25px inset lightgrey;
  margin-top: 1rem;
}

.copyright {
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: 10rem;
}

@media (max-width: 50em) {
  .footer-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .copyright {
    margin-left: 2.5rem;
  }
  #secondary-navigation-first-column {
    margin-left: 0;
  }
  .follow-us {
    margin-right: 0;
  }
}

/* Safari-specific SVG width adjustment */
body.safari .follow-us img {
  width: auto; /* Adjust as needed for Safari */
}

body.safari .primary-header {
  border-bottom: 0.25px inset black;
}

@media (max-width: 845px) {
  body.safari .primary-navigation {
    background: #ebeced;
    z-index: 9999;
  }
}

/* FOOTER ENDS  -----------------------------------------------------------------------------------------------*/

main {
  background: white;
}
