/* Shared across every page: the top menu and the footer links.
   Loaded after each page's own styles so the menu looks and behaves the same everywhere. */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 250, 243, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #EFE3D0;
  box-shadow: 0 2px 20px rgba(27, 37, 64, 0.05);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.navbar-logo { flex: none; line-height: 0; }
.navbar-logo img {
  width: 290px;
  height: 44px;
  object-fit: cover;
  margin-left: -24px;
}
.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #33405A;
  text-decoration: none;
  transition: color 0.2s;
}
.navbar .nav-links a:hover { color: #2F7DD9; }
.navbar .btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  border-radius: 999px;
  background: #E8913A;
  color: #fff;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.navbar .btn:hover { background: #D17E2E; color: #fff; transform: translateY(-1px); box-shadow: none; }
.navbar .nav-links .nav-links-cta { display: none; }

/* Menu button, shown on smaller screens */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #EFE3D0;
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #1B2540;
  transition: transform 0.2s, opacity 0.2s;
}
.navbar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .navbar .navbar-cta { margin-left: auto; }
  .navbar .nav-links { display: none; }
  .navbar.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #FFFAF3;
    border-bottom: 1px solid #EFE3D0;
    box-shadow: 0 20px 30px rgba(27, 37, 64, 0.08);
    max-height: calc(100vh - 77px);
    overflow-y: auto;
  }
  .navbar.open .nav-links li { border-bottom: 1px solid #EFE3D0; }
  .navbar.open .nav-links li:last-child { border-bottom: 0; }
  .navbar.open .nav-links a { display: block; padding: 14px 0; font-size: 16px; }
}
@media (max-width: 600px) {
  .navbar-logo img { width: 224px; height: 34px; margin-left: -19px; }
  .navbar .navbar-cta { display: none; }
  .navbar.open .nav-links .nav-links-cta { display: block; padding-top: 16px; }
  .navbar.open .nav-links .nav-links-cta a.btn { display: block; padding: 12px 24px; text-align: center; color: #fff; font-size: 15px; }
}

/* Pages whose content starts right under the menu */
body.nav-offset { padding-top: 77px; }
/* Keep section headings clear of the menu when jumping to them */
section[id], [id].section { scroll-margin-top: 77px; }

/* Footer links */
.footer-links { font-size: 13px; }
.footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { color: #2F7DD9; }
.footer-links span { margin: 0 6px; }
