/* ==========================================================================
   StashMaster NYC — clean rebuild
   Dispensary in Brooklyn, NY (License OCM-CAURD-24-000217)
   ========================================================================== */

/* ----- Brand fonts ------------------------------------------------------- */
@font-face {
  font-family: "Rama Gothic E";
  src: url("../fonts/rama-gothic-e-heavy.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rama Gothic E";
  src: url("../fonts/rama-gothic-e-light.woff2") format("woff2");
  font-weight: 200 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gibson";
  src: url("../fonts/gibson-regular.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ----- Design tokens ----------------------------------------------------- */
:root {
  /* brand */
  --sm-orange:        #f14b21;
  --sm-orange-deep:   #d2350d;
  --sm-orange-darker: #ba2f0c;
  --sm-orange-soft:   #f68569;
  --sm-orange-tint:   #fcdbd3;

  /* surface */
  --sm-black:    #0d0d0d;
  --sm-near:     #141414;
  --sm-surface:  #1a1a1a;
  --sm-surface2: #262626;
  --sm-border:   #2c2c2c;
  --sm-line:     #333;

  /* text */
  --sm-white:   #ffffff;
  --sm-fog:     #e6e6e6;
  --sm-mute:    #aeaeae;
  --sm-mute2:   #888;
  --sm-low:     #555;

  /* type */
  --sm-display: "Rama Gothic E", "Oswald", "Bebas Neue", Impact, sans-serif;
  --sm-body:    "Gibson", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --sm-max:    1280px;
  --sm-gut:    clamp(16px, 3vw, 32px);
  --sm-radius: 4px;
  --sm-radius-lg: 12px;

  /* motion */
  --sm-ease:   cubic-bezier(.2,.7,.2,1);
}

/* ----- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sm-black);
  color: var(--sm-white);
  font-family: var(--sm-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sm-orange); text-decoration: none; transition: color .15s var(--sm-ease); }
a:hover { color: var(--sm-orange-soft); }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--sm-border); margin: 3rem 0; }

/* ----- Typography -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--sm-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: .04em; }
p { margin: 0 0 1rem; color: var(--sm-fog); }
.eyebrow {
  display: inline-block;
  font-family: var(--sm-display);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--sm-orange);
  margin: 0 0 1rem;
}

/* ----- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--sm-max);
  margin: 0 auto;
  padding: 0 var(--sm-gut);
}
.section {
  padding: clamp(48px, 8vw, 120px) 0;
}
.section--tight { padding: clamp(32px, 5vw, 64px) 0; }
.section--light  { background: var(--sm-near); }
.section--surface { background: var(--sm-surface); }
.grid { display: grid; gap: var(--sm-gut); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 14px 28px;
  background: var(--sm-orange);
  color: var(--sm-white);
  font-family: var(--sm-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 2px solid var(--sm-orange);
  border-radius: var(--sm-radius);
  transition: transform .15s var(--sm-ease), background .15s var(--sm-ease), color .15s var(--sm-ease);
}
.btn:hover {
  background: var(--sm-orange-deep);
  border-color: var(--sm-orange-deep);
  color: var(--sm-white);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--sm-white);
  border-color: var(--sm-white);
}
.btn--ghost:hover {
  background: var(--sm-white);
  color: var(--sm-black);
  border-color: var(--sm-white);
}
.btn--lg { padding: 18px 36px; font-size: 1.2rem; }
.btn--block { display: flex; width: 100%; }

/* ----- Header / Nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,13,13,.92);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--sm-border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.site-header__logo img {
  height: 38px;
  width: auto;
}
.nav { display: none; }
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px;
}
.nav__link {
  color: var(--sm-white);
  font-family: var(--sm-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nav__link:hover { color: var(--sm-orange); }
.nav__link--active { color: var(--sm-orange); }
.site-header__cta { display: flex; gap: 12px; align-items: center; }
.site-header__cta .btn { padding: 10px 20px; font-size: .9rem; }
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--sm-white); display: block;
}
@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* mobile drawer */
.nav-drawer {
  position: fixed; inset: 0;
  background: var(--sm-black);
  padding: 100px var(--sm-gut) 32px;
  transform: translateX(100%);
  transition: transform .3s var(--sm-ease);
  z-index: 60;
  overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer .nav__list { flex-direction: column; gap: 18px; }
.nav-drawer .nav__link { font-size: 1.6rem; }
.nav-drawer__close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: 0; color: var(--sm-white);
  font-size: 2rem; line-height: 1;
}

/* ----- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-color: var(--sm-black);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.65) 60%, rgba(13,13,13,1) 100%),
    radial-gradient(60% 60% at 30% 30%, rgba(241,75,33,.18), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: 100%;
  padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 96px);
}
.hero__content {
  max-width: 760px;
}
.hero__title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  margin: 0 0 .25em;
}
.hero__title .accent { color: var(--sm-orange); }
.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--sm-fog);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 3rem;
  display: flex;
  gap: 32px 48px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--sm-mute);
  letter-spacing: .04em;
}
.hero__meta strong {
  display: block; color: var(--sm-white);
  font-family: var(--sm-display);
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

/* ----- Marquee ----------------------------------------------------------- */
.marquee {
  background: var(--sm-orange);
  color: var(--sm-black);
  padding: 14px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--sm-display);
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: 1rem;
}
.marquee__track span::before { content: "★"; margin-right: 24px; opacity: .6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Cards ------------------------------------------------------------- */
.card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
  transition: border-color .2s var(--sm-ease), transform .2s var(--sm-ease);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--sm-orange); transform: translateY(-4px); }
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--sm-near);
  background-size: cover;
  background-position: center;
}
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card__title {
  font-family: var(--sm-display);
  font-size: 1.6rem;
  margin: 0 0 .25em;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card__text { color: var(--sm-mute); flex: 1; }
.card__cta {
  margin-top: 16px;
  font-family: var(--sm-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .9rem;
}

/* category card variant */
.cat-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
  background: var(--sm-surface);
  display: block;
}
.cat-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s var(--sm-ease);
}
.cat-card:hover .cat-card__bg { transform: scale(1.06); }
.cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.85) 100%);
}
.cat-card__label {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  font-family: var(--sm-display);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sm-white);
  display: flex; justify-content: space-between; align-items: end;
}
.cat-card__label::after {
  content: "→";
  color: var(--sm-orange);
  transform: translateX(0);
  transition: transform .25s var(--sm-ease);
}
.cat-card:hover .cat-card__label::after { transform: translateX(6px); }

