/* Teko Solutions - עיצוב תעשייתי נקי, RTL
   Design read: B2B הנדסי למהנדסים/קבלנים/יזמים. וריאנס נמוך, מושן עדין, צפיפות נמוכה.
   רדיוסים: כרטיסים/תמונות 14px, כפתורים 10px, badges/pill מלא (999px). עקבי בכל האתר.
*/

@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/heebo-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: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/heebo-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: #1F5FA8;
  --blue-dark: #164A87;
  --slate: #3E4A56;
  --slate-light: #8A95A3;
  --slate-lighter: #B0BCC5; /* muted text on dark slate bg - passes WCAG AA 4.5:1 on --slate */
  --bg: #F2F4F6;
  --white: #FFFFFF;
  --ink: #1A1F24;
  --border: rgba(62, 74, 86, 0.14);
  --shadow: 0 10px 30px rgba(30, 42, 54, 0.08);
  --shadow-sm: 0 4px 14px rgba(30, 42, 54, 0.07);

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --container: 1200px;
  --header-h: 80px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Heebo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0; color: var(--ink); }
p { margin: 0; }

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--bg { background: var(--bg); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--slate);
  font-size: 1.0625rem;
}
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-dark); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
}
.btn--outline-dark:hover { background: var(--slate); color: var(--white); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}
.btn--outline-light:hover { background: var(--white); color: var(--blue); }

.btn--white {
  background: var(--white);
  color: var(--blue);
}
.btn--white:hover { background: #E9EEF3; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(62, 74, 86, 0.22);
  box-shadow: 0 1px 0 rgba(62, 74, 86, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  width: 132px;
  height: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--slate);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--blue);
}
.nav-links a.nav-cta {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close,
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a.nav-cta {
    display: inline-flex;
    margin-top: 14px;
    border-bottom: none;
    justify-content: center;
    color: var(--white);
  }
  .nav-links a.nav-cta:hover {
    color: var(--white);
  }
  .nav-toggle { display: inline-flex; }
  .header-actions > a.btn--primary { display: none; }
}

/* ---------- Hero (full-bleed cinematic) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 88px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 14, 18, 0.86) 0%, rgba(10, 14, 18, 0.5) 42%, rgba(10, 14, 18, 0.12) 72%, rgba(10, 14, 18, 0.05) 100%),
    linear-gradient(100deg, rgba(15, 20, 26, 0.32) 0%, rgba(15, 20, 26, 0.12) 55%);
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: 720px;
}
.hero-copy .eyebrow-tag {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #A6C8EE;
  text-transform: uppercase;
  direction: ltr;
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-copy .hero-subtext {
  margin-top: 24px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .hero {
    min-height: 78vh;
    min-height: 78dvh;
    padding-bottom: 56px;
  }
  .hero-copy { max-width: 100%; }
}

/* ---------- Page hero (shorter full-bleed variant for inner pages) ---------- */
.hero--page {
  min-height: 52vh;
  min-height: 52dvh;
  padding-bottom: 64px;
}
.hero--page .hero-copy h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

@media (max-width: 700px) {
  .hero--page {
    min-height: 44vh;
    min-height: 44dvh;
    padding-bottom: 44px;
  }
}

/* ---------- Solutions cards ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.82fr;
  gap: 28px;
}
.solution-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.solution-card--soon {
  box-shadow: none;
}
.solution-card:not(.solution-card--soon):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.solution-card-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg);
}
.solution-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.solution-card:hover .solution-card-media img { transform: scale(1.04); }
.solution-card-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.solution-card-body h3 {
  font-size: 1.2rem;
}
.solution-card-body p {
  margin-top: 12px;
  color: var(--slate);
  font-size: 0.95rem;
  flex: 1;
}
.solution-card-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
}
.solution-card-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.solution-card:hover .solution-card-link svg { transform: translateX(-4px); }

.solution-card--soon {
  background: var(--bg);
  border-style: dashed;
}
.solution-card--soon .solution-card-media {
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-card--soon .placeholder-icon {
  width: 52px;
  height: 52px;
  color: var(--slate-light);
}
.solution-card--soon h3,
.solution-card--soon p { color: var(--slate); }
.soon-badge {
  align-self: flex-start;
  margin-top: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}

@media (max-width: 900px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust badges + pillars ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.trust-badges--start {
  justify-content: flex-start;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate);
}
.trust-badge svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.pillar {
  min-width: 0;
  padding: 32px 28px;
  border-inline-start: 1px solid var(--border);
  text-align: center;
}
.pillar:first-child { border-inline-start: none; }
.pillar-word {
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  direction: ltr;
}
.pillar p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.9375rem;
}

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-inline-start: none; border-top: 1px solid var(--border); }
  .pillar:first-child { border-top: none; }
}

/* ---------- Catalog: product section header + prose ---------- */
.product-section-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.product-section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
}
.product-prose {
  margin-top: 18px;
  color: var(--slate);
  font-size: 1.0625rem;
  max-width: 68ch;
}
.product-prose p + p { margin-top: 14px; }

