/* speedc.co.il — one stylesheet. Brand tokens first: the homepage direction Shai picks only changes these. */
:root {
  --navy: #001C4E;
  --navy-2: #0c2a63;
  --red: #920B2B;
  --red-bg: #fbf3f5;
  --ink: #1d2433;
  --muted: #4a5468;
  --line: #d9dee7;
  --bg-soft: #f4f6f9;
  --ok: #0b6b3a; --ok-bg: #e5f4ec;
  --warn: #8a4b00; --warn-bg: #fdf1e2;
  --radius: 8px;
  --font: Inter, Arial, Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --bg: #f3f5f8;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand img { display: block; height: 52px; width: auto; }
.menu-btn { margin-left: auto; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--navy); font: 600 1rem var(--font); cursor: pointer; }
.site-nav { flex-basis: 100%; display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--navy); }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--red); font-weight: 600; }
.header-phone { display: none; font-weight: 600; text-decoration: none; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; }
.site-header { position: relative; }
.header-line { height: 3px; background: linear-gradient(90deg, #dfe5ee 0%, var(--red) 35%, var(--navy) 75%, #0b4fa8 100%); }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .site-nav { display: block; flex-basis: auto; margin-left: auto; }
  .site-nav ul { flex-direction: row; gap: 4px 22px; flex-wrap: wrap; }
  .site-nav a { border: 0; padding: 8px 0; }
  .site-nav a { position: relative; }
  .site-nav a[aria-current="page"]::after, .site-nav a.is-active::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -6px; height: 3px; border-radius: 2px; background: var(--red); }
  .header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; padding-left: 22px; border-left: 1px solid var(--line); }
  .header-phone .ic { color: var(--navy); }
  .brand img { height: 64px; }
  .header-row { padding-top: 14px; padding-bottom: 14px; }
}

