@import url("logo-theme.css");

header {
  height: 72px;
  background: rgba(247, 248, 250, 0.96);
  padding: 0 clamp(24px, 4vw, 64px);
  gap: 0;
  border-bottom: 1px solid rgba(15, 30, 60, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(13, 24, 51, 0.02);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1;
  text-align: left;
}

.brand-symbol {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-primary {
  color: #0B1120;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
}

.brand-descriptor {
  margin-top: 4px;
  color: #B0946E;
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.36em;
  line-height: 1;
}

header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

header nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: #667085;
  border: 0;
  transition: color 0.18s ease;
}

header nav a:hover, header nav a:focus-visible, header nav a.active {
  color: #0D1833;
}

header nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #2356D8;
  border-radius: 1px;
}

.menu {
  display: none;
  color: #0D1833;
}

footer .site-brand {
  margin-bottom: 24px;
}

footer .site-brand .brand-primary {
  color: #FFFFFF;
  font-family: "Cormorant Garamond", Georgia, serif;
}

footer .site-brand .brand-descriptor {
  color: #B0946E;
}

@media(max-width:1024px) {
  header {
    padding: 0 28px;
  }
  header nav {
    gap: 22px;
  }
  .brand-primary {
    font-size: 18px;
  }
}

@media(max-width:800px) {
  header {
    height: 64px;
    padding: 0 20px;
  }
  
  .brand-symbol {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  
  .brand-primary {
    font-size: 17px;
  }
  
  .brand-descriptor {
    font-size: 7px;
    margin-top: 3px;
  }
  
  .menu {
    display: grid;
    place-items: center;
    position: absolute;
    right: 20px;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    background: transparent;
    color: #0D1833;
    line-height: 1;
    z-index: 102;
    cursor: pointer;
  }
  
  .menu-icon, .menu-icon:before, .menu-icon:after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform .25s cubic-bezier(.32,.72,0,1), opacity .2s ease;
  }
  
  .menu-icon {
    position: relative;
  }
  
  .menu-icon:before, .menu-icon:after {
    content: "";
    position: absolute;
    left: 0;
  }
  
  .menu-icon:before {
    top: -6px;
  }
  
  .menu-icon:after {
    top: 6px;
  }
  
  .menu.is-open .menu-icon {
    background: transparent;
  }
  
  .menu.is-open .menu-icon:before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .menu.is-open .menu-icon:after {
    top: 0;
    transform: rotate(-45deg);
  }
  
  header nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background: #0D1833;
    padding: 90px 24px 40px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    z-index: 101;
    border-top: 0;
    box-shadow: none;
  }
  
  header nav.open {
    display: flex;
  }
  
  header nav a {
    min-height: 44px;
    font-size: 16px;
    color: #94A3B8;
  }
  
  header nav a.active:after {
    display: none;
  }
  
  header nav a.active {
    color: #FFFFFF;
  }
}

@media(max-width:640px) {
  header {
    height: 60px;
    padding: 0 16px;
  }
  .site-brand {
    gap: 9px;
  }
  .brand-symbol {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .brand-primary {
    font-size: 16px;
    letter-spacing: 0.04em;
  }
  .brand-descriptor {
    margin-top: 3px;
    font-size: 6px;
    letter-spacing: 0.26em;
  }
  .menu {
    right: 12px;
  }
}
