/* Mr. CTYG Tattoo Estimate — Ravens purple + Orioles orange, Baltimore theme */
:root {
  --bg: #0b0b12;
  --bg2: #14141f;
  --card: #181824;
  --purple: #241773;
  --purple-bright: #5b3df0;
  --orange: #df4601;
  --orange-bright: #ff6a1a;
  --gold: #c9a227;
  --text: #f5f2ea;
  --muted: #a9a3b8;
  --radius: 16px;
}

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

body {
  background: radial-gradient(1200px 600px at 50% -10%, #1d1445 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  max-width: 720px;
  margin: 0 auto;
}
.logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--orange);
  box-shadow: 0 0 18px rgba(223, 70, 1, 0.45);
}
.header-text h1 {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}
.tagline {
  color: var(--muted);
  font-size: 0.9rem;
}

main { max-width: 720px; margin: 0 auto; padding: 0 20px 40px; }

/* Hero */
.hero {
  text-align: center;
  padding: 34px 10px 26px;
}
.hero h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--purple-bright), var(--orange-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); margin-bottom: 22px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.trust-row span {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid #2a2a3a;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--bg2);
}

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 30px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--orange));
  color: #fff;
  box-shadow: 0 6px 24px rgba(91, 61, 240, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(223, 70, 1, 0.45); }
.btn-big { display: block; text-align: center; margin: 22px 0 10px; font-size: 1.1rem; padding: 17px 30px; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid #2a2a3a;
  margin-top: 14px;
}

