/* ============================================================
   Legends Collective — home page (dark theme)

   Deliberately separate from style.css: the editor is a light-themed
   tool and is not touched by anything in here. The two pages share
   only the font files.
   ============================================================ */

@font-face {
  font-family: 'Eurostile Extended Bold';
  src: url('assets/fonts/EurostileExtendedBold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue Condensed';
  src: url('assets/fonts/HelveticaNeueCondensed.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* True black, because the logo artwork is drawn on #000 — anything
     lighter would show as a square panel behind the mark. */
  --black: #000000;
  --surface: #0c0c0e;
  --surface-2: #141418;
  --surface-3: #1c1c21;

  --gold: #d4af37;
  --gold-bright: #f2dc93;
  --gold-deep: #8f6f22;

  --text: #f4f3ef;
  --muted: #9d9c96;
  --dim: #6f6e69;

  --line: rgba(212, 175, 55, 0.20);
  --line-soft: rgba(255, 255, 255, 0.08);

  --head: 'Eurostile Extended Bold', 'Arial Black', system-ui, sans-serif;
  --body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

/* height:auto matters: the hero img carries width/height attributes for layout
   stability, and without it the CSS width would stretch the artwork. */
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* A hairline gold divider used between major bands. */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}

.nav-brand img {
  height: 42px;
  width: auto;
  /* the mark is on black; on a black bar it reads as cut out */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.18s ease;
}

.nav-links a:hover { color: var(--text); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1a1305;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.22);
}
.btn-gold:hover {
  color: #1a1305;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.34);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.06);
}

.btn-sm { padding: 10px 20px; font-size: 12px; }

.btn:focus-visible,
a:focus-visible,
.tmpl:focus-visible,
.choice:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--black);
  padding: 56px 0 84px;
  text-align: center;
  overflow: hidden;
}

/* Gold wash behind the mark so the black artwork sits in a pool of light
   rather than on a flat void. */
.hero::before {
  content: '';
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 760px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.04) 45%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-logo {
  /* Large enough to lead the page, small enough that the headline and the
     Order Now button still land above the fold on a laptop. */
  width: min(500px, 74vw);
  margin: 0 auto 4px;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.9));
}

.hero h1 {
  font-family: var(--head);
  font-size: clamp(20px, 3.1vw, 34px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 8px 0 16px;
  text-transform: uppercase;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- Section furniture ---------------- */

.section { padding: 84px 0; }
.section-dark { background: var(--surface); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 14px;
}

.section h2 {
  font-family: var(--head);
  font-size: clamp(24px, 3.4vw, 38px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  line-height: 1.2;
}

.section p.body {
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
  margin: 0 0 16px;
}

/* ---------------- How it works ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover { border-color: var(--line); transform: translateY(-3px); }

.step-num {
  font-family: var(--head);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.about-card {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}

.about-card img { margin: 0 auto; width: min(320px, 100%); }

.about-card .cap {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* ---------------- Contact ---------------- */

/* 300 px boxes hold the full email address on one line (it is about 235 px
   of text plus 52 px of padding); min() lets a phone narrower than that
   take one full-width column instead of overflowing. */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-item {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 26px;
}

.contact-item h3 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.contact-item p { margin: 0; color: var(--muted); font-size: 15px; }
/* The email is longer than a narrow box is wide: it breaks after the @
   (a wbr in the markup), and anywhere at all only on the narrowest phones,
   rather than running out of its box. */
.contact-item p { overflow-wrap: break-word; }

/* ---------------- Footer ---------------- */

.footer {
  background: var(--black);
  border-top: 1px solid var(--line-soft);
  padding: 34px 0;
}

/* Centred rather than spread: with the copyright line gone the button was the
   only child, and space-between left it stranded against the left edge. */
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer small { color: var(--dim); font-size: 12.5px; }

/* Terms / Privacy, under the button. */
.footer .legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 18px;
  font-size: 13px;
}
.footer .legal-links a { color: var(--muted); }
.footer .legal-links a:hover { color: var(--gold-bright); }
.footer .legal-links span { color: var(--dim); }

/* ============================================================
   Order flow modal
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.modal[hidden] { display: none; }

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 38px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
}
.modal-close:hover { color: var(--text); }

.modal-step[hidden] { display: none; }

.modal-step h2 {
  font-family: var(--head);
  font-size: clamp(19px, 2.6vw, 25px);
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.modal-step > p.sub {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 15px;
}

.step-count {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

/* -- step 1: single vs team -- */

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.choice {
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 26px 24px;
  cursor: pointer;
  font-family: var(--body);
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.choice:hover {
  border-color: var(--gold);
  background: var(--surface-3);
  transform: translateY(-3px);
}

.choice-ico { font-size: 26px; margin-bottom: 12px; }

.choice h3 {
  font-family: var(--head);
  font-size: 15px;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.choice p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* -- step 2: template picker -- */

/* Five designs across on desktop, then three, then two. auto-fit with a
   large min would strand the last tile on its own row. */
.tmpl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 880px) {
  .tmpl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .tmpl-grid { grid-template-columns: repeat(2, 1fr); }
}

.tmpl {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  font-family: var(--body);
  color: var(--text);
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.tmpl:not([disabled]):hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.tmpl[disabled] { cursor: not-allowed; opacity: 0.5; }

.tmpl-thumb {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tmpl-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tmpl-thumb.empty {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px),
    var(--surface-3);
  color: var(--dim);
  font-size: 26px;
}

.tmpl-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.tmpl-meta { font-size: 11px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }

.tmpl-badge {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  pointer-events: none;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.modal-actions .spacer { margin-left: auto; }

.pick-summary {
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.pick-summary b { color: var(--gold); font-weight: 700; }

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .nav-links { gap: 18px; }
  .nav-links a.nav-hide { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .choices { grid-template-columns: 1fr; }
  .modal-dialog { padding: 26px 20px; }
  .hero { padding: 34px 0 60px; }
  .btn { padding: 13px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
