/* Richout — shared styles. Logical properties throughout, so RTL (Hebrew) and LTR (English) share one sheet. */
:root {
  --ink: #15193a;
  --ink-soft: #4a5070;
  --paper: #f4f6fa;
  --mist: #d9dfec;
  --white: #ffffff;
  --cobalt: #2b4bf2;
  --saffron: #ffb81c;
  --error: #b3261e;
  --display: "Karantina", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--saffron); color: var(--ink); padding: .5rem 1rem; z-index: 20; }
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--white); position: relative; z-index: 10; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.logo { font-family: var(--display); font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: .02em; text-decoration: none; color: var(--white); direction: ltr; }
.logo span { color: var(--saffron); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: .4rem; border-block-end: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-color: var(--saffron); }
.lang-switch { border: 1px solid rgba(255,255,255,.45) !important; padding: .3rem .9rem !important; border-radius: 999px; }
.lang-switch:hover { background: var(--white); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: .75rem; margin-inline-end: -.75rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.6rem; height: 2px; background: var(--white); content: ""; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }

@media (max-width: 46rem) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1rem var(--gutter) 1.75rem; border-block-start: 1px solid rgba(255,255,255,.15); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .5rem; }
  .site-nav ul a { font-size: 1.2rem; }
}

/* ---------- Buttons and links ---------- */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.btn--saffron { background: var(--saffron); color: var(--ink); }
.btn--saffron:hover { background: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--cobalt { background: var(--cobalt); color: var(--white); }
.btn--cobalt:hover { background: var(--ink); }
.link { color: var(--cobalt); font-weight: 600; text-underline-offset: .25em; }
.link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__in { position: relative; padding-block: clamp(4rem, 12vw, 9rem) clamp(4rem, 10vw, 8rem); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 13vw, 10.5rem); line-height: .88; letter-spacing: .005em; max-width: 9em; text-wrap: balance; }
.hero__lead { margin-block-start: 2rem; max-width: 36rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #dfe4f5; }
.hero__actions { margin-block-start: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
/* The one decorative idea on the site: rings spreading outward from the far corner. */
.hero__arcs { position: absolute; inset-block-end: 0; inset-inline-end: 0; width: min(62vw, 46rem); height: auto; fill: none; }
[dir="rtl"] .hero__arcs { transform: scaleX(-1); }
.hero__arcs circle { stroke: var(--saffron); stroke-width: 2; opacity: calc(.9 - var(--i) * .17); transform-origin: 600px 600px; animation: ring 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * .12s); }
.hero__arcs circle:first-child { fill: var(--cobalt); stroke: none; opacity: 1; }
@keyframes ring { from { transform: scale(.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__arcs circle { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 46rem) { .hero__arcs { width: 85vw; opacity: .45; } }

/* ---------- Inner page heading ---------- */
.page-head { background: var(--ink); color: var(--white); padding-block: clamp(2.5rem, 7vw, 5rem); }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(3.25rem, 9vw, 6.5rem); line-height: .9; }
.page-head p { margin-block-start: 1.25rem; max-width: 40rem; font-size: 1.2rem; color: #dfe4f5; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--white); }
.section__head { max-width: 40rem; margin-block-end: clamp(2rem, 4vw, 3.25rem); }
.section__head h2, .prose-grid > h2, .cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: .95; }
.section__head p { margin-block-start: 1rem; color: var(--ink-soft); font-size: 1.125rem; }
.section__more { margin-block-start: 2.5rem; }

/* Ruled two-column list (services on home, principles on about) */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.service-list li { padding-block: 1.6rem; border-block-start: 2px solid var(--ink); }
.service-list h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.service-list p { margin-block-start: .5rem; color: var(--ink-soft); max-width: 34rem; }

/* Numbered process — a real sequence, so it gets numbers */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 5rem; line-height: .9; color: var(--cobalt); margin-block-end: .75rem; }
.steps h3 { font-size: 1.2rem; font-weight: 600; }
.steps p { margin-block-start: .4rem; color: var(--ink-soft); }

/* Services page */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 6vw, 5rem); padding-block: clamp(2rem, 4vw, 3rem); border-block-start: 2px solid var(--ink); }
.service:first-child { border-block-start: 0; padding-block-start: 0; }
.service h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: .95; }
.service__body p { max-width: 38rem; }
.service__body h3 { margin-block: 1.5rem .6rem; font-size: 1rem; font-weight: 600; color: var(--cobalt); }
.service__body li, .prose li { position: relative; padding-inline-start: 1.4rem; margin-block-end: .35rem; }
.service__body li::before, .prose li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--saffron); }
@media (max-width: 46rem) { .service { grid-template-columns: 1fr; } }

/* About page */
.prose-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); }
.prose { max-width: 38rem; font-size: 1.125rem; }
.prose p + p, .prose p + ul { margin-block-start: 1.1rem; }
@media (max-width: 46rem) { .prose-grid { grid-template-columns: 1fr; } }

/* ---------- Call to action band ---------- */
.cta { background: var(--cobalt); color: var(--white); }
.cta__in { padding-block: clamp(3rem, 7vw, 5rem); }
.cta h2 { max-width: 14em; }
.cta p { margin-block-start: 1rem; max-width: 36rem; font-size: 1.125rem; }
.cta__actions { margin-block-start: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.cta__phone { font-weight: 600; font-size: 1.2rem; text-underline-offset: .25em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem clamp(2rem, 6vw, 5rem); }
.contact h2 { font-family: var(--display); font-weight: 700; font-size: 2.5rem; line-height: 1; margin-block-end: 1.5rem; }
.contact dt { font-size: .95rem; color: var(--ink-soft); }
.contact dd { font-size: 1.3rem; font-weight: 600; margin-block-end: 1.5rem; overflow-wrap: anywhere; }
.contact dd a { text-decoration-color: var(--saffron); text-decoration-thickness: 3px; text-underline-offset: .25em; }
.contact dd a:hover { color: var(--cobalt); }
.contact__form { background: var(--white); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1.25rem; }
.field { margin-block-end: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-block-end: .35rem; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--mist); border-radius: .6rem; padding: .7rem .9rem; }
.field input[dir="ltr"] { text-align: start; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: var(--white); }
.field--error input, .field--error textarea { border-color: var(--error); }
.field__msg { color: var(--error); font-size: .95rem; margin-block-start: .35rem; }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { border-radius: .75rem; padding: 1rem 1.25rem; margin-block-end: 1.5rem; }
.notice--error { background: #fdecea; color: var(--error); }
.notice--ok { background: none; padding: 0; margin: 0; }
.notice--ok h2 { color: var(--cobalt); }
@media (max-width: 46rem) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dfe4f5; }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 3rem; padding-block: 3rem 2rem; }
.site-footer__tag { margin-block-start: .4rem; }
.site-footer__links, .site-footer__contact { display: flex; flex-direction: column; gap: .4rem; font-style: normal; }
.site-footer a:not(.logo) { text-decoration: none; }
.site-footer a:not(.logo):hover { color: var(--saffron); }
.site-footer__legal { padding-block: 1.25rem; border-block-start: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
