/* Hamburger button (hidden by default, shown in mobile layout) */
.hamburger {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 25px;
  justify-content: space-between;
  cursor: pointer;
  margin: 20px;

  /* Reset default button styles */
  background: none;
  border: none;
  padding: 0;

  align-items: stretch;
}

/* Individual hamburger bars */
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: forestgreen;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Visible focus indicator for keyboard navigation */
.hamburger:focus-visible {
  outline: 2px solid mediumseagreen;
  outline-offset: 4px;
}

/* Transform hamburger into an "X" when menu is open */
.hamburger.open span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

.menu {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
}

.menu li {
  padding: 20px;
  color: black;
  text-align: center;
  width: 100%;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu li:hover {
  /* background-color: forestgreen; */
  transform: translate(5px, 5px);
  cursor: pointer;
}

.contact-row{
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 1.15em;
}

.contact-label{
  font-weight: 700;
}

.contact-hint{
  color: gray;
  font-size: 0.9em;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.email-copy{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: forestgreen;
  transition: color 0.25s ease;
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 1em;
}

.email-copy i {
  transform: translateY(-3px);
}

.email-copy:hover{ 
  color: mediumseagreen; 
  transform: translate(5px, 5px);
  cursor: pointer;
}

.email-copy.copied{ 
  color: forestgreen; 
}

.email-copy.copied .label::after{ 
  content: " ✓"; 
}

.email-copy.copied + .contact-hint{
  opacity: 1;
  transform: translateY(0);
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}