/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:          #0a0a0a;
  --surface:     #141414;
  --gold:        #C0C0C0;
  --gold-dim:    rgba(192, 192, 192, 0.15);
  --text:        #ffffff;
  --text-sec:    #A0A0A0;
  --red:         #e05555;
  --radius:      12px;
  --transition:  0.3s ease;
  --pad-v:       100px;
  --pad-v-mob:   60px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* RTL / LTR root direction */
body.lang-he-active          { direction: rtl; text-align: right; }
body.lang-en-active          { direction: ltr; text-align: left; }

/* Language visibility */
body.lang-he-active .lang-en { display: none; }
body.lang-en-active .lang-he { display: none; }

/* Inline elements that are lang-specific */
span.lang-he, span.lang-en   { display: inline; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 56px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 14px;
}

body.lang-he-active .section-title::after { margin-right: 0; }
body.lang-en-active .section-title::after { margin-left: 0; }

/* CTA button — white background, black text */
.btn-gold {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 16px 36px;
  border-radius: 6px;
  border: none;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
}
.btn-gold:hover { background: #e0e0e0; transform: translateY(-2px); }

/* ============================================================
   FADE-IN ANIMATION (IntersectionObserver driven)
   ============================================================ */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  z-index: 100;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background 0.4s ease;
}

#navbar.visible {
  opacity: 1;
  pointer-events: all;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.nav-logo {
  height: 40px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  filter: invert(1);
}

#lang-toggle {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: background var(--transition), color var(--transition);
}
#lang-toggle:hover {
  background: var(--gold);
  color: #000;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Grayscale via luminosity blend — no filter stacking context issues */
#hero {
  background-image: url('images/hero-photo.jpg');
  background-color: #6a6a6a;
  background-blend-mode: luminosity;
  background-size: cover;
  background-position: center top;
}

/* Dark overlay for readability */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

body.lang-he-active .hero-content { margin-right: 0; }
body.lang-en-active .hero-content { margin-left: 0; }

.hero-text { display: flex; flex-direction: column; gap: 24px; }

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  line-height: 1.7;
}

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
#problem {
  padding: var(--pad-v) 0;
  position: relative;
  overflow: hidden;
}

/* Grayscale via luminosity blend */
#problem {
  background-image: url('images/coaching-photo.jpg');
  background-color: #6a6a6a;
  background-blend-mode: luminosity;
  background-size: cover;
  background-position: center;
}

/* Dark overlay for readability */
#problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.problem-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.problem-statement {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.solution-block h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
}

.solution-block p {
  color: var(--text-sec);
  line-height: 1.7;
}

/* ============================================================
   CORE VALUES — CARDS
   ============================================================ */
#values {
  padding: var(--pad-v) 0;
  background: var(--surface);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid rgba(192,192,192,0.12);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.card p {
  color: var(--text-sec);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
#process {
  padding: var(--pad-v) 0;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 0 24px;
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.step p {
  color: var(--text-sec);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 240px;
}

.step-divider {
  width: 1px;
  height: 80px;
  background: rgba(192,192,192,0.25);
  align-self: center;
  flex-shrink: 0;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
#testimonials {
  padding: var(--pad-v) 0;
  background: var(--surface);
}

.testimonials-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent; /* --gold is now #C0C0C0 */
  margin-bottom: 48px;
}

.testimonials-scroll::-webkit-scrollbar { height: 4px; }
.testimonials-scroll::-webkit-scrollbar-track { background: transparent; }
.testimonials-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.testimonial-card {
  background: var(--bg);
  border: 1px solid rgba(192,192,192,0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  min-width: 300px;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-mark {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 0.8;
}

.testimonial-card p {
  color: var(--text-sec);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.client-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}

/* Before / After grid */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ba-placeholder {
  aspect-ratio: 3 / 4;
  background: var(--bg);
  border: 1px dashed rgba(192,192,192,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================================
   APPLICATION FORM
   ============================================================ */
#apply {
  padding: var(--pad-v) 0;
}

.form-wrap {
  max-width: 700px;
}

.form-intro {
  color: var(--text-sec);
  margin-bottom: 40px;
  font-size: 1rem;
}

#apply-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group.full-width { grid-column: 1 / -1; }

.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 0.02em;
}

.field-group input,
.field-group select,
.field-group textarea {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

body.lang-he-active .field-group select { direction: rtl; }
body.lang-en-active .field-group select { direction: ltr; }

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192,192,192,0.12);
}

/* Validation styling — only after user has interacted (.touched class added on blur by JS) */
.field-group input.touched:invalid,
.field-group select.touched:invalid,
.field-group textarea.touched:invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 85, 85, 0.1);
}

.field-group input.touched:valid,
.field-group select.touched:valid,
.field-group textarea.touched:valid {
  border-color: rgba(192,192,192,0.5);
  box-shadow: 0 0 0 3px rgba(192,192,192,0.08);
}

/* Force placeholder trick for number/email/tel */
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

/* Select placeholder color */
select option[value=""] { color: var(--text-sec); }
select { color: var(--text); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0A0A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; }

body.lang-he-active select { background-position: left 14px center; padding-left: 36px; }
body.lang-en-active select { background-position: right 14px center; padding-right: 36px; }

textarea { resize: vertical; min-height: 100px; }

/* Checkbox */
.checkbox-group { justify-content: flex-start; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--gold);
  margin-top: 2px;
  border: none;
  padding: 0;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Success message */
.form-success {
  background: rgba(192,192,192,0.1);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  grid-column: 1 / -1;
}

.form-success[hidden] { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: invert(1);
  display: block;
}

.footer-copy {
  color: var(--text-sec);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-sec);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .hero-content,
  body.lang-en-active .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    aspect-ratio: 16 / 9;
    max-height: 320px;
    order: -1;
  }

  .two-col,
  body.lang-en-active .two-col {
    grid-template-columns: 1fr;
  }

  .solution-image { aspect-ratio: 16 / 9; max-height: 280px; }

  .before-after-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --pad-v: var(--pad-v-mob);
  }

  #hero { padding: 100px 20px 60px; }

  .cards-grid { grid-template-columns: 1fr; }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step-divider {
    width: 80px;
    height: 1px;
    align-self: auto;
  }

  .step { padding: 0; }
  .step p { max-width: 100%; }

  #apply-form { grid-template-columns: 1fr; }
  .field-group.full-width { grid-column: 1; }

  .before-after-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .section-title::after { margin: 14px auto 0; }
  body.lang-he-active .section-title::after { margin-right: auto; }
  body.lang-en-active .section-title::after { margin-left: auto; }

  .section-title { text-align: center; }

  .step { text-align: center; align-items: center; }
}
