/* רק סתימות – design preview v6: brand palette, logo variants, hero carousel, services */
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #234358;
  --muted: #4a6375;
  --navy: #0d2d3d;      /* text on cyan or pink 4.84:1 (white there is only 2.97:1) */
  --cyan: #00A3C7;      /* brand: hero surface */
  --pink: #FE5B88;      /* brand: primary button surface */
  --purple: #7361B6;    /* brand: accents; text on white 5.10:1, white text on it 5.10:1 */
  --cyan-l: #e8f7fb;    /* derived tint; purple text on it ~4.6:1 */
  --purple-l: #f5f3fa;  /* derived tint; purple text on it ~4.6:1 */
  --line: #e4edf1;
  --hh: 78px;
  --wrap: 1200px;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(35, 67, 88, .06), 0 8px 24px -14px rgba(35, 67, 88, .22);
}

*, *::before, *::after { box-sizing: border-box; }
/* --a11y-header-h is measured by accessibility-v17.js; it equals --hh at the default text size. */
html { scroll-padding-top: calc(var(--a11y-header-h, var(--hh)) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Font sizes are in rem (16px base) so the accessibility panel's text size scales them. */
body {
  margin: 0;
  font-family: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* Moved off-screen by its own height, so it stays hidden at any text size. */
.skip {
  position: absolute; z-index: 100; inset-inline-start: 12px; top: 12px;
  transform: translateY(calc(-100% - 24px));
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 700; text-decoration: none;
}
.skip:focus { transform: none; }
/* Skip-link and in-page anchor targets receive focus (tabindex=-1); no ring around a whole region. */
main[tabindex="-1"]:focus, section[tabindex="-1"]:focus { outline: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--hh);
  background: #fff;
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 20px -14px rgba(35, 67, 88, .4); }
.header-in {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  justify-self: start;
  display: inline-flex; align-items: center; flex: none;
  min-height: 44px;
  text-decoration: none;
}
.brand img { width: 190px; height: 54px; object-fit: cover; object-position: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: flex; align-items: center;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 1rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--cyan-l); color: var(--purple); }
.head-call { justify-self: end; }
.head-call .sm, .menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: inherit; font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-pink { background: var(--pink); color: var(--navy); box-shadow: 0 10px 20px -12px rgba(254, 91, 136, .8); }
.btn-pink:hover { background: var(--purple); color: #fff; box-shadow: 0 10px 20px -12px rgba(115, 97, 182, .8); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cyan-l); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn-sm svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
/* All hero text, including the h1, is navy on cyan. */
.hero { position: relative; overflow: hidden; padding: 64px 0 120px; background: var(--cyan); color: var(--navy); }
.hero :focus-visible { outline-color: var(--navy); }
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  align-items: center;
  gap: 56px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .9375rem; font-weight: 700; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + calc(4vw * var(--a11y-scale, 1)), 4.1rem); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; }
.hero h1 span { display: block; }
.lead { margin-top: 20px; max-width: 34ch; font-size: clamp(1.125rem, 1rem + calc(.4vw * var(--a11y-scale, 1)), 1.3rem); font-weight: 500; line-height: 1.5; }
.support { margin-top: 8px; max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hours { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9375rem; }
.hours svg { width: 18px; height: 18px; flex: none; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 470px; }
/* Square stage keeps the hero height stable across slides. */
.hero-stage { position: relative; aspect-ratio: 1 / 1; }
.hero-stage::before {
  content: ""; position: absolute; inset: 7%;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero-stage::after {
  content: ""; position: absolute; top: 6%; inset-inline-end: 4%;
  width: 20%; aspect-ratio: 1; border-radius: 50%;
  background: var(--purple); opacity: .35;
}
.slide {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .65s ease;
}
.slide.is-active { opacity: 1; }

.hero-ctrl {
  display: flex; align-items: center; gap: 2px;
  width: max-content; margin: 10px auto 0; padding: 3px;
  border-radius: 999px; background: #fff;
  box-shadow: 0 8px 18px -12px rgba(13, 45, 61, .5);
}
.hero-ctrl[hidden], .hero-ctrl button[hidden] { display: none; }
.hero-ctrl button {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy); cursor: pointer;
  transition: background-color .2s;
}
.hero-ctrl button:hover { background: var(--cyan-l); }
.hero-ctrl button:focus-visible { outline-offset: -3px; border-radius: 999px; }
.hero-dot span {
  width: 10px; height: 10px; border-radius: 999px; background: var(--muted);
  transition: width .25s var(--ease), background-color .25s;
}
.hero-dot[aria-current="true"] span { width: 24px; background: var(--purple); }
.hero-pause svg { width: 18px; height: 18px; }
.hero-pause .i-play { display: none; }
.hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: inline; }

.wave { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); color: #fff; }

