/* ============================================
   Shalom Automations · style.css
   Warm Editorial Magazine
   ============================================ */

:root {
  --bg-cream: #F4EFE3;
  --bg-white: #FFFFFF;
  --text-deep: #1B2845;
  --text-soft: #2C3954;
  --text-muted: #4A5568;
  --accent-teal: #1FA89A;

  --border-soft: rgba(27, 40, 69, 0.15);
  --border-medium: rgba(27, 40, 69, 0.35);

  --font-display: 'Frank Ruhl Libre', 'Heebo', 'Assistant', serif;
  --font-body: 'Heebo', 'Assistant', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1180px;
  --section-pad: clamp(80px, 12vw, 160px);

  --radius-card: 6px;
  --radius-pill: 100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--accent-teal); color: var(--bg-white); }

html, body {
  background: var(--bg-cream);
  color: var(--text-deep);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 0.5px solid transparent;
}

.nav.scrolled {
  background: rgba(244, 239, 227, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-soft);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo,
.footer-logo {
  font-size: 18px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-deep);
  letter-spacing: -0.005em;
}

.logo-dot {
  color: var(--accent-teal);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
}

.logo-role {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-deep);
  transition: color 0.3s var(--ease);
}

.nav-links a:hover { color: var(--accent-teal); }

.nav-cta {
  padding: 10px 22px;
  background: var(--text-deep);
  color: var(--bg-cream) !important;
  border: 0.5px solid var(--text-deep);
  border-radius: var(--radius-pill);
  font-weight: 400;
  transition: background-color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: var(--bg-white) !important;
}

/* ============================================
   Reveal (פעיל רק אחרי שה-JS עלה)
   ============================================ */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js-on .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js-on .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 620px;
}

/* פיל = קו דק טורקיז עם מונו */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 10px 0;
  border-bottom: 0.5px solid var(--accent-teal);
  align-self: flex-start;
  background: transparent;
  border-radius: 0;
}

.pill-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  direction: ltr;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* כותרת הירו */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.4vw, 84px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-deep);
}

.italic-accent {
  font-style: italic;
  color: var(--accent-teal);
  font-weight: 400;
}

.dot-accent {
  color: var(--accent-teal);
  font-style: normal;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 480px;
}

/* CTA card לבן על קרם */
.cta-card {
  position: relative;
  margin-top: 8px;
  padding: 24px 26px;
  border: 0.5px solid var(--text-deep);
  border-radius: var(--radius-card);
  background: var(--bg-white);
  max-width: 620px;
}

.cta-badge {
  position: absolute;
  top: -11px;
  inset-inline-start: 22px;
  background: var(--accent-teal);
  color: var(--bg-white);
  padding: 3px 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  border-radius: var(--radius-pill);
  direction: ltr;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
}

.cta-middle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-deep);
  flex: 1;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--text-deep);
  color: var(--bg-cream) !important;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  margin-inline-start: auto;
}

.cta-button:hover {
  background: var(--accent-teal);
  color: var(--bg-white) !important;
}

.cta-button .arrow { transition: transform 0.3s var(--ease); }
.cta-button:hover .arrow { transform: translateX(-4px); }

.cta-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border-soft);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.hero-scroll {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--text-soft);
}

.hero-est {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  direction: ltr;
}

/* HERO BLOB */
.hero-blob {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin-inline-start: auto;
}

.blob-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(27, 40, 69, 0.15));
}

.blob-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
}

.blob-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 7vw, 96px);
  color: var(--bg-cream);
  line-height: 1;
  letter-spacing: -0.01em;
}

.blob-sub {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244, 239, 227, 0.85);
}

.blob-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.blob-circle-teal {
  width: 96px;
  height: 96px;
  background: var(--accent-teal);
  top: -34px;
  inset-inline-end: -28px;
  animation: pulse-circle 4s ease-in-out infinite;
}

.blob-circle-navy {
  width: 22px;
  height: 22px;
  background: var(--text-deep);
  top: 76px;
  inset-inline-end: 70px;
  animation: pulse-circle 3s ease-in-out infinite 1s;
}

@keyframes pulse-circle {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.hero-route {
  position: absolute;
  width: 220px;
  height: auto;
  bottom: -30px;
  inset-inline-start: -10px;
  z-index: 2;
}

.route-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  fill: var(--text-muted);
}

.route-label-end { fill: var(--accent-teal); }

/* ============================================
   Sections (shared)
   ============================================ */

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-head {
  margin: 0 auto 64px;
  max-width: 720px;
  text-align: center;
}

.overline {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent-teal);
  direction: ltr;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-deep);
}

.section-sub {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ============================================
   MAP (02) — Editorial entries
   ============================================ */

.map-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  border-top: 0.5px solid var(--text-deep);
}

