/* ==========================================================================
   א.ב.ע תשתיות — site chrome (concept B "מוכן לשטח")
   Loaded on every page: tokens, utilities, buttons, header + dropdowns, mobile drawer,
   footer, mobile contact bar. Source: design/concept-b/style.css.
   Inner pages load aba.css first; every rule here is class-scoped so it wins over
   aba.css element rules (ul/img/a) without touching Elementor content.
   ========================================================================== */

:root {
  --orange: #F26A2E;
  --orange-ink: #B5481A;
  --orange-tint: #FDEFE8;
  --charcoal: #26343C;
  --charcoal-2: #2E3E47;
  --black: #151A1D;
  --white: #FFFFFF;
  --paper: #F4F5F5;
  --line: #DCE0E2;
  --line-dark: rgba(255,255,255,.14);
  --muted: #5C6A72;
  --muted-light: #A9B3B8;
  --radius: 4px;
  --wrap: 1280px;
  --gutter: 32px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Utilities ---------- */
.sr-only, .sr-defs, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--black); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
/* Numbers & ranges: always read low → high, left to right, inside RTL text */
.rng { direction: ltr; unicode-bidi: isolate; white-space: nowrap; display: inline-block; font-style: normal; }
/* Keeps "כ-" / "מ-" + number + unit on one line */
.nb { white-space: nowrap; }

