/* ZIV GROUP – site styles (the 2004 look, rebuilt: red logo tile, grey band, green hero, blue/red rules) */
:root {
  --red: #d60808;
  --red-dark: #9e0b0b;
  --red-deep: #7d0606;
  --grey-band: #b4b8bb;
  --grey-band-dark: #8f9498;
  --grey-text: #5b6166;
  --grey-line: #e4e6e8;
  --blue: #2a6fb3;
  --blue-light: #6f94bd;
  --text: #2f3337;
  --muted: #6b7378;
  --bg: #f4f5f6;
  --card: #ffffff;
  --green-1: #9bb84c;
  --green-2: #c3dd70;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --wrap: 1240px;
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }

/* the footer is always at the bottom of the screen, even on short pages */
body:not(.admin) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:not(.admin) > * { flex-shrink: 0; }
body:not(.admin) > .wrap { width: 100%; }
body:not(.admin) > .site-footer { margin-top: auto; }
a { color: var(--blue); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #f5b700; outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1700px) { :root { --wrap: 1440px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; background: #000; color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { inset-inline-start: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20; overflow-x: clip;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #707579 0%, #64696d 55%, #5a5f63 100%);
  border-bottom: 1px solid #4b4f53;
}
.header-inner { display: flex; align-items: stretch; min-height: 96px; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

.brand {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 0;
  background: linear-gradient(180deg, #e8160f 0%, #c40606 100%);
  color: #fff; text-decoration: none;
  border-bottom: 6px solid #7c8178;
  flex: 0 0 auto;
}
[dir="rtl"] .brand { padding: 12px 0 12px 22px; }
.brand::before { /* the red tile reaches the edge of the screen */
  content: ""; position: absolute; top: 0; inset-inline-end: 100%; width: 50vw; height: calc(100% + 6px);
  background: linear-gradient(180deg, #e8160f 0%, #c40606 100%);
  border-bottom: 6px solid #7c8178;
}
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 57px; flex: 0 0 auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { direction: ltr; unicode-bidi: isolate; font-weight: 800; font-size: 21px; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: 14px; opacity: .92; white-space: nowrap; }

.band {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.band-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 0 24px; }
[dir="rtl"] .band-top { padding: 10px 24px 0 0; }
.band-title { margin: 0; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .01em; }
.band-actions { display: flex; align-items: center; gap: 10px; }
.band-cta {
  font-size: 15px; font-weight: 800; color: #fff; text-decoration: none;
  background: var(--red); padding: 5px 16px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.band-cta:hover { background: var(--red-dark); color: #fff; }
.main-nav li.nav-contact { display: none; }
.lang-switch {
  font-size: 14px; font-weight: 700; color: #fff; text-decoration: none;
  background: rgba(0,0,0,.22); padding: 3px 12px; border-radius: 999px;
}
.lang-switch:hover { background: var(--red); color: #fff; }

.main-nav ul { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 14px 12px;
  color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  border-bottom: 4px solid transparent;
}
.main-nav li + li > a::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 16px;
  border-inline-start: 1px solid rgba(255,255,255,.7);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--red); color: #fff; }
.main-nav a.nav-contact { color: #fff; }

.menu-toggle {
  display: none; margin-inline-start: auto; align-self: center;
  background: transparent; border: 0; padding: 10px; cursor: pointer; color: #fff;
}
.menu-toggle svg { width: 30px; height: 30px; display: block; }

/* ---------- Hero (home) / page band (inner pages) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, #7f9c37 0%, var(--green-1) 18%, var(--green-2) 52%, #a9c45c 75%, #3d5520 100%);
  border-bottom: 4px solid var(--blue);
}
.hero::after { /* the photo of the reader, from the original header */
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(62%, 820px);
  background: url("/img/hero-photo.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
[dir="rtl"] .hero { background: linear-gradient(270deg, #7f9c37 0%, var(--green-1) 18%, var(--green-2) 52%, #a9c45c 75%, #3d5520 100%); }
[dir="rtl"] .hero::after { transform: scaleX(-1); }

.hero .wrap { position: relative; z-index: 1; display: flex; align-items: center; min-height: 250px; padding-top: 28px; padding-bottom: 28px; }
.glance {
  max-width: 560px;
  padding: 18px 26px 20px;
  background: rgba(22, 36, 8, .62);
  border-inline-start: 6px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
  backdrop-filter: blur(2px);
}
[dir="rtl"] .glance, [dir="rtl"] .page-title { border-radius: var(--radius) 0 0 var(--radius); }
.glance h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.glance p { margin: 0; font-size: 19px; line-height: 1.55; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

.hero.hero-page .wrap { min-height: 120px; }
.hero.hero-page::after { width: min(46%, 560px); }
.page-title {
  margin: 0; color: #fff; font-size: 34px; font-weight: 800; line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  display: inline-block; padding: 6px 18px; background: rgba(22, 36, 8, .62);
  border-inline-start: 6px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Layout ---------- */
.layout {
  display: grid; gap: 28px;
  grid-template-columns: 300px minmax(0, 1fr);
  padding-top: 32px; padding-bottom: 48px;
}
.layout > .content { grid-column: 2; grid-row: 1; }
.layout > .sidebar { grid-column: 1; grid-row: 1; }

.layout.layout-single { grid-template-columns: minmax(0, 1fr); }
.layout.layout-single > .content { grid-column: 1; }

.content {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px 40px 38px;
}
.content > :first-child { margin-top: 0; }

/* Text coming from the editor */
.rich h2, .rich h3 { color: var(--red-dark); line-height: 1.3; margin: 1.5em 0 .5em; }
.rich h2 { font-size: 26px; }
.rich h3 { font-size: 22px; }
.rich p { margin: 0 0 1em; }
.rich ul, .rich ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
.rich li { margin: .3em 0; }
.rich ul li::marker { color: var(--red); }
.rich hr { border: 0; height: 3px; background: linear-gradient(90deg, var(--red-dark), var(--red) 70%, rgba(214,8,8,.15)); margin: 1.8em 0; border-radius: 2px; }
[dir="rtl"] .rich hr { background: linear-gradient(270deg, var(--red-dark), var(--red) 70%, rgba(214,8,8,.15)); }
.rich img { border-radius: 6px; }
.rich img.photo { float: inline-end; width: 96px; margin: .3em 0 .8em 1.2em; box-shadow: var(--shadow); }
[dir="rtl"] .rich img.photo { margin: .3em 1.2em .8em 0; }
.rich p::after { content: ""; display: table; clear: both; }
.rich a { overflow-wrap: anywhere; }
.rich .empty { color: var(--muted); }

/* ---------- Sidebar cards (FAQ / testimonials teasers) ---------- */
.side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.side-card > h2 { margin: 0; }
.side-card > h2 a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; font-size: 16px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #3f6d9e 0%, #2f5b89 100%);
  border-inline-start: 6px solid #e6b400;
}
.side-card > h2 a::after { content: "›"; font-size: 22px; line-height: 1; }
[dir="rtl"] .side-card > h2 a::after { content: "‹"; }
.side-card > h2 a:hover { background: #24496f; }
.side-list { list-style: none; margin: 0; padding: 6px 18px 12px; }
.side-list li { padding: 12px 0; border-bottom: 1px solid var(--grey-line); font-size: 15px; line-height: 1.55; }
.side-list li:last-child { border-bottom: 0; }
.side-list .q { color: var(--red-dark); font-weight: 700; display: block; margin-bottom: 3px; }
.side-list .a { color: var(--muted); }
.side-list .who { display: block; margin-top: 4px; font-weight: 700; color: var(--grey-text); font-size: 14px; }
.side-list .more { font-size: 14px; font-weight: 700; color: var(--red-dark); text-decoration: none; }

/* ---------- FAQ & testimonials pages ---------- */
.qa-list { list-style: none; margin: 0; padding: 0; }
.qa-list > li { padding: 22px 0; border-bottom: 1px solid var(--grey-line); }
.qa-list > li:first-child { padding-top: 0; }
.qa-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.qa-list h2 { margin: 0 0 6px; font-size: 20px; color: var(--red-dark); line-height: 1.4; }
.qa-list p { margin: 0; white-space: pre-line; color: var(--grey-text); }
.testimonial blockquote { margin: 0; padding-inline-start: 22px; border-inline-start: 4px solid var(--red); white-space: pre-line; color: var(--grey-text); font-size: 18px; }
.testimonial .who { margin: 10px 0 0; font-weight: 800; color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: start; }
.form { display: grid; gap: 14px; background: #f7f8f9; border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 22px; }
.form h2 { margin: 0 0 2px; font-size: 21px; color: var(--red-dark); }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 10px 12px; border: 1px solid #c9ced2; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(42,111,179,.25); }
.field .ltr { direction: ltr; text-align: start; }
[dir="rtl"] .field .ltr { text-align: right; }
.field-hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 17px;
  padding: 11px 26px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--red); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-secondary { background: #e9ecee; color: var(--text); }
.btn-secondary:hover { background: #dde1e4; color: var(--text); }
.alert { padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.alert-ok { background: #e7f6e9; color: #1d6b2b; border: 1px solid #bfe3c4; }
.alert-err { background: #fdecec; color: #9e0b0b; border: 1px solid #f4c2c2; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #3b3f43; color: #c9cdd0; font-size: 15px; border-top: 6px solid var(--red); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: grid; gap: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a, .site-footer a { color: #fff; text-decoration: none; }
.footer-nav a:hover, .site-footer a:hover { color: #ffb3b3; text-decoration: underline; }
.credit { display: inline-flex; align-items: center; gap: 8px; }
.credit-logo { display: inline-flex; padding: 2px 0; opacity: .9; }
.credit-logo:hover { opacity: 1; }
.credit-logo img { display: block; width: 125px; height: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #555a5f; padding-top: 14px; font-size: 14px; color: #a9aeb2; }

/* ---------- Admin "edit this page" chip ---------- */
.admin-chip {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 50;
  background: #1d2124; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.admin-chip:hover { background: var(--red); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > .content, .layout > .sidebar { grid-column: 1; grid-row: auto; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
  .side-card { margin-bottom: 0; }
}

@media (max-width: 1500px) {
  .main-nav ul { padding: 0 4px; }
  .main-nav a { padding: 10px 10px 12px; font-size: 15px; }
  .brand, [dir="rtl"] .brand { gap: 12px; }
}

@media (max-width: 1260px) {
  .band-cta { display: none; }
  .main-nav li.nav-contact { display: list-item; }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-inline: 0; }
  .brand, [dir="rtl"] .brand { flex: 1 1 auto; border-bottom-width: 4px; padding: 10px 64px 10px 16px; }
  [dir="rtl"] .brand { padding: 10px 16px 10px 64px; }
  .brand::before { display: none; }
  .brand-mark { width: 36px; height: 47px; }
  .brand-name { font-size: 19px; }
  .menu-toggle { display: block; position: absolute; top: 14px; inset-inline-end: 10px; }
  .band { flex: 1 1 100%; }
  .band-top, [dir="rtl"] .band-top { padding: 8px 16px; }
  .band-title { font-size: 16px; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0 0 8px; }
  .main-nav a { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.25); border-inline-start: 4px solid transparent; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.25); border-inline-start-color: var(--red); background: rgba(0,0,0,.08); }
  .main-nav li + li > a::before { display: none; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero::after { width: 100%; opacity: .55; }
  .hero .wrap { min-height: 210px; }
  .glance { padding: 14px 16px; }
  .glance p { font-size: 17px; }
  .hero.hero-page .wrap { min-height: 96px; }
  .hero.hero-page::after { width: 100%; opacity: .45; }
  .page-title { font-size: 26px; }
  .content { padding: 22px 18px 26px; }
  .layout { padding-top: 20px; gap: 20px; }
  .rich img.photo { width: 80px; }
}

@media print {
  .site-header nav, .menu-toggle, .sidebar, .site-footer, .admin-chip, .hero::after { display: none !important; }
  .hero { background: none; border: 0; }
  .page-title, .glance { color: #000; text-shadow: none; background: none; }
  .content { box-shadow: none; padding: 0; }
  .layout { display: block; }
}
