/* ============================================================
   VAN PRAAG — AI AGENCY  ·  shared stylesheet (EN / DE / HE)
   White + gold, editorial, restrained. Offline-safe.
   ============================================================ */

:root {
  --gold-deep:   #8a6a2f;
  --gold:        #b58a3e;
  --gold-bright: #c9a24b;
  --gold-soft:   #e3cd97;
  --gold-line:   #ece2cc;
  --gold-wash:   #faf6ec;

  --ink:      #1e1c18;
  --body:     #35322c;
  --muted:    #75705f;

  --white:    #ffffff;
  --ivory:    #faf8f3;
  --ivory-2:  #f5f1e8;

  --maxw: 1180px;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Hebrew reads better in a humanist sans; keep a graceful stack */
  --sans-he: "Segoe UI", "Arial Hebrew", Arial, system-ui, sans-serif;

  --shadow-card: 0 1px 2px rgba(30,28,24,.04), 0 12px 30px -18px rgba(30,28,24,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep);
  margin: 0 0 18px; display: inline-block;
}

.lede { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }

/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-size: .96rem; font-weight: 600;
  padding: 14px 26px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-gold {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 10px 24px -12px rgba(138,106,47,.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(138,106,47,.8); }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--gold-line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --------------------------- Header --------------------------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--gold-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; display: block; }
.brand .name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); letter-spacing: .02em; line-height: 1; }
.brand .name small { display:block; font-family: var(--sans); font-size: .58rem; letter-spacing:.34em; text-transform:uppercase; color: var(--gold-deep); margin-top: 4px; font-weight:600; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: .95rem; color: var(--body); position: relative; }
.nav-links a.link::after {
  content:""; position:absolute; left:0; bottom:-6px; height:1.5px; width:0; background: var(--gold); transition: width .22s ease;
}
.nav-links a.link:hover::after { width: 100%; }
.nav-links a.link:hover { color: var(--ink); }