/* ---------- Gallery (asymmetric bento, N images = N cells) ----------
   Row tracks use definite clamp() heights (not fr) so height:100% on the
   images actually resolves and object-fit:cover crops predictably. */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: clamp(230px, 24vw, 320px) clamp(170px, 18vw, 240px);
  gap: 20px;
  margin-top: 44px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.gallery-grid--pair {
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: clamp(280px, 30vw, 420px);
}

@media (max-width: 760px) {
  .gallery-grid,
  .gallery-grid--pair {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .gallery-grid img,
  .gallery-grid--pair img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Video (vertical demo, blurred backdrop, manual play) ---------- */
.video-block {
  margin-top: 56px;
}
.video-block h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.video-frame {
  position: relative;
  height: min(74vh, 680px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.video-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.5) saturate(1.15);
  transform: scale(1.2);
}
.video-player {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.video-play-btn {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.video-play-btn:hover {
  transform: scale(1.06);
  background: var(--white);
}
.video-play-btn svg { width: 30px; height: 30px; margin-inline-start: 3px; }
.video-frame.is-playing .video-play-btn { display: none; }

@media (max-width: 700px) {
  .video-frame { height: min(72vh, 560px); }
}

/* ---------- Feature band (single large image + caption, e.g. "projects") ---------- */
.feature-band {
  margin-top: 4px;
}
.feature-band-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8;
}
.feature-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .feature-band-media { aspect-ratio: 4 / 5; }
}

/* ---------- About: long-form content ---------- */
.about-intro {
  max-width: 70ch;
}
.about-intro p {
  color: var(--slate);
  font-size: 1.125rem;
}
.about-intro p + p { margin-top: 18px; }
.about-block {
  max-width: 70ch;
}
.about-block h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.about-block .product-prose { max-width: 70ch; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  max-width: 32ch;
}

/* ---------- Contact anchor section ---------- */
.contact-block {
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--slate-light);
  background: var(--white);
  padding: 48px;
  text-align: center;
}
.contact-block h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.contact-block p {
  margin-top: 14px;
  color: var(--slate);
  max-width: 52ch;
  margin-inline: auto;
}
.contact-block .todo-note {
  margin-top: 22px;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}
.contact-block .contact-direct {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--slate);
}
.contact-direct dt { font-weight: 700; color: var(--ink); display: inline; }
.contact-direct dd { display: inline; margin: 0 0 0 6px; }
.contact-direct div { display: flex; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: #DCE1E6;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
}
.footer-brand,
.footer-col {
  min-width: 0;
}
.footer-brand .footer-logo-chip {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  line-height: 0;
}
.footer-brand img {
  height: 30px;
  width: auto;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #B8C0C9;
  max-width: 34ch;
}
.footer-brand .footer-tagline {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--slate-lighter);
  direction: ltr;
}
.footer-col h2 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a,
.footer-col span {
  font-size: 0.9375rem;
  color: #B8C0C9;
}
.footer-col a:hover { color: var(--white); }
.footer-col .placeholder { color: var(--slate-lighter); font-style: italic; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--slate-lighter);
}
.footer-bottom a { color: var(--slate-lighter); text-decoration: underline; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Scroll reveal (GSAP-driven) ----------
   [data-reveal] elements start visible per normal CSS (opacity:1, no transform).
   GSAP sets the hidden "from" state itself, only once it actually runs -
   so a JS failure just leaves the content visible, never stuck hidden. */

/* ---------- Hero ken-burns (image only, off under reduced motion) ---------- */
.hero-bg img {
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Accessibility: focus states + skip link ---------- */

/* Default focus ring - blue, for elements on light backgrounds. */
a:focus-visible,
button:focus-visible,
video:focus-visible,
input:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Elements sitting on dark/photographic backgrounds need a light ring instead -
   a blue outline doesn't reach 3:1 against a dark hero image or the CTA/footer. */
.hero :focus-visible,
.cta-banner :focus-visible,
.site-footer :focus-visible,
.video-frame :focus-visible {
  outline-color: var(--white);
}

/* Focusable elements inside overflow:hidden containers need an inset ring,
   otherwise the outline gets clipped by the parent's rounded edge. */
.solution-card-media:focus-visible,
.video-play-btn:focus-visible {
  outline-offset: -3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
  outline: 2.5px solid var(--white);
  outline-offset: 3px;
}
