/* Horizon Roleplay — sunset urban design system (GothamDev) */
/* Palette: warm earth + steel blue — sunset vibe */

:root {
  --hz-bg: #1a1410;
  --hz-surface: #261c16;
  --hz-surface-2: #332518;
  --hz-border: rgba(192, 86, 33, 0.22);
  --hz-border-soft: rgba(255, 247, 237, 0.08);
  --hz-primary: #c05621;
  --hz-primary-soft: rgba(192, 86, 33, 0.18);
  --hz-accent: #2b6cb0;
  --hz-accent-light: #3b82c6;
  --hz-text: #fff7ed;
  --hz-muted: #b8a89a;
  --hz-ok: #6db86e;
  --hz-warn: #d4a017;
  --hz-danger: #c45c5c;
  --hz-radius: 10px;
  --hz-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --hz-font: "Outfit", system-ui, sans-serif;
  --hz-display: "Playfair Display", "Fraunces", Georgia, serif;
  --hz-header-h: 68px;
  --hz-banner-h: 0px;
  --hz-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hz-reveal { opacity: 1 !important; transform: none !important; }
}

body.hz-body {
  margin: 0;
  font-family: var(--hz-font);
  background:
    linear-gradient(180deg, rgba(192, 86, 33, 0.08) 0%, transparent 20%),
    var(--hz-bg);
  color: var(--hz-text);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: calc(var(--hz-banner-h) + 1rem);
}
body.hz-body.has-demo-banner { --hz-banner-h: 72px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hz-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #e06a2f; }
h1, h2, h3, h4 {
  font-family: var(--hz-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5rem;
}
.hz-wrap { width: min(var(--hz-max), calc(100% - 2rem)); margin: 0 auto; }
.hz-muted { color: var(--hz-muted); }
.hz-kicker {
  font-family: var(--hz-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hz-primary);
  margin-bottom: 0.4rem;
}

/* ─── Demo banner ─── */
.hz-demo-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, rgba(43, 108, 176, 0.95), rgba(26, 20, 16, 0.98));
  border-top: 1px solid var(--hz-primary);
  font-size: 0.86rem;
}
.hz-demo-banner[hidden] { display: none !important; }
.hz-demo-banner__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.hz-demo-banner__dismiss {
  background: transparent;
  border: 1px solid var(--hz-border-soft);
  color: var(--hz-text);
  width: 32px; height: 32px;
  border-radius: var(--hz-radius);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ─── Header ─── */
.hz-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(26, 20, 16, 0.94);
  border-bottom: 1px solid var(--hz-border);
  backdrop-filter: blur(10px);
}
.hz-header__inner {
  width: min(var(--hz-max), calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: var(--hz-header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}
.hz-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--hz-text);
  text-decoration: none;
}
.hz-logo:hover { color: var(--hz-text); }
.hz-logo__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--hz-primary), #d97a3e);
  border-radius: 50%;
  font-family: var(--hz-display);
  font-size: 0.78rem;
  color: #fff;
  font-weight: 700;
}
.hz-logo__text {
  font-family: var(--hz-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.hz-logo__text small {
  display: block;
  font-family: var(--hz-font);
  font-size: 0.65rem;
  color: var(--hz-muted);
  font-weight: 400;
}
.hz-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  justify-content: center;
}
.hz-nav a {
  color: var(--hz-muted);
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.hz-nav a:hover,
.hz-nav a.is-active {
  color: var(--hz-text);
  background: var(--hz-primary-soft);
}
.hz-header__right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hz-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hz-border);
  background: var(--hz-surface);
  font-size: 0.75rem;
  color: var(--hz-muted);
  white-space: nowrap;
}
.hz-status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hz-ok);
  box-shadow: 0 0 0 3px rgba(109, 184, 110, 0.25);
}
.hz-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--hz-border-soft);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
}
.hz-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--hz-text);
}
.hz-mobile {
  background: var(--hz-surface);
  border-bottom: 1px solid var(--hz-border);
  padding: 0.75rem 1rem 1rem;
}
.hz-mobile[hidden] { display: none !important; }
.hz-mobile a {
  display: block;
  padding: 0.55rem 0.4rem;
  color: var(--hz-text);
  border-bottom: 1px solid var(--hz-border-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
@media (min-width: 960px) {
  .hz-nav { display: flex; }
  .hz-burger { display: none; }
  .hz-mobile { display: none !important; }
}

/* ─── Buttons ─── */
.hz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--hz-radius);
  border: 1px solid transparent;
  font-family: var(--hz-font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.hz-btn:hover { transform: translateY(-1px); }
.hz-btn--primary {
  background: var(--hz-primary);
  color: #fff;
  border-color: #d46828;
}
.hz-btn--primary:hover { background: #d46828; color: #fff; }
.hz-btn--accent {
  background: var(--hz-accent);
  color: #fff;
  border-color: var(--hz-accent-light);
}
.hz-btn--accent:hover { background: var(--hz-accent-light); color: #fff; }
.hz-btn--ghost {
  background: transparent;
  color: var(--hz-text);
  border-color: var(--hz-border);
}
.hz-btn--ghost:hover { border-color: var(--hz-primary); color: var(--hz-primary); }
.hz-btn--sm { padding: 0.4rem 0.75rem; font-size: 0.78rem; }
.hz-btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }

/* ─── Layout ─── */
.hz-section { padding: 3.5rem 0; }
.hz-section--tight { padding: 2.25rem 0; }
.hz-section__head { margin-bottom: 1.75rem; max-width: 42rem; }
.hz-section__head h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.hz-section__head p { color: var(--hz-muted); margin: 0.4rem 0 0; }

.hz-card {
  background: var(--hz-surface);
  border: 1px solid var(--hz-border-soft);
  border-radius: var(--hz-radius);
  overflow: hidden;
  box-shadow: var(--hz-shadow);
}
.hz-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hz-card__body { padding: 1.1rem 1.15rem 1.3rem; }
.hz-card__body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.hz-card__body p { margin: 0; color: var(--hz-muted); font-size: 0.92rem; }
.hz-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: var(--hz-primary-soft);
  color: var(--hz-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hz-grid-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.hz-grid-3 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.hz-grid-4 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .hz-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .hz-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hz-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hz-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hz-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.hz-stat {
  background: var(--hz-surface);
  border: 1px solid var(--hz-border-soft);
  border-top: 2px solid var(--hz-primary);
  border-radius: var(--hz-radius);
  padding: 1.1rem 1.2rem;
  text-align: center;
}
.hz-stat strong {
  display: block;
  font-family: var(--hz-display);
  font-size: 1.8rem;
  color: var(--hz-primary);
}
.hz-stat span {
  font-size: 0.8rem;
  color: var(--hz-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Hero ─── */
.hz-hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hz-hero__bg { position: absolute; inset: 0; z-index: 0; }
.hz-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hz-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(26, 20, 16, 0.25) 0%, rgba(26, 20, 16, 0.85) 65%, var(--hz-bg) 100%),
    linear-gradient(90deg, rgba(26, 20, 16, 0.7) 0%, transparent 50%);
}
.hz-hero__content {
  position: relative; z-index: 2;
  width: min(var(--hz-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0 3.5rem;
  max-width: 40rem;
}
.hz-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--hz-primary);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hz-primary);
  margin-bottom: 1rem;
  background: rgba(26, 20, 16, 0.55);
}
.hz-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 0.75rem;
}
.hz-hero p {
  color: #ddd3c8;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.55;
}

/* ─── Page hero ─── */
.hz-page-hero {
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(192, 86, 33, 0.15), transparent),
    var(--hz-bg);
  border-bottom: 1px solid var(--hz-border);
}
.hz-page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hz-page-hero p { color: var(--hz-muted); max-width: 38rem; margin: 0.5rem 0 0; }

/* ─── Métiers strip ─── */
.hz-metiers-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
}
.hz-metier-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--hz-surface);
  border: 1px solid var(--hz-border-soft);
  border-radius: var(--hz-radius);
  font-size: 0.85rem;
  color: var(--hz-text);
  white-space: nowrap;
}
.hz-metier-chip__icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--hz-primary-soft);
  border-radius: 50%;
  font-size: 0.85rem;
}

