/* ============================================
   בין רוזנבלום — Shared Stylesheet
   ============================================ */

:root {
  --plum: #4A2545;
  --plum-hover: #3a1d37;
  --plum-mid: #7A4680;
  --plum-soft: #A07BB0;
  --plum-pale: #E8DDEA;
  --cream: #F7F2EA;
  --cream-warm: #FDFAF5;
  --white: #FFFFFF;
  --text: #2D1F2D;
  --text-soft: #6B5E65;
  --border: rgba(74, 37, 69, 0.12);
  --border-strong: rgba(74, 37, 69, 0.22);
  --shadow-sm: 0 4px 14px -4px rgba(74, 37, 69, 0.12);
  --shadow-md: 0 14px 32px -14px rgba(74, 37, 69, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(74, 37, 69, 0.25);
  --max: 1100px;
  --max-narrow: 820px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Assistant', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  position: relative;
  overflow-x: hidden;
}

/* Atmospheric gradient orbs - floating in the background */
body::before {
  content: '';
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 700px at 90% -10%, rgba(160, 123, 176, 0.28), transparent 55%),
    radial-gradient(ellipse 800px 650px at -10% 35%, rgba(122, 70, 128, 0.15), transparent 55%),
    radial-gradient(ellipse 700px 600px at 110% 85%, rgba(74, 37, 69, 0.12), transparent 55%),
    radial-gradient(circle 500px at 30% 70%, rgba(232, 221, 234, 0.5), transparent 60%);
  animation: orb-drift 28s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-20px, 10px) scale(1.03); }
  100% { transform: translate(25px, -15px) scale(0.98); }
}

