/* Direction E, brand layer (client feedback, 11.10.2026).
   Ofir's group, 7.10: every car page should look like https://ofir-corvette-z06.netlify.app/ (Ziv's reference:
   dark, clean, big photos, a strong title, spec, gallery, lead forms along the page) and the home page in the same
   language, in the brand colours. The logo symbol (arc + five stars) never changes; only shade and font may.
   Loaded LAST on every E page (e-showroom, e-car, e-catalog), so these tokens win over the older inline ones.
   Brand orange comes from the logo file Ziv sent: a gradient #E54A03 (top) to #FF861E (bottom). */
:root {
  /* 19.10.2026 (Ofir: "האתר קצת חשוך, לעשות אותו יותר יוקרתי. שמח"): a light, warm palette. Cream page, white cards,
     warm ink, the brand orange as the accent. Every pair below is AA: ink on cream 16:1, --soft 9:1, --muted 5.3:1,
     white on --accent 4.8:1, --accent-text on cream 5.6:1 and on --surface-2 5.2:1. */
  --bg: #faf6ef; --surface: #ffffff; --surface-2: #f4eee4; --fg: #1d1915; --muted: #6e655a; --soft: #4a4239;
  --line: #e7dfd2; --line-2: #d6cab8;
  --brand-1: #e54a03; --brand-2: #ff861e; --accent: #c8460c; --accent-hover: #b23a06; --accent-text: #b23a06; --glow: 242,98,14;
  --tint: #fbf1e6;
  --brand-grad: linear-gradient(180deg, var(--brand-1), var(--brand-2));
  /* headlines: a condensed Hebrew display face, as in the reference; Heebo stays for UI and numbers */
  --head: "Karantina", "Heebo", system-ui, sans-serif;
  --display: "Heebo", system-ui, sans-serif; --body: "Assistant", system-ui, sans-serif;
  color-scheme: light;
}
html, body { background: var(--bg); }
body { color: var(--fg); }
h1, h2 { font-family: var(--head); font-weight: 700; letter-spacing: 0; line-height: .95; }
h2 { font-size: clamp(44px, 5.6vw, 80px); }
h2 em, h1 em { font-style: normal; color: var(--accent-text); }
.btn { border-radius: 999px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -14px rgba(var(--glow), .9); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 12px 30px -12px rgba(var(--glow), .7); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: var(--fg); background: var(--surface); }
.field input, .field select, .field textarea { background: var(--surface); border-color: var(--line-2); color: var(--fg); }
.field label { color: var(--soft); }

/* the logo tile: Ziv's own file, unchanged, on its orange square. 11.10 it went gold for a day; Ziv, 12.10:
   "את הלוגו תחזירי לצבעים המקוריים". assets/brand/logo-gold-960.png keeps the gold one. */
.logo { display: inline-flex; flex: none; }
.logo img { width: 52px; height: auto; aspect-ratio: 192 / 197; border-radius: 10px; box-shadow: 0 6px 24px -8px rgba(var(--glow), .55); }

/* section title with the short orange rule under it (reference "למה אופיר סוכנויות?") */
.ttl { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: 30px; }
.ttl::after { content: ""; width: 54px; height: 3px; border-radius: 3px; background: var(--accent); }
.ttl.noline::after { display: none; }
.ttl p { color: var(--muted); font-size: 17px; max-width: 60ch; }

