/* ==========================================================
   Claw Quest — styles
   Brand colors come from the logo. Change them here.
   ========================================================== */
:root {
  --navy: #0d1b4c;
  --navy-deep: #08123a;
  --navy-soft: #1c2f74;
  --red: #e3121b;
  --red-dark: #b80d15;
  --gold: #ffc21a;
  --cream: #fbf7ee;
  --white: #ffffff;
  --ink: #0d1b4c;
  --ink-soft: #4a5577;
  --line: rgba(13, 27, 76, .12);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow-light { color: var(--gold); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 34em; }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Placeholder notes for the owner to fill in (dashed yellow box) */
.placeholder { margin-top: 26px; padding: 10px 14px; border: 2px dashed var(--gold); border-radius: 10px; font-size: .9rem; color: var(--gold); background: rgba(255, 194, 26, .08); }
.placeholder-inline { display: inline-block; margin: 6px 0 0; padding: 2px 10px; font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s, color .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-white { background: #fff; color: var(--red); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
@media (hover: hover) {
  .btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-dark); }
  .btn-red:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-dark); }
  .btn-ghost:hover { background: var(--navy); color: #fff; }
  .btn-white:hover { transform: translateY(-2px); }
  .btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .98); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(13,27,76,.06); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: 50px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; padding: 10px 14px; font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.nav a:hover::after { transform: scaleX(1); }
