/*
 * Band Site theme — header, menu, banner, footer (custom_726).
 * The Wicked Messengers' old layout, carried over; colours from --bt-*.
 */

/* ── preview bar (on the main site only) ── */
.bandsite-preview {
  padding: .45rem var(--bt-pad);
  background: var(--bt-accent);
  color: var(--bt-on-accent);
  font-size: .85rem;
  text-align: center;
}
.bandsite-preview a { color: var(--bt-on-accent); text-decoration: underline; }
.bandsite-preview a:hover { color: var(--bt-on-accent); }

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: color-mix(in srgb, var(--bt-bg) 95%, transparent);
  border-bottom: 1px solid var(--bt-border);
  backdrop-filter: blur(10px);
}
body.toolbar-fixed .site-header { top: var(--drupal-displace-offset-top, 0); }

.header-container {
  max-width: var(--bt-max);
  margin: 0 auto;
  padding: 1rem var(--bt-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-logo { flex-shrink: 1; min-width: 0; }
.logo-link { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.site-logo-img { display: block; max-height: 56px; width: auto; }

.site-name {
  display: inline-block;
  font-family: var(--bt-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--bt-accent);
  text-transform: uppercase;
  letter-spacing: .24em;
  white-space: nowrap;
  transition: color var(--bt-ease);
}
.logo-link:hover .site-name,
.logo-link:focus-visible .site-name { color: var(--bt-accent-hover); }
/* The old glowing name, when the band site's settings ask for it. */
.band-site--glow .site-name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-shadow:
    0 0 10px color-mix(in srgb, var(--bt-accent) 40%, transparent),
    0 0 20px color-mix(in srgb, var(--bt-accent) 20%, transparent),
    0 2px 4px rgba(0, 0, 0, .5);
}
/* Gig-bill: the name and menu in tall condensed type too. */
.band-site--title-bill .site-name { font-family: Oswald, var(--bt-sans); font-size: 1.9rem; letter-spacing: .08em; }
.band-site--title-bill .nav-wrapper a { font-family: Oswald, var(--bt-sans); font-size: .95rem; letter-spacing: .08em; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.header-social { display: flex; gap: 12px; }
.header-social a {
  display: flex;
  align-items: center;
  line-height: 1;
  color: var(--bt-faint);
}
.header-social a:hover, .header-social a:focus-visible { color: var(--bt-accent); }

/* ── menu ── */
.nav-wrapper { display: flex; align-items: center; justify-content: flex-end; }
.nav-wrapper ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.nav-wrapper li { margin: 0; }
.nav-wrapper a {
  position: relative;
  padding: .5rem 0;
  color: var(--bt-muted);
  font-weight: 500;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}
.nav-wrapper a:hover { color: var(--bt-text); }
.nav-wrapper a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--bt-accent);
  transition: width var(--bt-ease);
}
.nav-wrapper a:hover::after, .nav-wrapper a.is-active::after { width: 100%; }
.nav-wrapper a.is-active { color: var(--bt-text); font-weight: 600; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 1002;
}
.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--bt-accent);
  transition: transform var(--bt-ease), opacity var(--bt-ease);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── page ── */
.main-content { min-height: 60vh; outline: none; }
.container { max-width: var(--bt-max); margin: 0 auto; padding: 3rem var(--bt-pad); }
.help-region { margin-bottom: 1.5rem; }
/* Page titles (custom_727). Editorial: the band's name small and gold over
   a large serif title, then a short gold line. Gig bill: tall condensed caps
   over a hairline. Chosen in the band site's settings. */