/* quick lead strip: name, phone, send, consent. Appears after the hero and again at the bottom */
.qlead { padding: 56px 0 18px; }
.qlead h2 { font-size: clamp(36px, 3.6vw, 52px); color: var(--accent-text); text-align: center; margin-bottom: 18px; }
.qlead form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; max-width: 1040px; margin-inline: auto; }
.qlead input[type=text], .qlead input[type=tel] { min-height: 56px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); padding: 0 18px; font-size: 17px; width: 100%; }
.qlead input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.qlead input::placeholder { color: #7a6f62; }
.qlead button[type=submit] { min-height: 56px; min-width: 170px; font-size: 18px; font-weight: 800; }
.qlead .consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.qlead .consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.qlead .qstatus { grid-column: 1 / -1; font-size: 14.5px; color: var(--accent-text); min-height: 1.2em; }
@media (max-width: 720px) { .qlead form { grid-template-columns: minmax(0, 1fr); } .qlead button[type=submit] { width: 100%; } }

/* "why Ofir" checklist */
.why { padding: 90px 0 20px; }
.checks { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 780px; }
.checks li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 17.5px; box-shadow: 0 10px 24px -22px rgba(60,40,20,.5); font-weight: 400; }
.checks li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 16px no-repeat; }
.checks li b { font-weight: 700; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

/* photo cards on a rail ("more cars"), as in the reference */
.prail-wrap { position: relative; }
.prail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.prail::-webkit-scrollbar { display: none; }
.prail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .prail { grid-auto-columns: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 760px) { .prail { grid-auto-columns: 78%; } }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); min-width: 0; transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .3s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pcard .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .bd { padding: 14px 16px 18px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.pcard h3 { font-family: var(--display); font-size: 20px; font-weight: 800; margin: 0; overflow-wrap: anywhere; line-height: 1.2; }
.pcard .m { font-size: 14px; color: var(--soft); }
.pcard .p { font-size: 13.5px; color: var(--muted); }
.pcard .btn { margin-top: 10px; min-height: 44px; min-width: 150px; font-weight: 800; }
.pcard .btn::after { content: ""; position: absolute; inset: 0; }
.rail-btn { position: absolute; top: 34%; z-index: 2; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.96); color: var(--fg); display: grid; box-shadow: 0 8px 20px -10px rgba(60,40,20,.4); place-items: center; cursor: pointer; font-size: 22px; line-height: 1; }
.rail-btn:hover { border-color: var(--accent); color: var(--accent-text); }
/* inside the rail, over the photo, never half outside the column (Roy 21.10.2026: "יש כפתורים שיוצאים החוצה") */
.rail-btn.prev { inset-inline-start: 12px; } .rail-btn.next { inset-inline-end: 12px; }
@media (max-width: 760px) { .rail-btn { display: none; } }