/* ---------- Chrome base (independent of the page stylesheet) ---------- */
.site-header, .drawer, .site-footer, .mobile-bar, .quote-dock {
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
.site-header { color: var(--charcoal); }
.site-header ul, .drawer ul, .site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-header img, .drawer img, .site-footer img { display: block; max-width: 100%; height: auto; }
.site-header svg, .drawer svg, .site-footer svg, .mobile-bar svg, .quote-dock svg, .btn svg { width: 1em; height: 1em; flex: none; }
.site-footer :focus-visible, .drawer :focus-visible { outline-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.1;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-orange, .btn-orange:hover { color: var(--black); }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #F57F4A; }
.btn-dark, .btn-dark:hover { color: #fff; }
.btn-dark { background: var(--charcoal); }
.btn-dark:hover { background: var(--black); }
.btn-black, .btn-black:hover { color: #fff; }
.btn-black { background: var(--black); }
.btn-black:hover { background: var(--charcoal); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: #fff; }
.btn-ghost-light, .btn-ghost-light:hover { color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn .num { font-weight: 500; opacity: .85; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex: none; }
.brand img { height: 46px; width: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 8px 12px; color: var(--charcoal); text-decoration: none; white-space: nowrap;
  font-size: 16px; font-weight: 500; border-radius: var(--radius); position: relative;
}
.main-nav a:hover { color: var(--black); }
.main-nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s var(--ease); }
.main-nav a:hover::after,
.main-nav > ul > .current-menu-item > a::after,
.main-nav > ul > .current-menu-ancestor > a::after,
.main-nav > ul > .current-page-ancestor > a::after { transform: scaleX(1); }
.main-nav > ul > .current-menu-item > a, .main-nav > ul > .current-menu-ancestor > a { color: var(--black); }

/* dropdowns (כלים עם מפעיל / שירותים / אזורי שירות) */
.main-nav .menu-item-has-children > a { padding-inline-end: 27px; }
.main-nav .menu-item-has-children > a::after { inset-inline-end: 27px; }
.main-nav .menu-item-has-children > a::before {
  content: ""; position: absolute; inset-inline-end: 11px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .5;
  transition: transform .2s var(--ease), opacity .2s;
}
.main-nav .menu-item-has-children:hover > a::before, .main-nav .menu-item-has-children:focus-within > a::before { transform: translateY(3px) rotate(225deg); opacity: .9; }
.main-nav .sub-menu {
  display: block; position: absolute; top: calc(100% + 12px); inset-inline-start: 0; z-index: 5;
  min-width: 250px; padding: 8px 0;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(21,26,29,.4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 9px 20px; font-size: 15px; line-height: 1.4; border-radius: 0; }
.main-nav .sub-menu a::after, .main-nav .sub-menu a::before { display: none; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: var(--paper); color: var(--orange-ink); }
.main-nav .sub-menu .aba-menu-all { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.main-nav .sub-menu .aba-menu-all > a { font-weight: 800; color: var(--orange-ink); }

.header-cta { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone, .header-phone:hover { color: var(--black); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 17px; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--orange-ink); }
.burger { display: none; }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(21,26,29,.55); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 380px); background: var(--black); color: #fff; padding: 20px 24px 32px; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; animation: abaSlideIn .3s var(--ease); }
@keyframes abaSlideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer-head img { height: 42px; width: auto; }
.drawer-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font: inherit; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.drawer nav a { display: block; padding: 16px 0; color: #fff; text-decoration: none; font-size: 22px; font-weight: 800; line-height: 1.35; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer nav a:hover { color: #fff; }
.drawer-list > li { position: relative; }
.drawer-list .menu-item-has-children > a { padding-inline-end: 56px; }
.drawer .sub-toggle { position: absolute; inset-inline-end: 0; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.drawer .sub-toggle svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.drawer .is-open > .sub-toggle { background: var(--orange); border-color: var(--orange); color: var(--black); }
.drawer .is-open > .sub-toggle svg { transform: rotate(180deg); }
.drawer .sub-menu { display: none; padding: 6px 0 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer .is-open > a { border-bottom-color: transparent; }
.drawer .is-open > .sub-menu { display: block; }
.drawer .sub-menu a { padding: 9px 16px; font-size: 17px; font-weight: 500; color: #C9D0D4; border-bottom: 0; border-inline-start: 2px solid rgba(255,255,255,.14); }
.drawer .sub-menu a:hover { color: #fff; border-inline-start-color: var(--orange); }
.drawer .sub-menu .aba-menu-all > a { color: var(--orange); font-weight: 700; }
.drawer-cta { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.drawer-note { text-align: center; color: var(--muted-light); font-weight: 700; margin: 8px 0 0; }
body.aba-lock { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-light); padding-top: 88px; font-size: 16px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 64px; }
.f-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.f-slogan { color: #fff; font-weight: 900; font-size: 20px; margin: 0 0 10px; }
.f-brand p:not(.f-slogan) { font-size: 15px; line-height: 1.65; max-width: 34ch; margin: 0 0 1em; }
.f-col .f-h { color: #fff; font-size: 16px; font-weight: 800; margin: 0 0 16px; }
.f-col ul { display: grid; gap: 8px; }
.f-col a { color: #C9D0D4; text-decoration: none; font-size: 15px; }
.f-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); }
.f-col .f-phone { display: block; text-align: right; font-size: 26px; font-weight: 900; color: #fff !important; margin-bottom: 14px; }
.f-contact .btn { color: var(--black); margin-bottom: 12px; font-size: 16px; }
.f-contact p { font-size: 14px; margin: 0 0 1em; }
.f-small { margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a, .footer-bottom a:hover { color: var(--muted-light); }
.footer-bottom a:hover { color: #fff; }
.fb-end { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.f-credit { padding-inline-start: 32px; border-inline-start: 1px solid rgba(255,255,255,.14); }

/* ---------- Mobile contact bar ---------- */
.mobile-bar { display: none; }

/* ---------- OneTap accessibility plugin ---------- */
/* its closed panel waits off-screen with a 60px shadow that bled into the page edge */
nav.onetap-accessibility:not(.onetap-toggle-open) { box-shadow: none !important; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1320px) {
  .main-nav a { padding: 8px 9px; font-size: 15px; }
  .main-nav a::after { inset-inline: 9px; }
  .main-nav .menu-item-has-children > a { padding-inline-end: 23px; }
  .main-nav .menu-item-has-children > a::after { inset-inline-end: 23px; }
  .main-nav .menu-item-has-children > a::before { inset-inline-end: 8px; }
  .header-in { gap: 20px; }
}
@media (max-width: 1240px) {
  .main-nav ul { gap: 0; }
  .header-phone span { display: none; }
  .header-in { gap: 16px; }
}
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 7px; font-size: 14.5px; }
  .main-nav .menu-item-has-children > a { padding-inline-end: 21px; }
  .main-nav .menu-item-has-children > a::after { inset-inline-end: 21px; }
  .main-nav .menu-item-has-children > a::before { inset-inline-end: 7px; }
}
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .main-nav, .header-cta { display: none; }
  .burger { display: grid; place-content: center; gap: 5px; margin-inline-start: auto; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; padding: 0; }
  .burger span { width: 22px; height: 2px; background: var(--black); border-radius: 2px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .brand img { height: 38px; }
  .btn { white-space: normal; text-align: center; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .f-contact { grid-column: 1 / -1; }
  .f-col:nth-of-type(3) { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
  .fb-end { flex-direction: column; align-items: flex-start; }
  .f-credit { padding-inline-start: 0; border-inline-start: 0; }

  .mobile-bar {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -12px rgba(21,26,29,.3);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--radius); font-weight: 800; font-size: 17px; text-decoration: none; }
  .mobile-bar svg { width: 20px; height: 20px; }
  .mb-call, .mb-call:hover { background: var(--orange); color: var(--black); }
  .mb-wa, .mb-wa:hover { background: var(--charcoal); color: #fff; }

  /* footer: compact link clouds instead of long columns */
  .site-footer { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  .f-brand img { height: 46px; margin-bottom: 10px; }
  .f-col ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .f-col .f-h { margin-bottom: 8px; }
  .f-col a { font-size: 14px; }

  /* OneTap accessibility button: keep clear of the mobile bar */
  .onetap-container-toggle, #onetap-toggle, .onetap-toggle { bottom: 86px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .drawer, .mobile-bar, .quote-dock { display: none !important; }
}

/* =========================================================
   QA pass (2026-10-16): tap targets, breadcrumbs, honeypot
   ========================================================= */
/* logo: full 44px tap area */
.brand { display: flex; align-items: center; min-height: 44px; }
/* Yoast breadcrumbs: CSS chevron that points forward (left) in RTL */
.aba-crumbs__sep { display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; vertical-align: middle; }
/* spam-trap field: keep it 1px (form input rules gave it full width → sideways scroll at 1024) */
input.screen-reader-text, .aba-leadform input.screen-reader-text, .field input.screen-reader-text { width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; margin: 0 !important; }
@media (max-width: 760px) {
  /* footer link clouds: 44px rows */
  .f-col ul { gap: 0 18px; }
  .f-col li > a:not(.btn) { display: inline-block; padding-block: 11px; font-size: 15px; line-height: 1.45; }
  .f-col .f-h { margin-bottom: 2px; }
  .f-small { margin-top: 0; }
  .footer-bottom ul { gap: 0 22px; }
  .footer-bottom a { display: inline-block; padding-block: 11px; }
  .footer-bottom { gap: 4px; }
}
