/* ============================================================
   JK Hobby Shop — stylesheet
   Brand colours are set once here. Change them in :root and the
   whole site follows.
   ============================================================ */

:root {
  --cyan:        #0DC0E0;
  --cyan-dark:   #0AA3BF;
  --cyan-soft:   #E6F9FD;
  --ink:         #07293B;
  --ink-soft:    #3E5A68;
  --paper:       #FFFFFF;
  --paper-tint:  #F5FCFE;
  --line:        #DCEAF0;

  --radius:      18px;
  --radius-sm:   10px;
  --shadow:      0 2px 4px rgba(7,41,59,.04), 0 12px 32px rgba(7,41,59,.08);
  --shadow-lift: 0 4px 8px rgba(7,41,59,.06), 0 20px 44px rgba(7,41,59,.14);

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Quicksand", "Poppins", system-ui, sans-serif;

  --wrap: 1140px;
}

* { box-sizing: border-box; }

/* A class that sets display, such as .btn or .prize-strip, otherwise beats the
   browser own [hidden] rule and the element stays on screen. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--cyan-dark); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

.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;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin: 0 0 .6rem;
}

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--paper-tint); border-block: 1px solid var(--line); }
.section-lede { max-width: 58ch; margin-inline: auto; }
.why-grid .section-lede { margin-inline: 0; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.btn-sm { padding: 9px 18px; font-size: .9rem; }

.btn-primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13,192,224,.35);
}
.btn-primary:hover { background: var(--cyan-dark); box-shadow: 0 10px 24px rgba(13,192,224,.42); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-dark); }

.btn-invert {
  background: #fff;
  color: var(--ink);
}
.btn-invert:hover { background: var(--cyan-soft); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-mark.small { width: 32px; height: 32px; }

.brand-text { display: grid; line-height: 1; }
.brand-jk {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: .01em;
}
.brand-sub {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--cyan-dark); }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 8vw, 88px);
  background: linear-gradient(170deg, var(--cyan-soft) 0%, #ffffff 62%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  pointer-events: none;
}
.hero-blob-a { width: 380px; height: 380px; background: #9BE9F7; top: -120px; right: -80px; }
.hero-blob-b { width: 300px; height: 300px; background: #CFF3FB; bottom: -140px; left: -100px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: .4em; }
.hl { color: var(--cyan-dark); display: inline-block; }

.lede {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0; margin: 0;
}
.hero-tags li {
  font-size: .83rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Hero artwork: three drifting puzzle pieces */
.hero-art { display: flex; justify-content: center; }
.piece-stack { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; }
.piece { position: absolute; }
.piece-1 { width: 58%; top: 4%;  left: 20%; transform: rotate(-8deg);  animation: float 7s ease-in-out infinite; }
.piece-2 { width: 40%; top: 46%; left: 0;   transform: rotate(12deg);  opacity: .8; animation: float 9s ease-in-out infinite .6s; }
.piece-3 { width: 34%; top: 56%; left: 58%; transform: rotate(-20deg); opacity: .65; animation: float 8s ease-in-out infinite 1.2s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}
@media (prefers-reduced-motion: reduce) {
  .piece { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card p { margin: 0; font-size: .95rem; }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--cyan-soft);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.why-list li {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-size: .95rem;
}
.why-list strong {
  display: block;
  font-family: var(--font-head);
  color: var(--ink);
  margin-bottom: 2px;
}

/* ---------- Visit ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  margin-top: 44px;
  align-items: start;
}

.info-block { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.info-block h3 { margin-bottom: .35em; }
.info-block p { font-size: .97rem; }

.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--cyan-soft);
}
.visit-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Social ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.social {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.social:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--cyan); }
.social svg { width: 30px; height: 30px; fill: var(--cyan-dark); margin-bottom: 8px; }
.social-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .98rem; }
.social-handle { font-size: .85rem; color: var(--ink-soft); }

/* ---------- CTA ---------- */

.cta {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  padding: clamp(52px, 7vw, 80px) 0;
  text-align: center;
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.92); margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #A9C2CE;
  padding: 44px 0 36px;
  font-size: .9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: var(--font-logo); font-weight: 600; color: #fff; margin: 0; font-size: 1.02rem; }
.footer-tag { margin: 0; font-size: .82rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #CFE2EA; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards, .social-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .why-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .piece-stack { max-width: 220px; }
  .visit-map iframe { height: 320px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; border-bottom: 0; justify-content: center; }
  .header-inner { position: relative; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .social-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Card icons drawn as line art rather than emoji */
.card-icon svg { width: 26px; height: 26px; color: var(--cyan-dark); }

.hours { margin: 0; }
.hours strong { font-family: var(--font-head); color: var(--ink); }

/* ---------- The play nudge ---------- */

.play-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan);
  border-radius: 14px; box-shadow: 0 10px 34px rgba(7, 41, 59, .18);
  transform: translateY(18px); opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.play-notice.in { transform: translateY(0); opacity: 1; }

.pn-body { flex: 1; }
.pn-title { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; }
.pn-line { margin: 2px 0 0; font-size: .84rem; color: var(--ink-soft); }
.pn-go { flex: none; color: #fff; }
.pn-close { flex: none; border: 0; background: none; cursor: pointer; font-size: 1.3rem;
  line-height: 1; color: var(--ink-soft); padding: 0 2px; }
.pn-close:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .play-notice { transition: none; transform: none; opacity: 1; }
}

@media (max-width: 520px) {
  .play-notice { left: 12px; right: 12px; bottom: 12px; flex-wrap: wrap; }
  .pn-go { width: 100%; justify-content: center; }
}

/* ---------- The real logo ---------- */

.brand-logo { height: 46px; width: auto; display: block; }
.brand-logo.small { height: 38px; }
/* The artwork has black type and a black outline, so on the dark footer it
   sits on a white chip rather than being flattened to a silhouette. */
.site-footer .brand-logo { background: #fff; border-radius: 10px; padding: 7px 11px; height: 50px; }

/* The piece from the real mark, drifting. Same artwork as the logo, so the
   shape on the page and the shape on the sign are the same shape. */
.piece { position: absolute; }