/* CTA band between sections */
.ctaband { margin-top: 64px; border-block: 1px solid var(--line); background: radial-gradient(60% 140% at 50% 0%, rgba(var(--glow), .1), transparent 70%), var(--surface-2); }
.ctaband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 30px 0; }
.ctaband h2 { font-size: clamp(36px, 3.6vw, 54px); }
.ctaband p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.ctaband .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer: logo, and the reference's plain address line */
footer .flogo { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
footer .flogo img { width: 56px; height: auto; aspect-ratio: 192 / 197; flex: none; border-radius: 10px; }
footer .disclaimer { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }

/* bottom bar in brand colours */
.abar { background: rgba(255,253,249,.96); box-shadow: 0 -12px 30px -24px rgba(60,40,20,.45); }

/* their phone and WhatsApp in the visit card: a comfortable tap target on phones (11.10) */
.visit dd a { display: inline-block; padding: 8px 2px; margin: -8px 0; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
/* phone numbers never break mid-number (054-968-8418 split at the hyphen on 390px, 11.10) */
bdi { white-space: nowrap; }

/* no prices on the site for now (Roy, 12.10): cards and the car page say 'price on request' */
.scard .pr.ask, .prow b { font-family: var(--head); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); color: var(--accent-text); letter-spacing: 0; }

/* 12.10 client round (Ofir and Ziv): real photos, no cutouts anywhere */
.scard .plate { padding: 0; place-items: stretch; background: var(--surface-2); }
.scard .plate::after { display: none; }
.scard .plate .photo { width: 100%; height: 100%; overflow: hidden; }
.scard .plate .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.scard:hover .plate .photo img { transform: scale(1.04); }
.chat-log .mini img { object-fit: cover; border-radius: 6px; }
#onstage .hword, #onstage .hfloor, #onstage #dust, #onstage .hcar img.refl, #onstage .hcar .shadow { display: none; }
#onstage .hcar .tilt { width: auto; }
#onstage .hcar img.main { width: min(92vw, 1100px); max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; filter: none; }
.approach .ap-car { width: min(92vw, 1100px); }
.approach .ap-car img { width: 100%; height: auto; max-width: none; max-height: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.approach .ap-beams { display: none; }
.hphotos .p3 { object-position: 55% 45%; }
/* WhatsApp button with the real mark */
.abar .wa { color: #fff; background: #25d366; }
.abar .wa svg { width: 26px; height: 26px; display: block; }
/* footer lists read as links (Ziv: "בפוטר חסר הפניות לעמודים") */
footer ul a { color: var(--soft); text-decoration: underline; text-decoration-color: rgba(29,25,21,.25); text-underline-offset: 4px; }
footer ul a:hover, footer ul a:focus-visible { color: var(--accent-text); text-decoration-color: currentColor; }

/* demo-only / live-only sentences follow the inventory (13.10.2026): <html data-inv="demo|live"> is set in shared.js */
[data-inv="live"] .demo-only, [data-inv="demo"] .live-only, html:not([data-inv]) .live-only { display: none; }

/* the financing disclaimer, in Ofir's words (19.10.2026), next to every financing figure: the calculator, the car page,
   the home page, the financing page and the footers. .finbox is the boxed version beside a number */
.finnote { font-size: 14px; line-height: 1.5; color: var(--soft); display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.finnote::before { content: "i"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 999px; border: 1.5px solid currentColor; display: grid; place-items: center; font: 700 11px/1 Georgia, serif; font-style: italic; }
.finnote.finbox { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--fg); }
/* the boxed note never touches the buttons above it (financing and trade-in pages sat at 0 px, Roy 21.10.2026) */
* + .finnote.finbox, .cta-row + .finnote { margin-top: 18px; }
footer .disclaimer .fin-em { color: var(--fg); }

/* ===== 19.10.2026: light and bright (Ofir: "האתר קצת חשוך, לעשות אותו יותר יוקרתי. שמח נקרא לזה") =====
   The components of e-theme.css and the pages' own styles that were drawn for a dark room, redrawn on cream. */
html, body { background: var(--bg); }
body { color: var(--fg); }
h1, h2, h3 { color: var(--fg); }
.skip { color: #fff; }
.muted, .note { color: var(--muted); }
.phead::before { background: radial-gradient(60% 120% at 85% -20%, rgba(var(--glow), .14), transparent 62%), linear-gradient(var(--bg), var(--bg)); }
.phead p, .sec-head p, .ttl p { color: var(--soft); }
.pill { background: var(--surface); border-color: var(--line-2); color: var(--fg); }
.pill.on, .pill:hover { border-color: var(--accent); color: var(--accent-text); background: var(--tint); }
.pill small { color: var(--muted); }
.scard { background: var(--surface); border-color: var(--line); box-shadow: 0 16px 34px -28px rgba(60,40,20,.55); }
.scard:hover { border-color: var(--line-2); box-shadow: 0 22px 44px -26px rgba(60,40,20,.55); }
.scard .plate .badge { background: rgba(255,255,255,.94); border-color: transparent; color: var(--accent-text); }
.scard h3 span { color: var(--soft); }
.scard .mk, .scard .meta { color: var(--muted); }
.panel { background: var(--surface); border-color: var(--line); box-shadow: 0 18px 40px -34px rgba(60,40,20,.5); }
.status, .qlead .qstatus { color: var(--accent-text); }
footer { background: var(--surface-2); border-top-color: var(--line); color: var(--soft); }
footer h2, footer h4, footer .brand { color: var(--fg); }
footer ul a { color: var(--soft); }
.fxsel { border-color: var(--line-2); background: var(--surface); }
.fxsel button { color: var(--soft); }
.fxsel button.on { background: var(--fg); color: #fff; }
/* the effects switch is a real control on phones too: 40 px targets (site audit, 21.10.2026) */
@media (max-width: 600px) { .fxsel button { min-height: 40px; padding: 4px 14px; } }
.abar { border-top-color: var(--line); }
.abar .what, .abar .legalrow { color: var(--soft); }
.abar .what b { color: var(--fg); }
.crumbs, .crumbs span { color: var(--muted); }
.crumbs a { color: var(--soft); }
.prow b, .scard .pr.ask { color: var(--accent-text); }
.pdemo { border-color: var(--line-2); }
.pseg.on { box-shadow: 0 0 0 1.5px var(--surface); }
:focus-visible { outline-color: var(--accent-text); }
[data-fx="2"] body::before { opacity: .025; mix-blend-mode: multiply; }
.sweep::after { background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); mix-blend-mode: normal; }

/* arrows are drawn, never typed: in an RTL page the browser mirrors ‹ and ›, so the left button pointed right and the right
   one left (Roy 21.10.2026: "החיצים ... הפוכים"). The previous button sits on the right and points right, the next on the left. */
.rarr svg, .rail-btn svg, .cg-nav svg, .lb-nav svg { width: 22px; height: 22px; display: block; margin: auto; }

/* category pills wrap onto a second line: in a sideways strip the last pill was cut by the screen edge on phones and
   tablets, which read as a broken button (Roy 21.10.2026: "הכפתורים במובייל ובmd עדיין נחתכים") */
.pills { flex-wrap: wrap; overflow: visible; }
/* "more cars" on phones: a two-column grid of whole cards, not a strip with a card cut at the edge */
@media (max-width: 760px) {
  .prail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; scroll-snap-type: none; }
  .prail > :nth-child(n+5) { display: none; }
  .pcard .bd { padding: 12px; } .pcard .bd .btn { width: 100%; min-width: 0; padding-inline: 10px; }
}
@media (max-width: 400px) { .prail { grid-template-columns: minmax(0, 1fr); } }
