/* Assistant (Hebrew + Latin), self-hosted */
@font-face { font-family: "Assistant"; font-weight: 200 800; 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-weight: 200 800; font-display: swap;
  src: url(fonts/assistant-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --blue: #528CD0; --nav: #3D76BC; --light: #6EC1E4; --fs: 1; }
* { box-sizing: border-box; }
html { font-size: calc(16px * var(--fs)); }
body { margin: 0; font-family: "Assistant", Arial, sans-serif; color: #000; background: #fff; line-height: 1.4; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #ff9800; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -5rem; inset-inline-start: 1rem; background: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip:focus { top: 1rem; }

/* ---- header: hero image, then the blue menu bar ---- */
/* fixed-height heroes, image cropped to fill ("cover") like the original site */
.hero { height: 720px; overflow: hidden; background: #111; }
.hero.tall { height: 745px; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* original: 730px slides with a -10px margin; the slider is painted over the top 7px of the menu bar */
.slider { position: relative; z-index: 3; height: 730px; margin-top: -10px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.slide.on { opacity: 1; z-index: 1; }
.slide a { display: block; height: 100%; }
.slide img { height: 100%; object-fit: cover; }
.pause { position: absolute; z-index: 3; bottom: 24px; left: 14px; background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 6px; padding: .35rem .7rem; cursor: pointer; font: inherit; font-size: .8rem; }

.bar { background: var(--nav); display: flex; justify-content: center; align-items: center; min-height: 66px; }
.bar.pull { margin-top: -7px; position: relative; z-index: 2; }
.mlogo, .menu-btn { display: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
nav a { display: block; color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 300; padding: 20px 20px; line-height: 26px; }
nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---- intro ---- */
.about { max-width: 1160px; margin: 89px auto 40px; padding: 0 20px; display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.about-img img { display: block; width: 100%; }
.about h2 { margin: 0 0 14px; font-size: 1.94rem; font-weight: 500; line-height: 1.3; }
.about h2.blue { color: var(--blue); }
.about p { margin: 0 0 12px; font-size: 1.31rem; line-height: 1.4; font-weight: 400; }
.about p.ask { margin: 34px 0 22px; text-align: center; color: var(--light); font-size: 1.63rem; font-weight: 500; }
.center { text-align: center; }
.pill { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-size: 1.56rem; font-weight: 400; border-radius: 27px; padding: 12px 24px; }
.pill:hover { filter: brightness(.9); }

/* ---- brush headings ---- */
/* the brush PNG is mostly transparent: the original shows it ~1024-1140px wide so the strokes span ~470-515px */
.brush { position: relative; width: min(1024px, 100%); margin: 20px auto 10px; font-size: inherit; font-weight: 500; }
.cat .brush { width: min(1140px, 100%); }
.brush img { display: block; width: 100%; height: auto; }
.brush span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.94rem; font-weight: 500; text-align: center; padding: 0 30%; }
.brush-link { display: block; text-decoration: none; }

/* ---- category tiles / service cards ---- */
.cat { margin: 40px 0 20px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1010px; margin: 40px auto; padding: 0 15px; }
.tile { display: block; text-align: center; text-decoration: none; }
.tile img { display: block; width: 100%; aspect-ratio: 313 / 256; object-fit: cover; }
.tile.tall img { aspect-ratio: 310 / 360; }
.tile strong { display: block; margin-top: 16px; font-size: 1.56rem; font-weight: 500; }
.tile.title-lg strong { font-size: 1.88rem; }
.tile span { display: block; margin-top: 8px; font-size: 1.25rem; font-weight: 300; }
.cta { text-align: center; color: var(--light); margin: 50px 20px; font-weight: 700; }
.cta p { margin: 0; font-size: 1.88rem; }
.cta .num { font-size: 2.1rem; }
.cta a { text-decoration: none; }
.cat + .cat .tiles.x { margin-bottom: 0; }

/* ---- galleries ---- */
.grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); max-width: 1220px; margin: 0 auto 50px; }
.g-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #eee; cursor: zoom-in; }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item::after { content: ""; position: absolute; inset: 0; background: rgba(0, 43, 220, .55); opacity: 0; transition: opacity .3s; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.1); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
h2.plain { text-align: center; font-size: 2.9rem; font-weight: 500; margin: 20px 0 14px; }
.grid + h2.plain { margin-top: 10px; }

/* ---- lightbox ---- */
dialog#lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog#lb::backdrop { background: rgba(0,0,0,.92); }
dialog#lb img { position: absolute; inset: 0; margin: auto; max-width: 94vw; max-height: 92vh; object-fit: contain; }
#lb button { position: absolute; z-index: 2; background: rgba(255,255,255,.18); color: #fff; border: 0; font-size: 2rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; cursor: pointer; }
#lb button:hover { background: rgba(255,255,255,.4); }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-next { top: 50%; left: 1rem; transform: translateY(-50%); }
.lb-prev { top: 50%; right: 1rem; transform: translateY(-50%); }

/* ---- contact ---- */
.c-hero { position: relative; min-height: 490px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background-size: cover; background-position: center; }
.c-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); }
.c-hero > * { position: relative; margin: 0; }
.c-sub { font-size: 1.95rem; font-weight: 300; }
.c-hero h1 { font-size: 4.4rem; font-weight: 400; line-height: 1.3; }
.c-info { display: flex; justify-content: center; align-items: center; gap: 85px; padding: 0 20px; min-height: 142px; text-align: center; }
.c-info h2 { margin: 0; font-size: 1.9rem; font-weight: 300; }
.c-info p { margin: 4px 0 0; font-size: 1.4rem; }
.c-info a { text-decoration: none; }

/* ---- text pages ---- */
.statement { max-width: 820px; margin: 50px auto; padding: 0 20px; font-size: 1.15rem; line-height: 1.7; }
.statement h1, .statement h2, .statement h3 { color: var(--blue); }
.nf { text-align: center; padding: 100px 20px; }
.nf h1 { font-size: 2.9rem; font-weight: 500; }

/* ---- footer ---- */
.banner { margin-top: 70px; }
.banner img { display: block; width: 100%; height: auto; }
.site-footer { background: #000; color: #fff; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: center; gap: 36px; font-size: 1rem; font-weight: 500; min-height: 82px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.round-icons { display: flex; gap: 32px; }
.ic { width: 49px; height: 49px; border-radius: 50%; display: grid; place-items: center; }
.ic svg { width: 26px; height: 26px; fill: #fff; }
.ic.mail { background: #0CC0DF; }
.ic.tel { background: #6B7078; }
.site-footer .ic:hover { text-decoration: none; filter: brightness(1.15); }

/* ---- floating buttons ---- */
.wa-float { position: fixed; right: 15px; bottom: 15px; z-index: 900; width: 50px; height: 50px; border-radius: 12px; background: #25D366; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
.a11y { position: fixed; left: 20px; top: 120px; z-index: 1000; }
.a11y-btn { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; background: #1f6fb2; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.4); padding: 0; }
.a11y-btn svg { width: 28px; height: 28px; fill: #fff; }
#a11y-panel { position: absolute; top: 58px; left: 0; width: 190px; background: #fff; color: #000; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.35); padding: 8px; display: grid; gap: 6px; }
#a11y-panel[hidden] { display: none; }
#a11y-panel button, #a11y-panel a { font: inherit; font-size: 1rem; padding: 8px 10px; text-align: start; border: 1px solid #ccc; border-radius: 6px; background: #f6f6f6; cursor: pointer; color: #000; text-decoration: none; }
#a11y-panel button[aria-pressed="true"] { background: var(--nav); color: #fff; }

/* accessibility modes */
html.a11y-gray { filter: grayscale(1); }
body.a11y-links a { text-decoration: underline !important; }
body.a11y-contrast { background: #000; color: #fff; }
body.a11y-contrast .tile, body.a11y-contrast .cta, body.a11y-contrast .about p, body.a11y-contrast .about h2.blk { color: #fff; }
body.a11y-contrast .statement a, body.a11y-contrast .c-info a, body.a11y-contrast main a { color: #ffe600; }
body.a11y-contrast .about h2.blue, body.a11y-contrast .about p.ask { color: #7fd4ff; }
body.a11y-contrast .brush span { color: #000; }

/* ---- tablet ---- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 10px; }
  nav a { padding: 20px 14px; }
}

/* ---- mobile ---- */
@media (max-width: 767px) {
  .hero { display: none; }
  .bar { flex-direction: column; padding: 10px 10px 18px; gap: 10px; }
  .bar.pull { margin-top: 0; }
  .mlogo { display: block; width: 300px; max-width: 100%; }
  .mlogo img { width: 100%; margin: -72px 0 -62px; } /* logo PNG has transparent padding */
  .c-info img { margin: -40px 0; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 44px; align-items: center; background: transparent; border: 1px solid #fff; cursor: pointer; }
  .menu-btn span { display: block; width: 24px; height: 3px; background: #fff; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  nav a { text-align: center; padding: 12px; border-top: 1px solid rgba(255,255,255,.25); }
  .about { grid-template-columns: 1fr; margin-top: 30px; gap: 20px; }
  .about h2 { font-size: 1.6rem; }
  .about p { font-size: 1.15rem; }
  .about p.ask { font-size: 1.3rem; }
  .brush span { font-size: 1.4rem; padding: 0 18%; }
  .tiles { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr; padding: 0 10px; }
  h2.plain { font-size: 2.2rem; }
  .cta p { font-size: 1.4rem; }
  .cta .num { font-size: 1.7rem; }
  .c-hero { min-height: 380px; }
  .c-hero h1 { font-size: 2.6rem; }
  .c-info { flex-direction: column; gap: 24px; }
  .foot-in { flex-direction: column; gap: 14px; text-align: center; }
  .a11y { top: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
