/* ===========================================================
   SOLID PLUMBING & GAS — V3 "Full Retro Arcade"
   Playable mascot platformer + conversion-first page
   =========================================================== */

:root {
  /* arcade palette — night-blue cabinet, neon mint accent */
  --bg:        #0b0e1a;
  --bg-2:      #11162a;
  --surface:   #161d36;
  --surface-2: #1d2647;
  --ink:       #eef2ff;
  --ink-soft:  #aeb8e0;
  --ink-mute:  #7c87b8;
  --line:      #2a3258;

  --mint:      #00e5a8;   /* primary neon accent */
  --mint-deep: #06b888;
  --amber:     #ffcb47;   /* coins / wrenches */
  --magenta:   #ff5d8f;   /* alt accent */
  --sky:       #4cc9ff;

  --radius: 14px;
  --pixel: 'Press Start 2P', monospace;
  --mono: 'Azeret Mono', ui-monospace, monospace;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --maxw: 1180px;
}

/* LIGHT MODE — keep arcade spirit but bright & legible */
:root[data-theme="light"] {
  --bg:        #f4f6ff;
  --bg-2:      #eceffc;
  --surface:   #ffffff;
  --surface-2: #f3f5ff;
  --ink:       #121734;
  --ink-soft:  #3a4576;
  --ink-mute:  #6b76a6;
  --line:      #d7ddf3;
  --mint:      #06b888;
  --mint-deep: #048a66;
  --shadow: 0 18px 44px rgba(20,30,80,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* subtle scanline/grid texture on dark bg */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    radial-gradient(900px 500px at 78% -10%, color-mix(in srgb, var(--mint) 14%, transparent), transparent 70%);
}
:root[data-theme="light"] body::before {
  background: radial-gradient(900px 500px at 78% -10%, color-mix(in srgb, var(--mint) 16%, transparent), transparent 70%);
}
.section, .hero, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- HEADER ---------- */
.site-header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--mint); }
.logo__brand--arcade { height: 40px; width: auto; image-rendering: pixelated; filter: contrast(1.05); }
.brand-mark { display: grid; place-items: center; }
.brand-text {
  font-family: var(--pixel); font-size: .82rem; letter-spacing: .5px;
  color: var(--ink); line-height: 1.4; display: flex; flex-direction: column;
}
.brand-sub { font-size: .5rem; color: var(--mint); letter-spacing: 1px; margin-top: 3px; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .82rem; font-weight: 600; }
.nav a { color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--mint); }
.header-cta { display: flex; align-items: center; gap: .7rem; }
.theme-toggle {
  background: var(--surface); border: 2px solid var(--line); color: var(--ink);
  width: 38px; height: 38px; border-radius: 9px; cursor: pointer; font-size: 1rem;
  transition: border-color .15s, transform .1s;
}
.theme-toggle:hover { border-color: var(--mint); transform: translateY(-1px); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: .9rem;
  padding: .7rem 1.1rem; border-radius: 11px; border: 2px solid transparent;
  cursor: pointer; transition: transform .1s, box-shadow .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-call {
  background: var(--mint); color: #042; border-color: var(--mint-deep);
  box-shadow: 0 4px 0 var(--mint-deep);
  font-family: var(--pixel); font-size: .62rem; letter-spacing: .5px;
}
.btn-call:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--mint-deep); }
.btn-call-icon { font-size: .9rem; }
.btn-primary {
  background: var(--mint); color: #042; border-color: var(--mint-deep);
  box-shadow: 0 4px 0 var(--mint-deep);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--mint-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-full { width: 100%; padding: .85rem; }

/* arcade-styled buttons */
.btn-arcade {
  font-family: var(--pixel); font-size: .62rem; letter-spacing: .5px; line-height: 1.6;
  background: var(--amber); color: #2a1d00; border: 3px solid #b88a00;
  box-shadow: 0 5px 0 #b88a00; padding: .8rem 1rem; border-radius: 8px;
}
.btn-arcade:hover { transform: translateY(-1px); box-shadow: 0 6px 0 #b88a00; }
.btn-arcade-2 { background: var(--mint); border-color: var(--mint-deep); box-shadow: 0 5px 0 var(--mint-deep); color: #042; }
.btn-arcade-2:hover { box-shadow: 0 6px 0 var(--mint-deep); }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 3.5rem;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.eyebrow { font-family: var(--pixel); font-size: .56rem; color: var(--mint); letter-spacing: 1px; margin-bottom: 1.2rem; }
.hero-title {
  font-family: var(--pixel); font-size: clamp(1.4rem, 4.2vw, 2.4rem); line-height: 1.55;
  letter-spacing: 0; color: var(--ink); margin-bottom: 1.3rem;
}
.hero-title .accent { color: var(--mint); display: inline-block; margin-top: .35em; }
.hero-lede { font-size: 1.02rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.6rem; }
.hero-lede strong { color: var(--ink); }
.nowrap { white-space: nowrap; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .82rem; color: var(--ink-mute); }

/* ---------- ARCADE CABINET ---------- */
.cabinet {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 3px solid var(--line); border-radius: 18px;
  padding: .85rem; box-shadow: var(--shadow);
}
.cabinet-top {
  display: flex; align-items: center; gap: .45rem; padding: .15rem .4rem .6rem;
}
.cab-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); opacity: .8; }
.cab-dot:nth-child(2) { background: var(--amber); }
.cab-dot:nth-child(3) { background: var(--mint); }
.cab-label { margin-left: auto; font-family: var(--pixel); font-size: .55rem; color: var(--ink-mute); letter-spacing: 1px; }

.game-wrap { position: relative; border-radius: 10px; overflow: hidden; border: 3px solid rgba(0,0,0,.35); }
#game {
  width: 100%; height: auto; aspect-ratio: 640 / 360;
  background: #0a1428; image-rendering: pixelated;
  touch-action: none;
}

