/* ===== The Realm — jointherealmny.com location landing page =====
   Brand-matched to the store site: gold #ca943b, Roboto / Roboto Slab.
   Light page, dark location cards. Location-first layout. */

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

:root {
  --gold: #ca943b;
  --gold-light: #ddb05f;
  --gold-dark: #a87a28;
  --ink: #1a1712;
  --ink-soft: #4a463f;
  --muted: #8a8478;
  --bg: #f6f4ef;
  --bg-2: #efece5;
  --card: #161310;
  --card-2: #211d18;
  --card-line: rgba(255,255,255,0.09);
  --card-text: #f3efe7;
  --card-muted: #b7b0a3;
  --open: #5bbf6a;
  --closed: #c77;
  --line: #e3ded4;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-card: 0 10px 30px rgba(28,20,8,0.10);
  --shadow-gold: 0 8px 22px rgba(202,148,59,0.30);
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Roboto Slab', Georgia, serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.icon { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== AGE GATE ===== */
.age-gate {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(16,12,8,0.92);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.age-gate.hidden { display: none; }
.age-gate-box {
  background: var(--card); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 48px 40px;
  text-align: center; max-width: 440px; width: 90%; color: var(--card-text);
  box-shadow: var(--shadow-gold);
}
.age-gate-box h2 { font-family: 'Roboto Slab', Georgia, serif; font-size: 1.7rem; color: var(--gold); margin-bottom: 8px; }
.age-gate-box p { color: var(--card-muted); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.5; }
.age-gate-btn {
  display: inline-block; background: var(--gold); color: #1a1305;
  border: none; padding: 14px 44px; font-size: 1rem; font-weight: 700;
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); margin: 0 6px 10px;
}
.age-gate-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.age-gate-btn.secondary { background: transparent; color: var(--card-muted); border: 1px solid rgba(255,255,255,0.25); }
.age-gate-btn.secondary:hover { border-color: var(--card-muted); color: var(--card-text); }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,244,239,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 62px; }
.brand { grid-column: 1; justify-self: start; }
.header-note { grid-column: 2; justify-self: center; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.5px; color: var(--ink); }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(202,148,59,0.18); }
.brand em { font-style: normal; color: var(--gold); }
.header-note { font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0.3px; }

/* ===== HERO TITLE ===== */
.hero { text-align: center; padding: 30px 0 10px; }
.hero .eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 16px; }
.hero h1 { font-family: 'Roboto Slab', Georgia, serif; font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; line-height: 1.16; color: var(--ink); margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--gold-dark); }
/* Second hero line — the gold shimmering tagline under the brand name */
.hero-line2 { display: block; color: var(--gold-dark); font-size: clamp(1.4rem, 0.95rem + 2.1vw, 2.35rem); font-weight: 700; line-height: 1.15; margin-top: 8px; }