/* Subtle grain / paper texture */
body::after {
  content: '';
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' stitchTiles='stitch' numOctaves='2'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

/* All content sits above the atmospheric background */
body > * { position: relative; z-index: 2; }

/* Reveal-on-scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

a { color: inherit; text-decoration: none; }

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

/* ============================================
   Nav
   ============================================ */

.nav {
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; height: 36px; }

.logo svg, .logo img {
  height: 36px;
  width: auto;
  display: block;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-switcher a {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  opacity: 0.45;
  filter: saturate(0.6);
  transition: all 0.2s;
  display: inline-block;
}

.lang-switcher a:hover {
  opacity: 0.85;
  filter: saturate(1);
}

.lang-switcher a.active {
  opacity: 1;
  filter: saturate(1);
  background: rgba(74, 37, 69, 0.07);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: 'Assistant', sans-serif;
  color: var(--plum);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: 50px; letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }

h1 em {
  font-style: normal;
  color: var(--plum-soft);
  font-weight: 700;
}

.eyebrow {
  color: var(--plum-mid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
  padding: 13px 32px;
  background: var(--plum);
  color: var(--cream);
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  font-family: 'Assistant', sans-serif;
  border: none;
  cursor: pointer;
}

/* WhatsApp button */
.btn-whatsapp {
  padding: 12px 26px;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Assistant', sans-serif;
  border: none;
  cursor: pointer;
  direction: ltr;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px -4px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:hover {
  background: #1fb858;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp .wa-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: var(--plum-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--plum);
  border: 1.5px solid var(--plum);
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-block;
  font-family: 'Assistant', sans-serif;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--plum);
  color: var(--cream);
}

.btn-text {
  color: var(--plum);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.btn-text:hover { gap: 10px; }

.btn-text .arrow {
  color: var(--plum-soft);
  font-size: 18px;
  transform: scaleX(-1);
}

/* ============================================
   Section base
   ============================================ */

.section {
  padding: 40px 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--max-narrow);
}

.section-bordered {
  border-top: 1px solid var(--border);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 28px 48px 48px;
  max-width: var(--max-narrow);
  margin: 0 auto;
  position: relative;
}

/* Big decorative glow behind the hero headline */
.hero::before {
  content: '';
  position: absolute;
  top: 40px;
  inset-inline-end: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(160, 123, 176, 0.38) 0%, rgba(160, 123, 176, 0.12) 35%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  z-index: -1;
}

.hero > * { position: relative; }

/* Big decorative Hebrew letter behind About section */
.about {
  position: relative;
}

.about::before {
  content: 'ב';
  position: absolute;
  top: -120px;
  inset-inline-end: -60px;
  font-family: 'Assistant', sans-serif;
  font-size: 420px;
  font-weight: 800;
  color: var(--plum);
  opacity: 0.045;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

.about > * { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 10px; }

.hero .lead {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
  font-weight: 400;
  max-width: 620px;
}

.hero .sub {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 580px;
  font-weight: 300;
}

/* ============================================
   About section
   ============================================ */

.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: start;
}

.about-photo {
  width: 220px;
  height: 270px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e2d0d8 0%, #c9b4be 50%, #b89aac 100%);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

.about-content h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
  max-width: 620px;
  font-weight: 400;
}

.about-content p:last-child {
  color: var(--text-soft);
  font-size: 15px;
}

/* ============================================
   Services
   ============================================ */

.services h2 { margin-bottom: 16px; max-width: 620px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service-item {
  padding: 20px;
  background: var(--cream-warm);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-item h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.service-item p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================
   Case studies preview
   ============================================ */

.work h2 { margin-bottom: 16px; }

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

.work-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.work-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--plum-pale) 0%, var(--plum-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  position: relative;
  overflow: hidden;
}

.work-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
}

.work-thumb-label {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
}

.work-body {
  padding: 16px 20px 18px;
}

.work-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.work-tag {
  font-size: 12px;
  color: var(--plum-mid);
  background: var(--plum-pale);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.work-item h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.work-item p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ============================================
   Process (איך עובדים) — dramatic dark break
   ============================================ */

.process-wrap {
  background: var(--plum);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  margin: 24px 0;
  border-top: none;
}

/* Atmospheric orbs inside the dark section */
.process-wrap::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 500px at 85% 15%, rgba(160, 123, 176, 0.35), transparent 55%),
    radial-gradient(ellipse 500px 400px at 15% 85%, rgba(160, 123, 176, 0.18), transparent 55%),
    radial-gradient(circle 400px at 50% 50%, rgba(255, 255, 255, 0.04), transparent 60%);
}

.process-wrap > * { position: relative; z-index: 1; }

.process {
  padding: 52px 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.process h2 {
  color: var(--cream);
  margin-bottom: 18px;
  max-width: 620px;
}

.process .eyebrow {
  color: var(--plum-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}

.process-step {
  position: relative;
}

.process-number {
  font-family: 'Assistant', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--plum-soft);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.process-step h3 {
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--cream);
}

.process-step p {
  color: rgba(247, 242, 234, 0.78);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials h2 { margin-bottom: 16px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.testimonial {
  padding: 20px 20px 18px;
  background: var(--cream-warm);
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial .quote-mark {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 56px;
  color: var(--plum-pale);
  line-height: 1;
  font-family: 'Assistant', sans-serif;
  font-weight: 800;
}

.testimonial blockquote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 10px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial .attribution {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.4;
}

.testimonial .attribution strong {
  color: var(--plum);
  font-weight: 700;
  display: block;
  font-size: 15px;
}

.testimonial.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: var(--text-soft);
  font-size: 14px;
  font-style: italic;
  background: transparent;
  border: 1px dashed var(--border-strong);
}

/* ============================================
   Contact section
   ============================================ */

.contact {
  padding: 48px 48px 40px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.contact p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  font-weight: 300;
}

.contact-alt {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-alt a {
  color: var(--plum);
  font-weight: 600;
  transition: color 0.15s;
}

.contact-alt a:hover { color: var(--plum-hover); }

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 20px 48px 24px;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--plum-soft);
  margin: 0 10px;
  vertical-align: middle;
}

/* ============================================
   Case study page
   ============================================ */

.cs-hero {
  padding: 20px 48px 28px;
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.cs-back {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  transition: color 0.15s;
}

.cs-back:hover { color: var(--plum); }

.cs-back .arrow {
  color: var(--plum-soft);
  transform: scaleX(-1);
}

.cs-hero .eyebrow { margin-bottom: 14px; }

.cs-hero h1 {
  font-size: 44px;
  margin-bottom: 8px;
}

.cs-hero .summary {
  font-size: 17px;
  color: var(--text);
  max-width: 600px;
  line-height: 1.5;
  font-weight: 400;
}

.cs-meta {
  display: flex;
  gap: 28px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.cs-meta-item .label {
  font-size: 12px;
  color: var(--plum-mid);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cs-meta-item .value {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.cs-image {
  max-width: var(--max);
  margin: 0 auto 32px;
  padding: 0 48px;
}

.cs-image-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--plum-pale) 0%, var(--plum-soft) 60%, var(--plum-mid) 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.cs-image-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.3), transparent 55%);
}

.cs-content {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 48px 40px;
}

.cs-content h2 {
  font-size: 28px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.cs-content h2:first-child { margin-top: 0; }

.cs-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 400;
}

.cs-content ul {
  margin: 0 16px 14px;
  padding: 0;
  list-style: none;
}

.cs-content ul li {
  padding: 3px 0 3px 0;
  padding-inline-start: 22px;
  position: relative;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.cs-content ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plum-soft);
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
  padding: 20px;
  background: var(--cream-warm);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.cs-stat .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.cs-stat .label {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}

.cs-cta-box {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--plum);
  color: var(--cream);
  border-radius: 14px;
  text-align: center;
}

.cs-cta-box h3 {
  color: var(--cream);
  font-size: 22px;
  margin-bottom: 6px;
}

.cs-cta-box p {
  color: var(--cream);
  opacity: 0.8;
  font-size: 15px;
  margin-bottom: 14px;
  max-width: 420px;
  margin-inline-start: auto;
  margin-inline-end: auto;
}

.cs-cta-box .btn-primary {
  background: var(--cream);
  color: var(--plum);
}

.cs-cta-box .btn-primary:hover {
  background: var(--white);
}

/* ============================================
   Coming soon (EN/FR)
   ============================================ */

.coming-soon {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 48px;
}

.coming-soon h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.coming-soon p {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.55;
}

/* ============================================
   Mobile
   ============================================ */

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { width: 200px; height: 240px; margin: 0 auto; }
  .about-content h2 { font-size: 32px; }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 20px 24px; }
  .hero { padding: 30px 24px 70px; }
  h1 { font-size: 42px !important; }
  h2 { font-size: 32px !important; }
  .hero .lead { font-size: 19px; }
  .hero .sub { font-size: 17px; }
  .section { padding: 70px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact { padding: 70px 24px 80px; }
  .contact h2 { font-size: 36px !important; }
  .cs-hero { padding: 24px 24px 40px; }
  .cs-hero h1 { font-size: 38px !important; }
  .cs-image { padding: 0 24px; }
  .cs-content { padding: 0 24px 60px; }
  .cs-content h2 { font-size: 26px !important; margin-top: 48px; }
  .footer { padding: 32px 24px 40px; text-align: center; justify-content: center; }
}
