/* ==========================================================
   אמיר קוטלר – ניהול פרויקטי התחדשות עירונית
   ========================================================== */

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* צבעי המותג – נלקחו מהלוגו */
  --blue: #0a67a3;
  --blue-dark: #0b4772;
  --navy: #13283f;
  --steel: #58595b;
  --gold: #c9a45c;
  --gold-soft: #f3ead7;

  --ink: #1f2833;
  --ink-soft: #4a5563;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #e2e7ee;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(19, 40, 63, .06), 0 8px 28px rgba(19, 40, 63, .08);
  --shadow-hover: 0 2px 4px rgba(19, 40, 63, .08), 0 16px 40px rgba(19, 40, 63, .14);
  --wrap: 1160px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { color: var(--navy); line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 72px; width: auto; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
  white-space: nowrap;
  position: relative;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--blue); background: var(--bg-alt); }
.main-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; margin: auto; display: block; }

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .brand img { height: 58px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(19, 40, 63, .1);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.125rem; }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a[aria-current="page"]::after { inset-inline: auto 8px; width: 4px; height: 22px; bottom: auto; top: 50%; transform: translateY(-50%); inset-inline-start: 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(1200px 400px at 100% 0%, rgba(10, 103, 163, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), #fff);
  padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 56px);
}
.page-hero h1 { margin: 0; }
.page-hero h1::after, .section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold);
  margin-top: 18px;
}

.section { padding: clamp(40px, 7vw, 88px) 0; }
.section.alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background-color .2s;
  min-height: 52px;
}
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(201, 164, 92, .35); }
.btn-gold:hover { background: #d6b46f; color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 164, 92, .45); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Home ---------- */
.home-hero {
  background:
    radial-gradient(900px 500px at 0% 100%, rgba(201, 164, 92, .14), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(10, 103, 163, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), #fff 80%);
  padding: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
}
.home-hero .grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.home-hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.home-hero .lead {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--blue-dark);
  border-inline-start: 4px solid var(--gold);
  padding-inline-start: 20px;
  margin: 0 0 1.4em;
}
.home-hero .body { color: var(--ink-soft); font-size: 1.1875rem; }
.home-hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 1;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  opacity: .9;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px solid rgba(88, 89, 91, .25);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  box-shadow: var(--shadow-hover);
  position: relative;
  z-index: 1;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-link .arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  transition: background-color .2s, color .2s;
}
.quick-link .arrow svg { width: 20px; height: 20px; }
.quick-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--gold); color: var(--blue); }
.quick-link:hover .arrow { background: var(--blue); color: #fff; }

@media (max-width: 960px) {
  .home-hero .grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(78%, 360px); margin-block: 20px 8px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .quick-links { grid-template-columns: 1fr; }
}

/* ---------- Two-column text + figure ---------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.figure { margin: 0; }
.figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
}
.figure figcaption {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 12px;
}

.prose { font-size: 1.1875rem; }
.prose p { color: var(--ink-soft); }

/* ---------- Value / vision cards ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
}
.card .num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.75; }

/* ---------- Awards gallery ---------- */
.awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .awards { grid-template-columns: repeat(2, 1fr); } }
.awards a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.awards a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.awards img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; width: 100%; }

/* ---------- Projects ---------- */
.projects { display: grid; gap: clamp(28px, 5vw, 48px); }
.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}
.project-body { padding: clamp(28px, 4vw, 48px); align-self: center; }
.project-body .tag {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: .9375rem;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.project-body h2 { margin-bottom: .4em; }
.project-body p { color: var(--ink-soft); margin: 0; font-size: 1.1875rem; }
.project-media { display: grid; gap: 4px; background: var(--line); }
.project-media.two { grid-template-rows: 1fr 1fr; }
.project-media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
}

/* ---------- Articles ---------- */
.featured-video {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: var(--navy);
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.featured-video video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }

.articles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .articles { grid-template-columns: 1fr; } }
.article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
}
.article .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.article .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article .thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  color: var(--blue);
}
.article .thumb .play svg { width: 28px; height: 28px; margin-inline-start: -4px; }
.article .thumb.doc {
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(10, 103, 163, .18), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: #fff;
}
.article .thumb.doc svg { width: 64px; height: 64px; opacity: .9; }
.article .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.article .source {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .01em;
}
.article h2 { font-size: 1.25rem; line-height: 1.5; margin: 0; flex: 1; }
.article .more {
  align-self: flex-start;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  transition: background-color .2s, color .2s;
}
.article .more:hover { background: var(--blue); color: #fff; }
.article .more svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact-intro { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 500; color: var(--blue-dark); margin-bottom: 36px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 820px; }
@media (max-width: 680px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--gold); color: var(--ink); }
.contact-card .icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card .label { display: block; font-size: 1rem; color: var(--ink-soft); }
.contact-card .value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--navy); direction: ltr; text-align: right; word-break: break-all; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.375rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-inline-start: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal .updated { font-size: 1rem; color: var(--ink-soft); background: var(--bg-alt); display: inline-block; padding: 6px 14px; border-radius: 999px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #d5dde7;
  padding: 48px 0 32px;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 32px; }
.footer-contact .label { display: block; font-size: .9375rem; color: #aab6c4; }
.footer-contact a { font-weight: 700; font-size: 1.125rem; direction: ltr; display: inline-block; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-legal a { font-size: 1rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 900px);
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(10, 20, 32, .82); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: 12px; }
.lightbox button {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .4em; }
@media (max-width: 860px) { .split .figure[style] { position: static !important; } }
@media (max-width: 1180px) and (min-width: 521px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) and (min-width: 961px) { .main-nav a { padding: 10px 10px; font-size: 1rem; } }
main { min-height: calc(100vh - var(--header-h) - 160px); }

/* כרטיסי כתבות – גרסה קומפקטית */
.article { flex-direction: row; align-items: stretch; }
.article .thumb, .article .thumb.doc { flex: 0 0 104px; aspect-ratio: auto; min-height: 0; }
.article .thumb.doc svg { width: 40px; height: 40px; }
.article .body { padding: 20px 22px; gap: 12px; }
.article h2 { font-size: 1.0625rem; line-height: 1.55; }
.article .source { font-size: .875rem; }
.article .more { padding: 7px 16px; font-size: .9375rem; border-width: 1.5px; }
.articles { gap: 18px; }
@media (max-width: 520px) { .article .thumb, .article .thumb.doc { flex-basis: 72px; } .article .thumb.doc svg { width: 30px; height: 30px; } }

/* שני סרטונים: אופקי + אנכי */
.videos { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; margin: 0 0 clamp(32px, 5vw, 56px); }
.videos .featured-video { margin: 0; }
.featured-video.vertical { width: clamp(220px, 24vw, 300px); }
.featured-video.vertical video { aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 760px) {
  .videos { grid-template-columns: 1fr; }
  .featured-video.vertical { width: min(100%, 340px); justify-self: center; }
}

/* מסגרת פוקוס בולטת יותר: כחול כהה עם הילה לבנה, וזהב על רקע כהה */
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.site-footer :focus-visible, .skip-link:focus-visible, .article .thumb.doc :focus-visible { outline-color: var(--gold); box-shadow: none; }

/* החזון שלי: 2 כרטיסים בכל שורה */
.cards-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .cards-2x2 { grid-template-columns: 1fr; } }

/* תיקון: בטלפון התמונות של "אלי כהן" כיסו את הטקסט (iOS Safari).
   במסך צר – כל תמונה בגובה טבעי לפי יחס 16:9, בלי גובה 100%. */
@media (max-width: 860px) {
  .project-media, .project-media.two { grid-template-rows: none; }
  .project-media img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}

/* פרויקט עם 4 הדמיות: רשת 2x2 במחשב, אחת מתחת לשנייה בטלפון */
.project-media.four { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.project-media.four img { min-height: 160px; }
.project-body .credit { font-size: 1rem; }
@media (max-width: 860px) {
  .project-media.four { grid-template-columns: 1fr; grid-template-rows: none; }
}


/* סרטון יחיד (אנכי) במרכז */
.videos.single { grid-template-columns: 1fr; justify-items: center; }