/* Page sections */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 48px; padding-bottom: 36px; }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.125rem; margin: 0; }
.block { background: #fff; }
.prose { max-width: 860px; }
.block { padding: 48px 0; }
.block.soft { background: var(--bg-soft); }
@media (max-width: 719px) { .block { padding: 32px 0; } .page-head .wrap { padding-top: 32px; padding-bottom: 24px; } .lc-bar { padding: 16px 0 0; } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fff; }
.card p:last-child { margin-bottom: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
.checks { padding-left: 1.2em; }
.checks li { margin-bottom: .5em; }

/* Linecard */
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.brand-card h3 { margin-top: 0; }
.card-link { font-size: .95rem; }
.lc-bar { padding: 20px 0 0; }
.lc-filter { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.lc-filter[hidden], .lc-empty[hidden], .lc-cat[hidden], .brand-card[hidden] { display: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .95rem var(--font); min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lc-search { flex: 1 1 260px; max-width: 360px; }
.lc-empty { margin: 16px 0 0; }
@media (max-width: 719px) { .lc-search { max-width: none; } .chip { min-height: 44px; } }

/* Team */
.team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.person img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 14px; }
.person .role { color: var(--red); font-weight: 600; margin: -4px 0 8px; }

/* Forms */
form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], textarea {
  font: inherit; font-size: 1rem; min-height: 46px; padding: 10px 12px; border: 1.5px solid #8a93a5; border-radius: 6px; color: var(--ink); background: #fff; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: .9rem; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius); font: 600 1rem var(--font); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #7a0923; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 12px; padding: 12px 14px; border-radius: 6px; }
.status:empty { display: none; }
.status.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.status.bad { background: #fdecea; color: #b3261e; font-weight: 600; }
.status.info { background: var(--bg-soft); color: var(--ink); }

/* Search */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; max-width: 680px; }
.search-bar input { flex: 1 1 260px; min-height: 56px; font-size: 1.1rem; border: 0; }
.search-bar .btn { min-height: 56px; }
.results { margin-top: 24px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--bg-soft); font-size: .95rem; }
tbody tr:last-child td { border-bottom: 0; }
td .btn { white-space: nowrap; min-height: 44px; padding: 0 16px; }
td.pn { font-weight: 600; color: var(--navy); font-family: var(--mono); }
.badge { white-space: nowrap; display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .9rem; font-weight: 600; }
.badge.in { background: var(--ok-bg); color: var(--ok); }
.badge.av { background: var(--warn-bg); color: var(--warn); }
.two-col { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.4fr 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: #dbe3f1; }
.site-footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 26px; padding-bottom: 26px; font-size: .95rem; }
.footer-row p { margin: 0; }
.footer-info, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.footer-info li, .footer-links li { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-left: 1px solid rgba(255,255,255,.22); }
.footer-info li:first-child, .footer-links li:first-child { border-left: 0; padding-left: 0; }
.site-footer .ic { width: 1.25em; height: 1.25em; color: #fff; }
@media (max-width: 719px) { .footer-info, .footer-links { flex-direction: column; } .footer-info li, .footer-links li { border-left: 0; padding: 0; } }

/* Accessibility statement: Hebrew section */
.rtl { direction: rtl; text-align: right; }

/* Search-first home (direction B) */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; background: linear-gradient(180deg, #f4f7fb 0%, #e9eff7 100%); }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-pcb { position: absolute; left: 0; top: 0; height: min(100%, 620px); width: auto; max-width: 36%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 100%), linear-gradient(180deg, #000 60%, transparent 95%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 35%, transparent 100%), linear-gradient(180deg, #000 60%, transparent 95%); mask-composite: intersect; opacity: .95; }
.hero-traces { position: absolute; right: 0; top: 24px; width: 30%; max-width: 420px; height: auto; }
.hero-swoosh { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; }
.hero-inner { position: relative; }
.hero h1 { text-align: center; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.hero h1 .accent { color: var(--red); }
.hero-sub { text-align: center; color: #3d4659; font-size: 1.2rem; font-weight: 500; margin: 0 0 26px; }
@media (max-width: 899px) { .hero-pcb { max-width: 100%; opacity: .16; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); } .hero-traces { display: none; } .hero-swoosh { height: 48px; } }
.sapp { max-width: 1240px; margin: 0 auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 560px); margin: 0 auto 22px; gap: 14px; }
.tabs [role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 18px; line-height: 1.25; border: 0; border-radius: 999px; background: #e3e8f0; color: #1f2a44; font: 600 1rem var(--font); cursor: pointer; }
.tabs [role="tab"] .ic { color: #5a6782; }
.tabs [role="tab"][aria-selected="true"] { background: #0b4fa8; color: #fff; box-shadow: 0 6px 16px rgba(11,79,168,.28); }
.tabs [role="tab"][aria-selected="true"] .ic { color: #fff; }
.tabs [role="tab"]:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
.bigsearch { display: flex; gap: 6px; max-width: 900px; margin: 0 auto; padding: 6px; background: #fff; border: 1px solid #cfd8e6; border-radius: 14px; box-shadow: 0 14px 34px rgba(0,28,78,.14); }
.bigsearch input { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 10px; min-height: 60px; padding: 0 18px; font: 500 1.2rem var(--mono); }
.bigsearch input::placeholder { font-family: var(--font); font-weight: 400; font-size: 1.05rem; color: #6b7385; }
.bigsearch input:focus-visible { outline: 3px solid #1a73e8; outline-offset: 0; }
.bigsearch button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: #c8102e; color: #fff; font: 700 1.15rem var(--font); padding: 0 30px; min-height: 60px; cursor: pointer; }
.bigsearch button:hover { background: var(--red); }
.bigsearch button .ic { width: 1.3em; height: 1.3em; }
.try { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 10px; margin: 16px auto 0; color: #3d4659; font-weight: 600; }
.try ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.try li + li::before { content: "|"; color: #9aa6bb; margin: 0 10px; }
.try a { font-weight: 600; color: #0b4fa8; }
.try > span { color: #3d4659; }
.search-status { text-align: center; color: var(--muted); margin: 14px 0 0; min-height: 1.6em; }
.search-status.bad { color: #b3261e; font-weight: 600; }
.sgrid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 28px; align-items: start; }
@media (min-width: 920px) { .sgrid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); } }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rhead { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rhead h2 { font-size: 1.05rem; margin: 0; color: var(--ink); }
.rcard table { font-size: 1rem; }
.rcard tr.sel td { background: #f2f6fc; }
.stock-in { color: var(--ok); font-weight: 600; }
.stock-av { color: var(--warn); font-weight: 600; }
.rbtn { min-height: 40px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font: 600 .95rem var(--font); cursor: pointer; white-space: nowrap; }
.rbtn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.rfoot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; cursor: pointer; }
.rempty { padding: 22px 20px; margin: 0; }
.qpanel { background: var(--navy); color: #fff; border-radius: 12px; padding: 24px; }
.qpanel label { color: #fff; }
.qpanel .hint { color: #c9d3e6; }
.qpanel input { border: 0; }
.qpanel .eyebrow { margin: 0 0 4px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #c9d3e6; }
.qpanel .qpn { color: #fff; font: 600 1.4rem var(--mono); margin: 0 0 14px; word-break: break-all; }
.qpanel .qpn:focus { outline: none; }
.qintro { color: #dbe2ef; }
.qnote { color: #c9d3e6; font-size: .9rem; margin: 10px 0 0; }
.qpanel .status.ok { background: #e5f4ec; }
.qpanel .err { color: #ffb4ab; }
.btn-block { width: 100%; }
.askcard { max-width: 760px; margin: 0 auto; }
.two { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.trust { background: #fff; border-top: 1px solid var(--line); }
.trust-grid { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-top: 44px; padding-bottom: 44px; }
.trust h2 { font-size: 1.1rem; margin: 0 0 6px; }
.trust p { color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .tabs [role="tab"] { font-size: .92rem; padding: 6px 8px; }
  .hero { padding: 36px 0 64px; }
  .bigsearch input { min-height: 52px; font-size: 1.05rem; padding: 0 12px; }
  .bigsearch button { min-height: 52px; padding: 0 16px; font-size: 1.05rem; }
  .tabs { gap: 8px; }
  .bigsearch button { padding: 0 14px; }
  .bigsearch .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabs [role="tab"] { padding: 6px 10px; gap: 6px; }
  .rcard th:nth-child(2), .rcard td:nth-child(2) { display: none; }
  th, td { padding: 10px 12px; }
}

/* Preview page only */
.preview-bar { margin: 0; padding: 8px 20px; background: #fff4d6; color: #5c4300; font-size: .9rem; text-align: center; }
.try { text-align: center; color: var(--muted); margin: 12px 0 0; }
