/* Header styles for Guide FR Best */
.gfb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(8, 47, 135, 0.08);
}

.gfb-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gfb-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.gfb-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.gfb-header__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b3d91, #1e88e5);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.gfb-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.gfb-header__site-name {
  font-family: "Source Serif 4", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #082f49;
}

.gfb-header__tagline {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
}

.gfb-header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.gfb-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gfb-header__nav-link {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  position: relative;
  padding-block: 0.25rem;
}

.gfb-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b3d91, #1e88e5);
  transition: width 0.18s ease;
}

.gfb-header__nav-link:hover::after,
.gfb-header__nav-link:focus-visible::after {
  width: 100%;
}

.gfb-header__nav-link:focus-visible {
  outline: 2px solid #1e88e5;
  outline-offset: 3px;
  border-radius: 4px;
}

.gfb-header__cta-wrapper {
  display: flex;
}

.gfb-header__cta {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #0b3d91;
  color: #0b3d91;
  text-decoration: none;
  background: #eff6ff;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gfb-header__cta:hover {
  background: #0b3d91;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.gfb-header__cta:focus-visible {
  outline: 2px solid #1e88e5;
  outline-offset: 3px;
}

/* Mobile toggle */
.gfb-header__toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.gfb-header__toggle:focus-visible {
  outline: 2px solid #1e88e5;
  outline-offset: 3px;
}

.gfb-header__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background-color: #0f172a;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.gfb-header__toggle[aria-expanded="true"] .gfb-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.gfb-header__toggle[aria-expanded="true"] .gfb-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.gfb-header__toggle[aria-expanded="true"] .gfb-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .gfb-header__inner {
    padding-inline: 1rem;
  }

  .gfb-header__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .gfb-header__nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 56px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
  }

  .gfb-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .gfb-header__nav-link {
    display: block;
    width: 100%;
    padding-block: 0.6rem;
  }

  .gfb-header__cta-wrapper {
    width: 100%;
    margin-top: 0.25rem;
  }

  .gfb-header__cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .gfb-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 520px) {
  .gfb-header__tagline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gfb-header__nav,
  .gfb-header__toggle-bar,
  .gfb-header__nav-link::after,
  .gfb-header__cta {
    transition: none !important;
  }
}