/* overlays */
.overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(7,10,22,.82); backdrop-filter: blur(2px); text-align: center; padding: 1rem;
}
.overlay[hidden] { display: none; }
.overlay-inner { max-width: 90%; }
.ov-title { font-family: var(--pixel); font-size: clamp(1rem, 3.5vw, 1.5rem); color: var(--mint); margin-bottom: .8rem; text-shadow: 0 0 18px color-mix(in srgb, var(--mint) 50%, transparent); }
.ov-sub { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.ov-hint { font-size: .72rem; color: var(--ink-mute); margin-top: 1rem; }
.ov-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.overlay-win .ov-title { color: var(--amber); text-shadow: 0 0 18px color-mix(in srgb, var(--amber) 55%, transparent); }
.link-replay { background: none; border: none; color: var(--ink-mute); font-family: var(--mono); cursor: pointer; margin-top: 1rem; text-decoration: underline; font-size: .8rem; }
.link-replay:hover { color: var(--mint); }

/* HUD + touch controls */
.cabinet-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .4rem .2rem; flex-wrap: wrap; }
.hud { display: flex; gap: 1.1rem; font-family: var(--pixel); font-size: .6rem; color: var(--ink-soft); }
.hud-item { color: var(--amber); }
.hud-item:last-child { color: var(--mint); }
.touch-controls { display: none; gap: .5rem; }
.tc-btn {
  font-family: var(--pixel); font-size: .6rem; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 9px;
  width: 48px; height: 44px; cursor: pointer; user-select: none; touch-action: manipulation;
}
.tc-btn:active { background: var(--mint); color: #042; }
.tc-jump { width: 78px; background: var(--surface-2); }
.game-caption { font-size: .78rem; color: var(--ink-mute); text-align: center; margin-top: .9rem; }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem); }
.section-head { margin-bottom: 2.5rem; }
.kicker { font-family: var(--pixel); font-size: .56rem; color: var(--mint); letter-spacing: 1px; margin-bottom: .9rem; }
.kicker-light { color: var(--mint); }
.section-head h2 { font-family: var(--pixel); font-size: clamp(1.1rem, 3vw, 1.7rem); line-height: 1.4; color: var(--ink); }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.svc-card {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .12s, border-color .15s;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--mint); }
.svc-icon { font-size: 1.7rem; display: block; margin-bottom: .8rem; }
.svc-card h3 { font-family: var(--pixel); font-size: .72rem; line-height: 1.5; margin-bottom: .7rem; color: var(--ink); }
.svc-card p { font-size: .9rem; color: var(--ink-soft); }

/* how we work (dark band) */
.section-dark {
  max-width: none; background: var(--bg-2); border-block: 2px solid var(--line);
}
.section-dark .section-head, .steps { max-width: var(--maxw); margin-inline: auto; }
.section-dark .section-head { padding-inline: clamp(1rem, 4vw, 3rem); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding-inline: clamp(1rem, 4vw, 3rem); }
.step { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step-num {
  font-family: var(--pixel); font-size: .9rem; color: #042; background: var(--mint);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px;
  box-shadow: 0 3px 0 var(--mint-deep); margin-bottom: 1rem;
}
.step h3 { font-family: var(--pixel); font-size: .72rem; line-height: 1.5; margin-bottom: .6rem; }
.step p { font-size: .9rem; color: var(--ink-soft); }

/* reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.review { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.review p { font-size: .95rem; color: var(--ink); margin-bottom: 1rem; }
.review footer { font-size: .78rem; color: var(--amber); font-weight: 600; }

/* booking */
.section-book { max-width: none; background: var(--bg-2); border-top: 2px solid var(--line); }
.book-grid { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.book-copy h2 { font-family: var(--pixel); font-size: clamp(1.1rem, 3vw, 1.7rem); line-height: 1.4; margin-bottom: 1rem; }
.book-lede { color: var(--ink-soft); margin-bottom: 1.5rem; }
.book-points { list-style: none; display: grid; gap: .7rem; font-size: .92rem; }
.book-points a { color: var(--mint); }
.book-points a:hover { text-decoration: underline; }
.book-form { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--mono); font-size: .92rem; color: var(--ink);
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 9px; padding: .65rem .75rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); }
.field textarea { resize: vertical; }
.form-status { font-size: .85rem; color: var(--mint); min-height: 1.2em; text-align: center; }

/* footer */
.site-footer { max-width: var(--maxw); margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 3rem) 6rem; display: grid; gap: 1.4rem; border-top: 2px solid var(--line); }
.foot-brand p { color: var(--ink-mute); font-size: .85rem; margin-top: .7rem; max-width: 52ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.3rem; font-size: .85rem; font-weight: 600; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--mint); }
.foot-fine { font-size: .76rem; color: var(--ink-mute); }

/* sticky mobile call bar */
.callbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--mint); color: #042; font-family: var(--pixel); font-size: .66rem; letter-spacing: .5px;
  text-align: center; padding: .95rem; box-shadow: 0 -6px 22px rgba(0,0,0,.3);
}
.callbar-icon { margin-right: .4rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-game { order: 2; }
  .hero-lede { max-width: none; }
  .services-grid, .reviews-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .touch-controls { display: flex; }
  .callbar { display: block; }
  .site-footer { padding-bottom: 6rem; }
}
@media (max-width: 620px) {
  .services-grid, .reviews-grid, .steps { grid-template-columns: 1fr; }
  .header-cta .btn-call { font-size: .55rem; padding: .6rem .7rem; }
  .hero-title { font-size: clamp(1.4rem, 7vw, 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
