/* ===== Header brand options (A/B/C). Real logo files only; CSS glow/shadow/text effects. ===== */
body[class*="hdr-"] header { transition: padding .35s ease, min-height .35s ease; }
body[class*="hdr-"] header .brand img { transition: width .35s ease, height .35s ease, margin .35s ease, filter .35s ease; }
body[class*="hdr-"] .brand-text { display: flex; flex-direction: column; align-items: flex-start; }
body[class*="hdr-"] header .brand-name {
  display: block;
  background: linear-gradient(105deg, #B07028 0%, #E2A848 22%, #FFF6DE 34%, #F3C86E 44%, #E2A848 60%, #FFE3A3 78%, #B07028 100%);
  background-size: 260% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(226, 168, 72, .38)) drop-shadow(0 2px 0 rgba(28, 8, 52, .9));
  animation: brand-shimmer 7s ease-in-out infinite;
  transition: font-size .35s ease;
}
@keyframes brand-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
body[class*="hdr-"] .brand-tag {
  display: block;
  font-family: "Cinzel", serif; font-weight: 700;
  font-size: .66rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--cream); opacity: .88;
  margin-top: .42rem; white-space: nowrap;
  max-height: 2em; overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}
body.is-condensed .brand-tag { max-height: 0; opacity: 0; margin-top: 0; }
body[class*="hdr-"] header .brand:hover img { filter: drop-shadow(0 0 18px rgba(226,168,72,.75)) drop-shadow(0 0 14px rgba(150,70,230,.7)); }

/* ---------- Option A: Big orb + full name lockup ---------- */
body.hdr-a header { padding: .85rem 5vw; }
body.hdr-a header .brand { gap: .9rem; }
body.hdr-a header .brand img {
  width: 132px; height: 132px; margin: -20px -12px -20px -18px;
  filter: drop-shadow(0 0 16px rgba(150, 70, 230, .7)) drop-shadow(0 0 6px rgba(226, 168, 72, .35));
}
body.hdr-a header .brand-name, body.hdr-c header .brand-name { padding-right: .2em; margin-right: -.2em; }
body.hdr-a header .brand-name {
  font-family: "Lobster Two", cursive; font-weight: 700; font-style: italic;
  font-size: 2.2rem; line-height: 1.05; letter-spacing: .01em; text-transform: none;
}
body.hdr-a.is-condensed header { padding: .4rem 5vw; }
body.hdr-a.is-condensed header .brand img { width: 74px; height: 74px; margin: -10px -6px -10px -10px; }
body.hdr-a.is-condensed header .brand-name { font-size: 1.55rem; }

/* ---------- Option B: Medallion orb + "PIXIE DUST" with ribbon ---------- */
body.hdr-b header { padding: .95rem 5vw .95rem calc(5vw + 150px); min-height: 92px; }
body.hdr-b header .brand { gap: 0; }
body.hdr-b header .brand img {
  position: absolute; left: calc(5vw - 14px); top: -6px;
  width: 162px; height: 162px; z-index: 12;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(150, 70, 230, .65));
}
body.hdr-b header .brand-name {
  font-family: "Cinzel", serif; font-weight: 700; text-transform: uppercase;
  font-size: 1.75rem; letter-spacing: .14em; line-height: 1;
}
body.hdr-b .brand-ribbon {
  display: inline-block; margin-top: .45rem;
  font-family: "Cinzel", serif; font-weight: 700; text-transform: uppercase;
  font-size: .78rem; letter-spacing: .5em; color: #FFF6DE;
  padding: .32rem 1.5rem .32rem 1.9rem;
  background: linear-gradient(180deg, #7A3AB2, #3E1668);
  box-shadow: inset 0 0 0 1px rgba(226, 168, 72, .85), 0 0 14px rgba(150, 70, 230, .55);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  transition: font-size .35s ease, padding .35s ease, margin .35s ease;
}
body.hdr-b.is-condensed header { padding-top: .45rem; padding-bottom: .45rem; padding-left: calc(5vw + 84px); min-height: 0; }
body.hdr-b.is-condensed header .brand img { width: 76px; height: 76px; top: 2px; left: calc(5vw - 6px); }
body.hdr-b.is-condensed header .brand-name { font-size: 1.25rem; }
body.hdr-b.is-condensed .brand-ribbon { font-size: .62rem; margin-top: .3rem; padding: .22rem 1.1rem .22rem 1.4rem; }

/* ---------- Option C: Centered crest, nav underneath ---------- */
body.hdr-c header { flex-direction: column; align-items: center; gap: .55rem; padding: 1rem 5vw .7rem; }
body.hdr-c header .brand { gap: .85rem; }
body.hdr-c header .brand img {
  width: 118px; height: 118px; margin: -12px -6px -12px -12px;
  filter: drop-shadow(0 0 18px rgba(150, 70, 230, .75)) drop-shadow(0 0 8px rgba(226, 168, 72, .4));
}
body.hdr-c header .brand-name {
  font-family: "Lobster Two", cursive; font-weight: 700; font-style: italic;
  font-size: 2.7rem; line-height: 1.02; text-transform: none; letter-spacing: .01em;
}
body.hdr-c .brand-tag { letter-spacing: .4em; }
body.hdr-c header nav {
  justify-content: center; padding-top: .55rem; width: min(760px, 100%);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(226, 168, 72, .7), transparent) 1;
}
body.hdr-c.is-condensed header { padding: .35rem 5vw .4rem; gap: .2rem; }
body.hdr-c.is-condensed header .brand img { width: 62px; height: 62px; margin: -6px -3px -6px -6px; }
body.hdr-c.is-condensed header .brand-name { font-size: 1.6rem; }
body.hdr-c.is-condensed header nav { padding-top: .3rem; }

