/* D.K. Software Solutions — main stylesheet
   Uses logical properties (margin-inline, padding-inline, inset-inline) so the
   same file works for the English (LTR) and Hebrew (RTL) pages. */

:root {
  --navy-900: #0f1c33;
  --navy-800: #16274a;
  --navy-700: #1f3257;   /* brand navy from the business card */
  --navy-500: #3a5486;
  --accent: #2f7de1;
  --accent-soft: #e8f1fd;
  --ink: #1a2233;
  --muted: #5b667a;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 28, 51, 0.08);
  --max: 1160px;
  --font: "Inter", "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html[lang="he"] { --font: "Heebo", "Inter", system-ui, "Segoe UI", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-800); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.section { padding-block: 96px; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-block-end: 48px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-block-end: .75em;
}
html[lang="he"] .eyebrow { letter-spacing: .02em; }
.eyebrow--light { color: #9cc3ff; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #1f6ccf; }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-block-end: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-700); }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; direction: ltr; }
.brand__row { display: flex; align-items: center; gap: 8px; }
.brand__slogan {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .66rem; font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .09em; line-height: 1;
  color: var(--accent); white-space: nowrap;
}
.brand__dk { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.brand__sub { font-size: .78rem; font-weight: 600; line-height: 1.1; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav .lang {
  border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em;
  font-size: .85rem;
}
.nav .btn { padding: .55em 1.2em; font-size: .9rem; color: #fff; }
.nav .btn:hover { color: #fff; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-700);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, #2b4a86 0%, transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding-block: 120px 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__tagline {
  font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #9cc3ff; margin-block-end: 1.2em;
}
html[lang="he"] .hero__tagline { letter-spacing: .04em; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; color: #9cc3ff; }
.hero p { font-size: 1.2rem; color: #cdd8ec; max-width: 640px; margin-block-end: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Stats ---------- */
.stats { margin-block-start: -56px; position: relative; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat__num { font-size: 2.2rem; font-weight: 800; color: var(--navy-700); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: .92rem; }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-block-end: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Experience ---------- */
.exp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { position: relative; padding-inline-start: 34px; margin-block-end: 14px; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232f7de1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding-inline-start: 36px; padding-block-end: 28px; }
.timeline li:last-child { padding-block-end: 0; }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.timeline li.is-current::before { background: var(--accent); }
.timeline__years { font-weight: 700; color: var(--accent); font-size: .9rem; direction: ltr; unicode-bidi: isolate; }
.timeline h3 { margin: .15em 0 .3em; }
.timeline p { color: var(--muted); margin: 0; font-size: .96rem; }

.regions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 8px; }
.region {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35em 1em; font-size: .9rem; font-weight: 600; color: var(--navy-700);
}

/* ---------- Tech ---------- */
.tech-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tech-group h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-block-end: 12px; }
html[lang="he"] .tech-group h3 { letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: .3em .7em; font-size: .88rem; font-weight: 600; color: var(--navy-800);
  direction: ltr; unicode-bidi: isolate;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.about__photo { position: relative; isolation: isolate; }
.about__photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%;
  border-radius: 20px; box-shadow: var(--shadow);
}
.about__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--accent); border-radius: 20px; z-index: -1;
}
html[dir="rtl"] .about__photo::before { inset: 18px 18px -18px -18px; }
.about__name { margin-block-end: .1em; }
.about__role { color: var(--accent); font-weight: 700; margin-block-end: 1.2em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 1.5em; }
.fact {
  background: var(--bg-alt); border-radius: 10px; padding: .5em .9em; font-size: .92rem;
}
.fact strong { color: var(--navy-700); }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: 24px; padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.contact h2 { color: #fff; }
.contact p { color: #cdd8ec; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact__list a, .contact__list span { color: #fff; }
.contact__item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 14px 18px;
}
.contact__item svg { width: 22px; height: 22px; flex: none; color: #9cc3ff; }
.contact__item small { display: block; color: #9fb0cc; font-size: .78rem; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Footer ---------- */
.footer { padding-block: 32px; color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .tech-groups { grid-template-columns: repeat(2, 1fr); }
  .exp, .about, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 300px; }
  .contact { padding: 40px 28px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-block-end: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-block-end: 1px solid var(--line); }
  .nav .lang, .nav .btn { margin-block-start: 12px; text-align: center; justify-content: center; border-radius: 999px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-block-start: 1px solid var(--line); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 80px 96px; }
  .grid-3, .tech-groups { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .stat { padding: 20px 12px; }
  .stat__num { font-size: 1.8rem; }
}

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