@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap");

/* reusable variables */
:root {
  --main-black: #0a0a0a;
  --main-white: #fafafa;
  --main-gray: #5e6572;
  --secondary-gray: #d4d4d4;
  --main-green: #32d583;
  --secondary-green: #052e16;
  --main-gold: #e6b774;
  --secondary-gold: #d8a24f;
  --main-button-colour: #e6b774;
  --secondary-button-colour: #d8a24f;
  --main-label-colour: #ad6e00;
}

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

html {
  scroll-behavior: smooth;
}

/* removes defauled outline */
body * {
  outline: 0;
}
/* adds highlight on focus */
body *:focus {
  outline: solid var(--main-black) 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
label,
button {
  font-family: "Instrument Sans", sans-serif;
}

h1 {
  color: var(--main-black);
  font-size: 4.5rem;
}

h2 {
  color: var(--main-black);
  font-size: 3.75rem;
}

h3 {
  color: var(--main-black);
  font-size: 3rem;
}

h4 {
  color: var(--main-black);
  font-size: 2.25rem;
}

h5 {
  color: var(--main-black);
  font-size: 1.75rem;
}

h6 {
  color: var(--main-black);
  font-size: 1.25rem;
}

label,
p {
  color: var(--main-gray);
  font-size: 1.25rem;
}

a {
  color: var(--main-gray);
  text-decoration: none;
  font-family: "Instrument Sans", sans-serif;
}

a:hover {
  color: var(--main-button-colour);
}

input {
  background-color: #fff;
  border: 1px solid var(--secondary-gray);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
}

button {
  background-color: var(--main-button-colour);
  border: none;
  border-radius: 100px;
  color: var(--main-black);
  cursor: pointer;
  font-family: "Instrument Sans", sans-serif;
  font-size: 1rem;
  padding: 10px;
}

button:hover {
  scale: 1.1;
}

/** Custom Global Classes **/

/*navbar*/
.nav-container {
  align-items: center;
  background-color: #181818;
  border-radius: 100px;
  display: flex;
  flex-direction: row;
  height: 82px;
  justify-content: space-between;
  padding: 0 16px;
  position: fixed;
  top: 16px;
  left: 20%;
  width: 60%;
  z-index: 1000;
}

.homepage-link {
  align-items: center;
  color: var(--main-white);
  display: flex;
  gap: 8px;
}

.homepage-link img {
  height: 36px;
  width: 40px;
}

.nav-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  list-style-type: none;
  width: 30%;
}

.nav-link {
  color: var(--main-white);
}

.mobile-consult-button,
.consult-button {
  background-color: var(--main-button-colour);
  border-radius: 100px;
  color: var(--main-black);
  padding: 12px 8px;
}

.mobile-consult-button:hover,
.consult-button:hover {
  color: var(--main-black);
  cursor: pointer;
  scale: 1.1;
}

.open-nav-button {
  display: none;
}

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

.close-nav-button {
  display: none;
}

/*footer*/
.footer-container,
.footer-description-container,
.footer-links-container,
.footer-site-links,
.footer-contact-links {
  display: flex;
}

.footer-container {
  align-items: center;
  background-color: var(--main-white);
  flex-direction: row;
  height: auto;
  justify-content: space-between;
  max-width: 100%;
  padding: 100px;
  width: 100vw;
}

.footer-description-container {
  flex-direction: column;
  gap: 8px;
  max-width: 350px;
}

.footer-homepage-link {
  align-items: center;
  color: var(--main-black);
  display: flex;
  font-weight: 600;
  gap: 8px;
  max-width: 250px;
}

.footer-homepage-link:hover {
  color: var(--main-gray);
}

.footer-homepage-link img {
  height: 42px;
  width: 48px;
}

.footer-site-links a,
.footer-contact-link,
.footer-description-container p {
  color: #1c202a;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4rem;
}

.footer-links-container {
  flex-direction: row;
  gap: 64px;
}

.footer-site-links,
.footer-contact-links {
  flex-direction: column;
  gap: 4px;
}

.footer-site-links a:hover,
.footer-contact-links a:hover {
  color: var(--main-gray);
}

.footer-contact-link {
  display: flex;
  gap: 8px;
}

/** Media Queries **/
@media only screen and (max-width: 1024px) {
  .nav-container {
    left: 10%;
    width: 80%;
  }

  .footer-container {
    padding: 50px;
  }

  .footer-description-container {
    max-width: 250px;
  }

  .footer-links-container {
    gap: 32px;
  }
}

@media only screen and (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  h6 {
    font-size: 1rem;
  }

  label,
  p {
    font-size: 1rem;
  }

  /*mobile navbar*/
  .nav-list {
    display: none;
  }

  .consult-button {
    display: none;
  }

  .open-nav-button {
    background-color: transparent;
    color: var(--main-white);
    display: initial;
    font-size: 1.5rem;
    margin-right: 8px;
  }

  .mobile-nav-container {
    align-items: center;
    background-color: #181818;
    display: none;
    height: 100vh;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    list-style: none;
    padding: 5%;
    position: fixed;
    top: -100%;
    right: 0;
    transition: top 0.5s ease-in;
    width: 100vw;
    z-index: 1000;
  }

  .close-nav-button {
    position: fixed;
    top: 32px;
    right: 32px;
  }

  .mobile-consult-button {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
  }

  .mobile-logo-link {
    margin-top: 64px;
  }

  .mobile-nav-container a {
    font-size: 2rem;
    font-weight: 500;
  }

  /*footer*/
  .footer-container {
    flex-direction: column;
    justify-content: center;
    gap: 64px;
  }

  .footer-description-container {
    align-items: center;
    gap: 32px;
    justify-content: center;
    max-width: none;
  }

  .footer-description-container p {
    text-align: center;
  }

  .footer-links-container {
    gap: 64px;
  }
}

@media only screen and (max-width: 450px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  h5 {
    font-size: 1rem;
  }

  .homepage-link {
    font-size: 0.9rem;
  }

  .mobile-logo-link img {
    height: 52px;
    width: 64px;
  }

  .mobile-logo-link a {
    gap: 16px;
    width: min-content;
  }

  .footer-container {
    padding: 16px;
  }

  .footer-description-container p {
    text-align: left;
  }

  .footer-site-links,
  .footer-contact-links {
    gap: 6px;
  }

  .footer-links-container {
    gap: 16px;
  }

  .footer-contact-link {
    word-break: break-all;
  }
}

/**************************
*       ANIMATIONS        *
/**************************/
.title-pop-animation {
  animation: title-pop 1s ease-in-out;
}

@keyframes title-pop {
  from,
  0% {
    scale: 1;
  }

  50% {
    scale: 1.05;
  }

  to,
  100% {
    scale: 1;
  }
}