/* Vision Exodus – shared styles
   Palette and fonts mirror the original Wix theme. */
@import url('/assets/fonts/fonts.css');

:root {
  --navy: #1e2233;          /* Wix color_14/15 */
  --cream: #f9f7f1;         /* Wix color_11 */
  --gold: #836a06;          /* Wix color_12 */
  --gold-soft: #9d8637;     /* contact panel */
  --mist: #e6e6ea;          /* light text on navy */
  --slate: #555763;         /* muted text */
  --grey: #c2c2c2;
  --white: #fff;

  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-serif: 'Playfair Display', Georgia, serif;
  --f-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --page: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 300 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: var(--cream); padding: 8px 14px; }
.skip-link:focus { left: 8px; }

/* Arabic / Hebrew pages: like the Wix site, editor-built pages keep their
   left-to-right layout while each text block takes its direction from its own
   content (Arabic/Hebrew right-to-left, untranslated English left-to-right).
   Store, blog and event pages are mirrored with <main dir="rtl">. */
.rtl main :is(h1, h2, h3, p, li, blockquote, figcaption, label, summary, .btn, .crumbs span) { unicode-bidi: plaintext; }
/* On editor-built pages Wix keeps each text box's English alignment (left or centre). */
:where(.rtl main:not([dir="rtl"])) :where(h1, h2, h3, p, li, blockquote, label) { text-align: -webkit-match-parent; text-align: match-parent; }
/* Like Wix, let Arabic/Hebrew glyphs fall back to the system sans-serif/serif. */
.rtl {
  --f-display: 'Cinzel', serif;
  --f-serif: 'Playfair Display', serif;
  --f-sans: 'Montserrat', sans-serif;
  --f-body: 'Lato', sans-serif;
}

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  height: 87px;
  background: var(--cream);
}
.site-header__inner {
  display: flex; align-items: flex-start;
  max-width: var(--page); height: 100%; margin: 0 auto;
  padding: 16px 100px 0 82px;
}
.site-header__logo {
  flex: 0 1 346px; min-width: 120px;
  font: 300 16px/24px var(--f-body); letter-spacing: -0.01em;
  text-decoration: none; color: var(--navy);
}
.site-nav ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block; height: 39px; padding: 0 38px;
  font: 300 16px/39px var(--f-body); letter-spacing: 0.05em; white-space: nowrap;
  color: var(--navy); text-decoration: none; transition: color .2s;
}
.site-nav li:nth-child(2) a { padding: 0 37px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--slate); }

.lang-switch {
  display: flex; flex: none; height: 33px; margin: 3px 0 0 44px; overflow: hidden;
  border: 1px solid var(--gold); border-radius: 30px;
  background: var(--cream);
}
.lang-switch a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 31px; padding: 0 14px;
  font: 400 10px/13px var(--f-sans); color: var(--navy); text-decoration: none; white-space: nowrap;
  border-left: 1px solid var(--navy);
}
.lang-switch a:first-child { border-left: 0; }
.lang-switch a[aria-current="true"] { background: rgba(3, 11, 84, .33); color: var(--cream); }
.lang-switch img { width: 19px; height: 12px; }

@media (max-width: 1240px) {
  .site-header__inner { padding: 16px 32px 0; }
  .site-nav a { padding: 0 18px; }
  .site-nav li:nth-child(2) a { padding: 0 18px; }
  .lang-switch { margin-left: 16px; }
}

.nav-toggle { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 20px 0 18px; }
.social-bar { display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-bar a { display: block; width: 39px; height: 39px; }
.social-bar img { width: 39px; height: 39px; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 14px 0 0; padding: 0 16px; list-style: none; }
.legal-links a { font: 300 13px/18px var(--f-body); color: var(--slate); text-decoration: none; }
.legal-links a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 28px; border-radius: 30px;
  font: 700 16px/20.8px var(--f-display); text-decoration: none;
  background: var(--navy); color: var(--cream);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold); }