/* ---------- Services ---------- */
.services { padding: 40px 0 88px; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.kicker {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--cyan-l); color: var(--purple);
  font-size: .875rem; font-weight: 700;
}
.services h2 { margin-top: 14px; font-size: clamp(1.9rem, 1.4rem + calc(1.8vw * var(--a11y-scale, 1)), 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
/* 5 / 3 / 2 / 1 columns; a short last row keeps normal column width. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cards > li { display: flex; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; min-width: 0; padding: 22px 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #b8e4ee;
  box-shadow: 0 2px 4px rgba(35, 67, 88, .05), 0 18px 34px -18px rgba(35, 67, 88, .3);
}
.icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 16px; background: var(--cyan); color: var(--navy); }
.cards li:nth-child(even) .icon { background: var(--purple-l); color: var(--purple); }
.icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--purple); font-size: .9375rem; font-weight: 700; }
.card-cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card-cta svg { transform: translateX(-3px); }

.closing {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; margin-top: 48px; padding: 26px 32px;
  border-radius: 24px; background: var(--purple); color: #fff;
}
.closing :focus-visible { outline-color: #fff; }
.closing p { max-width: 52ch; font-size: 1.125rem; font-weight: 500; }
.closing-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.closing-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #fff; font-weight: 700; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card { padding: 24px; }
}
@media (max-width: 1079px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  :root { --hh: 64px; }
  .header-in { display: flex; gap: 10px; }
  .brand { margin-inline-end: auto; }
  .brand img { width: 125px; height: 40px; }
  .head-call { padding: 0 16px; }
  .head-call .lg { display: none; }
  .head-call .sm { display: inline; }
  .js .menu-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
    background: var(--cyan-l); color: var(--ink); cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .nav {
    display: none;
    position: absolute; top: 100%; inset-inline: 0;
    padding: 8px 20px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px -18px rgba(35, 67, 88, .35);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { min-height: 48px; padding: 0 12px; border-radius: 12px; font-size: 1.0625rem; }
  .hero { padding: 40px 0 96px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-art { justify-self: center; max-width: 380px; }
}
@media (max-width: 599px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 18px; }
  .card > :not(.icon) { grid-column: 2; }
  .icon { grid-row: 1 / span 3; width: 48px; height: 48px; margin: 0; }
  .card h3 { font-size: 1.1875rem; }
  .closing { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .card:hover { transform: none; }
  .slide, .hero-dot span { transition: none; }
}

/* Keep the navigation usable if JavaScript cannot load. */
@media (max-width: 899px) {
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .header-in { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav { display: block; position: static; order: 3; width: 100%; padding: 0; box-shadow: none; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Logo gallery (logos.html only) ---------- */
.logo-gallery { background: var(--cyan-l); }
.logo-gallery .gallery-head { background: #fff; border-bottom: 1px solid var(--line); }
.logo-gallery .gallery-head-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; min-height: var(--hh); padding-block: 10px;
}
.logo-gallery .gallery-brand { width: 190px; height: 54px; object-fit: cover; object-position: center; }
.logo-gallery .gallery-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--purple); font-weight: 700; text-underline-offset: 4px;
}
.logo-gallery .gallery-back svg { width: 18px; height: 18px; flex: none; }
.logo-gallery .gallery-swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.logo-gallery .gallery-swatches li { display: inline-flex; align-items: center; gap: 8px; }
.logo-gallery .sw { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(13, 45, 61, .15); }
.logo-gallery .sw-cyan { background: var(--cyan); }
.logo-gallery .sw-pink { background: var(--pink); }
.logo-gallery .sw-purple { background: var(--purple); }
.logo-gallery .hex { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }

.logo-gallery main { padding: 48px 0 80px; }
.logo-gallery .gallery-intro h1 { font-size: clamp(1.9rem, 1.4rem + calc(1.8vw * var(--a11y-scale, 1)), 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.logo-gallery .gallery-intro p { margin-top: 8px; color: var(--muted); font-size: 18px; }
.logo-gallery .gallery-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.logo-gallery .gallery-grid > li { display: flex; }
.logo-gallery .gallery-card {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px;
  padding: 28px; border: 1px solid var(--line); border-radius: 24px;
  background: #fff; box-shadow: var(--shadow);
}
.logo-gallery .gallery-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.logo-gallery .gallery-card h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; line-height: 1.3; }
.logo-gallery .gallery-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple); color: #fff; font-size: 18px;
}
.logo-gallery .gallery-rec { padding: 3px 12px; border-radius: 999px; background: var(--purple-l); color: var(--purple); font-size: 14px; font-weight: 700; }
.logo-gallery .gallery-stage {
  display: grid; place-items: center; aspect-ratio: 5 / 2; padding: 24px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.logo-gallery .gallery-stage img { width: 100%; height: 100%; object-fit: contain; }
.logo-gallery .gallery-sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.logo-gallery figure { margin: 0; }
.logo-gallery .gallery-sample { display: inline-flex; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.logo-gallery .gallery-sample img { width: 190px; height: 54px; object-fit: cover; object-position: center; }
.logo-gallery .gallery-sample-sm img { width: 125px; height: 40px; }
.logo-gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }
.logo-gallery .gallery-map { display: grid; gap: 8px; margin: 0; font-size: 16px; }
.logo-gallery .gallery-map > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.logo-gallery .gallery-map dt { min-width: 10ch; font-weight: 700; }
.logo-gallery .gallery-map dd { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.logo-gallery .gallery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.logo-gallery .gallery-dl { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.logo-gallery .gallery-dl:hover { background: var(--purple-l); }
.logo-gallery .gallery-note { margin-top: 32px; color: var(--muted); font-size: 15px; }
@media (max-width: 799px) {
  .logo-gallery main { padding: 32px 0 64px; }
  .logo-gallery .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .logo-gallery .gallery-card { padding: 20px; }
}
