/* בדרך עם איתן — one RTL page. Desktop first; the phone layout starts at 760px and below.
   Single light look. */

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/assistant-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: 'Assistant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/assistant-latin-basic.woff2') format('woff2');
  unicode-range: U+0000-007F, U+00A0, U+00A9, U+2013-2014, U+2018-201E, U+2022, U+2026;
}
@font-face {
  font-family: 'Karantina';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/karantina-light-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --ink: #414141;
  --muted: #5f6362;
  --teal: #2d807c;
  --teal-deep: #1d5452;
  --sand: #f4f3f2;
  --paper: #ffffff;
  --line: #8a8f8e;
  --hair: #e3e5e4;
  --slot: #e2e4e2;
  --bezel: #121514;
  --scrim: rgba(14, 26, 25, 0.84);
  --on-dark: #ffffff;
  --yt-red: #ff0000;
  --font-body: 'Assistant', 'Arial Hebrew', Arial, sans-serif;
  --font-logo: 'Karantina', 'Assistant', 'Arial Hebrew', sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { flex: none; }
.gutter { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; top: -100px; right: 16px; z-index: 100; background: var(--teal); color: var(--on-dark); padding: 10px 16px; }
.skip:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.hdr-in { max-width: 1280px; margin: 0 auto; padding-block: 8px 0; display: flex; flex-direction: column; align-items: center; }
.logo { font-family: var(--font-logo); font-weight: 300; font-size: 48px; line-height: 1.05; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 17px; padding: 10px 15px; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--teal); }
.burger { display: none; }

/* Car */
.car { background: var(--sand); padding-block: clamp(40px, 6vw, 70px); }
.car-in { max-width: 1120px; margin: 0 auto; position: relative; display: flex; align-items: center; min-height: clamp(320px, 30vw, 380px); }
/* The photo is mirrored so the car faces into the page; the card covers its rear. The image is taller
   than its box (top -5%, height 110%) so the parallax shift (app.js, at most ±5%) never shows an edge. */
.car-photo { position: absolute; top: 0; bottom: 0; left: 0; width: 72%; margin: 0; overflow: hidden; background: var(--slot); }
.car-photo img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; object-position: 0% 60%; will-change: transform; }
.car-card { position: relative; z-index: 1; width: 46%; background: var(--paper); padding: clamp(28px, 4vw, 56px) clamp(24px, 4.5vw, 60px); }
.car-card h1 { margin: 0 0 clamp(14px, 2vw, 24px); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; text-wrap: balance; }
.car-card p { margin: 0; font-size: 17px; line-height: 1.8; }
.phone-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; min-height: 46px; padding: 10px 22px; background: var(--teal); color: var(--on-dark); font-weight: 700; font-size: 18px; letter-spacing: 1.5px; text-decoration: none; }
.phone-btn:hover { background: var(--teal-deep); color: var(--on-dark); }

/* Videos */
.vids { padding-block: 44px 48px; }
.vids-in { max-width: 1072px; margin: 0 auto; }
.vids-label { font-size: 14px; font-weight: 400; margin: 0 0 14px; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; list-style: none; margin: 0; padding: 0; }
.vcard { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; display: flex; flex-direction: column; width: 100%; text-align: center; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--bezel); }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.vcard:hover .vthumb img { transform: scale(1.03); }
.vplay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--on-dark); font-weight: 600; background: rgba(0, 0, 0, 0.28); opacity: 0; transition: opacity 0.2s; }
.vcard:hover .vplay, .vcard:focus-visible .vplay { opacity: 1; }
.vfeat-txt { display: none; }
.vtitle { font-weight: 700; font-size: 24px; line-height: 1.2; margin: 24px 18px 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vdesc { font-size: 14px; line-height: 1.35; margin: 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more { display: flex; justify-content: center; padding-top: 40px; }
.more a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding: 10px 2px; font-size: 15px; }
.more a:hover { color: var(--teal); border-color: var(--teal); }

/* FAQ */
.faq { background: var(--teal); padding-block: 60px; }
.faq-box { max-width: 1134px; margin: 0 auto; background: var(--paper); padding: 48px 56px 32px; }
.faq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.faq-head h2 { margin: 0; font-size: 24px; font-weight: 700; }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); width: min(340px, 100%); padding-block: 4px; }
.search input { border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); width: 100%; min-width: 0; padding: 8px 0; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search:focus-within { border-bottom-color: var(--teal); }
.tabs { display: flex; gap: 4px 44px; margin: 32px 0 28px; }
.tab { appearance: none; border: 0; background: transparent; font: inherit; color: var(--ink); cursor: pointer; font-weight: 700; font-size: 20px; padding: 10px 4px 12px; border-bottom: 4px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--teal); }
.searching .tabs { opacity: 0.4; }
.qa { display: grid; grid-template-columns: 116px minmax(0, 1fr); margin-bottom: 24px; }
.qa-num { background: var(--teal); color: var(--on-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; font-variant-numeric: tabular-nums; }
.qa details { border: 1px solid var(--line); border-right: 0; min-width: 0; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 40px; font-size: 22px; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { transition: transform 0.2s; }
.qa details[open]:not(.is-closing) summary .ico { transform: rotate(180deg); }
.ans-clip.is-animating { overflow: hidden; }
.ans { padding: 0 40px 30px; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.ans p { margin: 0 0 14px; }
.ans ul, .ans ol { margin: 0 0 14px; padding-inline-start: 28px; }
.ans .tight { margin-bottom: 0; }
.ans a { color: var(--teal); }
.empty { padding: 16px 0 28px; margin: 0; color: var(--muted); font-size: 17px; }

/* Footer */
.foot { padding-block: 36px 40px; text-align: center; font-size: 13px; line-height: 1.6; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--ink); }
.foot .credit { margin-top: 10px; font-size: 12px; color: var(--muted); }
.foot .credit a { color: var(--muted); }
.social { display: flex; justify-content: center; gap: 4px; }
.social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--bezel); }