.call-short { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 40px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 800; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .hl { color: var(--red); }
.hero-copy .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.rating-chip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .98rem; transition: transform .2s var(--ease-out); }
.rating-chip:hover { transform: translateY(-2px); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; text-shadow: 0 1px 0 #d99c00; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-rays { position: absolute; width: 150%; max-width: 760px; aspect-ratio: 1; z-index: 0; opacity: .9; }
.hero-photo { position: relative; z-index: 1; margin: 0; width: min(100%, 420px); aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: var(--navy); border: 6px solid #fff; box-shadow: 0 30px 60px -20px rgba(13,27,76,.45), 0 0 0 2px var(--navy); }
.hero-photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%; }
.hero-badge { position: absolute; z-index: 2; left: max(0px, calc(50% - 280px)); bottom: 8%; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; background: #fff; border-radius: 18px; box-shadow: 0 14px 30px -10px rgba(13,27,76,.35); font: 800 1.05rem/1.05 var(--font-display); color: var(--navy); transform: rotate(-4deg); }
.hero-badge img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; mix-blend-mode: multiply; }

.scroll-cue { position: absolute; left: 50%; bottom: 20px; width: 28px; height: 44px; margin-left: -14px; border: 2px solid var(--navy); border-radius: 20px; opacity: .5; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--navy); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- How it works (claw scene) ---------- */
.how { background: var(--navy); color: #fff; }
.how-pin { min-height: 100svh; display: flex; align-items: center; padding: 90px 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.how h2 { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { display: flex; gap: 18px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background-color .4s, border-color .4s, opacity .4s; }
.step p { color: rgba(255,255,255,.75); margin-top: 6px; font-size: 1rem; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem/1 var(--font-display); background: rgba(255,255,255,.1); color: #fff; transition: background-color .4s, color .4s, transform .4s var(--ease-out); }
.step.is-active { background: rgba(255,255,255,.1); border-color: rgba(255,194,26,.5); }
.step.is-active .step-num { background: var(--gold); color: var(--navy); transform: scale(1.08); }
.js-anim .step:not(.is-active) { opacity: .55; }
.how-scene { display: grid; place-items: center; }
#clawScene { width: 100%; max-width: 500px; height: auto; max-height: 78svh; filter: drop-shadow(0 30px 50px rgba(0,0,0,.4)); }

/* ---------- The machine ---------- */
.machine { padding: clamp(80px, 12vw, 150px) 0; background: var(--cream); }
.machine-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.machine-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); box-shadow: 0 30px 60px -25px rgba(13,27,76,.4); }
.machine-photo img { width: 100%; height: 118%; object-fit: cover; }
.machine-copy h2 { margin-bottom: 20px; }
.machine-copy .lede { margin-bottom: 36px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.features li { display: flex; gap: 14px; }
.features p { color: var(--ink-soft); font-size: .98rem; margin-top: 4px; }
.f-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Inside the cabinet (horizontal gallery) ---------- */
.inside { background: var(--navy-deep); color: #fff; overflow: hidden; }
.inside-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0; gap: 44px; }
.inside-head h2 { max-width: 14em; }
.inside-track-wrap { width: 100%; }
.inside-track { list-style: none; margin: 0; display: flex; gap: 24px; padding: 0 var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); width: max-content; }
.inside-card { width: clamp(260px, 26vw, 340px); flex: none; }
.inside-card figure { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); }
.inside-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.inside-card:hover img { transform: scale(1.03); }
.inside-card p { color: rgba(255,255,255,.7); font-size: .98rem; margin-top: 6px; }

/* ---------- Service area ---------- */
.area { background: var(--red); color: #fff; padding: clamp(80px, 12vw, 150px) 0; }
.area-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.area-copy h2 { margin-bottom: 20px; }
.area-copy p { color: rgba(255,255,255,.88); margin-bottom: 32px; max-width: 30em; }
.area .eyebrow-light { color: #fff; opacity: .85; }
.states { list-style: none; margin: 0; padding: 0; }
.states li { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 2px solid rgba(255,255,255,.25); font: 800 clamp(1.9rem, 4.6vw, 3.6rem)/1.1 var(--font-display); letter-spacing: -.02em; }
.states .abbr { font: 700 .9rem/1 var(--font-body); letter-spacing: .1em; color: var(--gold); width: 2.4em; flex: none; }

/* ---------- Reviews ---------- */
.reviews { padding: clamp(90px, 13vw, 160px) 0; background: var(--cream); text-align: center; }
.reviews-inner { display: flex; flex-direction: column; align-items: center; }
.score { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.score-num { font: 800 clamp(6rem, 18vw, 12rem)/.9 var(--font-display); letter-spacing: -.05em; color: var(--navy); font-variant-numeric: tabular-nums; }
.score-stars { position: relative; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: 6px; line-height: 1; }
.stars-bg { color: rgba(13,27,76,.12); }
.stars-fill { position: absolute; inset: 0; color: var(--gold); text-shadow: 0 2px 0 #d99c00; overflow: hidden; white-space: nowrap; clip-path: inset(0 0 0 0); }
.score-sub { font-size: 1.2rem; color: var(--ink-soft); margin: 22px 0 32px; }
.score-sub strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; padding: clamp(80px, 12vw, 140px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy > p { color: rgba(255,255,255,.8); max-width: 30em; }
.phone-big { display: inline-flex; align-items: center; gap: 14px; margin: 32px 0 18px; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1 var(--font-display); color: var(--gold); text-decoration: none; }
.phone-big .i { width: 34px; height: 34px; }
.phone-big:hover { text-decoration: underline; text-underline-offset: 6px; }
.hours { font-size: 1rem; color: rgba(255,255,255,.75); }
.contact-form { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 500 16px/1.4 var(--font-body); color: var(--ink);
  background: #f5f6fa; border: 2px solid transparent; border-radius: 12px; transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.err { display: none; color: var(--red); font-size: .9rem; font-weight: 600; margin-top: 6px; }
.field.has-error input { border-color: var(--red); }
.field.has-error .err { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-actions .btn-ghost-light { color: var(--navy); border-color: var(--navy); }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; align-items: start; }
.footer-logo { width: 200px; mix-blend-mode: multiply; }
.footer-h { font-size: 1.1rem; margin-bottom: 10px; }
.site-footer p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 6px; }
.site-footer a { color: var(--navy); font-weight: 600; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-base p { font-size: .9rem; }

/* ---------- Scroll progress claw (desktop) ---------- */
.progress-claw { position: fixed; right: 22px; top: var(--header-h); z-index: 40; width: 24px; pointer-events: none; display: none; }
.progress-cable { display: block; width: 2px; margin: 0 auto; height: 0; background: var(--navy); opacity: .35; }
.progress-head { display: block; width: 24px; height: 24px; margin-top: -1px; }

/* ---------- Phone call bar ---------- */
.call-bar { display: none; }

/* ---------- Starting states for scroll/entrance animation (only when JS + motion are on) ---------- */
.js-anim [data-enter] { opacity: 0; }
.js-anim .hero-title [data-enter] { opacity: 1; transform: translateY(110%); }
.js-anim [data-enter-photo] { clip-path: inset(100% 0 0 0 round 28px); }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) { .progress-claw { display: block; } }

@media (max-width: 980px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .hero-grid, .how-grid, .machine-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-visual { order: -1; }
  .hero-photo { width: min(70vw, 340px); }
  .hero-rays { width: 120%; }
  .hero-badge { left: 4%; }
  .machine-photo { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }
  .brand img { height: 40px; }
  .call-long { display: none; }
  .call-short { display: inline; }
  .hero { min-height: auto; padding: 24px 0 56px; }
  .hero-photo { width: min(50vw, 210px); border-width: 4px; border-radius: 22px; }
  .hero-grid { gap: 24px; }
  .hero-badge { font-size: .9rem; padding: 8px 12px 8px 8px; }
  .hero-badge img { width: 38px; height: 38px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }

  .how-pin { padding: 72px 0; }
  .how-grid { gap: 28px; }
  .how-scene { order: -1; }
  .how h2 { margin-bottom: 24px; }
  #clawScene { max-width: 300px; max-height: 42svh; }
  .step { padding: 14px 16px; gap: 14px; }

  .features { grid-template-columns: 1fr; }
  .inside-pin { padding: 72px 0; gap: 32px; min-height: auto; }
  .inside-track { width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 var(--gutter); }
  .inside-card { width: auto; }
  .inside-card p { font-size: .92rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-base { flex-direction: column; }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

  .call-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    min-height: 56px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none;
    font: 700 1.05rem/1 var(--font-body); box-shadow: 0 10px 30px -6px rgba(227,18,27,.6);
    transform: translateY(160%); transition: transform .4s var(--ease-out);
  }
  .call-bar.is-visible { transform: none; }
}

@media (max-width: 430px) {
  .inside-track { grid-template-columns: 1fr; }
  .inside-card figure { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Price ---------- */
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: -6px 0 22px; font-weight: 600; color: var(--ink); }
.price-line strong { font: 800 2rem/1 var(--font-display); color: var(--red); letter-spacing: -.02em; }
.price-line span { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.price-card { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 20px 22px; border-radius: 16px; background: var(--gold); color: var(--navy); }
.price-main { display: flex; flex-direction: column; }
.price-num { font: 800 2.8rem/1 var(--font-display); letter-spacing: -.03em; }
.price-label { font-weight: 700; font-size: .95rem; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1 1 240px; font-size: .97rem; line-height: 1.45; }
@media (max-width: 760px) { .price-card { padding: 18px; } .price-num { font-size: 2.4rem; } }
.email-line { margin: -6px 0 16px; }
.email-line a { color: #fff; font-weight: 600; font-size: 1.1rem; text-underline-offset: 4px; }
.email-line a:hover { color: var(--gold); }

/* ---------- Photos gallery ---------- */
.gallery { background: #fff; padding: clamp(80px, 12vw, 150px) 0; }
.gallery-head { margin-bottom: 44px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.g-item figure { margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.g-item:hover img { transform: scale(1.03); }
.g-item h3 { font-size: 1.15rem; }
.g-b { margin-top: 70px; }
@media (max-width: 760px) {
  .gallery-head { margin-bottom: 28px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 28px; }
  .g-b { margin-top: 0; }
  .g-item figure { aspect-ratio: 4 / 5; }
}
