/* ============================================================
   RINAT LEVI — Global Styles (Reference Site Match)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;500;700;900&family=Heebo:wght@300;400;500;600;700&family=David+Libre:wght@400;500;700&display=swap');

:root {
  /* ══ Designer's 5-colour palette ══
     1. Beige bg   #FDFAFA
     2. Orange     #D78951  (small headings, labels, numbers)
     3. Olive green #445D44  (buttons — white text)
     4. Black       #000000  (body text on beige)
     5. White       #ffffff  (text on buttons / dark bg)
  ══════════════════════════════════ */

  --cream:         #FDFAFA;   /* main page bg */
  --cream-alt:     #F7F4F4;   /* alt section bg */
  --cream-deep:    #EDE9E9;   /* deeper tone */

  /* Dark section backgrounds (science / hiw / cta) */
  --espresso:      #1E160A;
  --espresso-mid:  #2A1E0F;

  /* Text */
  --text-dark:     #000000;   /* headings – pure black */
  --text-mid:      #111111;   /* body text – near black */
  --text-muted:    #555555;   /* labels, secondary */
  --text-light:    rgba(255,255,255,0.75); /* on dark bg */

  /* Olive green — buttons + accents */
  --green:         #445D44;
  --green-dark:    #2E3E2E;
  --green-light:   #5D7A5D;
  --green-pale:    rgba(68,93,68,0.08);
  --btn-green:     #445D44;

  /* Orange — labels, small headings, decorative lines */
  --amber:         #D78951;
  --amber-light:   #E9A870;
  --amber-pale:    rgba(215,137,81,0.10);
  --brand-orange:  #D78951;

  /* Typography scale */
  --fs-label:      13px;     /* small headings / section labels (Heebo, orange) */
  --fs-btn:        13px;     /* buttons (Segoe UI Semilight) */
  --fs-heading:    36px;     /* large headings (Frank Ruhl Libre) */
  --fs-body:       13.5px;   /* body / content (Segoe UI Semilight) */
  --fs-small:      10.5px;   /* small text (Heebo) */
  --fs-nav:        11px;     /* nav links (Heebo) */

  /* Font families */
  --ff-heading:    'Frank Ruhl Libre', 'FrankRuehl', serif;
  --ff-body:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-ui:         'Heebo', sans-serif;

  /* Backward-compat aliases */
  --purple-deep:   #1E160A;
  --purple-dark:   #2A1E0F;
  --purple-mid:    #D78951;
  --purple-soft:   #E9A870;
  --lavender:      #E9A870;
  --lavender-pale: rgba(215,137,81,0.10);
  --lavender-light:#F7F4F4;
  --gold:          #D78951;
  --gold-light:    #E9A870;
  --gold-pale:     rgba(215,137,81,0.10);
  --white:         #fdfaf4;
  --teal:          #445D44;
  --shadow-purple: rgba(68,93,68,0.10);
  --shadow-dark:   rgba(0,0,0,0.12);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; direction:rtl; font-size:16px; overflow-x:hidden; }
html.lang-en { direction:ltr; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 300;          /* Segoe UI Semilight = 300 */
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  max-width: 100%;
}
body.nav-open { overflow:hidden; }
img { display:block; max-width:100%; }
a { text-decoration:none; }

/* ── Large headings — Frank Ruhl Libre, 36px, black ── */
h1,h2,h3,h4 {
  font-family: var(--ff-heading);
  font-size: var(--fs-heading);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-dark);
}

/* ── Paragraph / body content — Segoe UI 300, 13.5px ── */
p {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.85;
}

.container { max-width:1060px; margin:0 auto; padding:0 2.5rem; }

/* ── Section labels / small headings — Heebo 9px, orange #D78951 ── */
.section-label {
  font-family: var(--ff-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-orange);
  display: block;
  margin-bottom: 0.8rem;
}

/* ── Large section title ── */
.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 4.5vw, var(--fs-heading));
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.section-title.light { color: var(--white); }

.gold-line { width:50px; height:2px; background:linear-gradient(90deg,var(--amber),var(--amber-light),transparent); border:none; margin:1.2rem 0 2rem; }
.gold-line.centered { margin-left:auto; margin-right:auto; }

