body {
  background-color: #EDEAE6;
}

.neucha-regular {
  font-family:'Times New Roman', Times, serif;
  font-weight: 400;
  font-style: normal;
}



#logo{
    width: clamp(80px, 10vw, 150px);
}
.header-content{
    display: flex;
    flex-direction: row; /* default, but explicit is nice */
    align-items: center;
    white-space: nowrap; /* prevents text from wrapping */
    padding: 0 400px 0 260px;
    background-color: #EDEAE6;
    
}
#menu{
    margin-left: auto;
    background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding-right: 20px;
  font-size: 1em;
}

a{
  color: inherit; /* Inherits color from parent element */
  text-decoration: none; /* Removes the underline */
  padding-left: 1.3em;
}
.header-content nav{
     margin-left: auto;
}

.header-text{
    font-size: 1.5em;
    line-height: .7em;
    font-family:'Times New Roman', Times, serif;
    font-weight: 400;
    font-style: normal;
}

header.hidden {
  transform: translateY(-110%);
  transition: transform 0.25s ease;
}
header {
  transition: transform 0.25s ease;
}

#header{
  position: sticky;
  top: 0;
  z-index: 9999;
}

@media (max-width: 1200px) {
  .header-content {
    padding: 3px;
  }

  .header-text{

    font-size: clamp(.8em, 2vw, 1.8em);
  }

  #menu{
    font-size: clamp(1em, 6vw, 2.5em);
  }

  .hero__content {
    justify-items: center;   /* centers grid items horizontally */
    text-align: center;      /* centers text */
  }

  
}


/* ---------- Mobile Slide-out Nav ---------- */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.mobile-nav{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 340px);
  background: #EDEAE6;
  border-left: 2px solid #000;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  z-index: 9999;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav__close{
  align-self: flex-end;
  background: none;
  border: 2px solid #000;
  border-radius: 14px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1em;
}

.mobile-nav__links{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.mobile-nav__links a{
  padding: 10px 8px;
  border: 2px solid transparent;
  border-radius: 14px;
}

.mobile-nav__links a:hover{
  border-color: #000;
}

.mobile-nav__call{
  display: inline-block;
  margin-top: 8px;
  border: 1.2px solid #000;
  border-radius: 20px;
  padding: 0.6em 0.8em;
  width: fit-content;
}

/* "Open" state */
.mobile-nav.is-open{
  transform: translateX(0);
}
.nav-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Lock scroll when menu open */
body.nav-open{
  overflow: hidden;
}

/* Only show hamburger on mobile, only show normal nav on desktop */
@media (min-width: 1201px){
  #menu{ display: none; }
  #mainNav{ display: flex; }
  .mobile-nav, .nav-overlay{ display: none; }
}

@media (max-width: 1200px){
  #mainNav{ display: none; } /* hide desktop nav on mobile */
  #menu{ display: inline-block; }
}