.map-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 44px 0;
  border-bottom: 0.5px solid var(--border-soft);
  background: none;
  border-radius: 0;
  align-items: start;
  position: relative;
}

.map-card:last-child {
  border-bottom: 0.5px solid var(--text-deep);
}

.map-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.9;
  color: var(--text-deep);
  letter-spacing: -0.02em;
  direction: ltr;
}

.map-card p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 640px;
  padding-top: 14px;
}

/* ============================================
   METHOD (03)
   ============================================ */

.method-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
}

.method-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.method-step::before {
  content: '';
  position: absolute;
  inset-inline-start: 39px;
  top: 80px;
  bottom: -10px;
  width: 0.5px;
  background: var(--border-medium);
}

.method-step:last-child::before { display: none; }

.step-marker {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 0.5px solid var(--text-deep);
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.step-marker-final {
  border: 1px solid var(--accent-teal);
  background: var(--bg-white);
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-deep);
  letter-spacing: 0.02em;
  direction: ltr;
}

.step-marker-final .step-num {
  color: var(--accent-teal);
}

.step-body {
  padding-top: 12px;
}

.step-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--text-deep);
}

.step-body p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-soft);
}

.method-step-final .step-body {
  padding: 28px 32px;
  border: 0.5px solid var(--accent-teal);
  border-radius: var(--radius-card);
  background: var(--bg-white);
}

/* ============================================
   WORK (04)
   ============================================ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  padding: 32px 28px;
  border: 0.5px solid var(--text-deep);
  border-radius: var(--radius-card);
  background: var(--bg-white);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.work-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}

.work-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-deep);
  letter-spacing: -0.005em;
}

.work-card p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-soft);
}

/* ============================================
   CTA FINAL (05)
   ============================================ */

.cta-final {
  text-align: start;
}

.final-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-deep);
}

.contact-form {
  margin: 56px auto 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.field label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}

.optional {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 300;
  margin-inline-start: 4px;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border-medium);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-deep);
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.field input:focus {
  border-bottom-color: var(--accent-teal);
}

.field:focus-within label {
  color: var(--accent-teal);
}

.form-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--text-deep);
  color: var(--bg-cream);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--accent-teal);
  color: var(--bg-white);
}

.form-submit .arrow { transition: transform 0.3s var(--ease); }
.form-submit:hover .arrow { transform: translateX(-4px); }

.form-status {
  font-size: 14px;
  color: var(--accent-teal);
  font-weight: 400;
  min-height: 1em;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 64px 0 32px;
  border-top: 0.5px solid var(--border-soft);
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 10px;
}

.footer-tag {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover { color: var(--accent-teal); }

.footer-built {
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  direction: ltr;
}

/* ============================================
   Legal pages
   ============================================ */

.legal-page {
  padding: 160px 0 96px;
  max-width: 760px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-deep);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text-deep);
}

.legal-page p,
.legal-page li {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.legal-page ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin-bottom: 14px;
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
}

.legal-page .back-link:hover { color: var(--accent-teal); }

.legal-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }

  .hero-blob { max-width: 360px; }

  .blob-circle-teal { width: 72px; height: 72px; top: -24px; inset-inline-end: -20px; }
  .blob-circle-navy { width: 18px; height: 18px; top: 60px; inset-inline-end: 56px; }
  .hero-route { width: 180px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .nav-links a { font-size: 13px; }

  .logo-name, .logo-dot { font-size: 18px; }
  .logo-role { font-size: 13px; }

  .hero { padding-top: 110px; padding-bottom: 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-blob {
    max-width: 280px;
    margin: 0 auto;
    order: 2;
  }
  .blob-circle-teal { width: 64px; height: 64px; top: -22px; inset-inline-end: -16px; }
  .blob-circle-navy { width: 16px; height: 16px; top: 48px; inset-inline-end: 48px; }
  .hero-route { width: 160px; bottom: -22px; }

  .hero-headline { font-size: 48px; }
  .hero-sub { font-size: 16px; }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cta-button {
    margin-inline-start: 0;
    align-self: stretch;
    justify-content: center;
  }
  .cta-middle { flex: none; }

  .hero-bottom { gap: 16px; flex-wrap: wrap; }

  .section-head { margin-bottom: 48px; }
  .section-title { font-size: 36px; }
  .final-title { font-size: 56px; }

  .map-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0;
  }
  .map-num { font-size: 56px; }
  .map-card p { padding-top: 0; }

  .work-grid { grid-template-columns: 1fr; }

  .method-step {
    grid-template-columns: 56px 1fr;
    gap: 20px;
  }
  .step-marker { width: 56px; height: 56px; }
  .step-num { font-size: 18px; }
  .method-step::before {
    inset-inline-start: 27px;
    top: 56px;
  }
  .method-step-final .step-body { padding: 22px 22px; }
  .step-title { font-size: 22px; }

  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
