/* zivmarom.com — landing page demo
   Palette from approved reference */
:root {
  --bg: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --gold: #d4a24a;
}

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

html, body { height: 100%; }

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* ---------- Top navigation ---------- */
.nav {
  transition: opacity 0.45s ease;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.9rem 3rem;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 2px;
  transition: color 0.25s ease;
}

.nav a:hover { color: var(--gold); }

/* nav fades away while scrolling down, returns on scroll-up */
.nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-divider {
  width: 1px;
  height: 1.05rem;
  background: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 6rem 1.5rem 5rem;
}

/* rotating background slides (slow crossfade, driven by a small script) */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 2s ease;
}

.hero-slide.is-active { opacity: 1; }

/* scrim: keeps center text readable on the brighter slides */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 55% at 50% 62%, rgba(8, 8, 8, 0.42), transparent 70%),
    linear-gradient(rgba(8, 8, 8, 0.18), rgba(8, 8, 8, 0.30));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* content block sits below true center in the reference (name center ≈ 57% of height) */
  margin-top: clamp(2rem, 18vh, 12.5rem);
}

.signature {
  width: min(370px, 62vw);
  height: auto;
  margin-bottom: 0.6rem;
  animation: fade-up 1.2s ease 0.15s both;
}

.name {
  font-size: clamp(2.4rem, 4.9vw, 4.2rem);
  font-weight: 200;
  letter-spacing: clamp(12px, 2.4vw, 34px);
  margin-right: clamp(-34px, -2.4vw, -12px); /* cancel trailing letter-space */
  white-space: nowrap;
  animation: fade-up 1.2s ease 0.35s both;
}

.rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.6rem 0 1.9rem;
  animation: fade-up 1.2s ease 0.5s both;
}

.tagline .dot-sep { color: var(--gold); padding: 0 0.5rem; }

.tagline {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.45vw, 1.22rem);
  font-weight: 300;
  letter-spacing: 3px;
  line-height: 1.85;
  animation: fade-up 1.2s ease 0.65s both;
}

.hero-profiles {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 2px;
  animation: fade-up 1.2s ease 0.72s both;
}

.hero-profiles a,
.hero-profiles a:visited {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.35s ease;
}

.hero-profiles a:hover { color: var(--gold); }

.hero-profiles span {
  color: var(--gold);
  opacity: 0.75;
  padding: 0 0.7rem;
}

.hero-profiles + .btn { margin-top: 2.4rem; }

.btn {
  display: inline-block;
  margin-top: 3.2rem;
  padding: 1.4rem 3.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 3px;
  transition: background 0.3s ease, color 0.3s ease;
  animation: fade-up 1.2s ease 0.8s both;
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: var(--bg);
}

/* ---------- Slide dots ---------- */
.hero-dots {
  position: absolute;
  z-index: 1;
  bottom: 5.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
  animation: fade-up-center 1.2s ease 1s both;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-dot:hover { border-color: var(--gold); }

.hero-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- Scroll chevron ---------- */
.chevron {
  position: absolute;
  z-index: 1;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
  opacity: 0.9;
  transition: opacity 0.3s ease;
  animation: fade-up-center 1.2s ease 1s both;
}

.chevron:hover { opacity: 0.5; }

/* ---------- Contact section ---------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7rem 1.5rem 0;
  background: var(--bg);
  text-align: center;
}

.contact-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 4px;
}

.contact-title {
  margin-top: 1.1rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 200;
  letter-spacing: 10px;
  margin-right: -10px;
}

.contact .rule { animation: none; }

#contact-form {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

#contact-form input,
#contact-form textarea {
  font: inherit;
  font-weight: 300;
  color: var(--text-primary);
  background: #111111;
  border: 1px solid #2c2c2c;
  padding: 0.85rem 1rem;
  border-radius: 0;
  resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-send {
  margin-top: 0.4rem;
  align-self: center;
  cursor: pointer;
  animation: none;
}

.form-note {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.form-note.ok { color: var(--gold); }

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.site-footer {
  margin-top: 5rem;
  padding: 2rem 0 2.4rem;
  width: 100%;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 2px;
  transition: color 0.25s ease;
}

.site-footer a:hover { color: var(--gold); }

/* ---------- Animation ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* for absolutely-positioned elements centered with translateX(-50%) —
   a plain fade-up would override that transform and knock them off-center */
@keyframes fade-up-center {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .signature, .name, .rule, .tagline, .btn, .chevron, .hero-dots, .hero-profiles { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav { padding: 1.2rem 0.9rem; }
  .nav-links { gap: 0.6rem; }
  .nav a { font-size: 0.6rem; letter-spacing: 0.8px; white-space: nowrap; }
  .nav-divider { height: 0.8rem; }

  /* keep the walking figure (right of center) in frame on narrow screens */
  .slide-warehouse { background-position: 62% center; }

  .hero-content { margin-top: 1.5vh; }
  .signature { width: min(260px, 68vw); }
  .tagline { font-size: 0.8rem; letter-spacing: 2px; }

  .contact { padding-top: 4.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .btn { margin-top: 2.4rem; padding: 1.05rem 2.3rem; letter-spacing: 2px; }
}
