/* ==========================================================================
   Diana Hod — Hebrew site overrides
   Grounded in the brand doc's palette: plum, moss, mineral beige, burgundy.
   Type system: Assistant (body) + Heebo (display) per the business doc.
   ========================================================================== */

:root {
  /* ——— PALETTE FROM BUSINESS DOC (authoritative) ——— */
  --plum-base:   #6F5F78;   /* סגול אפרפר עמוק — כותרות, אמת */
  --plum-accent: #6E547D;   /* סגול חי — ביטוי יצירתי */
  --plum-light:  #A298AE;   /* סגול Light — תתי כותרות, ציטוטים */
  --moss-base:   #9FAD99;   /* ירוק מרווה — ריפוי, נשימה */
  --moss-light:  #D3DBD1;   /* ירוק Light — רקעי כרטיסים */
  --moss-dark:   #4E5B49;   /* ירוק Dark — CTA משני */
  --beige-light: #F0EBE6;   /* בז' Light — רקעים רחבים */
  --beige-base:  #D9CDBF;   /* בז' Base — תוכן, about */
  --beige-dark:  #BAA58C;   /* בז' Dark — מסגרות, קווים */
  --cream:       #F7F4EF;   /* לבן חם — רקע עמוד */
  --ink:         #1C1B1F;   /* שחור רך — טקסט */
  --burgundy:    #642B36;   /* בורדו — חתימה, מילה אחת, CTA יחיד */

  /* semantic overrides on light surface */
  --bg:          var(--cream);
  --bg-raised:   #FBF9F4;
  --bg-sunk:     var(--beige-light);
  --bg-tint:     #F2EDE5;
  --fg1:         var(--ink);
  --fg2:         #3A2F38;
  --fg3:         #6A5E68;
  --fg4:         #8E8390;
  --border:      #E4DACE;
  --border-strong: var(--beige-dark);
  --divider:     #D8CDB9;

  --accent:      var(--plum-base);
  --accent-hover:var(--plum-accent);
  --accent-soft: #ECE5EF;
  --accent-ink:  var(--cream);

  /* ——— TYPE ——— */
  --font-he-body:    "Assistant", "Heebo", ui-sans-serif, system-ui, sans-serif;
  --font-he-display: "Heebo", "Assistant", ui-sans-serif, system-ui, sans-serif;
  --font-hand:       "Caveat", "Gveret Levin AlefAlefAlef", cursive;
}

/* Ritual surface — deep plum/burgundy */
.surface-ritual,
[data-surface="ritual"] {
  --bg:          #2A1E2B;
  --bg-raised:   #3A2A3B;
  --bg-sunk:     #1D1320;
  --bg-tint:     #33243A;
  --fg1:         #F3EADF;
  --fg2:         #E0D0D4;
  --fg3:         #B9A3B0;
  --fg4:         #8E7886;
  --border:      #4A3348;
  --border-strong:#6B4A66;
  --divider:     #3F2A3D;
  --accent:      var(--beige-dark);      /* warm cream/gold feel */
  --accent-hover:var(--beige-base);
  --accent-ink:  #2A1E2B;
  color: var(--fg1);
  background: var(--bg);
}

/* ——— Global reset ——— */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html[dir="rtl"] { direction: rtl; }

body {
  font-family: var(--font-he-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg1);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ——— Type ——— */
h1, .h1 {
  font-family: var(--font-he-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg1);
  margin: 0;
  text-wrap: balance;
}
h1 em, .h1 em {
  font-style: normal;
  color: var(--burgundy);
  position: relative;
  white-space: nowrap;
}
h1 em::after, .h1 em::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: -0.04em;
  height: 2px;
  background: var(--burgundy);
  opacity: 0.55;
}
[data-surface="ritual"] h1 em::after { background: var(--beige-dark); opacity: 0.8; }
[data-surface="ritual"] h1 em { color: var(--beige-base); }

h2, .h2 {
  font-family: var(--font-he-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h2 em { font-style: normal; color: var(--plum-accent); }
[data-surface="ritual"] h2 em { color: var(--beige-base); }

h3 {
  font-family: var(--font-he-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
}

h4 {
  font-family: var(--font-he-body);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
  color: var(--fg2);
  line-height: 1.75;
  text-wrap: pretty;
}
p.lede {
  font-size: clamp(19px, 1.6vw, 22px);
  color: var(--fg2);
  line-height: 1.6;
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-he-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: none;  /* Hebrew has no case */
  color: var(--plum-accent);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}
[data-surface="ritual"] .eyebrow { color: var(--beige-dark); }

.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  line-height: 1.1;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: color .16s ease, border-color .16s ease;
}
a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-he-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
  text-decoration: none;
  background: transparent;
  color: inherit;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary {
  background: var(--plum-base);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(111, 95, 120, 0.28);
}
.btn-primary:hover {
  background: var(--plum-accent);
  color: var(--cream);
  box-shadow: 0 10px 26px rgba(110, 84, 125, 0.34);
}

.btn-burgundy {
  background: var(--burgundy);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(100, 43, 54, 0.28);
}
.btn-burgundy:hover { background: #4F212B; color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--fg1);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--plum-base);
  color: var(--plum-base);
}

[data-surface="ritual"] .btn-ghost {
  color: var(--fg1);
  border-color: var(--border-strong);
}
[data-surface="ritual"] .btn-ghost:hover {
  border-color: var(--beige-base);
  color: var(--beige-base);
}

/* ——— Layout helpers ——— */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(22px, 4vw, 56px);
}
.section {
  padding-block: clamp(64px, 9vw, 120px);
}

/* Grain overlay for full-bleed imagery */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 245, 225, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

/* Shared reveal animation */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise-in .9s cubic-bezier(.19,1,.22,1) both; }

/* Soft ornament rotation */
@keyframes slow-spin {
  to { transform: rotate(360deg); }
}
.spin-slow { animation: slow-spin 120s linear infinite; transform-origin: center; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar taste */
::selection {
  background: color-mix(in srgb, var(--plum-light) 60%, transparent);
  color: var(--ink);
}
