@font-face {
  font-family: 'EllieologyFont1';
  src: url('/assets/global/fonts/ellieology-font-1.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111;
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 54px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hamburger {
  justify-self: start;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.22s ease;
}

.hamburger:hover {
  transform: scale(1.15);
}

.hamburger span {
  width: 100%;
  height: 4px;
  background: #111;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

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

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

.logo {
  justify-self: center;
  height: 60px;
  display: block;
  transition: transform 0.22s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.search-area {
  justify-self: end;
  position: relative;
}

.search-area input {
  width: 220px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0 42px 0 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.search-area input:hover,
.search-area input:focus {
  border-color: #aaa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.mobile-search-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.mobile-search-button:hover {
  transform: scale(1.08);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1001;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 86%;
  height: 100vh;
  background: #ffffff;
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 110px 28px 28px;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
}

.side-menu.active {
  transform: translateX(0);
}

.side-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-menu a {
  color: #111;
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.side-menu a:hover {
  transform: translateX(6px);
  opacity: 0.65;
}

.menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: #111;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-close:hover {
  transform: scale(1.08);
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .site-header {
    height: 68px;
    padding: 0 24px;
  }

  .search-area {
    display: none;
  }

  .mobile-search-button {
    display: block;
    justify-self: end;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .logo {
    height: 38px;
  }

  .hamburger {
    width: 26px;
    height: 20px;
  }

  .hamburger span {
    height: 3px;
  }

  .side-menu {
    padding-top: 96px;
  }

  .side-menu a {
    font-size: 25px;
  }
}
