/* Kay Group Inc. — site styles
   Palette: deep ink and white, with the KG logo red only in the logo and the home page route graphic. One family (Archivo), width axis for headlines. */

:root {
  --spruce: #121f2a;   /* deep ink: a near-black take on the logo navy */
  --spruce-2: #1b2c3a;
  --pine: #1f4d72;     /* logo navy, for links and fine rules */
  --fog: #eff1f3;
  --paper: #ffffff;
  --slate: #5b6670;
  --signal: #c32a33;   /* logo red: small accents only */
  --signal-dark: #a52129;
  --line: #d6dbe0;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--spruce);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--pine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--spruce); }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--spruce); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Type scale (1.25 ratio) */
h1, h2, h3 { font-family: var(--font); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; font-variation-settings: "wdth" 118; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; font-variation-settings: "wdth" 112; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; font-variation-settings: "wdth" 104; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: inherit; }
.muted { color: var(--slate); }

/* Header */
.site-header { background: #fff; color: var(--spruce); position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 220px; height: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 800; font-size: 1.2rem; font-variation-settings: "wdth" 120; letter-spacing: 0.01em; }
.brand-tag { display: block; font-size: 0.78rem; font-weight: 400; color: #b9cbc5; font-variation-settings: "wdth" 100; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--spruce); text-decoration: none; padding: 8px 10px; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--spruce); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--spruce); border-bottom-color: var(--spruce); }
.nav .nav-cta { background: var(--spruce); color: #fff; font-weight: 700; border: 0; margin-left: 8px; padding: 10px 18px; }
.nav .nav-cta:hover { background: var(--spruce-2); color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--spruce); padding: 8px 12px; font: inherit; cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; display: none; border-top: 1px solid var(--line); box-shadow: 0 8px 16px rgba(18, 31, 42, 0.1); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 0; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; padding: 14px 24px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-signal { background: #fff; color: var(--spruce); }
.btn-signal:hover { background: var(--fog); color: var(--spruce); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: inherit; }
.btn-dark { background: var(--spruce); color: #fff; }
.btn-dark:hover { background: var(--spruce-2); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { background: var(--spruce); color: #fff; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { color: #c9d2d9; margin-top: 24px; max-width: 46ch; }
.hero-map { width: 100%; height: auto; }
.page-hero { background: var(--spruce); color: #fff; padding: clamp(44px, 7vw, 88px) 0; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 20ch; }
.page-hero .lead { color: #c9d2d9; margin-top: 20px; max-width: 58ch; }
.crumbs { font-size: 0.9rem; color: #a3b0ba; margin-bottom: 18px; }
.crumbs a { color: #d9e0e5; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-map { max-width: 460px; }
}

.soft-line { margin-top: 20px; padding-left: 14px; border-left: 2px solid #fff; color: #fff; font-weight: 600; max-width: 46ch; }
[dir="rtl"] .soft-line { padding-left: 0; padding-right: 14px; border-left: 0; border-right: 2px solid #fff; }
.soft-kicker { display: inline-block; color: #fff; font-weight: 700; margin-bottom: 16px; padding-bottom: 6px; border-bottom: 2px solid #fff; }

/* Route map motion: one moment on load */
.route { stroke-dasharray: 6 7; }
.route-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s ease-out 0.3s forwards; }
.site-pin { opacity: 0; animation: pin 0.5s ease-out 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pin { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .route-draw { animation: none; stroke-dashoffset: 0; }
  .site-pin { animation: none; opacity: 1; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-fog { background: var(--fog); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 + p { margin-top: 16px; }

/* Problem statement */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.statement h2 { max-width: 16ch; }
.questions { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--spruce); }
.questions li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
@media (max-width: 820px) { .statement { grid-template-columns: 1fr; } }

/* Two paths: split panels */
.paths { display: grid; grid-template-columns: 1fr 1fr; }
.path { padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); }
.path-tech { background: var(--spruce); color: #fff; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.path-mfg { background: var(--fog); color: var(--spruce); padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.svc-list a { color: var(--spruce); text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.svc-list a:hover { text-decoration-color: var(--spruce); }
@media (max-width: 820px) { .path-tech, .path-mfg { padding-left: var(--gutter); padding-right: var(--gutter); } }
.path h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-variation-settings: "wdth" 112; margin-bottom: 12px; }
.path ul { padding-left: 1.1em; margin: 18px 0 0; }
.path li { margin-bottom: 6px; }
.path-tech .btn-ghost:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

/* Principles grid */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 72px); }
.principle { border-top: 2px solid var(--spruce); padding: 20px 0 32px; }
.principle h3 { margin-bottom: 8px; }
.principle p { color: var(--slate); margin: 0; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* Services list */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 72px); list-style: none; padding: 0; margin: 0; }
.svc-list li { padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); position: relative; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 26px; width: 12px; height: 2px; background: var(--spruce); }
.svc-list strong { display: block; font-size: 1.1rem; }
.svc-list span { color: var(--slate); }
@media (max-width: 720px) { .svc-list { grid-template-columns: 1fr; } }

.svc-detail { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(16px, 4vw, 56px); padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.svc-detail:first-of-type { border-top: 2px solid var(--spruce); }
.svc-detail h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.svc-detail .partner { display: inline-block; margin-top: 10px; font-size: 0.92rem; color: var(--slate); }
.svc-detail ul { padding-left: 1.1em; margin: 0; }
@media (max-width: 760px) { .svc-detail { grid-template-columns: 1fr; } }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps > li { counter-increment: step; border-top: 2px solid var(--spruce); padding-top: 18px; }
.steps > li::before { content: counter(step); display: block; font-weight: 800; font-size: 2.4rem; line-height: 1; font-variation-settings: "wdth" 125; color: var(--spruce); margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--slate); margin: 0; }
.step-list { margin: 8px 0 0; padding-left: 1.1em; color: var(--slate); }
.step-list li { margin-bottom: 4px; }
[dir="rtl"] .step-list { padding-left: 0; padding-right: 1.1em; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Checklist of pains */
.pains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px clamp(24px, 4vw, 56px); }
.pains li { padding-left: 22px; position: relative; }
.pains li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 2px; background: var(--spruce); }
@media (max-width: 720px) { .pains { grid-template-columns: 1fr; } }

/* Experience band */
.band-dark { background: var(--spruce); color: #fff; }
.band-dark .muted { color: #a9b5bf; }
.experience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; font-variation-settings: "wdth" 115; color: #fff; }
.names li { border-bottom: 2px solid #3a4b58; padding-bottom: 4px; }
@media (max-width: 820px) { .experience { grid-template-columns: 1fr; } }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.video { margin: 0; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: var(--spruce); }
.yt { position: absolute; inset: 0; background: var(--spruce) center / cover no-repeat; border: 0; padding: 0; width: 100%; height: 100%; cursor: pointer; display: block; }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(18, 31, 42, 0.25); }
.yt .play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; }
.yt .play::before { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--spruce); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 12px; color: var(--spruce); font-size: 1rem; line-height: 1.45; }
.video figcaption .muted { font-size: 0.9rem; }
@media (max-width: 720px) { .videos { grid-template-columns: 1fr; } }

/* Downloadable guides */
.guide { display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: 24px 56px; align-items: start; border: 1px solid var(--line); border-top: 4px solid var(--spruce); padding: clamp(24px, 4vw, 40px); }
.guide h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.guide p { color: var(--slate); margin: 0; }
.guide .guide-label { color: var(--spruce); font-weight: 700; margin-bottom: 10px; }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; } }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 72px); }
.guide-list li { border-top: 2px solid var(--spruce); padding: 18px 0 24px; }
.guide-list strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.guide-list span { display: block; color: var(--slate); margin-bottom: 12px; }
.guide-list a { font-weight: 700; color: var(--spruce); }
@media (max-width: 760px) { .guide-list { grid-template-columns: 1fr; } }

.guide-form { display: grid; gap: 14px; }
.guide-form .field label { font-size: 0.95rem; }
.guide-form .field input { padding: 10px 12px; }
.guide-form .btn { width: 100%; }
.guide-note { font-size: 0.85rem; color: var(--slate); margin: 0; }

/* Consent checkbox */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--spruce); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--spruce); }

/* Policy pages */
.legal-text { max-width: 760px; }
.legal-text h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal-text ul { padding-inline-start: 1.2em; margin: 0 0 1em; }
.legal-text li { margin-bottom: 8px; max-width: var(--measure); }
.legal-links a { margin-inline-end: 18px; display: inline-block; }
.legal .legal-links { margin-inline-start: 18px; }

/* FAQ */
.faq { border-top: 2px solid var(--spruce); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--pine); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 12px; color: var(--slate); }

/* Founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.founder { border-top: 2px solid var(--spruce); padding-top: 20px; }
.founder h3 { font-size: 1.5rem; font-variation-settings: "wdth" 112; }
.founder .role { color: var(--slate); margin: 4px 0 16px; }
.todo { background: #fff3c4; outline: 1px dashed #b38b00; padding: 2px 4px; }
@media (max-width: 760px) { .founders { grid-template-columns: 1fr; } }

.companies { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--spruce); }
.companies li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.companies strong { font-size: 1.1rem; }
@media (max-width: 640px) { .companies li { grid-template-columns: 1fr; gap: 4px; } }

/* CTA band */
.cta-band { background: var(--fog); color: var(--spruce); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: end; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { margin-top: 16px; }
.cta-band .small { font-size: 0.95rem; }
.cta-band .btn-dark { background: var(--spruce); color: #fff; }
.cta-band .btn-dark:hover { background: var(--spruce-2); color: #fff; }
.cta-band a:not(.btn) { color: var(--spruce); }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 88px); }
.form { display: grid; gap: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #7a8590; background: #fff; color: var(--spruce); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--pine); outline-offset: 0; border-color: var(--spruce); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice { padding: 14px 16px; border-left: 4px solid var(--pine); background: var(--fog); }
.notice-error { border-left-color: #b3261e; }
.reach { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--spruce); }
.reach li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.reach strong { display: block; font-size: 0.95rem; color: var(--slate); font-weight: 600; }
.reach a { font-size: 1.15rem; font-weight: 700; color: var(--spruce); }
@media (max-width: 820px) { .contact-grid, .row-2 { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--spruce); color: #c9d2d9; padding: 56px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1rem; font-variation-settings: "wdth" 100; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.legal { max-width: none; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a3b48; color: #8f9ca6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp floating button */
.he-top { background: #fff; border-bottom: 1px solid var(--line); }
.he-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; flex-wrap: wrap; }
.he-top img { height: auto; }
.a-to-usa { width: 210px; }
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 20; background: #17773f; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 28px; box-shadow: 0 4px 14px rgba(18, 31, 42, 0.3); display: flex; gap: 8px; align-items: center; }
.wa:hover { background: #126434; color: #fff; }
.wa svg { width: 20px; height: 20px; }

/* Hebrew / RTL */
[dir="rtl"] body, body[dir="rtl"] { font-family: "Assistant", "Archivo", Arial, sans-serif; }
[dir="rtl"] .svc-list li { padding: 18px 26px 18px 0; }
[dir="rtl"] .svc-list li::before { left: auto; right: 0; }
[dir="rtl"] .pains li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .pains li::before { left: auto; right: 0; }
[dir="rtl"] .path ul { padding-left: 0; padding-right: 1.1em; }
[dir="rtl"] .path-tech { padding-left: clamp(24px, 4vw, 56px); padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
[dir="rtl"] .path-mfg { padding-right: clamp(24px, 4vw, 56px); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
[dir="rtl"] .wa { right: auto; left: 18px; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "Assistant", Arial, sans-serif; font-variation-settings: normal; letter-spacing: 0; }

/* Phones: compact WhatsApp button, bigger tap targets */
@media (max-width: 640px) {
  .wa { padding: 0; width: 52px; height: 52px; border-radius: 50%; justify-content: center; right: 14px; bottom: 14px; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa svg { width: 26px; height: 26px; }
  [dir="rtl"] .wa { left: 14px; right: auto; }
  .site-footer { padding-bottom: 84px; }
  .crumbs a { display: inline-block; padding: 8px 0; }
  .site-footer li a, .reach a { display: inline-block; padding: 4px 0; }
}

/* Hebrew pages: top bar navigation and Q&A answers */
.he-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; }
.he-nav a { color: var(--spruce); text-decoration: none; padding: 6px 0; }
.he-nav a:hover, .he-nav a:focus-visible { text-decoration: underline; }
.answer { border-inline-start: 4px solid var(--spruce); background: var(--fog); padding: 18px 22px; font-size: 1.12rem; max-width: none; }
.legal-text ol { padding-inline-start: 1.2em; margin: 0 0 1em; }
.legal-text ol li { margin-bottom: 8px; max-width: var(--measure); }
@media (max-width: 560px) { .he-top .wrap { justify-content: center; } .he-nav { justify-content: center; gap: 4px 16px; } }
.small { font-size: 0.9rem; }