/* ===== Hero motion — staggered entrance + gold shimmer across the whole 2nd line =====
   Compositor-friendly (transform/opacity); background-clip shimmer scoped to the tagline.
   Fully disabled under prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero p { opacity: 0; animation: heroReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; }
  .hero h1 { animation-delay: 0.12s; }
  .hero p  { animation-delay: 0.5s; }

  .hero .hero-line2 {
    opacity: 0;
    background: linear-gradient(100deg, var(--gold-dark) 22%, var(--gold-light) 50%, var(--gold-dark) 78%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both,
               heroShimmer 4.5s ease-in-out 1.2s infinite;
    will-change: transform, opacity, background-position;
  }
}
@keyframes heroReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroShimmer { 0%, 100% { background-position: 130% 0; } 50% { background-position: -30% 0; } }
.hero p { color: var(--ink-soft); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== LOCATIONS ===== */
.locations { padding: 22px 0 8px; }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.location-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 28px 26px 26px; color: var(--card-text);
  box-shadow: var(--shadow-card); transition: var(--transition);
  display: flex; flex-direction: column;
}
.location-card:hover { transform: translateY(-4px); border-color: rgba(202,148,59,0.4); box-shadow: 0 16px 38px rgba(28,20,8,0.18); }
.loc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.loc-name { display: flex; align-items: center; gap: 9px; font-family: 'Roboto Slab', Georgia, serif; font-size: 1.45rem; font-weight: 700; }
.loc-name .pin { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; white-space: nowrap; }
.status .blip { width: 7px; height: 7px; border-radius: 50%; }
.status.is-open { background: rgba(91,191,106,0.14); color: var(--open); }
.status.is-open .blip { background: var(--open); box-shadow: 0 0 0 3px rgba(91,191,106,0.22); }
.status.is-closed { background: rgba(204,119,119,0.12); color: var(--closed); }
.status.is-closed .blip { background: var(--closed); }
.county { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.loc-rows { border-top: 1px solid var(--card-line); padding-top: 16px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.loc-row { display: flex; align-items: flex-start; gap: 11px; font-size: 0.92rem; color: var(--card-muted); }
.loc-row .icon { color: var(--gold); margin-top: 1px; }
.loc-row .addr-text { color: var(--card-text); }
.loc-row a { color: var(--card-text); font-weight: 600; }
.loc-row a:hover { color: var(--gold); }

.btn-store {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  background: var(--gold); color: #1a1305; font-size: 0.98rem; font-weight: 700; letter-spacing: 0.3px;
  border: none; border-radius: var(--radius-sm); padding: 15px 20px; cursor: pointer; transition: var(--transition);
}
.btn-store:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-store .arrow { transition: transform var(--transition); }
.btn-store:hover .arrow { transform: translateX(3px); }
/* Gold "See Why Customers Love Us" review button lives INSIDE each card as its
   bottom CTA, so it's visually part of that location's card. */
.card-review { margin-top: 11px; }
.loc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
/* Three equal compliant actions: Directions · Call · View on Google (no menu link) */
.loc-actions-3 { grid-template-columns: repeat(3, 1fr); }
.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center;
  border: 1px solid rgba(255,255,255,0.18); color: var(--card-muted);
  border-radius: var(--radius-sm); padding: 11px 10px; font-size: 0.8rem; font-weight: 600; transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost .icon { width: 15px; height: 15px; }
.btn-call { color: var(--card-text); }
.btn-call:hover { border-color: var(--gold); color: var(--gold); }
/* Narrow cards: Directions + Call share a row, View on Google spans full width below */
@media (max-width: 480px) {
  .loc-actions-3 { grid-template-columns: 1fr 1fr; }
  .loc-actions-3 > :last-child { grid-column: 1 / -1; }
}

/* ===== STATS ===== */
.stats-wrap { padding: 44px 0 12px; }
.stats {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat { text-align: center; padding: 30px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: 'Roboto Slab', Georgia, serif; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; color: var(--gold-dark); line-height: 1; margin-bottom: 8px; }
.stat .num .star { color: var(--gold); }
.stat .lbl { font-size: 0.74rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* ===== LICENSE ===== */
.license-wrap { padding: 28px 0 12px; }
.license {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; text-align: center;
}
.license .shield { width: 44px; height: 44px; border-radius: 12px; background: rgba(202,148,59,0.12); display: flex; align-items: center; justify-content: center; color: var(--gold-dark); flex-shrink: 0; }
.license .shield .icon { width: 24px; height: 24px; }
.license h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.license p { font-size: 0.84rem; color: var(--ink-soft); }
.license-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(202,148,59,0.12); border: 1px solid rgba(202,148,59,0.3); color: var(--gold-dark); border-radius: 100px; padding: 8px 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.4px; }

/* ===== FOOTER ===== */
.footer { padding: 40px 24px 48px; margin-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.footer-brand { font-family: 'Roboto Slab', Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 12px; }
.footer-legal { color: var(--muted); font-size: 0.8rem; line-height: 1.85; max-width: 660px; margin: 0 auto 14px; }
.footer-bottom { color: var(--muted); font-size: 0.78rem; }
.footer-bottom a { color: var(--ink-soft); font-weight: 600; }

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
  .header-note { display: none; }
  .hero { padding: 24px 0 6px; }
  .locations-grid { grid-template-columns: 1fr; }
  .age-gate-box { padding: 36px 24px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

/* ============ CRO v2: slim age bar, campaign-aware hero, sticky CTA ============ */
.age-bar {
  background: var(--card); color: var(--card-text); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 9px 16px; text-align: center; flex-wrap: wrap;
}
.age-bar strong { color: var(--gold); }
.age-bar button {
  background: transparent; color: var(--gold); border: 1px solid rgba(202,148,59,0.5);
  border-radius: 100px; padding: 5px 16px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.age-bar button:hover { background: var(--gold); color: #1a1305; }
.age-bar.hidden { display: none; }

/* Hero store picker */
.store-picker { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.pick {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gold); color: #1a1305; font-weight: 700; border-radius: var(--radius-sm);
  transition: var(--transition); border: none; cursor: pointer;
}
.pick .arrow { transition: transform var(--transition); }
.pick:hover .arrow { transform: translateX(3px); }
.pick.primary { width: 100%; max-width: 460px; font-size: 1.18rem; padding: 20px 28px; box-shadow: var(--shadow-gold); }
.pick.primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.pick-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 620px; }
.pick.secondary {
  flex: 1; min-width: 150px; background: #fff; color: var(--ink); border: 1px solid var(--line);
  font-size: 0.95rem; padding: 14px 18px; font-weight: 600;
}
.pick.secondary:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }
.pick-others-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.3px; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none;
  background: rgba(22,19,16,0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 11px 14px; border-top: 1px solid rgba(202,148,59,0.4);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 9px; max-width: 600px; margin: 0 auto;
  background: var(--gold); color: #1a1305; font-weight: 700; border-radius: var(--radius-sm); padding: 14px; font-size: 1rem;
}
.sticky-cta.show { display: block; }
@media (max-width: 768px) { .sticky-cta.show { display: block; } body { padding-bottom: 72px; } }

/* ============ Variant B — elevated age-gate store picker (dark luxury) ============ */
.ab-gate {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(125% 90% at 50% -10%, rgba(202,148,59,0.16), rgba(8,6,4,0) 55%), rgba(8,6,4,0.84);
  backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
  animation: abFade .35s ease both;
}
.ab-box {
  position: relative; width: 100%; max-width: 580px; padding: 48px 46px 34px; text-align: center; color: var(--card-text);
  background: linear-gradient(180deg, #1d1812, #121009);
  border: 1px solid rgba(202,148,59,0.30); border-radius: 28px;
  box-shadow: 0 36px 90px rgba(0,0,0,0.62), 0 0 70px rgba(202,148,59,0.07) inset;
  animation: abRise .55s cubic-bezier(0.16,1,0.3,1) both;
  max-height: calc(100dvh - 32px); overflow-y: auto; /* never clip CTAs on short screens */
}
.ab-box::before { content:''; position:absolute; top:0; left:28px; right:28px; height:1px; background:linear-gradient(90deg,transparent,rgba(202,148,59,0.75),transparent); }
.ab-brand { display:inline-flex; align-items:center; gap:9px; font-family:'Roboto Slab',Georgia,serif; font-weight:700; letter-spacing:1.2px; color:#fff; font-size:1.12rem; margin-bottom:18px; }
.ab-brand .dot { width:9px; height:9px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px rgba(202,148,59,0.18); }
.ab-brand em { font-style:normal; color:var(--gold); }
.ab-eyebrow { font-size:0.72rem; font-weight:700; letter-spacing:2.8px; text-transform:uppercase; color:var(--gold); opacity:.92; }
.ab-box h2 { font-family:'Roboto Slab',Georgia,serif; font-size:clamp(1.7rem, 1.3rem + 1.6vw, 2.1rem); line-height:1.14; margin:12px 0 9px; color:#fff; }
.ab-box h2 em { font-style:normal; color:var(--gold); }
.ab-sub { color:var(--card-muted); font-size:1rem; line-height:1.55; margin-bottom:18px; }
.ab-trust { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin-bottom:26px; font-size:0.85rem; color:#cfc7b8; }
.ab-trust span.it { display:inline-flex; align-items:center; gap:5px; }
.ab-trust .star { color:var(--gold); }
.ab-trust .sep { width:3px; height:3px; border-radius:50%; background:rgba(255,255,255,0.22); }
.ab-trust .live { color:#6fcf7e; } .ab-trust .live .blip{ width:7px;height:7px;border-radius:50%;background:#6fcf7e;box-shadow:0 0 0 3px rgba(111,207,126,0.22);display:inline-block;}
.ab-pick { display:flex; flex-direction:column; gap:13px; }
.ab-primary {
  display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:20px 24px; border-radius:16px;
  font-weight:700; font-size:1.18rem; color:#1a1305; background:linear-gradient(180deg,#e3bd6c,#ca943b);
  box-shadow:0 10px 26px rgba(202,148,59,0.30); transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.ab-primary:hover { transform:translateY(-2px); box-shadow:0 16px 36px rgba(202,148,59,0.44); filter:brightness(1.05); }
.ab-primary .arrow { transition:transform .2s ease; } .ab-primary:hover .arrow { transform:translateX(4px); }
.ab-primary .icon { width:20px; height:20px; }
.ab-others { font-size:0.72rem; text-transform:uppercase; letter-spacing:1.8px; color:var(--card-muted); margin:10px 0 3px; }
.ab-row { display:flex; gap:11px; }
.ab-secondary { flex:1; display:flex; align-items:center; justify-content:center; padding:15px 14px; border-radius:13px; font-weight:600; font-size:0.98rem;
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.13); color:#f3efe7; transition:all .2s ease; }
.ab-secondary:hover { border-color:var(--gold); color:var(--gold); background:rgba(202,148,59,0.08); transform:translateY(-1px); }
.ab-under { display:inline-block; margin-top:20px; font-size:0.84rem; color:#8c857a; background:none; border:0; cursor:pointer; text-decoration:underline; text-underline-offset:3px; padding:6px 10px; }
/* Standalone age gate uses ab-* styles on <button> elements */
button.ab-primary, button.ab-secondary { cursor:pointer; font-family:inherit; width:100%; }
button.ab-primary { border:0; }
.ab-under:hover { color:#cfc7b8; }
@keyframes abFade { from{opacity:0} to{opacity:1} }
@keyframes abRise { from{opacity:0; transform:translateY(18px) scale(.98)} to{opacity:1; transform:none} }
@media (prefers-reduced-motion: reduce){ .ab-gate,.ab-box{animation:none} }
@media (max-width:480px){ .ab-box{padding:36px 24px 26px; border-radius:22px} .ab-box h2{font-size:1.55rem} .ab-sub{font-size:0.95rem} .ab-primary{padding:18px 20px; font-size:1.08rem} .ab-row{flex-direction:column} }