/* ── Buttons — Segoe UI Semilight 13px, green #445D44, white text ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--ff-body);
  font-size: var(--fs-btn);
  font-weight: 300;
  letter-spacing: 0.06em;
  border-radius: 60px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  color: #ffffff;
}

/* Primary — green #445D44, white text */
.btn-gold {
  background: var(--btn-green);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(68,93,68,0.35);
}
.btn-gold:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(68,93,68,0.48); }

/* Outline on light bg */
.btn-outline-dark {
  background:transparent;
  color:var(--text-dark);
  border:1.5px solid rgba(30,22,10,0.25);
}
.btn-outline-dark:hover { background:var(--cream-alt); border-color:var(--text-dark); transform:translateY(-2px); }

/* Outline on dark bg */
.btn-outline {
  background:transparent;
  color:var(--amber-light);
  border:1.5px solid rgba(212,184,152,0.4);
}
.btn-outline:hover { background:rgba(212,184,152,0.1); border-color:var(--amber-light); transform:translateY(-2px); }

/* Pulsing CTA */
@keyframes btnPulse {
  0%,100% { box-shadow:0 4px 18px rgba(0,0,0,0.15), 0 0 0 0 rgba(215,137,81,0.5); }
  50%      { box-shadow:0 8px 28px rgba(0,0,0,0.2), 0 0 0 12px rgba(215,137,81,0); }
}
.btn-pulse { animation:btnPulse 1.8s ease-in-out infinite; }

/* ── Reveal animations ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.7s ease,transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal.delay-1 { transition-delay:0.1s; }
.reveal.delay-2 { transition-delay:0.2s; }
.reveal.delay-3 { transition-delay:0.3s; }
.reveal.delay-4 { transition-delay:0.4s; }

.reveal-left  { opacity:0; transform:translateX(40px);  transition:opacity 0.8s ease,transform 0.8s ease; }
.reveal-right { opacity:0; transform:translateX(-40px); transition:opacity 0.8s ease,transform 0.8s ease; }
.reveal-left.visible,.reveal-right.visible { opacity:1; transform:translateX(0); }

.reveal-scale { opacity:0; transform:scale(0.9); transition:opacity 0.75s ease,transform 0.75s cubic-bezier(0.34,1.56,0.64,1); }
.reveal-scale.visible { opacity:1; transform:scale(1); }

.reveal-left.delay-1,.reveal-right.delay-1,.reveal-scale.delay-1 { transition-delay:0.1s; }
.reveal-left.delay-2,.reveal-right.delay-2,.reveal-scale.delay-2 { transition-delay:0.2s; }
.reveal-left.delay-3,.reveal-right.delay-3,.reveal-scale.delay-3 { transition-delay:0.3s; }

/* ── Decorative animations ── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes orbFloat {
  0%,100% { transform:translateY(0) scale(1); opacity:0.3; }
  33%      { transform:translateY(-25px) scale(1.04); opacity:0.5; }
  66%      { transform:translateY(15px) scale(0.96); opacity:0.38; }
}
@keyframes goldGlow {
  0%,100% { box-shadow:none; opacity:1; }
  50%      { box-shadow:0 0 10px rgba(215,137,81,0.4); opacity:0.85; }
}
.gold-line { animation:goldGlow 4s ease-in-out infinite; }

.deco-orb {
  position:absolute; border-radius:50%; pointer-events:none; z-index:0;
  filter:blur(60px); animation:orbFloat linear infinite;
}

/* ══════════════════════
   NAVBAR — LIGHT (matches reference)
══════════════════════ */
.navbar {
  position:fixed; top:0; inset-inline:0; z-index:1000;
  padding:0.8rem 4rem;
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:1rem;
  background:rgba(253,250,250,0.82);
  backdrop-filter:blur(20px);
  border-bottom:1px solid transparent;
  transition:all 0.4s ease;
}
.navbar.scrolled {
  border-bottom-color:rgba(215,137,81,0.18);
  box-shadow:0 2px 24px rgba(0,0,0,0.06);
}

/* Logo — first grid column (rightmost in RTL) */
.nav-logo {
  display:flex; align-items:center; gap:0.7rem;
  justify-self:start;  /* in RTL: start = right side */
}
.nav-logo-img {
  height:58px; width:auto; max-width:58px;
  object-fit:contain;
  border-radius:4px;
  filter:drop-shadow(0 1px 4px rgba(30,22,10,0.12));
  transition:filter 0.3s;
}
.nav-logo-name {
  font-family: var(--ff-heading);
  font-size: 22px; font-weight: 700;
  color: var(--text-dark); line-height: 1;
  white-space: nowrap;
}

