/* Yanivtech and Solutions Ltd — main stylesheet
   Brand green is the site colour. Orange belongs to printing, deep blue to software;
   they appear only on buttons, icons and section headers of their own side. */

/* Self-hosted so a slow or blocked Google Fonts never holds up the page */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  --green: #85b44e;
  --green-ink: #4b7222;     /* green that passes contrast as text on light */
  --green-deep: #2c4513;
  --green-wash: #eef4e6;
  --graphite: #23282b;      /* body text, echoes the grey of the logo shield */
  --graphite-2: #545c61;
  --line: #dfe4d8;
  --paper: #f6f8f2;
  --white: #ffffff;
  --print: #85b44e;
  --print-ink: #4b7222;
  --print-wash: #eef4e6;
  --soft: #1b3a86;
  --soft-ink: #1b3a86;
  --soft-night: #11295f;
  --soft-wash: #e9eef9;
  --cyan: #00a8de;
  --magenta: #e5007e;
  --yellow: #ffd400;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;

  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.3rem;
  --fs-h2: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.3rem, 1.4rem + 3.6vw, 4.25rem);
  --fs-hero: clamp(2.5rem, 1.2rem + 4.6vw, 5.2rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgba(35, 40, 43, .06), 0 8px 24px rgba(35, 40, 43, .08);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font: 400 var(--fs-base)/1.6 var(--body);
  color: var(--graphite);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0 0 1em; }
p, li { max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--graphite-2); }
.muted { color: var(--graphite-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--graphite); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  font: 600 1rem/1.2 var(--body);
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bg); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { color: var(--btn-fg); filter: brightness(1.06); }
.btn-small { min-height: 40px; padding: .45em 1em; font-size: .95rem; }
.btn-green { --btn-bg: var(--green); --btn-fg: #16240a; }
.btn-print { --btn-bg: var(--print); --btn-fg: #16240a; }
.btn-soft { --btn-bg: var(--soft); --btn-fg: #fff; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--graphite); }
.btn-ghost { background: transparent; color: var(--graphite); border-color: currentColor; }
.btn-ghost:hover { color: var(--graphite); background: rgba(35, 40, 43, .06); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); }
.brand:hover { color: var(--graphite); }
.brand img { width: 48px; height: auto; }
.brand-name { font: 800 1.3rem/1 var(--display); letter-spacing: -.02em; display: flex; flex-direction: column; }
.brand-name small { font: 500 .72rem/1.3 var(--body); letter-spacing: .01em; color: var(--graphite-2); margin-top: 3px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-name small { color: rgba(255, 255, 255, .7); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 10px 12px; color: var(--graphite); text-decoration: none; font-weight: 500; border-radius: var(--radius-s); }
.site-nav a:hover { background: var(--paper); color: var(--graphite); }
.site-nav a[aria-current="page"] { color: var(--green-ink); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.site-nav a.nav-print[aria-current="page"] { color: var(--print-ink); box-shadow: inset 0 -3px 0 var(--print); }
.site-nav a.nav-soft[aria-current="page"] { color: var(--soft-ink); box-shadow: inset 0 -3px 0 var(--soft); }
.site-nav { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-s);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: var(--graphite); position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(35, 40, 43, .12);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); padding-left: 14px; }
  .site-nav a.nav-print[aria-current="page"] { box-shadow: inset 4px 0 0 var(--print); }
  .site-nav a.nav-soft[aria-current="page"] { box-shadow: inset 4px 0 0 var(--soft); }
  .site-nav .btn { margin-top: 8px; min-height: 52px; }
}

/* ---------- Shared surface textures ---------- */
/* Halftone: cyan, magenta and yellow dot screens offset like a misregistered print. */
.halftone {
  background-image:
    radial-gradient(circle, rgba(0, 168, 222, .55) 1.3px, transparent 1.8px),
    radial-gradient(circle, rgba(229, 0, 126, .45) 1.3px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 212, 0, .75) 1.3px, transparent 1.8px);
  background-size: 15px 15px, 15px 15px, 15px 15px;
  background-position: 0 0, 5px 4px, 10px 8px;
}
/* Blueprint: fine and coarse grid lines. Compound selectors beat the surfaces' own backgrounds. */
.blueprint, .page-hero.blueprint, .product.blueprint {
  background-color: var(--soft-night);
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.regmark { width: 34px; height: 34px; color: var(--graphite); opacity: .55; }

/* ---------- Home: header hidden on first load, slides in on scroll ---------- */
/* Desktop only: on phones the header (and its menu button) stays visible */
@media (min-width: 900px) {
  .js .header-reveal .site-header {
    position: fixed; top: 0; left: 0; right: 0;
    transform: translateY(-105%); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
  }
  .js .header-reveal.is-scrolled .site-header,
  .js .header-reveal .site-header:focus-within { transform: none; box-shadow: 0 10px 30px rgba(35, 40, 43, .1); }
  .js .header-reveal .split-hero { min-height: clamp(600px, 100svh, 920px); }
}

/* ---------- Home split hero ---------- */
.split-hero { position: relative; display: flex; min-height: clamp(560px, calc(100vh - var(--header-h)), 820px); overflow: hidden; background: var(--graphite); }
.half {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 3.5vw, 48px) clamp(20px, 5vw, 72px) clamp(36px, 4.5vw, 64px);
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1);
}
.half h1, .half h2 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.03em; line-height: .95; margin-bottom: .35em; white-space: nowrap; }
.half p { font-size: var(--fs-lead); line-height: 1.45; max-width: 30ch; }
.half .btn-row { margin-top: 18px; }
.half-kicker { font: 600 1rem/1.3 var(--body); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.half-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }

