@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap");

:root {
  --primary-white: #eeeeee;
  --primary-black: #141414;
  --dark-grey: #2f2f2f;
  --light-grey: #bababa;
  --light-green: #c8cdbd;
  --grey-see-through: #2f2f2faf;

  --ff-heading: "Libre Baskerville", serif;
  --ff-body: "Lato", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  background: none;
  border-radius: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  color: var(--primary-white);
  font-weight: 400;
}

h1 {
  font-size: 3.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

p,
span,
a,
li {
  font-size: 1rem;
  font-family: var(--ff-body);
  color: var(--primary-white);
}
p {
  line-height: 1.3;
}

.light {
  color: var(--light-green);
}

.dark {
  color: var(--dark-grey);
}

.txt-center {
  text-align: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary-black);

  font-family: var(--ff-heading);
}

.logo {
  height: 2rem;
  width: auto;
}

.menu-link {
  text-transform: uppercase;
  color: var(--primary-white);
  margin-left: 1.5rem;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section {
  width: 100%;
}

.max-width {
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  width: fit-content;
}

.btn-light {
  background: var(--light-green);
  color: var(--primary-black);
}

.btn-dark {
  background: var(--dark-grey);
  color: var(--light-grey);
}

.btn-bordered {
  background-color: transparent;
  border: 1px solid var(--light-grey);
  color: var(--light-grey);
}

.sm-grey {
  color: var(--light-grey);
  font-size: 0.875rem;
}

/* cta */
.cta-sec {
  background-image: url("/assets/images/bg-pattern-dark.png");
  background-color: var(--dark-grey);
  background-size: cover;
  padding: 7.5rem;
}

.cta-wrapper {
  background-color: var(--light-grey);
  padding: 2.5rem;
  > h2,
  h3,
  p {
    color: var(--primary-black);
    margin-bottom: 1rem;
  }
}

footer {
  background-color: var(--dark-grey);
  padding: 2.5rem;
}

.footer-form {
  display: flex;
  gap: 1rem;
}

.email-input {
  padding: 0.75rem 1rem;
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--light-grey);
  color: var(--primary-white);
}

.divider {
  height: 0.5px;
  width: 100%;
  background-color: var(--light-grey);
  margin: 1.5rem 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slogan {
  text-transform: uppercase;
  font-size: 0.5rem;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
}

.footer-nav-left {
  display: flex;
  gap: 5rem;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  > h5 {
    margin-bottom: 0.75rem;
  }

  > a {
    margin-bottom: 0.5rem;
    color: var(--light-grey);
  }
}

.footer-nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 5rem;
  max-width: 480px;
  margin-left: 2.5rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  width: fit-content;

  > h5 {
    margin-bottom: 0.5rem;
    width: fit-content;
  }

  > div {
    width: fit-content;

    > a > img {
      height: 1.5rem;
      width: auto;
      margin-left: 0.25rem;
    }
  }
}

.footer-company-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;

  > img {
    height: 2rem;
    width: auto;
    filter: grayscale(100%);
  }
  > img:hover {
    filter: grayscale(0%);
  }
}

.footer-bottom {
  > p {
    font-size: 0.75rem;
  }
}

/* Floating toast for form submission results */
#result {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--light-green);
  color: var(--primary-black);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
  font-size: 0.9rem;
}

#result.toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

label {
  font-family: var(--ff-body);
  font-weight: 500;
}

/* Responsive tweaks: tablet and mobile */
@media (max-width: 1000px) {
  :root {
    --base-section-padding: 1rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.875rem;
  }
  nav {
    padding: 0.75rem 1rem;
  }
  .logo {
    height: 1.75rem;
  }
  .menu-link {
    margin-left: 1rem;
  }

  .btn {
    padding: 0.6rem 0.9rem;
  }

  .cta-sec {
    padding: 3rem 2rem;
  }

  footer {
    padding: 1.5rem;
  }
}

@media (max-width: 720px) {
  .footer-nav {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav-right {
    width: 100%;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1.05rem;
  }

  nav {
    padding: 0.5rem 0.75rem;
  }
  .logo {
    height: 1.4rem;
  }
  .menu-link {
    margin-left: 0.5rem;
    font-size: 0.75rem;
  }

  .btn {
    padding: 0.5rem 0.75rem;
  }
  p,
  li {
    font-size: 0.75rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-nav-right {
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-company-logos {
    justify-content: flex-start;
  }

  .footer-logo-wrapper,
  .footer-email-wrapper {
    width: 100%;
  }
}
