/* ------------------ GLOBAL ------------------ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

body {
  font-family: 'Lato', sans-serif;
  color: black;
  margin: 0;
  padding: 0;
}

/* Headlines use Newsreader */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Newsreader', serif;
  font-weight: 700;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: transparent;
  transition: background-color 0.25s ease, padding 0.25s ease;
}

/* Logo */
.nav-logo img {
  height: 40px; /* default */
  display: block;
  transition: height 0.25s ease;
}

/* Links on right */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: black;
  margin: 0 1rem;
  padding: 0 0.1rem;
  background-color: white;
}

.nav-links a.active {
  color: #7FFBF0; /* your highlight color */
  font-weight: 700;
}

/* Call-to-action links */
.contact-cta a {
  font-weight: bold;
  text-decoration: none;
}

.contact-cta a:hover {
  color: #ffbcd9;
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #7FFBF0;
  cursor: pointer;
}

/* Mobile collapse */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap; /* allows links to go below */
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: flex;       /* IMPORTANT */
    align-items: flex-end;
    /* background: black;   */
    margin-top: 0.5rem;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: right;
    padding: 0 0.1rem;
    margin: 0.5rem 0;
    background-color: white;
    color: black;
  }

  .nav-links.open {
    max-height: 300px; /* enough for 3 links */
  }
}




/* Shrink-on-scroll */
.nav-scroll {
  background-color: black;
  padding: 0.25rem 1rem;
}

.nav-scroll .nav-logo img {
  height: 30px;
}

