/* ============================================================
   Levi Lab Website
   Final Academic Style (Nature / EMBO)
   FULL style.css
============================================================ */

/* =====================
   Variables
===================== */
:root {
  --bg: #fbfbfb;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #5b677a;
  --muted-2: #7b8798;
  --line: #e5e7eb;

  --accent: #00c853;

  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 8px 20px rgba(17,24,39,0.06);
  --shadow-md: 0 14px 36px rgba(17,24,39,0.09);

  --ring: 0 0 0 3px rgba(0,200,83,0.22);
  --maxw: 1180px;

  --logo-h: 150px;
  --lab-logo-h: var(--logo-h);

  --img-zoom: 2;
  --img-zoom-shadow: 0 28px 90px rgba(17,24,39,0.22);

  --font-title: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15,23,42,0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, rgba(15,23,42,0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: rgba(0,200,83,0.18);
}

/* =====================
   Layout
===================== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.main {
  padding: 44px 0 112px;
}

.section {
  margin: 72px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

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

/* =====================
   Typography
===================== */
h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--ink);
}

h1 {
  font-size: clamp(42px, 4.6vw, 74px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin: 10px 0 14px;
}

h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 850;
  margin: 26px 0 16px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
}

h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 18px 0 12px;
}

p {
  max-width: 920px;
  margin: 10px 0 16px;
  color: var(--muted);
}

.text-muted,
small {
  color: var(--muted-2);
}

/* =====================
   Links
===================== */
a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: #000;
}

.main a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,200,83,0.35);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

/* =====================
   Header
===================== */
.site-header {
  position: relative; /* <-- שונה מ-sticky ל-relative */
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--accent);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.brand-logo-telhai {
  height: var(--logo-h);
  object-fit: contain;
}

.lab-logo {
  height: var(--lab-logo-h);
  object-fit: contain;
}

/* =====================
   Navigation
===================== */
.nav {
  display: flex;
  gap: 10px;
}

.nav a {
  font-size: 16px;
  font-weight: 750;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a.active {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--accent);
}

/* =====================
   Remove badge globally
===================== */
.badge {
  display: none !important;
}

/* =====================
   Cards
===================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 22px 0;
  box-shadow: var(--shadow-md);
}

/* =====================
   Buttons
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid rgba(0,200,83,0.35);
  background: rgba(0,200,83,0.14);
}

.btn.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

/* =====================
   News
===================== */
.news-list {
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(17,24,39,0.14);
}

.news-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.news-year {
  font-weight: 800;
  color: var(--muted);
}

/* =====================
   Funding
===================== */
.funding-logos {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.funding-logos img {
  height: 70px;
  object-fit: contain;
}

/* =====================
   Global image zoom (Research only)
===================== */
.main img:not(.brand-logo-telhai):not(.lab-logo):not(.news-icon):not(.person-photo):not(.funding-logos img) {
  transition: transform 220ms ease, box-shadow 220ms ease;
  cursor: zoom-in;
}

.main img:not(.brand-logo-telhai):not(.lab-logo):hover {
  transform: scale(var(--img-zoom));
  box-shadow: var(--img-zoom-shadow);
}

/* ============================================================
   HOME ONLY
============================================================ */

body.home {
  font-size: 16px;
  line-height: 1.65;
}

body.home .main {
  padding-top: 18px;
}

body.home .section.hero-center {
  margin-top: 12px;
  margin-bottom: 36px;
}

body.home h1 {
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.05;
  margin-bottom: 10px;
}

body.home .hero-center p {
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 760px;
  margin-bottom: 16px;
}

body.home .hero-center .btn {
  font-size: 14.5px;
  padding: 9px 14px;
}

/* Hero carousel sizing */
body.home .hero-carousel {
  width: min(960px, 100%);
  margin: 18px auto 36px;
}

body.home .hero-slide img {
  height: 360px;
  object-fit: contain;
}

/* Disable zoom on home carousel */
body.home .hero-carousel img {
  transform: none !important;
  box-shadow: none !important;
  cursor: default !important;
  transition: none !important;
}

/* Latest news spacing */
body.home section[aria-label="Latest news"] {
  margin-top: 36px;
}

/* Funding spacing */
body.home section[aria-label="Funding"] {
  margin-top: 44px;
}

body.home .funding-logos img {
  height: 64px;
}

/* =====================
   Responsive
===================== */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
  }
  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  body.home h1 {
    font-size: 30px;
  }
  body.home .hero-slide img {
    height: 260px;
  }
  body.home .hero-center p {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  body.home .hero-slide img {
    height: 220px;
  }
}
/* ========================================
   Funding logos: disable hover zoom
======================================== */
.funding-logos img,
.funding-logos img:hover,
.funding-logos img:focus-visible {
  transform: none !important;
  box-shadow: none !important;
  position: static !important;
  z-index: auto !important;
  outline: none !important;
  cursor: default !important;
}
