/*
  MFG National Holdings — brand layer over HTML5 UP Solid State
  Base template: Solid State by HTML5 UP (html5up.net) — CCA 3.0
  Colors / logo / content: MFG National Holdings LLC
*/

:root {
  --mfg-void: #07080c;
  --mfg-ink: #0c0e14;
  --mfg-panel: #141822;
  --mfg-gold: #d4b46c;
  --mfg-gold-soft: #edd9a8;
  --mfg-cream: #f5f1e8;
  --mfg-text: #ebe6db;
  --mfg-muted: #c4bdb0;
}

/* Allow pinch-zoom (WCAG) — template sets user-scalable=no in HTML; we don't */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.is-preload *, body.is-preload *:before, body.is-preload *:after,
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark luxury void + Solid State atmospheric bg */
body {
  background-color: var(--mfg-void) !important;
  background-image:
    linear-gradient(to top, rgba(7, 8, 12, 0.88), rgba(12, 14, 20, 0.82)),
    url("vendor/solid-state/images/bg.jpg") !important;
  background-size: auto, cover !important;
  background-attachment: fixed, fixed !important;
  background-position: center, center !important;
  color: var(--mfg-text) !important;
}

body, input, select, textarea {
  color: var(--mfg-text) !important;
}

a {
  color: var(--mfg-gold-soft) !important;
}

a:hover {
  color: var(--mfg-gold) !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--mfg-gold);
  color: var(--mfg-void) !important;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--mfg-void) !important;
}

:focus-visible {
  outline: 2px solid var(--mfg-gold) !important;
  outline-offset: 3px;
}

/* Header brand with logo */
#header h1 a.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 0 !important;
  text-decoration: none !important;
}

#header h1 a.brand-lockup img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 180, 108, 0.35);
  object-fit: cover;
}

#header h1 a.brand-lockup span {
  font-family: Raleway, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--mfg-cream) !important;
}

#header.alt {
  background: transparent;
}

#header:not(.alt) {
  background: rgba(7, 8, 12, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Banner — gold accent logo gem */
#banner .logo {
  border-color: rgba(212, 180, 108, 0.45) !important;
  background: rgba(212, 180, 108, 0.08) !important;
}

#banner .logo .icon {
  color: var(--mfg-gold) !important;
}

#banner h2 {
  color: var(--mfg-cream) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
}

#banner p {
  color: var(--mfg-muted) !important;
}

#banner .actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
  padding: 0;
}

/* Spotlight panels — gold borders */
.wrapper.spotlight .inner {
  border-color: rgba(212, 180, 108, 0.18) !important;
}

.wrapper.spotlight .image img,
.features article .image img {
  border-radius: 4px;
}

/* Logo marks in image slots */
.image.logo-slot {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #141822, #0c0e14);
  border: 1px solid rgba(212, 180, 108, 0.28);
  min-height: 12rem;
}

.image.logo-slot img {
  width: min(55%, 160px) !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 12px;
}

/* Features / game cards */
.features article {
  background: rgba(20, 24, 34, 0.55) !important;
  border: 1px solid rgba(212, 180, 108, 0.16);
  border-radius: 8px;
  padding: 1.25rem;
}

.features article .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mfg-gold);
  border: 1px solid rgba(212, 180, 108, 0.4);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

h1.major, h2.major, h3.major {
  border-bottom-color: rgba(212, 180, 108, 0.35) !important;
  color: var(--mfg-cream) !important;
}

/* Buttons — primary gold */
.button.primary {
  background-color: var(--mfg-gold) !important;
  box-shadow: none !important;
  color: var(--mfg-void) !important;
  font-weight: 700 !important;
}

.button.primary:hover {
  background-color: var(--mfg-gold-soft) !important;
  color: var(--mfg-void) !important;
}

.button:not(.primary) {
  box-shadow: inset 0 0 0 1px rgba(212, 180, 108, 0.45) !important;
  color: var(--mfg-gold-soft) !important;
}

.button:not(.primary):hover {
  background: rgba(212, 180, 108, 0.12) !important;
  color: var(--mfg-cream) !important;
}

a.special:not(.button) {
  color: var(--mfg-gold) !important;
}

a.special:not(.button):before {
  background: var(--mfg-gold) !important;
}

/* Inner pages use #banner.small */
#banner.small {
  min-height: 0 !important;
  height: auto !important;
  padding: 8rem 0 4rem !important;
}

#banner.small .inner {
  transform: none !important;
  opacity: 1 !important;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}

#banner.small h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
}

/* Info / contact blocks adapted from features */
.info-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-card,
.contact-block {
  background: rgba(20, 24, 34, 0.55);
  border: 1px solid rgba(212, 180, 108, 0.16);
  border-radius: 8px;
  padding: 1.5rem;
}

.info-card h3,
.contact-block h3 {
  margin-bottom: 0.5rem;
  color: var(--mfg-cream);
}

.contact-block .mail {
  display: inline-block;
  margin-top: 0.75rem;
  word-break: break-all;
  font-weight: 600;
}

.dl-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.dl-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(212, 180, 108, 0.12);
}

.dl-list .k {
  flex: 0 0 8rem;
  color: var(--mfg-gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-list .v {
  flex: 1;
  color: var(--mfg-text);
}

/* Prose pages (privacy) */
.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 2rem;
  color: var(--mfg-cream);
}

.prose p, .prose li {
  color: var(--mfg-muted);
}

/* Menu gold */
#menu .inner {
  background: #0c0e14 !important;
  border-color: rgba(212, 180, 108, 0.25) !important;
}

#menu .links li a:hover {
  color: var(--mfg-gold) !important;
}

/* Footer */
#footer {
  background: rgba(7, 8, 12, 0.65) !important;
}

#footer .copyright {
  color: var(--mfg-muted) !important;
}

#footer .copyright a {
  color: var(--mfg-gold-soft) !important;
}

/* Touch targets */
#header nav a,
.button,
#menu .links li a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Spotlights alt background tint */
#wrapper > .wrapper {
  background-color: rgba(7, 8, 12, 0.35);
}

#wrapper > .wrapper.alt {
  background-color: rgba(20, 24, 34, 0.45);
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
