/* Super Star Smoke Shop — site styles. Light theme, mobile first. */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f172a;          /* main text */
  --ink-2: #334155;        /* body copy */
  --muted: #475569;        /* small print (7.5:1 on white) */
  --line: #e2e8f0;
  --brand-blue: #0182fb;   /* logo blue (decor only) */
  --brand-orange: #fd7306; /* logo orange (decor + dark-text buttons) */
  --blue: #0062cc;         /* white text on it = 5.8:1 */
  --blue-hover: #0052ad;
  --link: #0057b8;         /* 6.9:1 on white */
  --orange-hover: #e86400; /* dark text on it = 5.3:1 */
  --today-bg: #fff3e8;
  --open-ink: #166534;  --open-bg: #dcfce7;
  --closed-ink: #991b1b; --closed-bg: #fee2e2;
  --focus: #0f172a;
  --dark: #0b1220;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main:focus { outline: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; outline-color: var(--brand-orange); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 56px;
  padding: .875rem 1.375rem;
  border: 2px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn:focus-visible { border-radius: 14px; }

.btn-call { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(0, 98, 204, .25); }
.btn-call:hover { background: var(--blue-hover); }

.btn-dir { background: var(--brand-orange); color: var(--ink); box-shadow: 0 6px 16px rgba(253, 115, 6, .25); }
.btn-dir:hover { background: var(--orange-hover); }

.btn-outline { background: var(--surface); color: var(--link); border-color: #b6cce8; }
.btn-outline:hover { border-color: var(--link); background: #f3f8ff; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(0); }

.btn-row { display: grid; gap: 12px; }
.btn-row .btn { width: 100%; }
.card .btn-row { margin-top: 1.25rem; }

/* ---------- Hero (page header) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(1, 130, 251, .14), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(253, 115, 6, .14), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 32px 0 36px;
  text-align: center;
}

.hero-inner { display: grid; gap: 24px; align-items: center; }

.hero-logo {
  width: 152px;
  height: 152px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(1, 130, 251, .35), 0 18px 40px rgba(15, 23, 42, .28);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.eyebrow svg { width: 1.1em; height: 1.1em; color: var(--brand-orange); }

.hero h1 {
  font-size: clamp(2.125rem, 7vw + .5rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
}
.hero h1 .accent { color: var(--blue); }

.lede {
  margin: .875rem auto 0;
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* Open/closed pill (filled in by JS; hidden without JS) */
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  background: #eef2f7;
  color: var(--ink);
}
.status[hidden] { display: none; }
.status .dot { width: .625rem; height: .625rem; border-radius: 50%; background: currentColor; flex: none; }
.status strong { font-weight: 800; }
.status.is-open { background: var(--open-bg); color: var(--open-ink); }
.status.is-closed { background: var(--closed-bg); color: var(--closed-ink); }
.status.is-open .dot { box-shadow: 0 0 0 0 rgba(22, 101, 52, .5); animation: pulse 2s infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 101, 52, .45); }
  70% { box-shadow: 0 0 0 8px rgba(22, 101, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 101, 52, 0); }
}

.hero .btn-row { margin: 1.5rem auto 0; max-width: 420px; }

.id-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 1.25rem 0 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}
.badge-21 {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 1.75rem;
  padding: 0 .4rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .02em;
}

/* ---------- Main content ---------- */
main { padding: 28px 0 48px; }

.grid { display: grid; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  scroll-margin-top: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.card-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; }
.icon-chip {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  flex: none;
  background: #e8f2ff;
  color: var(--blue);
}
.icon-chip svg { width: 1.3rem; height: 1.3rem; }
.icon-chip.orange { background: #fff1e5; color: #b04800; }

/* Hours table */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}
.hours th, .hours td {
  padding: .75rem .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; color: var(--ink); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.hours td.closed { color: var(--muted); }
.hours tr.is-today { background: var(--today-bg); }
.hours tr.is-today th { box-shadow: inset 4px 0 0 var(--brand-orange); font-weight: 800; }
.hours tr.is-today td { color: var(--ink); font-weight: 700; }
.today-tag {
  display: inline-block;
  margin-left: .5rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--brand-orange);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: .1em;
}
.note { margin-top: 1rem; font-size: .9375rem; color: var(--muted); }

