/* ==========================================================================
   bobproctor.co.il — shared stylesheet
   Rebuilt from the SendMsg/Creaditor pages, August 2026.
   Self-hosted Assistant (variable, 200–800). No external requests.
   ========================================================================== */

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/assistant-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/assistant-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/assistant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --sheet:      #fdf8da;   /* parchment panel                       */
  --ink:        #362002;   /* dark brown body/headings              */
  --ink-alt:    #372003;   /* the near-identical variant SendMsg used */
  --green:      #006600;   /* section headings on the sales page    */
  --red:        #980000;   /* testimonial pull-quotes               */
  --price:      #e30613;   /* price highlight                       */
  --quote-blue: #0000ff;   /* workshop testimonials                 */
  --rule:       #535353;
  --link:       #0000ee;
  --sheet-w:    782px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Assistant', Arial, sans-serif;
  font-weight: 400;
  color: #000;
  background-color: #fff;
  background-image: url('../img/sgr-bg.gif');
  background-attachment: fixed;
  background-position: 50% 50%;
  background-repeat: repeat;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--link); }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 3px solid var(--price); outline-offset: 2px; }

/* ---------- sheet ---------- */
.sheet {
  max-width: var(--sheet-w);
  margin: 0 auto;
  background: var(--sheet);
  direction: rtl;
  text-align: center;
  padding-bottom: 8px;
}

.banner { display: block; width: 100%; }

/* ---------- typography ---------- */
.h-xl, .h-lg, .h-md, .h-sm {
  margin: 22px auto;
  width: 98%;
  font-weight: 400;
  line-height: 1.3;
}
.h-xl { font-size: 36px; }
.h-lg { font-size: 30px; }
.h-md { font-size: 28px; }
.h-sm { font-size: 24px; }

.bold   { font-weight: 700; }
.ink    { color: var(--ink); }
.green  { color: var(--green); }
.red    { color: var(--red); }
.price  { color: var(--price); }

p.body {
  font-size: 20px;
  line-height: 1.6;
  margin: 18px auto;
  width: 92%;
}
p.body-sm { font-size: 18px; }
p.body-lg { font-size: 26px; }

/* ---------- step nav (video series) ----------
   Matches Creaditor's .mm2-c-b-* menu block: a fixed-layout table with
   10px border-spacing, 28px/52px items, square corners, #a31c20 active
   fill, and a soft shadow under the whole strip.                       */
.steps-holder {
  background: #fff;
  box-shadow: 0 3px 6px -2px rgba(0, 0, 0, .7);
}
.steps {
  display: table;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  table-layout: fixed;
  border-spacing: 10px;
  border-collapse: separate;
  background: var(--sheet);
  direction: rtl;
}
.steps li {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}
.steps a {
  display: block;
  font-size: 28px;
  line-height: 52px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  border-radius: 0;
}
.steps a:hover,
.steps a[aria-current="page"] {
  background: #a31c20;
  color: #fff;
}

/* ---------- video ---------- */
.video { margin: 18px auto; width: 96%; }
.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #000;
}
/* embeds that were authored 4:3 / 5:4 keep a taller box */
.video.ratio-4-3 iframe { aspect-ratio: 4 / 3; }

/* ---------- callout links ---------- */
.cta-text {
  font-size: 36px;
  line-height: 1.35;
  margin: 26px auto;
  width: 96%;
  color: var(--ink);
}
.cta-text a { color: var(--ink); text-decoration: underline; }

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  color: var(--ink);
  margin: 12px auto;
}
.pdf-link img { width: 48px; height: 48px; }

/* ---------- bullets (sales page) ---------- */
.bullets { list-style: none; margin: 20px auto; padding: 0; width: 94%; text-align: right; }
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.bullets li img { width: 36px; height: 36px; flex: 0 0 36px; margin-top: 4px; }

/* ---------- disc cards ---------- */
.disc { width: 94%; margin: 26px auto; text-align: right; }
.disc h3 { font-size: 26px; font-weight: 700; margin: 0 0 12px; text-align: center; }
.disc img { float: left; width: 150px; margin: 0 16px 12px 0; }
.disc ul { margin: 0; padding-right: 22px; }
.disc li { font-size: 20px; line-height: 1.55; margin-bottom: 8px; }
.disc::after { content: ""; display: block; clear: both; }

/* ---------- form ----------
   Values taken from the original SendMsg stylesheets
   (fc_338540 / fc_341577 / fc_341650): red bold button, fixed width,
   white field with a 1px border, placeholder inside the field.        */
