:root {
  --cream:  #FDFAF6;
  --warm:   #F2EDE5;
  --sand:   #DDD5C8;
  --terra:  #7D6B58;
  --deep:   #4E3F34;
  --ink:    #1E1916;
  --muted:  #8A7D73;
  --line:   #E0D8CF;
  --accent: #d56243;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  direction: rtl;
  overflow-x: hidden;
  max-width: 100vw;
}

/* HEADER */
header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 900;
  padding: 24px clamp(40px, 8vw, 140px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
header.scrolled {
  background: rgba(253, 250, 246, 0.94);
  backdrop-filter: blur(14px);
  padding: 16px clamp(40px, 8vw, 140px);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  text-decoration: none;
  display: flex; align-items: center;
  font-size: 1.15rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
  position: relative; z-index: 1001;
}
.logo:hover { opacity: 0.75; }

/* NAV — desktop: horizontal links; mobile: fullscreen overlay */
nav {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap; justify-self: center;
}
nav a {
  font-size: 0.78rem; text-decoration: none;
  color: var(--muted); letter-spacing: 0.06em; font-weight: 400;
  position: relative; transition: color 0.25s;
}
nav a::after {
  content: ''; position: absolute; bottom: -4px; right: 0;
  width: 0; height: 1px; background: var(--terra);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--ink); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--ink); font-weight: 700; }
nav a.active::after { width: 100%; background: var(--terra); }

/* PAGE WRAPPER */
.page-content { padding-top: 90px; }

/* SECTION SHARED */
section { padding: 100px clamp(40px, 8vw, 140px); }
.section-label {
  font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--terra); text-transform: uppercase;
  display: block; margin-bottom: 18px; font-weight: 400;
}
.section-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.2; color: var(--accent); margin-bottom: 20px;
}
.divider { width: 40px; height: 1px; background: var(--sand); margin: 28px 0; }

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* BUTTONS */
.btn-primary {
  display: inline-block; padding: 14px 34px;
  background: var(--ink); color: var(--cream);
  text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.08em; border-radius: 40px;
  transition: background 0.25s ease, transform 0.2s ease; font-weight: 400;
}
.btn-primary:hover { background: var(--terra); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; padding: 13px 34px;
  border: 1px solid var(--sand); color: var(--muted);
  text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.08em; border-radius: 40px;
  transition: border-color 0.25s, color 0.25s; font-weight: 400;
}
.btn-ghost:hover { border-color: var(--terra); color: var(--ink); }

/* IMAGES — natural, no heavy filters */
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ORGANIC BLOB decorative shape */
.blob {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: var(--warm);
  opacity: 0.7;
}

/* AMOEBA ANIMATIONS */
@keyframes amoeba-1 {
  0%   { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; transform: translateY(0) scale(1); }
  25%  { border-radius: 48% 52% 62% 38% / 58% 44% 56% 42%; transform: translateY(-6px) scale(1.01); }
  50%  { border-radius: 55% 45% 44% 56% / 42% 58% 48% 52%; transform: translateY(-10px) scale(1.015); }
  75%  { border-radius: 40% 60% 52% 48% / 54% 40% 60% 46%; transform: translateY(-5px) scale(1.008); }
  100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; transform: translateY(0) scale(1); }
}
@keyframes amoeba-2 {
  0%   { border-radius: 56% 44% 40% 60% / 46% 60% 40% 54%; transform: translateY(0) scale(1); }
  30%  { border-radius: 44% 56% 58% 42% / 52% 44% 56% 48%; transform: translateY(7px) scale(1.012); }
  60%  { border-radius: 62% 38% 48% 52% / 40% 56% 44% 60%; transform: translateY(4px) scale(1.008); }
  100% { border-radius: 56% 44% 40% 60% / 46% 60% 40% 54%; transform: translateY(0) scale(1); }
}
@keyframes amoeba-3 {
  0%   { border-radius: 38% 62% 57% 43% / 52% 44% 56% 48%; transform: translateY(0); }
  35%  { border-radius: 52% 48% 44% 56% / 44% 58% 42% 56%; transform: translateY(-8px); }
  65%  { border-radius: 46% 54% 62% 38% / 58% 40% 60% 40%; transform: translateY(-5px); }
  100% { border-radius: 38% 62% 57% 43% / 52% 44% 56% 48%; transform: translateY(0); }
}
@keyframes amoeba-4 {
  0%   { border-radius: 42% 58% 65% 35% / 48% 54% 46% 52%; transform: translateY(0); }
  40%  { border-radius: 58% 42% 48% 52% / 56% 44% 54% 46%; transform: translateY(6px); }
  70%  { border-radius: 48% 52% 56% 44% / 42% 58% 42% 58%; transform: translateY(9px); }
  100% { border-radius: 42% 58% 65% 35% / 48% 54% 46% 52%; transform: translateY(0); }
}

.hero-blob      { animation: amoeba-1 18s ease-in-out infinite; }
.phil-blob      { animation: amoeba-2 22s ease-in-out infinite; }
.about-blob-1   { animation: amoeba-3 20s ease-in-out infinite; }
.about-blob-2   { animation: amoeba-4 24s ease-in-out infinite; }
.values-blob    { animation: amoeba-1 19s ease-in-out infinite; }
.page-blob-1    { animation: amoeba-2 21s ease-in-out infinite; }
.page-blob-2    { animation: amoeba-3 25s ease-in-out infinite; }

/* FOOTER */
footer {
  background: var(--accent); padding: 48px clamp(40px, 8vw, 140px);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; font-size: 1rem; font-weight: 700; color: white; letter-spacing: 0.02em; }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  color: var(--sand); text-decoration: none;
  font-size: 0.76rem; letter-spacing: 0.06em; transition: color 0.25s;
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.7rem; color: white; }

/* PAGE HERO BANNER (inner pages) */
.page-hero {
  background: var(--warm);
  padding: 90px clamp(40px, 8vw, 140px) 70px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero .blob {
  width: 400px; height: 400px;
  top: -80px; left: -80px;
  background: var(--sand); opacity: 0.4;
}
.page-hero .section-label { margin-bottom: 14px; }
.page-hero h1 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1; color: var(--accent);
  position: relative; z-index: 1;
}
.page-hero p {
  margin-top: 18px;
  color: var(--muted); font-size: 1rem;
  max-width: 520px; line-height: 1.85;
  position: relative; z-index: 1;
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  position: relative; z-index: 1001;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  header { padding: 18px 24px; grid-template-columns: 1fr auto; }
  header.scrolled { padding: 14px 24px; }
  section { padding: 70px 24px; }
  .page-hero { padding: 60px 24px 50px; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding: 40px 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .nav-toggle { display: flex; }

  nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; min-height: 100vh;
    z-index: 990;
    background: var(--cream);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 36px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: normal;
  }
  nav.open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }
  nav a { font-size: 1.4rem; letter-spacing: 0.04em; }
}
