header {
  background: var(--white);
  padding: 0rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6e6e6;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: large;
}

nav a:hover {
  color: var(--blue-primary);
}

.cta-btn {
  display: inline-block;
  /* margin-top: 2rem; */
  background-color: var(--gold-accent);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 4px 8px 8px hsl(0deg 0% 0% / 0.38);
}

.cta-btn:hover {
  opacity: 0.9;
  color: var(--blue-primary);
}

.head-btn {
  display: inline-block;
  /* margin-top: 2rem; */
  background-color: var(--gold-accent);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 4px 8px 8px hsl(0deg 0% 0% / 0.38);
}

.head-btn:hover {
  opacity: 0.9;
  color: var(--blue-primary);
}

.favi {
  width: 10%;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Do NOT override .favi sizing */
.logo-link img {
  display: block;
  width: 25%;
}

/* Header layout */
.site-header {
  position: relative; /* 🔑 REQUIRED */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
}

/* Hamburger button */
.hamburger {
  display: none;
  font-size: 3rem;
  background: none;
  border: none;
  color: var(--blue-primary);
  cursor: pointer;
}

/* Mobile nav behavior */
@media (max-width: 900px) {
  .site-header {
    position: sticky; /* Stick to the top */
    top: 0; /* Always at the top */
    width: 100%; /* Full width */
    z-index: 999; /* Make sure it stays above content */
    background: var(--white); /* Keep background visible when scrolling */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
  }

  .hamburger {
    display: block;
  }

  .cta-btn {
    background-color: var(--white);
    box-shadow: none;
    color: var(--gold-accent);
  }

  .cta-btn:hover {
    color: var(--blue-primary);
  }

  .favi {
    width: 20%;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    overflow: hidden;

    max-height: 0;
    opacity: 0;
    pointer-events: none;

    transition: max-height 0.35s ease, opacity 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .nav-links a {
    margin-left: 0;
    padding: 0.9rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-links.open {
    max-height: 500px; /* big enough for links */
    opacity: 1;
    pointer-events: auto;
  }
}