/* ─── Accordion ─── */
.hz-acc details {
  background: var(--hz-surface);
  border: 1px solid var(--hz-border-soft);
  border-radius: var(--hz-radius);
  margin-bottom: 0.55rem;
  overflow: hidden;
}
.hz-acc summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  list-style: none;
}
.hz-acc summary::-webkit-details-marker { display: none; }
.hz-acc details[open] summary {
  border-bottom: 1px solid var(--hz-border);
  color: var(--hz-primary);
}
.hz-acc__body {
  padding: 1rem 1.1rem 1.2rem;
  color: var(--hz-muted);
  font-size: 0.95rem;
}

/* ─── Form ─── */
.hz-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hz-muted);
  margin-bottom: 0.35rem;
}
.hz-form input,
.hz-form select,
.hz-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--hz-radius);
  border: 1px solid var(--hz-border-soft);
  background: var(--hz-bg);
  color: var(--hz-text);
  font: inherit;
  margin-bottom: 0.95rem;
}
.hz-form input:focus,
.hz-form select:focus,
.hz-form textarea:focus {
  outline: none;
  border-color: var(--hz-primary);
}
.hz-form-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.hz-form-steps span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--hz-border-soft);
  font-size: 0.75rem;
  color: var(--hz-muted);
  font-weight: 600;
}
.hz-form-steps span.is-active {
  background: var(--hz-primary);
  color: #fff;
  border-color: var(--hz-primary);
}
.hz-form-step[hidden] { display: none !important; }

