/*!
 * Created By Michael Wright
 * Date 6/24/2025
 * This is CSS intended for styling the header and nav bar
 */

/* ----------------------- */
/* Mobile default (<768px) */
/* ----------------------- */

/* ---------- Header Layout ---------- */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  margin-right: 1rem;
  border-radius: 6px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: white;
  line-height: 1.2;
  text-align: right;
}

.logo-text1 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.30rem;
}

.logo-text2 {
  font-family: 'Times New Roman', cursive;
  font-size: .9rem;
}

.logo-text3 {
  font-family: 'Assistant', 'Myriad Hebrew Cursive', serif;
  font-size: 1.2rem;
}

/* ---------- Nav Bar ---------- */
.main-nav {
  max-height: 0;
  opacity: 0;
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-top: .5rem;
  gap: .25rem;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.main-nav.show {
  max-height: 500px;
  opacity: 1;
}

.main-nav button.dropbtn {
  background-color: white;
  color: black;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.main-nav a:hover,
.main-nav button.dropbtn:hover {
  background-color: #E0E7FF; /* light blue highlight */
  border-color: #1D4ED8;
  color: #1D4ED8;
  transform: translateY(-1px); /* Slight lift */
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  color: black;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 6px;
  overflow: hidden;
}

.dropdown-content a {
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  color: black;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown-content.show {
  display: block;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: block; /* visible on mobile */
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ---------------------- */
/* Tablet and up (≥768px) */
/* ---------------------- */
@media (min-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 2rem;
  }

  .main-nav {
    max-height: none;
    opacity: 1;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
    width: auto;
  }

  .hamburger {
    display: none; /* hide hamburger */
  }
}

/* ----------------------- */
/* Large desktop (≥1200px) */
/* ----------------------- */
@media (min-width: 1200px) {
  .site-header {
    padding: .25rem 5rem;
  }
}