/* Each half is a full photo; the overlay keeps the text readable */
.half-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover; object-position: center;
  transform: translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px)) scale(var(--zoom, 1.04));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.half::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.half-print { color: #fff; background: var(--graphite); }
.half-print::before { background: linear-gradient(180deg, rgba(20, 24, 26, .05) 0%, rgba(20, 24, 26, .25) 38%, rgba(20, 24, 26, .9) 100%); }
.half-print .half-kicker { color: #b7e08a; }
.half-print h2 { color: #fff; }
.half-print p { color: rgba(255, 255, 255, .9); }
.half-print .swatches { position: absolute; top: clamp(24px, 4vw, 48px); left: clamp(20px, 5vw, 72px); display: flex; gap: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.swatches span { width: 26px; height: 26px; }
.swatches span:nth-child(1) { background: var(--cyan); }
.swatches span:nth-child(2) { background: var(--magenta); }
.swatches span:nth-child(3) { background: var(--yellow); }
.swatches span:nth-child(4) { background: var(--graphite); }
.half-print .regmark { position: absolute; color: #fff; opacity: .8; }
.half-print .rm-1 { top: 22px; right: 22px; }
.half-print .rm-2 { bottom: 22px; left: 22px; }

.half-soft { color: #fff; background: var(--soft-night); }
.half-soft .half-bg { object-position: 88% center; }
.half-soft::before {
  background:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, rgba(17, 41, 95, .35) 0%, rgba(17, 41, 95, .55) 40%, rgba(13, 31, 74, .94) 100%);
}
.half-soft h2 { color: #fff; }
.half-soft .half-kicker { color: #9db7f5; }
.half-soft p { color: rgba(255, 255, 255, .88); }
/* Live terminal, top-right of the software half */
.term {
  position: absolute; z-index: 1; top: clamp(24px, 4vw, 48px); right: clamp(20px, 4vw, 56px);
  width: min(390px, calc(100% - 40px));
  border-radius: 12px; overflow: hidden;
  background: rgba(8, 18, 44, .82); border: 1px solid rgba(157, 183, 245, .28);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45); backdrop-filter: blur(8px);
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(157, 183, 245, .18); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #ff6159; } .term-bar i:nth-child(2) { background: #ffbd2e; } .term-bar i:nth-child(3) { background: #28c941; }
.term-bar span { margin-left: 8px; font: 500 .74rem/1 var(--mono); color: rgba(207, 220, 255, .7); }
.term-body {
  margin: 0; padding: 14px 16px 16px; min-height: 12.4em;
  font: 500 clamp(.7rem, .6rem + .3vw, .82rem)/1.7 var(--mono); color: #cfdcff; white-space: pre; overflow: hidden;
  transition: opacity .35s ease;
}
.term-body.is-clearing { opacity: 0; }
.term .c-k { color: #ffb37a; } .term .c-s { color: #b7e08a; } .term .c-c { color: #7f93c6; } .term .c-p { color: var(--green); } .term .c-ok { color: #28c941; }
.term .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--green); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.half-copy { position: relative; margin-top: auto; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.half-copy .btn { text-shadow: none; }

.seam {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 6px rgba(133, 180, 78, .35), 0 14px 30px rgba(0, 0, 0, .25);
  pointer-events: none; transition: left .6s cubic-bezier(.2, .7, .2, 1);
}
.seam img { width: 62px; }

@media (hover: hover) and (min-width: 900px) {
  .split-hero:has(.half-print:hover) .half-print,
  .split-hero:has(.half-soft:hover) .half-soft { flex-grow: 1.35; }
  .split-hero:has(.half-print:hover) .seam { left: 57.4%; }
  .split-hero:has(.half-soft:hover) .seam { left: 42.6%; }
}

/* the one orchestrated entrance: halves open from the seam */
@media (prefers-reduced-motion: no-preference) {
  .split-hero .half-print { animation: open-left .9s cubic-bezier(.2, .7, .2, 1) both; }
  .split-hero .half-soft { animation: open-right .9s cubic-bezier(.2, .7, .2, 1) both; }
  .split-hero .seam { animation: seam-in .5s .55s cubic-bezier(.3, 1.4, .5, 1) both; }
}
@keyframes open-left { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes open-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes seam-in { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 899px) {
  .split-hero { flex-direction: column; min-height: 0; }
  .half { flex: none; min-height: 520px; }
  .seam { top: var(--seam-y, 50%); left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .seam img { width: 50px; }
  .half-print .rm-2 { display: none; }
  .half-soft { padding-top: 64px; }
  .term { position: relative; top: auto; right: auto; width: 100%; margin-bottom: 8px; }
  .term-body { min-height: 11.2em; font-size: .7rem; }
  .half-print::before { background: linear-gradient(180deg, rgba(20, 24, 26, .1) 0%, rgba(20, 24, 26, .45) 45%, rgba(20, 24, 26, .92) 100%); }
  @media (prefers-reduced-motion: no-preference) {
    .split-hero .half-print { animation-name: open-down; }
    .split-hero .half-soft { animation-name: open-up; }
  }
}
@keyframes open-down { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes open-up { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 56ch; }
.page-hero .btn-row { margin-top: 26px; }
.crumbs { font-size: var(--fs-sm); margin-bottom: 18px; color: var(--graphite-2); }
.crumbs a { color: inherit; }
.page-hero-print::after {
  content: ""; position: absolute; top: 0; right: 0; width: min(56vw, 640px); height: 100%;
  background-image:
    radial-gradient(circle, rgba(0, 168, 222, .55) 1.4px, transparent 1.9px),
    radial-gradient(circle, rgba(229, 0, 126, .45) 1.4px, transparent 1.9px),
    radial-gradient(circle, rgba(255, 212, 0, .8) 1.4px, transparent 1.9px);
  background-size: 15px 15px; background-position: 0 0, 5px 4px, 10px 8px;
  -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 10%, #000 85%);
}
.page-hero-print .hero-tag { color: var(--print-ink); }
.page-hero-soft { color: #fff; border-bottom: 0; }
.page-hero-soft h1 { color: #fff; }
.page-hero-soft .lead, .page-hero-soft .crumbs { color: rgba(255, 255, 255, .8); }
.page-hero-soft .hero-tag { color: #9db7f5; }
.page-hero-green { background: var(--green-deep); color: #fff; border-bottom: 0; }
.page-hero-green h1 { color: #fff; }
.page-hero-green .lead, .page-hero-green .crumbs { color: rgba(255, 255, 255, .82); }
.page-hero-green .hero-tag { color: #c5e39f; }
.hero-tag { font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.hero-tag::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.hero-art { position: absolute; right: var(--gutter); bottom: -10px; width: min(34vw, 380px); z-index: 1; }
@media (max-width: 760px) { .hero-art { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }
.section.section-band { padding-top: clamp(56px, 8vw, 104px); background: var(--paper); border-block: 1px solid var(--line); }
.section-band + .section { padding-top: clamp(56px, 8vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--graphite-2); }
.h-print { color: var(--print-ink); }
.h-soft { color: var(--soft-ink); }
.h-mark { display: inline-flex; align-items: center; gap: 12px; }
.h-mark::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; background: currentColor; }

/* ---------- Trust strip ---------- */
.facts { background: var(--graphite); color: #fff; }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; }
.facts li { max-width: none; display: flex; flex-direction: column; font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); }
.facts strong { color: #fff; font: 700 1.05rem/1.3 var(--display); }
.facts a { color: #fff; }
@media (max-width: 800px) { .facts ul { grid-template-columns: 1fr 1fr; } }

/* ---------- Printing services: catalogue rows ---------- */
.svc-catalogue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.svc-catalogue li { max-width: none; display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.svc-catalogue img { width: 112px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); background: var(--paper); }
.svc-catalogue h3 { margin-bottom: .3em; }
.svc-catalogue p { margin: 0; color: var(--graphite-2); }
@media (max-width: 800px) {
  .svc-catalogue { grid-template-columns: 1fr; }
  .svc-catalogue li { grid-template-columns: 84px 1fr; gap: 16px; }
  .svc-catalogue img { width: 84px; }
}

/* ---------- Software services: spec list ---------- */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; counter-reset: none; }
.spec-list li { max-width: none; padding-top: 18px; border-top: 3px solid var(--soft); }
.spec-list h3 { margin-bottom: .35em; }
.spec-list p { margin: 0; color: var(--graphite-2); }
.spec-icon { width: 36px; height: 36px; color: var(--soft); margin-bottom: 12px; }
@media (max-width: 900px) { .spec-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .spec-list { grid-template-columns: 1fr; } }

/* ---------- Software products ---------- */
.products { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.product { position: relative; padding: 28px; border-radius: var(--radius-l); background: var(--soft-wash); color: var(--graphite); display: flex; flex-direction: column; }
.product h3 { font-size: 1.6rem; margin-bottom: .2em; }
.product .product-tag { font-size: var(--fs-sm); font-weight: 600; color: var(--soft-ink); margin-bottom: 12px; }
.product p { color: var(--graphite-2); }
.product .btn { margin-top: auto; align-self: flex-start; }
.product-feature { grid-row: span 3; color: #fff; }
.product-feature h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #fff; }
.product-feature .product-tag { color: #9db7f5; }
.product-feature p { color: rgba(255, 255, 255, .84); font-size: var(--fs-lead); line-height: 1.5; }
.product-feature ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; color: rgba(255, 255, 255, .9); }
.product-feature li::before { content: "+ "; color: var(--green); font-weight: 700; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } .product-feature { grid-row: auto; } .product-feature ul { grid-template-columns: 1fr; } }

/* ---------- Work gallery ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.work { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-m); background: var(--paper); grid-column: span 4; grid-row: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.03); }
.work figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 12px 6px 10px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .94); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600;
}
.work figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.work.is-print figcaption::before { background: var(--print); }
.work.is-soft figcaption::before { background: var(--soft); }
.work.w-wide { grid-column: span 8; grid-row: span 3; }
.work.w-tall { grid-row: span 3; }
.work.w-6 { grid-column: span 6; }
.work img.contain { object-fit: contain; background: #fff; }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .work, .work.w-wide, .work.w-6 { grid-column: span 1; grid-row: span 1; }
  .work.w-wide { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients li { max-width: none; list-style: none; display: grid; place-items: center; padding: 22px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.clients ul { display: contents; }
.clients img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.clients li:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-wide { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul li { margin-bottom: .35em; }
.prose-article { max-width: 72ch; }
.prose-article p, .prose-article li { font-size: 1.1rem; line-height: 1.7; }

/* ---------- Callouts / bands ---------- */
.callout { border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px 40px; align-items: center; }
.callout h2 { margin-bottom: .3em; }
.callout p { margin: 0; }
.callout-soft { color: #fff; }
.callout-soft h2 { color: #fff; }
.callout-soft p { color: rgba(255, 255, 255, .85); }
.callout-green { background: var(--green-wash); }
.callout-print { background: var(--print-wash); }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { max-width: none; counter-increment: step; padding-top: 14px; border-top: 2px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 800 2rem/1 var(--display); color: var(--green); margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--graphite-2); font-size: .98rem; }
.side-print .steps li::before { color: var(--print); }
.side-soft .steps li::before { color: var(--soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 600 1.1rem/1.4 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.6rem/1 var(--body); color: var(--green-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--graphite-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact-card { display: flex; flex-direction: column; gap: 22px; }
.contact-card h3 { font-size: 1rem; font-family: var(--body); font-weight: 700; margin-bottom: 4px; }
.contact-card p { margin: 0; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--graphite-2); }
.map-facade {
  position: relative; min-height: 360px; border-radius: var(--radius-l); overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    linear-gradient(rgba(246, 248, 242, .55), rgba(246, 248, 242, .55)),
    repeating-linear-gradient(35deg, #e3e9da 0 2px, transparent 2px 46px),
    repeating-linear-gradient(-55deg, #e3e9da 0 2px, transparent 2px 64px),
    var(--paper);
  border: 1px solid var(--line);
}
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-pin { width: 44px; height: 44px; color: var(--green-ink); margin: 0 auto 10px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .map-facade { min-height: 300px; } }

/* ---------- Video facade ---------- */
.video-facade { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--graphite); }
.video-facade button { position: absolute; inset: 0; border: 0; cursor: pointer; background: transparent; color: #fff; display: grid; place-items: center; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--graphite-2); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--graphite);
  padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #c9d0c1; border-radius: var(--radius-s); background: #fff;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px rgba(133, 180, 78, .3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; margin: 4px 0 12px; font-weight: 600; }
.form-msg.is-error { color: #b42318; }
.form-msg.is-ok { color: var(--green-ink); }
.inline-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 36px); }

/* ---------- Quote dialog ---------- */
.quote-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--radius-l); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.quote-dialog::backdrop { background: rgba(35, 40, 43, .55); }
.quote-form { padding: clamp(20px, 4vw, 32px); }
.quote-head { display: flex; justify-content: space-between; align-items: center; }
.quote-head h2 { margin: 0; font-size: 1.8rem; }
.quote-intro { color: var(--graphite-2); }
.dialog-close, .chat-close { border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; color: inherit; }
.dialog-close:hover, .chat-close:hover { background: rgba(0, 0, 0, .06); }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Floating actions + assistant ---------- */
.float-actions { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); text-decoration: none; }
.float-wa { background: #25d366; color: #fff; }
.float-wa:hover { color: #fff; filter: brightness(1.05); }
/* Yaniv Smart Assistant: a named pill in the bottom-left corner */
.float-ai { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ai-pill {
  display: inline-flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 20px 8px 10px;
  border: 1.5px solid rgba(133, 180, 78, .55); border-radius: 999px; cursor: pointer; text-align: left;
  background: var(--graphite); color: #fff; font: inherit; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ai-pill:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 14px 34px rgba(0, 0, 0, .32), 0 0 0 4px rgba(133, 180, 78, .18); }
.ai-pill img { width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: #fff; object-fit: contain; }
.ai-pill-text { display: flex; flex-direction: column; line-height: 1.2; }
.ai-pill-text strong { font-family: var(--display); font-size: 1rem; }
.ai-pill-text small { font-size: .78rem; color: rgba(255, 255, 255, .68); }
.ai-short { display: none; }
.ai-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-left: 2px; }
.ai-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ai-ping 2s ease-out infinite; }
@keyframes ai-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.ai-pill[aria-expanded="true"] .ai-dot::after { animation: none; }
/* one-time greeting bubble */
.ai-hello {
  position: relative; display: flex; align-items: flex-start; gap: 4px; max-width: 280px; padding: 12px 6px 12px 16px;
  border-radius: 16px 16px 16px 4px; background: #fff; color: var(--graphite); box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  animation: ai-hello-in .5s cubic-bezier(.2, .7, .2, 1);
}
.ai-hello[hidden] { display: none; }
.ai-hello-text { flex: 1; border: 0; padding: 0; background: none; font: .92rem/1.45 var(--body); color: inherit; text-align: left; cursor: pointer; }
.ai-hello-close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; font-size: 1.3rem; line-height: 1; color: var(--graphite-2); cursor: pointer; }
.ai-hello-close:hover { background: rgba(0, 0, 0, .06); }
@keyframes ai-hello-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 520px) {
  .float-ai { left: 12px; bottom: 12px; }
  .float-actions { right: 12px; bottom: 12px; }
  .ai-pill { min-height: 54px; padding: 6px 16px 6px 7px; gap: 9px; }
  .ai-pill img { width: 36px; height: 36px; }
  .ai-full, .ai-pill-text small { display: none; }
  .ai-short { display: inline; }
  .ai-hello { max-width: calc(100vw - 100px); }
}
@media (prefers-reduced-motion: reduce) { .ai-dot::after, .ai-hello { animation: none; } }
.chat-panel {
  position: fixed; left: 16px; bottom: 92px; z-index: 51;
  width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-l);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 14px; background: var(--graphite); color: #fff; }
.chat-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.chat-head span { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); min-height: 140px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .96rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--green); color: #16240a; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-bot a { font-weight: 600; }
.msg-typing { color: var(--graphite-2); font-style: italic; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-quick a, .chat-quick button {
  font: 600 .85rem/1 var(--body); padding: 9px 12px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--graphite); text-decoration: none; cursor: pointer;
}
.chat-quick a:hover, .chat-quick button:hover { border-color: var(--green); color: var(--graphite); }
.chat-quick[hidden] { display: none; }
/* guided menu answers; once one is tapped the row hides (the visitor's answer shows as their message) */
.chat-choices { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.chat-choices.is-done { display: none; }
.chat-choices a, .chat-choices button {
  font: 600 .88rem/1.1 var(--body); padding: 9px 13px; border-radius: 999px; border: 1.5px solid var(--green);
  background: #fff; color: var(--green-deep); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.chat-choices a:hover, .chat-choices button:hover { background: var(--green); color: #16240a; }
.chat-choices .is-wa { border-color: #25d366; color: #0f6b34; }
.chat-choices .is-wa:hover { background: #25d366; color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.chat-form input { min-height: 44px; }
@media (max-width: 520px) { .chat-panel { right: 8px; left: 8px; width: auto; bottom: 78px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: rgba(255, 255, 255, .78); padding: 64px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 32px; }
.footer-brand p { margin-top: 16px; font-size: .95rem; }
.footer-h { font: 700 1rem/1.3 var(--body); color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: .95rem; }
.footer-hours { font-size: .9rem; margin-top: 12px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.footer-base p { margin: 0; display: flex; gap: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 96px; } }

/* ---------- Blog cards (list page only) ---------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-list li { max-width: none; padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.6rem; margin-bottom: .25em; }
.post-list h2 a { color: var(--graphite); text-decoration: none; }
.post-list h2 a:hover { color: var(--green-ink); }
.post-meta { font-size: var(--fs-sm); color: var(--graphite-2); margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .float-actions, .chat-panel, .site-footer { display: none; }
}
