/* ======================================================
   LAYOUT STYLESHEET
   Contains all header, navigation, and footer layout
====================================================== */

/* ======================================================
   HEADER & NAVIGATION
====================================================== */
header {
  display: flex;
  justify-content: space-between;
  padding: 15px 60px;
  position: relative;
  align-items: center;
}

/* ===== LOGO ===== */
#logo {
  flex: 1 1 180px;
  min-width: 180px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
#logo img {
  display: block;
  height: 80px;
  width: auto;
  margin-bottom: -10px;
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(1.08);
  opacity: 0.94;
}

/* ===== NAVIGATION ===== */
#main-nav {
  flex: 2 1 400px;
}
#main-nav > ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}
#main-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
#main-nav .nav-dropdown-trigger {
  color: white;
  font: inherit;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#main-nav ul li a:hover {
  background-color: #e9d609;
  color: black;
  box-shadow: 0 0 5px rgba(233, 214, 9, 0.4);
}
#main-nav .nav-dropdown-trigger:hover,
#main-nav .nav-dropdown-trigger:focus-visible {
  background-color: #e9d609;
  color: black;
  box-shadow: 0 0 5px rgba(233, 214, 9, 0.4);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger::after {
  content: '▾';
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px 18px;
  align-items: start;
  width: min(720px, calc(100vw - 32px));
  padding: 18px;
  margin: 0;
  list-style: none;
  background: rgba(28, 28, 28, 0.96);
  border: 1px solid rgba(233, 214, 9, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu li {
  width: 100%;
}

.nav-dropdown-menu li a {
  display: block;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.3;
}

@media (max-width: 1250px) and (min-width: 951px) {
  .nav-dropdown-menu {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    width: min(640px, calc(100vw - 32px));
  }
}

#socials {
  flex: 1 1 150px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  position: relative;
}
#socials a {
  display: flex;
  align-items: center;
}
#socials svg {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}
#socials svg:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ======================================================
   MOBILE HAMBURGER
====================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;

}
.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  margin: 6px 0;
  transition: all 0.3s ease;
}
.menu-toggle.active .hamburger {
  background: transparent;
}
.menu-toggle.active .hamburger::before {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .hamburger::after {
  transform: translateY(-9px) rotate(-45deg);
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px;
  text-align: left;
  box-sizing: border-box;
  gap: 40px;
  line-height: 1.6;
  background: var(--bg-surface);
}
footer div {
  flex: 1 1 250px;
  margin: 10px;
}
footer h3 {
  margin-bottom: 15px;
}
footer a {
  text-decoration: none;
  display: inline-block;
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
footer a:hover {
  background-color: #e9d609;
  color: black;
  box-shadow: 0 0 5px rgba(233, 214, 9, 0.4);
  text-decoration: none;
}

#footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
#footer-logo a {
  display: inline-block;
  line-height: 0;
}
#footer-logo img {
  width: auto;
  height: auto;
  max-width: 400px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(1.08);
  opacity: 0.94;
}
#footer-logo a:hover,
#footer-logo img:hover {
  background: none;
  color: inherit;
  box-shadow: none;
  transform: none;
  opacity: 1;
}