/* Language switch */
.langswitch { display:flex; gap:2px; align-items:center; font-size:.76rem; letter-spacing:.04em; }
.langswitch a { padding:5px 9px; border-radius:7px; color:var(--muted); line-height:1; transition: color .2s ease, background .2s ease; }
.langswitch a:hover { color:var(--gold-deep); }
.langswitch a.on { background:var(--gold-wash); color:var(--gold-deep); font-weight:600; border:1px solid var(--gold-line); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display:block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* --------------------------- Hero --------------------------- */
.hero { padding: 168px 0 96px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content:""; position:absolute; top: 300px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 460px; max-width: 96vw;
  background: radial-gradient(ellipse at center, rgba(201,162,75,.12), rgba(201,162,75,0) 70%);
  z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow { display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:28px; }
.hero-eyebrow span { height:1px; width:40px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.hero-eyebrow span:last-child { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.hero-eyebrow em { font-style:normal; font-family: var(--sans); font-size:12px; font-weight:600; letter-spacing:.3em; text-transform:uppercase; color: var(--gold-deep); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 20ch; margin: 0 auto 18px; }
.hero h1 .em { color: var(--gold-deep); font-style: italic; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.55rem); color: var(--gold-deep); font-style: italic; margin: 0 auto 22px; }
.hero .lede { margin: 0 auto 38px; text-align: center; font-size: clamp(1.05rem,2.2vw,1.28rem); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------- Section frame --------------------------- */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-head { max-width: 62ch; margin-bottom: 54px; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { margin-top: 18px; }
.bg-ivory { background: var(--ivory); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }

/* --------------------------- Choose your path --------------------------- */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.path-card {
  background: linear-gradient(160deg, #ffffff, var(--ivory));
  border: 1px solid var(--gold-line); border-radius: 22px;
  padding: 44px 40px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.path-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); }
.path-card .ic { width: 44px; height: 44px; color: var(--gold-deep); }
.path-card .path-tag { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }
.path-card h3 { font-size: 1.55rem; }
.path-card p { color: var(--muted); }
.path-list { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.path-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--body); }
.path-list li svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.path-card .btn { align-self: flex-start; margin-top: auto; }

/* --------------------------- Services --------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--gold-line); border-radius: 16px;
  padding: 38px 34px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--gold-soft); }
.card .ic { width: 46px; height: 46px; color: var(--gold-deep); margin-bottom: 22px; }
.card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }
.card .tag { margin-top: 18px; font-size: .78rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color: var(--gold-deep); }

/* --------------------------- How it works --------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.step { position: relative; padding-top: 12px; }
.step .num {
  font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--gold-soft);
  font-weight: 600; margin-bottom: 14px; display:block;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step:not(:last-child)::after {
  content:""; position:absolute; top: 30px; right: -20px; width: 40px; height:1px; background: var(--gold-line);
}

/* --------------------------- About --------------------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.about-mark { position: relative; }
.about-mark .pull { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--ink); line-height: 1.25; }
.about-mark .pull .g { color: var(--gold-deep); }
.about-mark .heb { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); margin-top: 24px; direction: rtl; }
.about-mark .heb small { display:block; font-family: var(--sans); font-size:.72rem; letter-spacing:.22em; text-transform:uppercase; color: var(--muted); direction: ltr; margin-top:6px; }
.about-body p + p { margin-top: 18px; }
.about-body .rule { width: 54px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); margin: 8px 0 26px; border: 0; }

/* --------------------------- Why --------------------------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 48px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; padding: 6px 0; }
.why-item .dot { flex: 0 0 auto; width: 30px; height: 30px; color: var(--gold-deep); margin-top: 2px; }
.why-item h3 { font-size: 1.14rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: .98rem; }

/* --------------------------- Workshop strip --------------------------- */
.workshop {
  display: grid; grid-template-columns: 1.5fr .9fr; gap: 44px; align-items: center;
  background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: 22px;
  padding: 50px 48px; position: relative; overflow: hidden;
}
.workshop h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.workshop .lede { margin-bottom: 24px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: .82rem; font-weight: 600; color: var(--gold-deep); background: #fff; border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 13px; }
.workshop-cta { text-align: center; }
.workshop-cta .btn { width: 100%; justify-content: center; }
.next-date { margin-top: 14px; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.next-date a { color: var(--gold-deep); border-bottom: 1px solid var(--gold-line); }
.next-date a:hover { border-color: var(--gold); }

/* --------------------------- Contact / CTA --------------------------- */
.cta-final { text-align:center; }
.cta-final .panel {
  background: linear-gradient(160deg, #ffffff, var(--ivory));
  border: 1px solid var(--gold-line); border-radius: 24px;
  padding: 68px 40px; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.cta-final .panel::before {
  content:""; position:absolute; inset:0; background: radial-gradient(ellipse at 50% -10%, rgba(201,162,75,.12), transparent 60%);
  pointer-events:none;
}
.cta-final h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 18ch; margin: 0 auto 20px; position:relative; }
.cta-final .lede { margin: 0 auto 34px; text-align:center; position:relative; }
.cta-final .hero-cta { position: relative; }
.contact-line { margin-top: 30px; font-size: .95rem; color: var(--muted); position: relative; }
.contact-line a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid var(--gold-line); }
.contact-line a:hover { border-color: var(--gold); }

/* --------------------------- Footer --------------------------- */
footer { padding: 56px 0 44px; border-top: 1px solid var(--gold-line); background: var(--white); }
.foot { display:flex; align-items:center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand img { height: 40px; }
.foot .meta { color: var(--muted); font-size: .86rem; }

/* --------------------------- Reveal animation --------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* --------------------------- Responsive --------------------------- */
@media (max-width: 900px) {
  .workshop { grid-template-columns: 1fr; gap: 28px; padding: 40px 30px; }
  .workshop-cta { text-align: start; }
  .workshop-cta .btn { width: auto; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-line); padding: 8px 0 22px;
    transform: translateY(-145%); transition: transform .3s ease; align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); box-shadow: 0 20px 40px -24px rgba(0,0,0,.3); }
  .nav-links a.link { padding: 15px 28px; }
  .nav-links a.link::after { display:none; }
  .nav-links .btn { margin: 12px 28px 0; justify-content:center; }
  .nav-links .langswitch { justify-content: center; margin: 16px 28px 0; }
  .menu-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 8px; }
  .section-pad { padding: 72px 0; }
  .hero { padding: 140px 0 72px; }
  .brand .name { display: none; }
  .cta-final .panel { padding: 48px 24px; }
}
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
}

/* --------------------------- Print (PDF fallback) --------------------------- */
@media print {
  header { display: none; }
  .reveal { opacity:1 !important; transform:none !important; }
  .hero { padding: 30px 0; }
  section, .card { break-inside: avoid; }
  body { color:#000; }
  .btn { border:1px solid #999; color:#000 !important; background:none !important; }
}

/* ============================================================
   RIGHT-TO-LEFT (Hebrew) — only activates on dir="rtl" pages
   ============================================================ */
[dir="rtl"] body { font-family: var(--sans-he); }
[dir="rtl"] .kicker,
[dir="rtl"] .hero-eyebrow em,
[dir="rtl"] .card .tag,
[dir="rtl"] .path-card .path-tag { letter-spacing: 0; text-transform: none; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] .nav-links a.link::after { left: auto; right: 0; }
[dir="rtl"] .step:not(:last-child)::after { right: auto; left: -20px; }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-3px); }
[dir="rtl"] .about-mark .heb { direction: rtl; }
/* keep Latin brand nameplate reading left-to-right inside the RTL header */
[dir="rtl"] .brand .name { direction: ltr; text-align: right; }
