:root {
  /* =========================
     BRAND CORE COLORS
     ========================= */
  --color-green-primary: #009A36;   /* Growth / Trust */
  --color-gold-primary:  #D4AF37;   /* Wealth / Success */
  --color-black-primary: #000000;   /* Authority */
  --color-white-primary: #FFFFFF;


  --color-green-darker: #007A2B;
  --color-gold-darker: #B8962E;
  
  --color-green-lighter: #E6F5EC;
  --color-gold-lighter: #F7EBC2;
  --color-black-lighter: #1A1A1A;
  --color-white-lighter: #F5F6F7;

  --header-link: #FFFFFF;
  --header-link-hover: #D4AF37;
  --header-link-active: #009A36;
  --header-link-active-hover: #007A2B;

  --universal-button: #D4AF37;
}

body {
    background-color: var(--color-black-primary);
    margin: 0;
}

.logo-menu {
    display: flex;
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo-img {
    height: 100px;
    width: auto; 

}

.nav-toggle {
    display: block;
    background: transparent;
    border: 3px solid var(--header-link);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
}

.nav-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 9px 2px;
    background-color: var(--header-link);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.is-active .bar:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.nav-toggle.is-active .bar:nth-child(2) {
    background-color: var(--color-black-primary);
}

.nav-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

.menu-container {
  position: fixed;
  inset: 0;
  background-color: var(--color-black-primary);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;

  opacity: 0;
  transform: translate3d(0, -12px, 0);
  pointer-events: none;
  visibility: hidden;
  
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
  z-index: 999;

  /* Enable scrolling and prevent exceeding viewport height. */
  overflow-y: auto;
  max-height: 100vh;
}



.menu-container .nav-links a {
    font-family: monospace;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    color: var(--header-link);
}

.menu-container.open {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
  padding-top: 100px;
  padding-bottom: 25px;
}

.menu-container.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0;
}

.menu-container.open.closing {
  opacity: 0;
  transform: translate3d(0, -12px, 0);
  pointer-events: none;
}

.menu-container.open .nav-links a {
    font-size: 25px;
}

.menu-container.open .search-bar {
    margin-top: 30px;
}

.nav-links {
    list-style: none;
}

.nav-links a:hover {
    color: var(--header-link-hover);
}

.nav-links .selected {
    color: var(--header-link-active) !important;
}

.nav-links .selected:hover {
    color: var(--header-link-active-hover) !important;
}

.search-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    height: 30px;
    width: 175px;
    border-radius: 8px;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
}

.search-bar button {
    border-radius: 10px;
    background-color: var(--universal-button);
}

.search-bar img {
    height: 25px;
    width: auto;
}

.menu-container.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 9999;
}


/* Medium Mobile Screen: 375px */
@media (min-width: 375px) {

}

/* Large Mobile Screen: 425px */
@media (min-width: 425px) {

}

/* Small Tablet Screen: 596x842 */
@media (min-width: 596px) {

}

/* Tablet Screen: 768x1024 */
@media (min-width: 768px) {

}

/* Large Tablet Screen: 896x1344 */
@media (min-width: 896px) {

  /* hide hamburger */
  .nav-toggle {
    display: none;
  }

  /* header row: logo | nav | search */
  .logo-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }

  /* make menu-container stop being the fullscreen overlay on desktop */
  .menu-container {
    position: static;
    inset: auto;
    background: transparent;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;

    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;

    overflow: visible;
    max-height: none;
    padding: 0;
  }

  /* nav links in a row */
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    margin: 0;
  }

  /* smaller desktop font size */
  .nav-links a {
    font-size: 16px !important;
    font-weight: 600;
  }

  /* search bar stays at the far right */
  .search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Small Laptop Screen: 1024x768 */
@media (min-width: 1024px) {
    .nav-links a {
        font-size: 20px !important;
    }

    .search-bar input {
        width: 200px;
    }
}

/* Laptop Screen: 1280x800 */
@media (min-width: 1280px) {
    .nav-links a {
        font-size: 28px !important;
    }

    .search-bar input {
        width: 250px;
        height: 35px;
        font-size: 28px;
    }

    .search-bar img {
        height: 32px;
    }

    .logo-img {
        height: 130px;
    }
}

/* PC Screen: 1440x900 */
@media (min-width: 1440px) {
    .nav-links a {
        font-size: 32px !important;
    }

    .nav-links {
        gap: 35px;
    }

    .search-bar input {
        width: 275px;
        height: 40px;
        font-size: 32px;
    }

    .search-bar img {
        height: 32px;
    }

    .logo-img {
        height: 150px;
    }

    .logo-menu {
        padding: 10px 35px;
    }
}

/* Full HD: 1920x1080 */
@media (min-width: 1920px) {
    .nav-links a {
        font-size: 40px !important;
    }

    .nav-links {
        gap: 70px !important;
    }

    .search-bar input {
        width: 350px;
        height: 45px;
        font-size: 38px;
    }

    .search-bar img {
        height: 40px;
    }

    .menu-container {
        gap: 80px;
    }

    .logo-img {
        height: 200px;
    }
}

/* 2K: 2560x1440 */
@media (min-width: 2560px) {
    .nav-links a {
        font-size: 50px !important;
    }

    .nav-links {
        gap: 100px !important;
    }

    .menu-container {
        gap: 120px;
    }

    .search-bar input {
        width: 525px;
        height: 55px;
        font-size: 45px;
    }

    .search-bar img {
        height: 50px;
    }

    .logo-img {
        height: 250px;
    }
}

/* 3K: 3200x1800 iphone (ale) */ 
@media (min-width: 3200px) {
    .nav-links a {
        font-size: 65px !important;
    }

    .nav-links {
        gap: 120px !important;
    }

    .menu-container {
        gap: 170px;
    }

    .search-bar input {
        width: 625px;
        height: 65px;
        font-size: 60px;
    }

    .search-bar img {
        height: 60px;
    }

    .logo-img {
        height: 400px;
    }

    .search-bar {
        gap: 25px;
    }
}

/* 4K: 3840x2160 */
@media (min-width: 3840px) {
    .nav-links a {
        font-size: 75px !important;
    }

    .nav-links {
        gap: 140px !important;
    }

    .menu-container {
        gap: 160px;
    }

    .search-bar input {
        width: 750px;
        height: 75px;
        font-size: 65px;
    }

    .search-bar img {
        height: 75px;
    }

    .logo-img {
        height: 450px;
    }
}

@media (min-width: 5760px) {
    .nav-links a {
        font-size: 100px !important;
    }

    .nav-links {
        gap: 170px !important;
    }

    .menu-container {
        gap: 220px;
    }

    .search-bar input {
        width: 1500px;
        height: 100px;
        font-size: 90px;
    }

    .search-bar img {
        height: 95px;
    }

    .logo-img {
        height: 600px;
    }

    .search-bar {
        gap: 35px;
    }
}

/* 8K: 7680x4320 */
@media (min-width: 7680px) {
    .nav-links a {
        font-size: 150px !important;
    }

    .nav-links {
        gap: 250px !important;
    }

    .menu-container {
        gap: 270px;
    }

    .search-bar input {
        width: 1750px;
        height: 175px;
        font-size: 140px;
    }

    .logo-img {
        height: 750px;
    }

    .search-bar img {
        height: 175px;
    }

    .search-bar {
        gap: 40px;
    }
}
