/* ═══════════════════════════════════════════════════
   שיטת אילן לב — מבואות
   CQCM-inspired · Flat · Bold · RTL
═══════════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --paper:  #FEFEFF;
  --coral:  #B370B0;
  --green:  #2F604E;
  --blue:   #8CC9F8;
  --ink:    #031926;
  --ink-60: rgba(3,25,38,0.6);
  --ink-10: rgba(3,25,38,0.08);
  --paper-20: rgba(254,254,255,0.2);
  --paper-40: rgba(254,254,255,0.4);

  --font: 'Heebo', sans-serif;
  --transition: 0.2s ease;
  --radius-card: 8px;
  --radius-pill: 100px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Backgrounds ─── */
.bg-paper { background: var(--paper); }
.bg-ink   { background: var(--ink); }
.bg-green { background: #8CC9F8; }
.bg-blue  { background: var(--blue); }
#for-whom     { position: relative; overflow: hidden; }
#testimonials { position: relative; overflow: hidden; }
#for-whom .container,
#testimonials .container { position: relative; z-index: 1; }

/* ─── Color utilities ─── */
.color-paper { color: var(--paper) !important; }
.color-coral { color: var(--coral) !important; }

/* ─── Section ─── */
.section { padding: 68px 0; }

.section-header {
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.eyebrow-teal { color: var(--coral); }
.eyebrow-lg   { font-size: 0.97rem; }

/* ─── Pill Button ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-coral {
  background: var(--coral);
  color: var(--paper);
}
.btn-outline-paper {
  background: transparent;
  border: 1.5px solid var(--paper);
  color: var(--paper);
}

/* ─── Fade-in ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════
   HERO — Split
════════════════════════════════════════════════════ */
.hero {
  display: flex;
  min-height: 100svh;
}

/* ── Dot pattern mixin — reused via pseudo-elements ── */
.hero-panel::after,
#for-whom::before,
#testimonials::after {
  content: '';
  position: absolute;
  background-image: radial-gradient(circle, rgba(4,34,58,0.18) 32%, transparent 33%);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 44px;
}

/* Hero panel — רצועה תחתונה */
.hero-panel::after {
  bottom: 0;
  left: 0;
}

/* למי מיועד — רצועה עליונה */
#for-whom::before {
  top: 0;
  right: 0;
}

/* עדויות — רצועה תחתונה */
#testimonials::after {
  bottom: 0;
  left: 0;
}

/* ── Panel (RIGHT in RTL) ── */
.hero-panel {
  flex: 0 0 52%;
  background: #8CC9F8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 11px;
  padding: 60px 64px;
  color: #04223A;
  position: relative;
  overflow: hidden;
}
.hero-panel .hero-logo,
.hero-panel .hero-panel-body { position: relative; z-index: 1; }

.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: center;
}
.logo-img  { height: 240px; width: auto; object-fit: contain; }
.logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #04223A;
}

.hero-panel-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-eyebrow {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(4,34,58,0.5);
  margin-bottom: -8px;
}

.hero-title {
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #04223A;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(4,34,58,0.72);
  max-width: 420px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(4,34,58,0.2);
  padding-top: 20px;
  margin-top: 4px;
}
.hero-meta li {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(4,34,58,0.85);
}

/* ── Image (LEFT in RTL) ── */
.hero-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.85;
}
/* Green dot overlay — CQCM signature */
.hero-dot-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--green) 32%, transparent 33%);
  background-size: 26px 26px;
  opacity: 0.45;
}

/* ════════════════════════════════════════════════════
   PROGRAM — 4 cards
════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 32px 24px 28px;
  overflow: hidden;
  transition: background var(--transition);
}
.card:hover { background: #f5f5fa; }

.card-num {
  position: absolute;
  top: 10px;
  left: 16px;  /* Use left for visual placement; appears near opposite side in RTL */
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: rgba(179, 112, 176, 0.3);
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.card-content { position: relative; z-index: 1; }

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
  min-height: 2.6em;
}
.card p {
  font-size: 0.93rem;
  color: var(--ink-60);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════
   FOR WHOM — Blue bg
════════════════════════════════════════════════════ */
#for-whom .section-title { color: #04223A !important; }

.for-whom-list {
  border-top: 1.5px solid rgba(4,34,58,0.2);
  max-width: 820px;
}

.for-whom-list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1.5px solid rgba(4,34,58,0.2);
  color: #04223A;
}

.for-whom-bullet {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 9px;
}

