/* ═════════════════════════════════════════════════════════
   TOP-CRANES — black steel, flame gold
   Display: Karantina (condensed Hebrew poster face)
   Body:    Heebo
   ═════════════════════════════════════════════════════════ */

:root {
  /* color */
  --bg:       oklch(0.16 0.012 80);
  --bg-deep:  oklch(0.115 0.01 80);
  --panel:    oklch(0.185 0.014 80);
  --gold:     oklch(0.82 0.16 85);
  --amber:    oklch(0.71 0.15 65);
  --ember:    oklch(0.5 0.115 50);
  --ink:      oklch(0.94 0.018 90);
  --ink-soft: oklch(0.84 0.025 88);
  --muted:    oklch(0.72 0.03 85);
  --line:     oklch(0.33 0.02 80);
  --on-gold:  oklch(0.2 0.03 80);

  /* type */
  --font-display: 'Karantina', 'Heebo', sans-serif;
  --font-body: 'Heebo', 'Segoe UI', system-ui, sans-serif;

  /* z scale */
  --z-sky: 0;
  --z-scene: 1;
  --z-content: 10;
  --z-topbar: 100;
  --z-fab: 110;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--on-gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── fixed scene layers ─────────────────────────────────── */

.sky {
  position: fixed; inset: 0;
  z-index: var(--z-sky);
  background:
    radial-gradient(120% 65% at 18% 100%, oklch(0.34 0.09 55 / 0.55) 0%, transparent 62%),
    radial-gradient(90% 45% at 50% 104%, oklch(0.45 0.115 62 / 0.4) 0%, transparent 58%),
    linear-gradient(to bottom, oklch(0.1 0.008 80) 0%, oklch(0.14 0.012 78) 55%, oklch(0.2 0.035 68) 100%);
}

/* halftone band on the horizon, echoing the van wrap */
.sky::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0; height: 38%;
  background-image: radial-gradient(oklch(0.82 0.16 85 / 0.13) 1px, transparent 1.5px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to top, oklch(0 0 0) 0%, transparent 100%);
  mask-image: linear-gradient(to top, oklch(0 0 0) 0%, transparent 100%);
}

#scene {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: var(--z-scene);
  pointer-events: none;
}

main { position: relative; z-index: var(--z-content); }

/* ── topbar ─────────────────────────────────────────────── */

.topbar {
  position: fixed; inset-inline: 0; top: 0;
  z-index: var(--z-topbar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  transition: background-color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: oklch(0.13 0.01 80 / 0.92);
  border-bottom-color: var(--line);
}

.brand {
  display: flex; align-items: baseline; gap: 0.6rem;
  text-decoration: none;
}
.brand-he {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--gold);
}
.brand-en {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.topbar-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
  border-radius: 3px;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.topbar-phone:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.topbar-phone svg { color: var(--gold); }

/* ── hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 46rem) 1fr; /* text at inline-start (right in RTL), crane owns the rest */
  align-items: center;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.hero-inner { max-width: 42rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.25rem, 12.5vw, 6rem);
  line-height: 0.92;
  color: var(--ink);
  text-wrap: balance;
}
.hero-word { display: inline-block; }
.hero-word-gold { color: var(--gold); }

.hero-sub {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: linear-gradient(160deg, var(--gold), var(--amber));
  color: var(--on-gold);
}
.btn-line {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

.hero-scroll {
  position: absolute; bottom: 0; inset-inline-start: clamp(1.25rem, 4vw, 3rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.2em; color: var(--muted);
}
.hero-scroll-cable {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cable-drop 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  transform-origin: top;
}
@keyframes cable-drop {
  0% { transform: scaleY(0); }
  45%, 70% { transform: scaleY(1); }
  100% { transform: scaleY(0); opacity: 0; }
}

/* ── shared section chrome ──────────────────────────────── */

.panel { position: relative; background: var(--bg); }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

/* hazard striping: the machine-yard divider. Used exactly twice. */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--gold) 0 16px,
    oklch(0.13 0.01 80) 16px 32px);
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 0.98;
  color: var(--ink);
  text-wrap: balance;
}
.sec-sub {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 38rem;
}

/* ── services: the manifest ─────────────────────────────── */

.manifest {
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.manifest-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.75rem, 4vh, 2.75rem);
  border-top: 1px solid var(--line);
}
.manifest-row:last-child { border-bottom: 1px solid var(--line); }

.manifest-stamp {
  justify-self: start;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--amber);
  border: 1.5px solid currentColor;
  padding: 0.3rem 0.7rem 0.25rem;
  border-radius: 2px;
  transform: rotate(-2deg);
  margin-top: 0.5rem;
}