.form {
  width: 100%;
  max-width: 391px;
  margin: 22px auto;
  text-align: center;
  direction: rtl;
}
.form .fc-row { margin: 0 0 10px; }

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"] {
  width: 320px;
  max-width: calc(100% - 20px);
  height: 46px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 30px;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 3px;
  direction: rtl;
  text-align: right;
}
/* browsers default type=tel/email to LTR, which flips the placeholder */
.form input[type="tel"],
.form input[type="email"] { direction: rtl; text-align: right; }
.form input[type="tel"]:focus,
.form input[type="email"]:focus { direction: rtl; }

.form .btn {
  width: 300px;
  max-width: 100%;
  min-height: 46px;
  padding: 6px 14px;
  margin: 10px auto 0;      /* flex box -> needs auto margins to centre horizontally */
  line-height: 1;           /* Assistant reserves 31/9 asc/desc; Hebrew has no
                               descenders here, so a tall line box pushes the
                               glyphs visibly low. line-height:1 + flex fixes it. */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: #ff0000;
  border: 1px solid #000;
  border-radius: 0;
  white-space: normal;
  cursor: pointer;
}
.form .btn:hover { background: #e00000; }
.form .btn[disabled] { cursor: default; opacity: .75; }

/* /webinar-invite used a slightly different red and no border */
.form[data-form-id="346049"] .btn { background: #e30613; border-width: 0; font-size: 30px; width: 290px; }
.form[data-form-id="346049"] input { width: 290px; border-color: #dcdcdc; border-radius: 0; }
/* /details buttons were borderless too */
.form[data-form-id="346048"] .btn { border-width: 0; font-size: 30px; }
.form[data-form-id="346048"] input { width: 300px; height: 40px; border-radius: 0; }

.form .consent {
  display: block;
  max-width: 342px;
  margin: 12px auto 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}
.form .consent input { margin-left: 6px; vertical-align: middle; }

.form .error { color: #b00; font-size: 14px; margin: 0; min-height: 0; }
.form .error:not(:empty) { margin-top: 4px; }

/* label kept for screen readers only — the visible cue is the placeholder */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- misc ---------- */
hr.rule {
  margin: 18px 5%;
  width: 90%;
  display: inline-block;
  border: 0;
  border-top: 1px solid var(--rule);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 94%;
  margin: 20px auto;
}
.photo-grid img { width: 100%; }

/* ---------- footer ---------- */
.site-footer {
  width: 96%;
  margin: 10px auto 0;
  padding-bottom: 24px;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.9;
}
.site-footer nav { font-size: 14px; }
.site-footer nav a { color: var(--ink); text-decoration: none; font-weight: 400; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .sep { color: #555; margin: 0 8px; }

/* ---------- legal pages ---------- */
.legal { width: 92%; margin: 0 auto; text-align: right; padding: 20px 0 40px; }
.legal h1 { font-size: 32px; font-weight: 700; text-align: center; margin: 24px 0; color: var(--ink); }
.legal h2 { font-size: 22px; font-weight: 700; margin: 26px 0 10px; color: var(--ink); }
.legal p, .legal li { font-size: 18px; line-height: 1.75; }
.legal ul { padding-right: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .h-xl { font-size: 27px; }
  .h-lg { font-size: 23px; }
  .h-md { font-size: 21px; }
  .h-sm { font-size: 19px; }
  p.body { font-size: 18px; }
  p.body-lg { font-size: 20px; }
  .cta-text { font-size: 25px; }
  .pdf-link { font-size: 20px; }
  .bullets li { font-size: 18px; }
  .steps {
    display: flex;
    border-spacing: 0;
    padding: 6px;
    gap: 6px;
  }
  .steps li { display: block; flex: 1 1 auto; min-width: 0; }
  .steps a {
    /* fluid: ~18px at 320w, ~22px at 390w, capped at 26px.
       Measured against the longest label ("3. חזרתיות") at weight 700,
       leaving ~20% headroom at every width so it can never clip. */
    font-size: clamp(18px, 5.6vw, 26px);
    font-weight: 700;
    line-height: 1.9;
    white-space: nowrap;
    padding: 4px;
  }
  .disc img { float: none; display: block; margin: 0 auto 12px; }
  .disc h3 { font-size: 22px; }
  .disc li { font-size: 17px; }
  .photo-grid { grid-template-columns: 1fr; }
  .site-footer { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