.bt-title { position: relative; margin: 0 0 1.8rem; padding-bottom: .9rem; }
.bt-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 2px; background: var(--bt-accent); }
.bt-title__kicker { margin: 0 0 .9rem; font: 600 .74rem/1 var(--bt-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--bt-accent); }
.bt-title .page-title { margin: 0; font-family: var(--bt-serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.01em; text-transform: none; text-align: left; color: var(--bt-text); }
.band-site--title-bill .bt-title { border-bottom: 1px solid var(--bt-border); }
.band-site--title-bill .bt-title::after { display: none; }
.band-site--title-bill .bt-title__kicker { display: none; }
.band-site--title-bill .bt-title .page-title { font-family: Oswald, var(--bt-sans); text-transform: uppercase; letter-spacing: .03em; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1; }

/* ── mailing-list banner ── */
.mailing-list-banner {
  width: 100%;
  padding: 1.5rem 2rem;
  background-color: var(--bt-accent);
  text-align: center;
}
.mailing-list-inner {
  max-width: var(--bt-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mailing-list-text {
  font-family: var(--bt-sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bt-on-accent);
}
.mailing-list-btn {
  display: inline-block;
  padding: .6rem 2rem;
  border-radius: 4px;
  background-color: #000;
  color: var(--bt-accent);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background-color var(--bt-ease), color var(--bt-ease), transform var(--bt-ease);
}
.mailing-list-btn:hover, .mailing-list-btn:focus-visible { background-color: #1a1a1a; color: var(--bt-accent-hover); transform: translateY(-2px); }

/* ── footer ── */
.site-footer {
  padding: 3rem 0 2rem;
  background-color: var(--bt-medium);
  border-top: 1px solid var(--bt-border);
}
.mailing-list-banner + .site-footer { border-top: 0; }
.footer-container { max-width: var(--bt-max); margin: 0 auto; padding: 0 var(--bt-pad); text-align: center; }
.footer-tagline {
  margin-bottom: 1.5rem;
  font-family: var(--bt-serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: .03em;
  color: var(--bt-faint);
}
.footer-text { font-size: .9rem; color: var(--bt-faint); }
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bt-border);
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bt-border-strong);
  border-radius: 50%;
  color: var(--bt-muted);
  transition: background-color var(--bt-ease), border-color var(--bt-ease), color var(--bt-ease), transform var(--bt-ease);
}
.social-link:hover, .social-link:focus-visible {
  background-color: var(--bt-accent);
  border-color: var(--bt-accent);
  color: var(--bt-bg);
  transform: translateY(-3px);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bt-border);
}
.copyright { margin: 0; font-size: .85rem; color: var(--bt-faint); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { font-size: .85rem; color: var(--bt-faint); }
.footer-nav a:hover { color: var(--bt-text); }

/* ── smaller screens ── */
@media (max-width: 1024px) {
  .header-container { gap: 1.5rem; }
  .nav-wrapper ul { gap: 1rem; row-gap: .5rem; }
  .nav-wrapper a { font-size: .75rem; letter-spacing: .08em; padding: .4rem 0; }
}

@media (max-width: 768px) {
  .header-container { padding: .875rem var(--bt-pad); gap: 1rem; }
  .site-name { font-size: 1.35rem; letter-spacing: .2em; }
  .band-site--glow .site-name { font-size: 1.9rem; letter-spacing: .1em; }
  .site-logo-img { max-height: 46px; }
  .mobile-menu-toggle { display: flex; }
  .header-social { display: none; }
  .header-right { display: contents; }
  .nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 5rem 2rem 2rem;
    background-color: var(--bt-medium);
    box-shadow: -5px 0 20px rgba(0, 0, 0, .5);
    justify-content: flex-start;
    align-items: flex-start;
    /* Closed, it's clipped away in place rather than moved off screen: a
       panel parked past the edge makes phones scroll sideways. */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path var(--bt-ease), visibility 0s linear .3s;
    z-index: 1001;
  }
  .nav-wrapper.active {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path var(--bt-ease), visibility 0s;
  }
  .nav-wrapper ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-wrapper li { width: 100%; border-bottom: 1px solid var(--bt-border); }
  .nav-wrapper a { display: block; width: 100%; padding: 1rem 0; font-size: 1rem; }
  .nav-wrapper a::after { display: none; }
  .container { padding: 2rem var(--bt-pad); }
  .mailing-list-banner { padding: 1.25rem var(--bt-pad); }
  .mailing-list-inner { flex-direction: column; gap: 1rem; }
  .mailing-list-text { font-size: .95rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  body.bandsite-menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .site-name { font-size: 1.2rem; letter-spacing: .16em; white-space: normal; }
  .social-links { gap: 1rem; }
  .social-link { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .mailing-list-banner, .bandsite-preview { display: none; }
  body { background: #fff; color: #000; }
}

/* Socials straight above the bottom row: one rule between them, not two. */
.social-links + .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* Edit links, for people who can edit (custom_732). Small, top right,
   out of the way of the page itself. */
.main-content .container { position: relative; }
.bandsite-edit { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; position: absolute; top: .7rem; right: var(--bt-pad); z-index: 20; }
.bandsite-edit a { box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.bandsite-edit a { padding: .3rem .7rem; border: 1px solid var(--bt-border-strong); border-radius: 3px; background: var(--bt-medium); color: var(--bt-muted); font: 500 .75rem/1.2 var(--bt-sans); letter-spacing: .04em; }
.bandsite-edit a:first-child { border-color: var(--bt-accent); color: var(--bt-accent); }
.bandsite-edit a:hover { color: var(--bt-text); border-color: var(--bt-text); }
@media (max-width: 768px) { .bandsite-edit { top: .4rem; left: var(--bt-pad); justify-content: flex-start; } }