/* Quiz */
.quiz { padding: 10px 0 20px; }
.progress {
  height: 8px;
  background: #22222f;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple-bright), var(--orange-bright));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.step-count { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.quiz h2 { font-size: 1.5rem; margin-bottom: 18px; }
.options { display: grid; gap: 10px; }
.option {
  background: var(--card);
  border: 1px solid #2a2a3a;
  color: var(--text);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option:hover, .option:active {
  border-color: var(--orange);
  background: #1f1f30;
  transform: scale(1.01);
}
.option .opt-sub { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 3px; }

/* Result */
.result {
  text-align: center;
  background: var(--card);
  border: 1px solid #2a2a3a;
  border-radius: 20px;
  padding: 34px 24px;
  margin: 10px 0 30px;
  box-shadow: 0 0 40px rgba(36, 23, 115, 0.5);
}
.result-label { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
.result-price {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 8px 0;
  background: linear-gradient(90deg, var(--purple-bright), var(--orange-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.result-detail { color: var(--muted); margin-bottom: 14px; }
.result-note {
  background: rgba(223, 70, 1, 0.12);
  border: 1px solid rgba(223, 70, 1, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.fine-print { color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

/* Gallery lives in a .game-promo box (see below) */

/* Photo carousel — horizontal swipe strip (only this strip scrolls sideways) */
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 6px 12px;
}
.carousel::-webkit-scrollbar { display: none; }
.car-card {
  flex: 0 0 44%;
  scroll-snap-align: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
@media (min-width: 560px) { .car-card { flex-basis: 30%; } }
@media (min-width: 900px) { .car-card { flex-basis: 22%; } }
.car-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #2a2a3a;
  pointer-events: none;
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}
.car-card:hover img { transform: scale(1.02); box-shadow: 0 8px 24px rgba(91,61,240,.35); }
.car-card:active img { transform: scale(.98); }
.car-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 1.4rem;
  background: rgba(10,6,20,.72);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}
.car-prev { left: 2px; }
.car-next { right: 2px; }
@media (pointer: coarse) { .car-arrow { display: none; } }
.car-count {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin: 2px 0 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px 50px;
  border-top: 1px solid #22222f;
  margin-top: 10px;
}
.footer-cta { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 16px;
}
.socials a {
  display: block;
  padding: 12px 8px;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  background: var(--card);
  color: var(--orange-bright);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: border-color .15s ease, transform .1s ease;
}
.socials a:hover { border-color: var(--orange); text-decoration: none; }
.socials a:active { transform: scale(.97); }
@media (min-width: 560px) { .socials { grid-template-columns: repeat(4, 1fr); } }
.footer-small { color: var(--muted); font-size: 0.8rem; }

/* ---- Art backgrounds ---- */
.hero {
  text-align: center;
  padding: 34px 10px 26px;
}

.game-promo {
  text-align: center;
  background: linear-gradient(135deg, #1d1445 0%, #2a0f2e 100%);
  border: 1px solid #2a2a3a;
  border-radius: var(--radius);
  margin: 26px 10px 10px;
  padding: 40px 20px;
}
.game-promo h2 { font-size: 1.6rem; margin-bottom: 10px; }
.game-promo p { color: var(--muted); margin-bottom: 22px; }

/* Estimate tool shares the same box style — trim inner padding so it nests cleanly */
.estimate-box { margin-top: 26px; }
.estimate-box .hero { padding: 0; }
.estimate-box .quiz { padding: 0; }
.estimate-box .result { padding: 0; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Click animations ---- */
.btn { position: relative; overflow: hidden; transition: transform .12s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.96); }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: scale(0); animation: ripple .55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3); opacity: 0; } }

.confetti-bit {
  position: fixed; width: 8px; height: 12px; z-index: 9999;
  pointer-events: none; border-radius: 2px;
  animation: confetti-fall 1.1s ease-in forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(220px) rotate(540deg); opacity: 0; }
}

/* Idea Lab (homepage inline + idea page) */
.section-sub { color: var(--muted); margin-bottom: 18px; }

/* Falling game pieces — Ink Tac Toe equipment + Ink Runner essentials drift behind the page */
#piece-fall {
  position: fixed; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.fall-piece {
  position: absolute; top: -70px; left: 0;
  animation-name: piece-fall; animation-timing-function: linear; animation-iteration-count: infinite;
  will-change: transform, opacity; user-select: none;
}
@keyframes piece-fall {
  0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: var(--po, .32); }
  50%  { transform: translate3d(var(--sway, 30px), 52vh, 0) rotate(180deg); }
  92%  { opacity: var(--po, .32); }
  100% { transform: translate3d(calc(var(--sway, 30px) * -1), 114vh, 0) rotate(360deg); opacity: 0; }
}
main, .site-header, .site-footer { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #piece-fall { display: none; } }
.idea-lab { text-align: center; }
.idea-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; max-width: 520px; margin-left: auto; margin-right: auto; }
.idea-options .btn { margin: 0; }
.stencil-card { background: #f5f2ea; border-radius: var(--radius); padding: 14px; margin: 18px auto; max-width: 420px; box-shadow: 0 12px 40px rgba(91,61,240,.25); }
.stencil-card img { width: 100%; border-radius: 8px; display: block; }
.concept-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.concept-detail { color: var(--muted); margin-bottom: 14px; }

/* Idea Lab two-option result cards */
.idea-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px auto; max-width: 560px; }
.idea-pick { background: #f5f2ea; border-radius: var(--radius); padding: 10px; cursor: pointer; border: 3px solid transparent; transition: border-color .15s ease, transform .15s ease; box-shadow: 0 12px 40px rgba(91,61,240,.25); }
.idea-pick:hover { transform: translateY(-3px); }
.idea-pick img { width: 100%; border-radius: 8px; display: block; }
.idea-pick.selected { border-color: var(--purple-bright); box-shadow: 0 12px 40px rgba(91,61,240,.45); }
.idea-pick .pick-tag { font-size: .8rem; font-weight: 800; color: var(--muted); margin-top: 6px; text-align: center; }
.idea-pick.selected .pick-tag { color: var(--purple-bright); }
@media (max-width: 480px) { .idea-picks { grid-template-columns: 1fr; } }

/* Sticky booking bar */
.book-bar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: rgba(18,14,30,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #2a2a3a; font-weight: 700; font-size: .95rem; }
.book-bar .btn { margin: 0; padding: 8px 20px; font-size: .95rem; }

/* Floating side shortcuts (estimate / idea lab) */
.side-float {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(91,61,240,.70); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: 24px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
  opacity: .85; transition: opacity .2s ease, transform .2s ease;
  padding: 0; font-family: inherit;
}
.side-float span { font-size: 8px; font-weight: 800; letter-spacing: .5px; margin-top: 2px; }
.side-float:hover, .side-float:active { opacity: 1; }
body.lightbox-open .side-float { display: none; }
.side-left { left: 10px; }
.side-right { right: 10px; }
@media (max-width: 560px) {
  .side-float { width: 46px; height: 46px; font-size: 18px; }
  .side-float span { font-size: 6.5px; }
  .side-left { left: 6px; }
  .side-right { right: 6px; }
}

/* Lightbox photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,3,12,.95);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.hidden { display: none; }
.lb-stage {
  width: 92vw;
  max-width: 720px;
  height: 72vh;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #333;
  background: #000;
}
.lb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  touch-action: pan-y;
}
/* Ken Burns: zoom in, then drift up and down */
.lb-img.kb {
  object-fit: cover;
  animation: kbPan 9s ease-in-out infinite;
}
@keyframes kbPan {
  0%   { transform: scale(1.45) translateY(4%); }
  50%  { transform: scale(1.45) translateY(-4%); }
  100% { transform: scale(1.45) translateY(4%); }
}
@media (prefers-reduced-motion: reduce) {
  .lb-img.kb { animation: none; transform: none; }
}
.lb-count { color: #fff; font-weight: 700; margin-top: 12px; font-size: 1rem; }
.lb-close {
  position: absolute; top: 10px; right: 16px;
  font-size: 2.4rem; line-height: 1; background: none; border: none;
  color: #fff; cursor: pointer; padding: 6px 10px;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 50%;
  width: 54px; height: 54px; cursor: pointer; padding: 0;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 560px) {
  .lb-arrow { width: 44px; height: 44px; font-size: 1.4rem; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
