:root {
  --civora-header-black: #0a0908;
  --civora-header-charcoal: #1c1917;
  --civora-header-gold: #c9a84c;
  --civora-header-gold-light: #e2c97e;
  --civora-header-cream: #faf7f2;
  --civora-header-muted: #b8b2aa;
  --civora-header-border: rgba(255, 255, 255, 0.08);
}

.civora-global-header,
.civora-global-header * {
  box-sizing: border-box;
}

.civora-global-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  color: var(--civora-header-cream);
  font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.civora-global-header.civora-global-header--fixed {
  position: fixed;
}

.civora-global-header__bar {
  min-height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(10, 9, 8, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--civora-header-border);
}

.civora-global-header__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--civora-header-cream);
  text-decoration: none;
}

.civora-global-header__mark {
  width: 48px;
  height: 48px;
  display: block;
}

.civora-global-header__wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.civora-global-header__name {
  color: var(--civora-header-cream);
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
}

.civora-global-header__sub {
  color: var(--civora-header-gold);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.civora-global-header__links {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
}

.civora-global-header__links a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--civora-header-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.civora-global-header__links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--civora-header-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.civora-global-header__links a:hover,
.civora-global-header__links a:focus-visible,
.civora-global-header__links a[aria-current="page"] {
  color: var(--civora-header-cream);
}

.civora-global-header__links a:hover::after,
.civora-global-header__links a:focus-visible::after,
.civora-global-header__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.civora-global-header__cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--civora-header-gold);
  border-radius: 4px;
  background: var(--civora-header-gold);
  color: var(--civora-header-black);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.civora-global-header__cta:hover,
.civora-global-header__cta:focus-visible {
  border-color: var(--civora-header-gold-light);
  background: var(--civora-header-gold-light);
  transform: translateY(-1px);
}

.civora-global-header__toggle {
  width: 44px;
  height: 44px;
  padding: 10px;
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: transparent;
  color: var(--civora-header-cream);
  cursor: pointer;
}

.civora-global-header__toggle span {
  width: 22px;
  height: 1.5px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.civora-global-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

.civora-global-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.civora-global-header__mobile {
  display: none;
  padding: 10px 24px 20px;
  background: rgba(28, 25, 23, 0.99);
  border-bottom: 1px solid var(--civora-header-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.civora-global-header__mobile[hidden] {
  display: none !important;
}

.civora-global-header__mobile a {
  min-height: 48px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--civora-header-border);
  color: var(--civora-header-cream);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.civora-global-header__mobile a[aria-current="page"] {
  color: var(--civora-header-gold-light);
}

.civora-global-header__mobile-cta {
  margin-top: 14px;
  min-height: 48px !important;
  padding: 0 18px !important;
  justify-content: center;
  border: 1px solid var(--civora-header-gold) !important;
  border-radius: 4px;
  background: var(--civora-header-gold);
  color: var(--civora-header-black) !important;
  font-weight: 700 !important;
}

.civora-global-header a:focus-visible,
.civora-global-header button:focus-visible {
  outline: 2px solid var(--civora-header-gold-light);
  outline-offset: 3px;
}

body.civora-global-header-offset {
  padding-top: 72px;
}

@media (max-width: 1160px) {
  .civora-global-header__bar {
    padding-right: 22px;
    padding-left: 22px;
    gap: 16px;
  }

  .civora-global-header__links {
    gap: 16px;
  }

  .civora-global-header__links a {
    font-size: 12px;
  }

  .civora-global-header__cta {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 980px) {
  .civora-global-header__links,
  .civora-global-header__cta {
    display: none;
  }

  .civora-global-header__toggle {
    display: flex;
  }

  .civora-global-header__mobile:not([hidden]) {
    display: block;
  }
}

@media (max-width: 480px) {
  .civora-global-header__bar {
    min-height: 68px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .civora-global-header__mark {
    width: 44px;
    height: 44px;
  }

  .civora-global-header__name {
    font-size: 18px;
  }

  .civora-global-header__mobile {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.civora-global-header-offset {
    padding-top: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .civora-global-header *,
  .civora-global-header *::before,
  .civora-global-header *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Production stability guard: keep the brand artwork bounded in Safari even
   while other page styles or web fonts are still loading. */
.civora-global-header__brand,
.civora-global-header__brand svg,
.civora-global-header__brand img,
.civora-global-header__mark {
  max-width: 48px;
  max-height: 48px;
}
.civora-global-header__brand {
  max-width: min(260px, 72vw);
}
.civora-global-header__brand svg,
.civora-global-header__brand img,
.civora-global-header__mark {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px;
  object-fit: contain;
}
@media (max-width: 620px) {
  .civora-global-header__brand svg,
  .civora-global-header__brand img,
  .civora-global-header__mark {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px;
  }
}
