/* Unified site header (logo + 4 nav items) and footer (all pages, English) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #0f172a;
}

.site-logo-img {
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
}

.site-logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.site-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.site-logo-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}

.site-nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 0.5rem;
}

.site-nav-main a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
}

.site-nav-main a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.site-nav-main a[aria-current="page"] {
  background: #0f172a;
  color: #f8fafc;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: auto;
  padding: 2.25rem 1.25rem 1.75rem;
  font-size: 0.875rem;
}

.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.site-footer-brand {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-footer-brand strong {
  display: block;
  color: #f1f5f9;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.site-footer-brand p {
  margin: 0;
  max-width: 36rem;
  line-height: 1.55;
  color: #94a3b8;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.site-footer-grid h2 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
}

.site-footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-grid li {
  margin: 0.35rem 0;
}

.site-footer-grid a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer-grid a:hover {
  text-decoration: underline;
  color: #fff;
}

.site-footer-copy {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Legal pages: body with dark background */
body.legal-doc {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #020617;
}

body.legal-doc .page-container {
  margin: 1rem auto 2rem;
  width: calc(100% - 2rem);
  max-width: 900px;
}

body.legal-doc .site-footer {
  margin-top: auto;
}

/* Dark pages (legal): header matches background */
body.legal-doc .site-header {
  background: rgba(2, 6, 23, 0.96);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}
body.legal-doc .site-logo,
body.legal-doc .site-logo-text {
  color: #f8fafc;
}
body.legal-doc .site-logo-tag {
  color: #94a3b8;
}
body.legal-doc .site-nav-main a {
  color: #cbd5e1;
}
body.legal-doc .site-nav-main a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Custom content pages: column layout so footer sits at bottom */
body.page-events,
body.page-creators,
body.page-venues,
body.page-spotlight,
body.page-resources {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-events .site-main,
body.page-creators .site-main,
body.page-venues .site-main,
body.page-spotlight .site-main,
body.page-resources .site-main {
  flex: 1;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Contrast & polish (loads after page CSS / Nicepage)
   Nicepage often applies u-grey-80/90 background on :before only; headings
   and body copy can still use default dark ink → unreadable on #333.
   -------------------------------------------------------------------------- */

section.u-grey-80 > .u-sheet,
section.u-grey-90 > .u-sheet {
  color: #e8eaed;
}

/* Light sections: same Nicepage :before quirk; on a dark body (e.g. guides) copy would stay white */
section.u-grey-5 > .u-sheet,
section.u-grey-10 > .u-sheet,
section.u-white > .u-sheet {
  color: #1e293b;
}

/* Light “surfaces” inside dark sections must stay dark for copy */
section.u-grey-80 .u-white,
section.u-grey-80 .u-container-style.u-white,
section.u-grey-80 .u-list-item.u-white,
section.u-grey-80 [class*="u-palette-1-light-2"],
section.u-grey-80 [class*="u-palette-1-light-3"],
section.u-grey-80 .u-palette-1-white,
section.u-grey-90 .u-white,
section.u-grey-90 .u-container-style.u-white,
section.u-grey-90 .u-list-item.u-white,
section.u-grey-90 [class*="u-palette-1-light-2"],
section.u-grey-90 [class*="u-palette-1-light-3"],
section.u-grey-90 .u-palette-1-white {
  color: #1e293b;
}

section.u-grey-80 .u-white .u-text,
section.u-grey-80 .u-list-item.u-white .u-text,
section.u-grey-90 .u-white .u-text,
section.u-grey-90 .u-list-item.u-white .u-text {
  color: inherit;
}

/* Shaded image blocks inside dark sections: keep overlay copy light */
section.u-grey-80 .u-image.u-shading .u-container-layout,
section.u-grey-90 .u-image.u-shading .u-container-layout {
  color: #fff;
}

/* CTA strip on dark band: u-text-body-color uses !important in Nicepage */
section#sec-cta-contact.u-grey-80 a.u-btn.u-button-style.u-text-body-color,
section#sec-cta-contact.u-grey-90 a.u-btn.u-button-style.u-text-body-color {
  color: #0f172a !important;
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

section#sec-cta-contact.u-grey-80 a.u-btn.u-button-style.u-text-body-color:hover,
section#sec-cta-contact.u-grey-80 a.u-btn.u-button-style.u-text-hover-white:hover,
section#sec-cta-contact.u-grey-90 a.u-btn.u-button-style.u-text-body-color:hover,
section#sec-cta-contact.u-grey-90 a.u-btn.u-button-style.u-text-hover-white:hover {
  color: #fff !important;
  background-color: #478ac9 !important;
  border-color: #3a7ab5 !important;
}

/* Light CTA sections: calmer secondary line */
section#sec-cta-contact.u-grey-5 > .u-sheet .u-text-2,
section#sec-cta-contact.u-grey-5 > .u-sheet p.u-text {
  color: #475569;
}

section#sec-cta-contact.u-grey-5 > .u-sheet h2.u-text {
  color: #0f172a;
}

/* Form labels on dark contact block */
section.u-grey-80 .u-form .u-label,
section.u-grey-90 .u-form .u-label {
  color: #e2e8f0;
}

section.u-grey-80 .u-input,
section.u-grey-80 .u-field-input,
section.u-grey-90 .u-input,
section.u-grey-90 .u-field-input {
  color: #0f172a;
}

/* Shared chrome: focus rings */
.site-nav-main a:focus-visible,
.site-logo:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 4px;
}

.site-nav-main a:focus-visible {
  border-radius: 8px;
}