/* ----- Brand strip ------------------------------------------------------- */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sm-gut);
  align-items: center;
  justify-items: center;
}
.brand-strip img {
  max-height: 64px; width: auto;
  filter: grayscale(1) brightness(1.2);
  opacity: .75;
  transition: opacity .2s, filter .2s;
}
.brand-strip a:hover img { filter: none; opacity: 1; }
@media (max-width: 700px) {
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Split / feature row ---------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split__media {
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sm-border);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ----- Tile (service area) ---------------------------------------------- */
.tile-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  color: var(--sm-white);
  font-family: var(--sm-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: border-color .2s, background .2s;
}
.tile::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--sm-orange);
  border-radius: 50%;
  flex: none;
}
.tile:hover { border-color: var(--sm-orange); background: var(--sm-surface2); color: var(--sm-white); }

/* ----- Stat row ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sm-gut);
  text-align: center;
}
.stat__num {
  font-family: var(--sm-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--sm-orange);
  display: block; line-height: 1;
}
.stat__label {
  font-family: var(--sm-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sm-mute);
  font-size: .85rem;
  margin-top: 8px; display: block;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ----- FAQ --------------------------------------------------------------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--sm-border);
}
.faq__q {
  width: 100%; text-align: left;
  background: none; border: 0; color: var(--sm-white);
  font-family: var(--sm-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 24px 40px 24px 0;
  position: relative;
}
.faq__q::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--sm-orange);
  font-size: 1.6rem; transition: transform .2s;
}
.faq__item[open] .faq__q::after { content: "–"; }
.faq__a { padding: 0 0 24px; color: var(--sm-mute); }

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--sm-near);
  border-top: 1px solid var(--sm-border);
  padding-top: clamp(48px, 6vw, 96px);
  margin-top: 48px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.site-footer h4 {
  font-family: var(--sm-display);
  letter-spacing: .2em;
  font-size: .95rem;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--sm-orange);
}
.site-footer__nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__nav a { color: var(--sm-fog); }
.site-footer__nav a:hover { color: var(--sm-orange); }
.site-footer__logo img { height: 56px; margin-bottom: 16px; }
.site-footer__bottom {
  border-top: 1px solid var(--sm-border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: var(--sm-mute);
}
.socials { display: flex; gap: 14px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--sm-border);
  border-radius: 50%;
  color: var(--sm-fog);
  transition: border-color .15s, color .15s;
}
.socials a:hover { border-color: var(--sm-orange); color: var(--sm-orange); }
.legal-strip {
  font-size: .8rem; color: var(--sm-mute2);
  padding: 12px 0;
  border-top: 1px solid var(--sm-border);
  text-align: center;
}
@media (max-width: 800px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ----- Age gate --------------------------------------------------------- */
.age-gate {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sm-gut);
  animation: fadeIn .2s var(--sm-ease);
}
.age-gate.is-hidden { display: none; }
.age-gate__panel {
  background: var(--sm-near);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  max-width: 520px; width: 100%;
  padding: 48px 40px;
  text-align: center;
}
.age-gate__panel img { height: 48px; margin: 0 auto 24px; }
.age-gate__panel h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.age-gate__panel p { color: var(--sm-mute); }
.age-gate__btns { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ----- Contact / forms -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: block; margin: 0 0 18px; }
.field label {
  display: block; font-family: var(--sm-display);
  font-size: .85rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sm-mute); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  color: var(--sm-white);
  font-family: var(--sm-body);
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--sm-orange);
}
.contact-info dl { margin: 0; display: grid; gap: 24px; }
.contact-info dt {
  font-family: var(--sm-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sm-orange);
  font-size: .85rem;
  margin-bottom: 4px;
}
.contact-info dd { margin: 0; color: var(--sm-fog); font-size: 1.05rem; }
.contact-info dd a { color: var(--sm-fog); border-bottom: 1px solid var(--sm-border); }
.contact-info dd a:hover { color: var(--sm-orange); border-color: var(--sm-orange); }