.for-whom-list-item p {
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════
   ABOUT METHOD
════════════════════════════════════════════════════ */
.about-text { max-width: 820px; }

.about-text p {
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.75;
  color: var(--ink-60);
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }

/* Image frame with circular crop */
.about-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-circle-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: 3px solid var(--blue);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   VIDEO
════════════════════════════════════════════════════ */
#about-method { padding-bottom: 34px; }
.video-section { padding: 24px 0; }

.video-wrap {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ════════════════════════════════════════════════════
   INSTRUCTOR
════════════════════════════════════════════════════ */
.instructor-grid {
  display: grid;
  grid-template-columns: 1fr 198px;
  gap: 40px;
  align-items: end;
}

.instructor-name {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #04223A;
  line-height: 1.05;
  margin-bottom: 8px;
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.instructor-role {
  font-size: 0.97rem;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 28px;
}

.instructor-bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.instructor-bio li {
  font-size: 0.93rem;
  font-weight: 700;
  color: rgba(4,34,58,0.75);
  line-height: 1.6;
  padding-right: 16px;
  position: relative;
}
.instructor-bio li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* Portrait */
.instructor-portrait {
  width: 198px;
  height: 198px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: #FDF6EC;
  flex-shrink: 0;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

.portrait-box {
  aspect-ratio: 3/4;
  border-radius: var(--radius-card);
  background: rgba(4,34,58,0.06);
  border: 1.5px solid rgba(4,34,58,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(4,34,58,0.5);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}
.portrait-box small {
  font-size: 0.78rem;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════
   LOCATION & SCHEDULE
════════════════════════════════════════════════════ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.location-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-box {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 32px;
  flex: 1;
}

.good-to-know-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
}

.good-to-know-list li {
  display: flex;
  flex-direction: column;
}

.bus-indent {
  padding-right: 1.4em;
}

.location-details {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.location-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.location-icon { font-size: 1.4rem; flex-shrink: 0; }
.location-row strong {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.location-row p { font-size: 0.93rem; color: var(--ink-60); }
.map-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
}
.map-link:hover { opacity: 0.75; }

.schedule-box {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 32px;
}
.schedule-heading {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.schedule-note {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-60);
}
.schedule-list { display: flex; flex-direction: column; }
.schedule-list li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-10);
  font-size: 0.9rem;
  align-items: baseline;
}
.schedule-list li:last-child { border-bottom: none; }
.sched-time {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--green);
  direction: ltr;
  min-width: 104px;
}
.sched-break .sched-time,
.sched-break span { color: var(--ink-60); font-style: italic; }

/* ════════════════════════════════════════════════════
   TESTIMONIALS — green bg, CQCM-style cards
════════════════════════════════════════════════════ */
#testimonials .section-title { color: #04223A !important; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.t-card-body {
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.t-quote-mark {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
  font-family: Georgia, serif;
}
.t-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
}
.t-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green);
  margin-top: auto;
}

/* ════════════════════════════════════════════════════
   REGISTER — ink bg
════════════════════════════════════════════════════ */
.register-wrap {
  display: flex;
  justify-content: center;
}

.register-header { padding-top: 8px; }

.price-display {
  display: flex;
  align-items: center;
  margin-top: 32px;
  border: 1.5px solid rgba(254,254,255,0.2);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.price-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  gap: 4px;
}
.price-num {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(254,254,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-sep {
  width: 1px;
  height: 56px;
  background: rgba(254,254,255,0.15);
}

.limited-tag {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--coral);
}
.limited-tag-centered {
  margin-top: 8px;
  margin-bottom: 4px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Form */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 460px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(254,254,255,0.75);
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input::placeholder { color: rgba(3,25,38,0.35); }
.form-group input:focus { border-color: var(--coral); }
.form-group input.error { border-color: #ff6b6b; }

.field-error {
  font-size: 0.8rem;
  color: #ff8585;
  min-height: 1em;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--coral);
  cursor: pointer;
}
.checkbox-label span {
  font-size: 0.85rem;
  color: rgba(254,254,255,0.65);
  line-height: 1.55;
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  margin-top: 4px;
}
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
#register { padding-bottom: 32px; }

.footer {
  background: #010e18;
  border-top: 1px solid rgba(254,254,255,0.08);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo  { height: 288px; width: auto; margin-top: -48px; margin-bottom: -48px; }
.footer-logo-text { font-size: 1rem; font-weight: 800; color: var(--paper); }
.footer-email {
  font-size: 0.88rem;
  color: var(--blue);
  font-weight: 500;
  transition: opacity var(--transition);
}
.footer-email:hover { opacity: 0.7; }
.footer-credit { font-size: 0.875rem; font-weight: 700; color: rgba(254,254,255,0.45); margin-bottom: 4px; }
.footer-credit-link { color: rgba(254,254,255,0.7); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit-link:hover { color: #fff; }
.footer-copy { font-size: 0.78rem; font-weight: 700; color: rgba(254,254,255,0.28); }
.image-credit-bar {
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--coral);
  opacity: 0.85;
  transition: opacity var(--transition);
}
.social-item:hover { opacity: 1; }
.social-icon {
  width: 28px;
  height: 28px;
}
.social-email-text {
  font-size: 0.75rem;
  color: rgba(254,254,255,0.5);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero-panel { padding: 48px 40px; }

  .cards-grid    { grid-template-columns: repeat(2, 1fr); }
  .for-whom-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { max-width: 380px; margin: 0 auto; }

  .instructor-grid { grid-template-columns: 1fr; gap: 32px; align-items: center; }
  .instructor-portrait { margin: 0 auto; }

  .register-wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile (≤ 700px) */
@media (max-width: 700px) {
  .desktop-br { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }

  /* Hero stacks: image on top, panel below */
  .hero { flex-direction: column; min-height: auto; }
  .hero-image {
    order: -1;
    min-height: 60vw;
    max-height: 55vh;
  }
  .hero-panel {
    flex: none;
    padding: 40px 20px;
  }
  .hero-logo { padding-bottom: 8px; }

  .cards-grid    { grid-template-columns: 1fr; }
  .for-whom-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }

  .register-wrap { gap: 40px; }
}

/* ════════════════════════════════════════════════════
   THANK-YOU PAGE
════════════════════════════════════════════════════ */
.thankyou-page {
  min-height: 100svh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--paper);
}

.thankyou-img-wrap {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 48px;
}
.thankyou-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}
.thankyou-img-credit {
  background: rgba(0,0,0,0.5);
  color: rgba(254,254,255,0.5);
  font-size: 0.75rem;
  padding: 6px 12px;
  text-align: left;
}

.thankyou-content { max-width: 520px; }

.thankyou-heading {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 24px;
  line-height: 1.45;
}

.thankyou-sub {
  font-size: 0.97rem;
  color: rgba(254,254,255,0.65);
  line-height: 1.7;
  margin-top: 24px;
}
.thankyou-sub a { color: var(--blue); }
.thankyou-sub strong { color: var(--paper); }