.manifest-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--gold);
}
.manifest-body p {
  margin-top: 0.7rem;
  max-width: 44rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── rating plate ───────────────────────────────────────── */

.plate-section { background: var(--bg-deep); }

.plate {
  position: relative;
  background: linear-gradient(155deg, oklch(0.24 0.018 80), oklch(0.19 0.015 80) 55%, oklch(0.22 0.02 78));
  border: 1px solid var(--line);
  outline: 1px solid oklch(0.26 0.02 80);
  outline-offset: -7px;
  border-radius: 6px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 24px 60px oklch(0 0 0 / 0.45);
}

.rivet {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.6 0.05 85), oklch(0.28 0.02 80) 70%);
  box-shadow: inset 0 -1px 2px oklch(0 0 0 / 0.6);
}
.rivet-tl { top: 14px; inset-inline-start: 14px; }
.rivet-tr { top: 14px; inset-inline-end: 14px; }
.rivet-bl { bottom: 14px; inset-inline-start: 14px; }
.rivet-br { bottom: 14px; inset-inline-end: 14px; }

.plate-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.plate-head span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
}
.plate-head span:last-child {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.plate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 1.5rem;
  border: 1px solid var(--line);
}
.plate-cell {
  background: oklch(0.17 0.013 80);
  padding: 1.2rem 1.3rem 1.1rem;
}
.plate-cell dt {
  font-size: 0.82rem;
  color: var(--muted);
}
.plate-cell dd {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1;
  color: var(--gold);
}
.plate-cell dd a { text-decoration: none; color: inherit; }
.plate-cell dd a:hover { color: var(--ink); }

/* ── gallery ────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 3.25rem);
}

.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}
.shot-wide { grid-column: span 2; }

.shot img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 16 / 10;
}
.shot figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: linear-gradient(to top, oklch(0.1 0.01 80 / 0.85), transparent);
}

.shot-soon .soon {
  height: 100%;
  min-height: 220px;
  display: grid; place-items: center;
  background-image: radial-gradient(oklch(0.82 0.16 85 / 0.07) 1px, transparent 1.5px);
  background-size: 12px 12px;
}
.shot-soon .soon span {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  transform: rotate(-2deg);
}

/* ── contact ────────────────────────────────────────────── */

.contact {
  position: relative;
  background: transparent; /* the crane comes back into view here */
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, oklch(0.14 0.012 78 / 0.55) 30%, oklch(0.12 0.01 80 / 0.35) 100%);
  pointer-events: none;
}
.contact .hazard, .contact-wrap, .footer { position: relative; }

.contact-wrap {
  min-height: 82svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(5rem, 12vh, 8rem);
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7.5vw, 5rem);
  line-height: 0.95;
  color: var(--ink);
}

.contact-phone {
  margin-top: 1.75rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 6rem);
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}
.contact-phone:hover { color: var(--ink); }

.contact-sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.contact-links {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.contact-links a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.55rem 1.05rem;
  border-radius: 3px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-links a:hover { border-color: var(--gold); color: var(--gold); }
.contact-links svg { color: var(--amber); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── floating call button (mobile) ──────────────────────── */

.call-fab {
  position: fixed;
  bottom: 1.1rem; inset-inline-end: 1.1rem;
  z-index: var(--z-fab);
  display: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold), var(--amber));
  color: var(--on-gold);
  place-items: center;
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.5), 0 0 0 0 oklch(0.82 0.16 85 / 0.45);
  animation: fab-pulse 2.6s ease-out infinite;
}
@keyframes fab-pulse {
  0% { box-shadow: 0 8px 24px oklch(0 0 0 / 0.5), 0 0 0 0 oklch(0.82 0.16 85 / 0.45); }
  70%, 100% { box-shadow: 0 8px 24px oklch(0 0 0 / 0.5), 0 0 0 18px oklch(0.82 0.16 85 / 0); }
}

/* ── responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  #scene { opacity: 0.5; }

  .hero { grid-template-columns: 1fr; }
  .hero-inner { max-width: 36rem; }

  .manifest-row { grid-template-columns: 1fr; gap: 0.9rem; }
  .manifest-stamp { margin-top: 0; }

  .plate-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }

  .call-fab { display: grid; }
}

@media (max-width: 480px) {
  .plate-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(3.6rem, 17vw, 4.5rem); }
}

/* ── reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-cable { animation: none; transform: scaleY(1); }
  .call-fab { animation: none; }
  .btn, .btn:hover { transform: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
