/* ============================================
   REST WHEN DEAD — restwhendead.ca
   Black steel / blood red. Built to funnel.
   ============================================ */

:root {
  --black: #0a0a0a;
  --steel: #141414;
  --smoke: #1e1e1e;
  --blood: #a30d0d;
  --blood-bright: #d41414;
  --bone: #e8e4dd;
  --ash: #8f8b84;
  --display: "Pathway Gothic One", "Arial Narrow", sans-serif;
  --body: "Barlow", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blood-bright); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blood-bright);
  outline-offset: 3px;
}

h1, h2, h3, .btn {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
  line-height: 1.05;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--smoke);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 64px; width: auto; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-nav a {
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.header-nav a:hover { color: var(--blood-bright); }
.header-nav .btn { padding: 0.5rem 1.4rem; font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blood);
  color: var(--bone);
  padding: 0.85rem 2.4rem;
  font-size: 1.25rem;
  border: 1px solid var(--blood-bright);
  transition: background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--blood-bright); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--ash);
  color: var(--bone);
}
.btn-ghost:hover { background: var(--smoke); border-color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 1.25rem 6rem;
  text-align: center;
  background: var(--steel);
  border-bottom: 2px solid var(--blood);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 18s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
@keyframes heroFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  33.3% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide:first-child { opacity: 1; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.92) 85%);
}
.hero > :not(.hero-slides) { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: var(--bone);
}
.hero h1 .cut { color: var(--blood-bright); }
.hero .tagline {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.25em;
  color: var(--ash);
  margin-top: 0.5rem;
  text-transform: uppercase;
}
.hero p.lede {
  max-width: 620px;
  margin: 1.5rem auto 2.25rem;
  color: var(--bone);
  font-size: 1.1rem;
}
.hero .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.25rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.4rem;
}
.section h2::before {
  content: "// ";
  color: var(--blood-bright);
}
.section .sub {
  color: var(--ash);
  font-family: var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.section p { max-width: 680px; }
.section.tinted { background: var(--steel); border-top: 1px solid var(--smoke); border-bottom: 1px solid var(--smoke); }

/* ---------- Split (Men's / Women's) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split img { border: 1px solid var(--smoke); }
.split .btn { margin-top: 1.5rem; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 2.5rem;
}
.gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--smoke);
  aspect-ratio: 4 / 3;
  background: var(--steel);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery a:hover img { transform: scale(1.04); opacity: 0.85; }

/* ---------- Size charts ---------- */
.charts { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Where-to-buy locations ---------- */
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.location {
  background: var(--steel);
  border: 1px solid var(--smoke);
  border-left: 3px solid var(--blood);
  padding: 1.5rem;
}
.location h3 { font-size: 1.4rem; color: var(--bone); margin-bottom: 0.35rem; }
.location .region {
  font-family: var(--display);
  color: var(--blood-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.location p { color: var(--ash); font-size: 0.98rem; }
.location a { display: inline-block; margin-top: 0.5rem; }

/* ---------- Wholesale form ---------- */
.wholesale-form {
  max-width: 560px;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.wholesale-form label {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--ash);
  margin-bottom: 0.3rem;
}
.wholesale-form input,
.wholesale-form textarea {
  width: 100%;
  background: var(--steel);
  border: 1px solid var(--smoke);
  color: var(--bone);
  padding: 0.75rem;
  font-family: var(--body);
  font-size: 1rem;
}
.wholesale-form input:focus,
.wholesale-form textarea:focus {
  outline: none;
  border-color: var(--blood-bright);
}

/* ---------- Instagram strip ---------- */
.ig-strip { text-align: center; }
.ig-strip a {
  font-family: var(--display);
  font-size: clamp(1.3rem, 4vw, 2rem);
  letter-spacing: 0.12em;
  color: var(--bone);
}
.ig-strip a:hover { color: var(--blood-bright); }
.ig-strip svg { vertical-align: -6px; margin-right: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--steel);
  border-top: 2px solid var(--blood);
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}
.site-footer .hq {
  font-family: var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  font-size: 0.95rem;
}
.site-footer img { height: 90px; width: auto; margin: 1rem auto; }
.site-footer p { color: var(--ash); font-size: 0.95rem; }
.site-footer .fine { margin-top: 1.5rem; font-size: 0.85rem; color: #5c5952; }

/* ---------- HQ map embed ---------- */
.site-footer .map-embed {
  max-width: 640px;
  margin: 1.75rem auto 0;
  border: 1px solid var(--smoke);
  border-top: 2px solid var(--blood);
}
.site-footer .map-embed iframe {
  display: block;
  width: 100%;
  filter: grayscale(35%) contrast(1.05);
}