/* Links — second grid column (center) */
.nav-links {
  display:flex; list-style:none; gap:2rem; align-items:center;
  justify-self:center;
  justify-content:center;
}
.nav-links a {
  font-family: var(--ff-ui);
  font-size: var(--fs-nav);   /* 11px — Heebo */
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-2px; right:0;
  width:0; height:1.5px; background:var(--green); transition:width 0.3s;
}
html.lang-en .nav-links a::after { right:auto; left:0; }
.nav-links a:hover,.nav-links a.active { color:var(--green); }
.nav-links a:hover::after,.nav-links a.active::after { width:100%; }

/* Actions — third grid column (leftmost in RTL) */
.nav-actions {
  display:flex; align-items:center; gap:1rem;
  justify-self:end;  /* in RTL: end = left side */
}

.nav-cta {
  padding: 0.55rem 1.3rem !important;
  font-size: var(--fs-btn) !important;
  line-height: 1 !important;
}

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(68,93,68,0.35);
  color: var(--green);
  font-family: var(--ff-ui);
  font-size: var(--fs-small); font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.38rem 0.75rem; border-radius: 50px;
  cursor: pointer; transition: all 0.3s;
}
.lang-toggle:hover { background: var(--green-pale); border-color: var(--green); }

/* ── Small text utility ── */
.text-small, .t-author span, .footer-tagline, .footer-nav a, .footer-copy,
.contact-item strong, .sp-link, .section-label {
  font-family: var(--ff-ui);
  font-size: var(--fs-small);
}

.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; z-index:1001; }
.hamburger span { display:block; width:24px; height:2px; background:var(--text-mid); border-radius:2px; transition:all 0.3s; }

/* ══════════════════════
   FOOTER
══════════════════════ */
.footer { background:#F0E8DC; padding:4rem 2rem 2rem; border-top:1px solid rgba(215,137,81,0.25); }
.footer { display:flex; flex-direction:column; align-items:center; text-align:center; }
.footer-tagline { font-family:var(--ff-ui); font-size:1rem; color:var(--brand-orange); letter-spacing:0.18em; text-transform:uppercase; margin-bottom:2rem; }
.footer-nav { display:flex; justify-content:center; gap:2rem; list-style:none; margin-bottom:2rem; flex-wrap:wrap; }
.footer-nav a { font-family:var(--ff-ui); font-size:1.05rem; color:var(--text-muted); transition:color 0.3s; }
.footer-nav a:hover { color:var(--green); }
.footer-socials { display:flex; justify-content:center; gap:1rem; margin-bottom:2.5rem; }
.footer-socials a {
  width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(215,137,81,0.4);
  display:flex; align-items:center; justify-content:center;
  color:var(--brand-orange); font-size:1rem; transition:all 0.3s;
}
.footer-socials a:hover { background:rgba(215,137,81,0.12); border-color:var(--amber); transform:translateY(-3px); }
.footer-copy { font-family:var(--ff-ui); font-size:0.9rem; color:var(--text-muted); border-top:1px solid rgba(0,0,0,0.08); padding-top:1.5rem; margin-top:0.5rem; }

/* ══════════════════════
   RESPONSIVE NAV
══════════════════════ */
@media (max-width:900px) {
  .navbar { padding:0.8rem 1.5rem; grid-template-columns:auto auto; }

  /* Full-screen solid menu overlay */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: var(--espresso);                  /* solid dark background */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.8rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 999;
    margin: 0; padding: 2rem;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Large, clear white links */
  .nav-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.06em;
    text-align: center;
    display: block;
    width: 100%;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(215,137,81,0.15);
    transition: color 0.3s;
  }
  .nav-links a::after { display: none; }          /* remove underline pseudo */
  .nav-links a:hover { color: var(--amber-light); }

  /* Hamburger converts to X when open */
  .hamburger { display: flex; z-index: 1001; }
  .nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .hamburger span:nth-child(2) { opacity: 0; }
  .nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-open .hamburger span { background: var(--white); }

  /* When nav is open, make logo text and hamburger visible on dark bg */
  .nav-open .navbar {
    background: var(--espresso);
    border-bottom-color: rgba(215,137,81,0.2);
  }
  .nav-open .nav-logo-name { color: var(--white); }

  .nav-cta { display: none !important; }
  .nav-logo-name { display: none; }
}