/* ---------- Mobile (all options): name always spelled out; nav wraps so every link stays visible ---------- */
@media (max-width: 860px) {
  body[class*="hdr-"] header { flex-direction: column; align-items: center; gap: .5rem; padding: .7rem 4vw .6rem; min-height: 0; }
  body[class*="hdr-"] header nav {
    flex-wrap: wrap; justify-content: center; gap: .35rem .85rem;
    max-width: 100%; overflow: visible;
  }
  body[class*="hdr-"] header nav a { font-size: .68rem; letter-spacing: .1em; white-space: nowrap; }
  body.hdr-b header .brand img { position: static; }
  body.hdr-b header { padding-left: 4vw; }
  body.hdr-b.is-condensed header { padding-left: 4vw; }
  body[class*="hdr-"].is-condensed header { padding: .4rem 3vw .45rem; gap: .3rem; }
}
@media (max-width: 540px) {
  body[class*="hdr-"] header .brand-name { display: block; }
  body.hdr-a header .brand img, body.hdr-c header .brand img { width: 78px; height: 78px; margin: -10px -6px -10px -10px; }
  body.hdr-a header .brand-name { font-size: 1.6rem; }
  body.hdr-c header .brand-name { font-size: 1.75rem; }
  body[class*="hdr-"] .brand-tag { font-size: .56rem; letter-spacing: .24em; }
  body.hdr-b header .brand { gap: .55rem; }
  body.hdr-b header .brand img { width: 80px; height: 80px; margin: -6px; }
  body.hdr-b header .brand-name { font-size: 1.2rem; letter-spacing: .12em; }
  body.hdr-b .brand-ribbon { font-size: .6rem; letter-spacing: .4em; padding: .22rem 1.1rem .22rem 1.35rem; }
  body[class*="hdr-"].is-condensed header .brand img { width: 52px; height: 52px; margin: -6px -4px -6px -6px; }
  body.hdr-a.is-condensed header .brand-name, body.hdr-c.is-condensed header .brand-name { font-size: 1.25rem; }
  body.hdr-b.is-condensed header .brand-name { font-size: 1rem; }
  body.hdr-b.is-condensed .brand-ribbon { font-size: .5rem; }
}
@media (max-width: 380px) {
  body[class*="hdr-"] header nav { gap: .3rem .62rem; }
  body[class*="hdr-"] header nav a { font-size: .62rem; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  body[class*="hdr-"] header .brand-name { animation: none; background-position: 30% 50%; }
  body[class*="hdr-"] header, body[class*="hdr-"] header .brand img, body[class*="hdr-"] .brand-tag { transition: none; }
}