/* ----- Page hero (subpage) ---------------------------------------------- */
.page-hero {
  padding: clamp(96px, 12vw, 160px) 0 clamp(48px, 6vw, 80px);
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.85) 100%),
    var(--sm-near);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--sm-border);
}
.page-hero h1 { margin: 0; }
.page-hero__sub { color: var(--sm-mute); max-width: 64ch; margin-top: 16px; }
.crumbs {
  font-family: var(--sm-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--sm-mute);
  margin-bottom: 16px;
}
.crumbs a { color: var(--sm-mute); }
.crumbs a:hover { color: var(--sm-orange); }
.crumbs span { margin: 0 8px; color: var(--sm-low); }

/* ----- Utility ----------------------------------------------------------- */
.text-center { text-align: center; }
.muted { color: var(--sm-mute); }
.lede { font-size: 1.2rem; color: var(--sm-fog); max-width: 64ch; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lede { margin: 0 auto; }
.tag {
  display: inline-block;
  font-family: var(--sm-display);
  font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sm-orange);
  border: 1px solid var(--sm-orange);
  border-radius: 999px;
  padding: 4px 12px;
}
.divider {
  width: 60px; height: 4px; background: var(--sm-orange);
  border-radius: 2px;
  margin: 0 0 24px;
}
.section-head .divider { margin: 0 auto 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
