/*
Theme Name: Creative Portfolio
Theme URI:
Author: [שמך]
Description: עמוד ראשי לקידום תחומי פעילות
Version: 1.2
Text Domain: creative-portfolio
*/

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

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;900&display=swap');

/* ── Variables ── */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --indigo-950: #1e1b4b;
  --indigo-900: #312e81;
  --purple-900: #4c1d95;
  --radius: 12px;
  --transition: 0.25s ease;
}

html { direction: rtl; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

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

/* ════════════════════════════
   NAV
════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--black); }
.nav-cta {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
  transition: opacity var(--transition) !important;
}
.nav-cta:hover { opacity: 0.45; }

/* ════════════════════════════
   HERO — SERVICE LIST
════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* רקע: כל התמונות מונחות אחת על השנייה */
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.hero-bg-image.active { opacity: 1; }
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

/* שם מעל התמונה */
.hero-name {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding-top: 24px;
}
.hero-name a {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: opacity var(--transition);
}
.hero-name a:hover { opacity: 0.6; }

/* רשימת תחומים */
.service-list {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 48px 48px;
}
@media (min-width: 768px) { .service-list { padding: 120px 80px 80px; } }

.service-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 24px 0;
  transition: opacity 0.2s;
}
@media (min-width: 768px) { .service-link { padding: 28px 0; } }

.service-link h2 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  transition: opacity 0.2s;
}
.service-link .arrow {
  font-size: 1.5rem;
  color: var(--white);
  opacity: 0.2;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-right: 16px;
}

/* hover state — מנוהל ב-JS */
.service-list.has-hover .service-link:not(.hovered) h2 { opacity: 0.25; }
.service-list.has-hover .service-link.hovered .arrow {
  opacity: 1;
  transform: translateX(-6px);
}

/* ════════════════════════════
   LOGOS
════════════════════════════ */
.logos-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 80px 32px;
}
.logos-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.section-eyebrow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 120px;
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-cell {
  position: relative;
  background: var(--white);
  transition: background var(--transition);
}
.logo-cell:hover { background: var(--gray-100); }
.logo-placeholder {
  position: absolute;
  inset: 20px 30px;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}
.logo-cell img {
  position: absolute;
  inset: 12px 20px;
  width: calc(100% - 40px);
  height: calc(100% - 24px);
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: opacity var(--transition);
}
.logo-cell img:hover { opacity: 0.7; }

/* ════════════════════════════
   ABOUT
════════════════════════════ */
.about-section {
  padding: 96px 32px;
}
.about-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-inner { grid-template-columns: 1fr 1fr; }
}
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.about-text p {
  color: var(--gray-500);
  font-weight: 300;
  line-height: 1.7;
  font-size: 1rem;
}
.text-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  width: fit-content;
  margin-top: 8px;
  transition: opacity var(--transition);
}
.text-link:hover { opacity: 0.5; }
.text-link .arrow { transition: transform 0.2s; }
.text-link:hover .arrow { transform: translateX(-4px); }

/* stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.stat-value {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.85rem; color: var(--gray-400); }

/* ════════════════════════════
   SEPARATOR
════════════════════════════ */
.separator {
  max-width: 1152px;
  margin: 0 auto;
  height: 1px;
  background: var(--gray-200);
}

/* ════════════════════════════
   CTA
════════════════════════════ */
.cta-section {
  padding: 96px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1.5px;
}
.cta-section p {
  color: var(--gray-500);
  max-width: 440px;
  font-weight: 300;
}
.btn-black {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 40px;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-black:hover { opacity: 0.75; transform: scale(1.03); }
.btn-black:active { transform: scale(0.97); }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.site-footer {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-copy {
  color: #a5b4fc;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a5b4fc;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ════════════════════════════
   FADE-IN (Intersection Observer)
════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.21,0.47,0.32,0.98),
              transform 0.5s cubic-bezier(0.21,0.47,0.32,0.98);
}
.fade-in.from-right { transform: translateX(24px); }
.fade-in.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.fade-in.delay-1 { transition-delay: 0.08s; }
.fade-in.delay-2 { transition-delay: 0.16s; }
.fade-in.delay-3 { transition-delay: 0.24s; }