.btn--light { background: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--navy); color: var(--cream); }
.btn--outline { border-radius: 0; border: 1px solid var(--cream); font: 300 16px/1 var(--f-body); }

.lang-switch .flag-round, .lang-switch .lang-short { display: none; }

/* ---------- Mobile ----------
   Wix serves a fixed 320px-wide mobile layout that phones scale up. Mobile
   sizes are written in those 320px units: calc(N * var(--m)). */
@media (max-width: 760px) {
  :root { --m: min(calc(100vw / 320), 1.4px); }

  .site-header { height: calc(118 * var(--m)); }
  .site-header__inner { display: block; position: relative; padding: 0; }
  .site-header__logo {
    position: absolute; left: 50%; top: calc(22 * var(--m)); transform: translateX(-50%);
    font-size: calc(17 * var(--m)); line-height: calc(25.5 * var(--m)); white-space: nowrap;
  }
  .nav-toggle {
    display: block; position: absolute; right: calc(5 * var(--m)); top: calc(4 * var(--m));
    width: calc(50 * var(--m)); height: calc(50 * var(--m));
    padding: 0; border: 0; background: none; cursor: pointer; color: var(--navy);
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: calc(14 * var(--m)); width: calc(22 * var(--m)); height: calc(3 * var(--m));
    background: currentColor; content: '';
  }
  .nav-toggle span { top: calc(24 * var(--m)); }
  .nav-toggle span::before, .nav-toggle span::after { left: 0; }
  .nav-toggle span::before { top: calc(-8 * var(--m)); }
  .nav-toggle span::after { top: calc(8 * var(--m)); }

  .site-nav {
    display: none; position: fixed; inset: 0; z-index: 50;
    background: var(--cream); padding: 90px 24px 24px; text-align: center;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0; font-size: 20px; line-height: 56px; height: 56px; }
  .site-nav li:nth-child(2) a { padding: 0; }
  .site-nav .nav-close {
    position: absolute; right: 18px; top: 14px; width: 34px; height: 34px;
    border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--navy);
  }
  .site-nav .lang-switch { display: none; }

  .site-header__inner > .lang-switch {
    position: absolute; left: 50%; top: calc(60 * var(--m)); transform: translateX(-50%);
    height: calc(21 * var(--m)); margin: 0;
  }
  .lang-switch a {
    width: calc(62 * var(--m)); height: calc(19 * var(--m)); padding: 0; gap: calc(9 * var(--m));
    font-size: calc(8 * var(--m)); line-height: 1;
  }
  .lang-switch .flag, .lang-switch .lang-full { display: none; }
  .lang-switch .flag-round, .lang-switch .lang-short { display: block; }
  .lang-switch .flag-round { width: calc(14 * var(--m)); height: calc(14 * var(--m)); }

  .site-footer { padding: calc(10 * var(--m)) 0 calc(12 * var(--m)); }
  .legal-links { margin-top: calc(10 * var(--m)); gap: calc(2 * var(--m)) calc(16 * var(--m)); }
  .legal-links a { font-size: calc(11 * var(--m)); line-height: 1.5; }
  .social-bar { gap: calc(10 * var(--m)); }
  .social-bar a, .social-bar img { width: calc(39 * var(--m)); height: calc(39 * var(--m)); }

  .btn { height: calc(25 * var(--m)); padding: 0 calc(16 * var(--m)); font-size: calc(14.93 * var(--m)); line-height: 1; }
}
@media (min-width: 761px) {
  .site-nav .nav-close, .site-nav .lang-switch { display: none; }
}

/* "No posts in this language yet" (Arabic/Hebrew blog and home teasers, as on Wix) */
.posts-empty { padding: 200px 16px 180px; text-align: center; font: 300 14px/1.5 var(--f-body); }
.posts-empty__title { margin-bottom: 14px; font: italic 400 28px/1.4 var(--f-serif); }
.posts-empty--dark { width: 100%; padding: 245px 16px 160px; color: var(--cream); }
.posts-empty--dark .posts-empty__title { font-style: normal; }