/* ─── Gallery ─── */
.hz-gallery {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) {
  .hz-gallery { grid-template-columns: repeat(3, 1fr); }
}
.hz-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--hz-radius);
  border: 1px solid var(--hz-border-soft);
}

/* ─── CTA band ─── */
.hz-cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(192, 86, 33, 0.3), rgba(43, 108, 176, 0.2)),
    var(--hz-surface);
  border: 1px solid var(--hz-border);
  border-radius: var(--hz-radius);
}
.hz-cta-band h2 { margin-bottom: 0.5rem; }
.hz-cta-band p { color: var(--hz-muted); max-width: 36rem; margin: 0 auto 1rem; }

/* ─── Footer ─── */
.hz-footer {
  border-top: 1px solid var(--hz-border);
  background: #110d0a;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.hz-footer__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .hz-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.hz-footer h3 {
  font-family: var(--hz-font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hz-primary);
  margin-bottom: 0.75rem;
}
.hz-footer ul { list-style: none; padding: 0; margin: 0; }
.hz-footer li { margin-bottom: 0.4rem; }
.hz-footer a { color: var(--hz-muted); }
.hz-footer a:hover { color: var(--hz-primary); }
.hz-footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hz-border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--hz-muted);
}

/* ─── Toast ─── */
.hz-toast {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--hz-banner-h) + 1rem);
  z-index: 1400;
  background: var(--hz-accent);
  border: 1px solid var(--hz-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--hz-radius);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: min(360px, calc(100% - 2rem));
  font-size: 0.9rem;
}
.hz-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Reveal animation ─── */
.hz-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hz-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ─── Lore quote ─── */
.hz-quote {
  border-left: 3px solid var(--hz-primary);
  padding-left: 1.15rem;
  font-family: var(--hz-display);
  font-size: 1.15rem;
  font-style: italic;
  color: #e8ddd4;
}
.hz-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-family: var(--hz-font);
  font-size: 0.85rem;
  color: var(--hz-primary);
}

/* ─── Misc ─── */
.hz-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
}
.hz-pill--ok { background: rgba(109,184,110,0.2); color: #7ddea8; }
.hz-pill--warn { background: rgba(212,160,23,0.2); color: #e8c45a; }
.hz-pill--danger { background: rgba(196,92,92,0.2); color: #f0a0a0; }
.hz-pill--info { background: rgba(43,108,176,0.25); color: #93c5fd; }

.desktop-only { display: none; }
@media (min-width: 800px) { .desktop-only { display: inline-flex; } }

@media (max-width: 480px) {
  .hz-hero { min-height: 85vh; }
  .hz-status-pill { font-size: 0.68rem; padding: 0.25rem 0.5rem; }
}