/* 404 page */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding-block: 48px; }
.notfound h1 { margin: 12px 0 0; font-size: 32px; font-weight: 700; }
.notfound p { margin: 0; font-size: 18px; color: var(--muted); }

/* Video dialog */
.vdialog { width: min(900px, calc(100% - 48px)); max-width: none; max-height: calc(100% - 48px); padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; }
.vdialog::backdrop { background: var(--scrim); }
.vdialog-card { position: relative; }
.player { aspect-ratio: 16 / 9; max-width: 100%; background: var(--bezel); }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }
.vdialog-body { padding: 20px 24px 24px; }
.vdialog-body h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; text-wrap: balance; }
.vdialog-desc { white-space: pre-line; font-size: 15px; line-height: 1.6; margin: 0 0 18px; max-height: 180px; overflow: auto; }
.yt-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--teal); color: var(--on-dark); padding: 10px 18px; min-height: 44px; font-weight: 700; text-decoration: none; }
.yt-btn:hover { background: var(--teal-deep); color: var(--on-dark); }
.x-btn { position: absolute; top: 10px; left: 10px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.62); color: var(--on-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Phone menu dialog */
.mdialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: var(--paper); color: var(--ink); }
.mdialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.mdialog a { font-size: 24px; color: var(--ink); text-decoration: none; padding: 12px 20px; }
.mdialog a:hover { color: var(--teal); }
.menu-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Phone quick-contact */
.fab { display: none; }
.fab-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--teal); color: var(--on-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.fab-list { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fab-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.fab-list a .ico { color: var(--teal); }

/* Tablets: two video columns and a tighter FAQ. */
@media (min-width: 761px) and (max-width: 1024px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtitle { font-size: 20px; margin-inline: 14px; }
  .vdesc { margin-inline: 14px; }
  .faq-box { padding: 36px 32px 24px; }
  .tabs { flex-wrap: wrap; gap: 4px 28px; }
  .tab { font-size: 18px; }
  .qa { grid-template-columns: 72px minmax(0, 1fr); }
  .qa-num { font-size: 20px; }
  .qa summary { padding: 22px 24px; font-size: 19px; }
  .ans { padding: 0 24px 24px; font-size: 16px; }
}

/* Short landscape screens (phones on their side): the header scrolls away instead of sticking. */
@media (max-height: 500px) and (orientation: landscape) {
  html { scroll-padding-top: 0; }
  .hdr { position: static; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .hdr-in { display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; padding-block: 8px; }
  .logo { font-size: 38px; text-align: center; }
  .nav { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 4px; background: var(--ink); color: var(--on-dark); cursor: pointer; }

  .car { padding: 0; }
  .car-in { display: block; min-height: 0; }
  .car-photo { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .car-photo img { object-position: 14% 60%; }
  .car-card { width: 100%; padding: 26px 20px 30px; }
  .car-card h1 { font-size: 30px; margin-bottom: 14px; }
  .phone-btn { display: flex; width: max-content; margin: 24px auto 0; }

  .vids { padding: 0 0 28px; }
  .vids-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vgrid { display: block; padding: 0 16px; }
  .vgrid li:first-child { margin: 0 -16px; }
  .vgrid li:first-child .vthumb img { opacity: 0.55; }
  .vgrid li:first-child .vfeat-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--on-dark); padding: 16px; }
  .vfeat-txt strong { font-size: 20px; text-decoration: underline; text-underline-offset: 4px; }
  .vfeat-txt span { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
  .vgrid li:first-child .vcard { position: relative; }
  .vgrid li:first-child .vtitle, .vgrid .vdesc, .vgrid .vplay { display: none; }
  .vgrid li + li .vcard { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; text-align: right; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .vgrid li + li .vtitle { margin: 0; font-size: 15px; line-height: 1.3; -webkit-line-clamp: 3; }
  .more { display: none; }

  .faq { padding-block: 24px; padding-left: 12px; padding-right: 12px; }
  .faq-box { padding: 24px 14px 10px; }
  .faq-head h2 { font-size: 21px; }
  .search { width: 100%; }
  .tabs { flex-wrap: wrap; gap: 4px 22px; margin: 20px 0 18px; }
  .tab { font-size: 16px; }
  .qa { grid-template-columns: 44px minmax(0, 1fr); margin-bottom: 14px; }
  .qa-num { font-size: 15px; }
  .qa summary { padding: 16px 14px; font-size: 17px; }
  .ans { padding: 0 14px 18px; font-size: 15px; }
  .ans ul, .ans ol { padding-inline-start: 20px; }

  .vdialog { width: calc(100% - 24px); max-height: calc(100% - 24px); }
  .vdialog-body { padding: 16px 16px 20px; }
  .vdialog-body h2 { font-size: 17px; }

  .fab { display: flex; position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: flex-start; gap: 10px; }
}