/* Location */
.address {
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
}
.address strong { font-weight: 700; }
.where { margin: .5rem 0 1rem; color: var(--muted); font-size: .9375rem; }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, #edf2f8 0 12px, #e6edf6 12px 24px);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* About */
.about p { max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #e2e8f0;
  padding: 40px 0 32px;
  font-size: 1rem;
}
.site-footer a { color: #8cc8ff; }
.site-footer :focus-visible { outline-color: #ffb37a; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: .875rem; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand p { margin: 0; font-size: 1.125rem; font-weight: 800; color: #fff; line-height: 1.25; }
.footer-brand span { display: block; font-size: .9375rem; font-weight: 500; color: #94a3b8; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer h2 {
  margin: 0 0 .5rem;
  color: #94a3b8;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-21 {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin: 24px 0 0;
  font-weight: 700;
  color: #fff;
}
.footer-21 .badge-21 { background: var(--brand-orange); color: var(--ink); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .25);
  color: #94a3b8;
  font-size: .875rem;
}

/* ---------- Age gate (shown by JS only) ---------- */
html.gate-open { overflow: hidden; }

.age-gate {
  width: min(400px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 28px 22px 24px;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink-2);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
  overflow: auto;
}
.age-gate::backdrop {
  background: rgba(6, 10, 20, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.age-gate[open] { animation: gate-in .22s ease-out; }
.age-gate.is-fallback {
  position: fixed;
  inset: 0;
  z-index: 1000;
  margin: auto;
  height: fit-content;
  box-shadow: 0 0 0 100vmax rgba(6, 10, 20, .94);
}
.age-gate img { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; }
.age-gate .gate-brand { margin: 0 0 .25rem; font-size: .9375rem; font-weight: 700; color: var(--muted); }
.age-gate h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.age-gate .gate-text { margin: .625rem 0 1.25rem; }
.age-gate .btn-row { gap: 10px; }

@keyframes gate-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Simple pages (404, under 21) ---------- */
.simple {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(1, 130, 251, .12), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(253, 115, 6, .12), transparent 70%),
    var(--bg);
}
.simple .card { max-width: 440px; width: 100%; padding: 32px 22px; }
.simple img { width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; }
.simple h1 { font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.simple .btn-row { margin-top: 1.5rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .container { padding: 0 24px; }
  .btn-row.two { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; text-align: left; }
  .hero-inner { grid-template-columns: auto minmax(0, 1fr); gap: 56px; }
  .hero-logo { width: 300px; height: 300px; margin: 0 0 0 8px; }
  .lede { margin-left: 0; max-width: 40ch; font-size: 1.25rem; }
  .hero .btn-row { margin-left: 0; max-width: 520px; grid-template-columns: 1fr 1fr; }

  main { padding: 48px 0 72px; }
  .grid {
    gap: 24px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "hours visit"
      "about visit"
      "reviews reviews";
    align-items: start;
  }
  #hours { grid-area: hours; }
  #about { grid-area: about; }
  #reviews { grid-area: reviews; }
  /* Location card fills the height of the left column; the map takes the extra room */
  #visit { grid-area: visit; align-self: stretch; display: flex; flex-direction: column; }
  #visit .map { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }

  /* Reviews as a wide band: text left, buttons right */
  .reviews {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 20px 48px;
    align-items: center;
  }
  .card.reviews .btn-row { margin-top: 0; }

  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

/* ---------- Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover { transform: none; }
}

@media print {
  .hero, .site-footer { background: none; color: #000; }
  .btn-row, .map, .age-gate, .skip-link, .status { display: none !important; }
  .card { box-shadow: none; border-color: #999; break-inside: avoid; }
}
