/* ===== גיטר דוג'ו — עיצוב ראשוני =====
 * כל הצבעים מוגדרים כאן למעלה — קל להחליף כשיגיע לוגו/שפה עיצובית.
 */
/* ----- גופן (מאוחסן באתר עצמו, בלי פנייה לשרתי Google) ----- */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  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: 100 900;
  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 {
  --bg: #f6f1e7;          /* נייר אורז */
  --surface: #fffdf8;
  --ink: #1f1a17;         /* דיו */
  --muted: #6b625a;
  --line: #e2d8c6;
  --accent: #b3261e;      /* אדום דוג'ו */
  --accent-soft: #f6e3df;
  --wood: #8a5a35;        /* עץ */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 26, 23, 0.06), 0 6px 20px rgba(31, 26, 23, 0.06);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 20px;
}

main { flex: 1; padding-block: 32px 56px; outline: none; }

/* ----- כותרת עליונה ----- */
.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.25rem; font-weight: 900; }
.logo-text small { font-size: 0.75rem; letter-spacing: 0.15em; opacity: 0.7; direction: ltr; text-align: right; }
.main-nav a { text-decoration: none; opacity: 0.85; font-weight: 500; }
.main-nav a:hover { opacity: 1; }

/* ----- דף הבית ----- */
.hero {
  padding-block: 24px 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  display: inline-block;
  direction: ltr;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  max-width: 34em;
  margin: 0 0 10px;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 36em;
  margin: 0;
}
.hero-sub em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding-inline: 2px;
}

/* מקרא: בניין / לבנה */
.hero-legend {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-legend li { display: flex; align-items: center; gap: 10px; }
.hero-legend strong { color: var(--ink); }
.legend-building, .legend-brick {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
}
.legend-building {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
}
.legend-brick {
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  background: var(--wood);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.legend-note {
  padding-inline-start: 28px;
  border-inline-start: 1px solid var(--line);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 16px;
}

@media (max-width: 560px) {
  .legend-note { padding-inline-start: 0; border: 0; width: 100%; }
}

.buildings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.building-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.building-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(31, 26, 23, 0.1); }

.building-head { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.building-head h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.building-head:hover h2 { color: var(--accent); }

.building-num {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.building-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* שורות הלבנים בכרטיס הבניין */
.brick-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.brick-lines a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.brick-lines a:hover { background: var(--accent-soft); }
.brick-tag {
  flex: none;
  min-width: 44px;
  padding: 3px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--wood);
  border-radius: 4px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.brick-lines a:hover .brick-tag { background: var(--accent); }
.brick-name { font-weight: 500; line-height: 1.35; }

.soon { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ----- פירורי לחם ----- */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.5; }

/* ----- כותרת עמוד ----- */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; margin: 2px 0 6px; }
.page-head p { color: var(--muted); margin: 0; max-width: 70ch; font-size: 1.05rem; }

/* ----- רשימת לבנים בעמוד בניין ----- */
.brick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.brick-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--wood);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.brick-row:hover { border-inline-start-color: var(--accent); background: #fff; }
.brick-id { font-weight: 900; font-size: 1.2rem; color: var(--wood); min-width: 2.6em; }
.brick-row:hover .brick-id { color: var(--accent); }
.brick-info { flex: 1; display: flex; flex-direction: column; }
.brick-info small { color: var(--muted); }
.brick-meta { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

/* ----- סרטונים ----- */
.videos { display: grid; gap: 28px; }
.video { margin: 0; }
.video figcaption { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----- הקודם / הבא ----- */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}
.pager-link {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.pager-link.next { text-align: left; }
.pager-link small { color: var(--muted); }
.pager-link:hover { border-color: var(--accent); }
.pager-link:hover strong { color: var(--accent); }

/* ----- מצב ריק ----- */
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}
.empty h1 { color: var(--ink); margin-top: 0; }

/* ----- תחתית ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.footer-inner p { margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }

/* ----- עמודים משפטיים ----- */
.legal { max-width: 46em; }
.legal-updated { font-size: 0.9rem; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.85; }
.legal ul { padding-inline-start: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); }

/* ----- נגישות ----- */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .building-card:hover { transform: none; }
}

@media (max-width: 560px) {
  .brick-row { flex-wrap: wrap; }
  .brick-meta { width: 100%; padding-inline-start: calc(2.6em + 16px); }
  .pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: right; }
}
