/* ========== LK FINANCE — POLISH LAYER ==========
   7 surgical micro-refinements that elevate the existing design.
   Each block can be commented out individually for rollback.
   Loaded AFTER styles.css → overrides take precedence.
   Added: 2026-05-13
*/

/* ===== 1. Tighter display tracking ===== */
.h-display { letter-spacing: -0.025em; }
.h-1       { letter-spacing: -0.020em; }
.h-2       { letter-spacing: -0.015em; }
.h-3       { letter-spacing: -0.010em; }
.brand-name { letter-spacing: -0.02em; }

/* ===== 2. Nav backdrop blur on scroll ===== */
.nav {
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom-color 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(250, 252, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

/* ===== 3. Layered shadows (depth) ===== */
.brand-card {
  box-shadow:
    0 1px 2px rgba(10, 22, 40, 0.04),
    0 8px 16px -4px rgba(10, 22, 40, 0.06),
    0 24px 48px -12px rgba(46, 164, 160, 0.16),
    0 40px 80px -20px rgba(46, 164, 160, 0.10);
}
.pain-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  box-shadow:
    0 1px 2px rgba(10, 22, 40, 0.03),
    0 4px 12px -2px rgba(10, 22, 40, 0.05);
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(10, 22, 40, 0.05),
    0 12px 24px -4px rgba(10, 22, 40, 0.08),
    0 24px 48px -12px rgba(46, 164, 160, 0.16);
}
.form-card {
  box-shadow:
    0 1px 2px rgba(10, 22, 40, 0.04),
    0 12px 24px -6px rgba(10, 22, 40, 0.08),
    0 40px 80px -20px rgba(27, 123, 184, 0.16);
}

/* ===== 4. CTA gleam ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--teal-2) 0%, var(--teal) 100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%);
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn-primary:hover::before {
  transform: translateX(-100%);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(27, 123, 184, 0.42);
}

/* ===== 5. Animated underline on nav links ===== */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  width: 100%;
}

/* ===== 6. Smoother reveal-on-scroll easing ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 7. Grain — REMOVED 13.5.26 (Lior wants lighter background) ===== */
/* body::after intentionally not styled — clean background, no texture overlay */

/* ===== BONUS: Form field premium focus state ===== */
.form-field input,
.form-field textarea,
.form-field select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 164, 160, 0.14);
}

/* ===== Reduced motion (accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .nav,
  .btn-primary,
  .btn-primary::before,
  .pain-card,
  .nav-links a::after {
    transition: none !important;
    animation: none !important;
  }
  body::after { display: none; }
}


/* ============================================================
   2026-05-13 ADDITIONS — Lior's requests
   ============================================================ */

/* ===== 8. Minimal footer (replace verbose footer) ===== */
.footer-minimal { padding: 64px 0 32px; border-top: 1px solid var(--hairline); margin-top: 80px; }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-bottom: 36px;
}
.footer-brand-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 2px rgba(10,22,40,0.04),
    0 8px 24px -6px rgba(46,164,160,0.18),
    0 24px 48px -16px rgba(46,164,160,0.12);
  padding: 12px;
}
.footer-brand-logo img { width: 100%; height: auto; }
.footer-brand-statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink);
  letter-spacing: -0.015em;
}
.footer-legal-band {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}
.footer-legal-band a {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-legal-band a:hover { color: var(--teal-2); border-bottom-color: var(--teal); }
.footer-legal-band .sep { opacity: 0.4; }
.footer-disclaimer { opacity: 0.75; max-width: 600px; }

/* ===== 9. WhatsApp Floating Action Button (RIGHT side — chatbot will sit LEFT) ===== */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  animation: wa-pulse 2.6s ease-in-out infinite;
  text-decoration: none;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 14px 36px rgba(37, 211, 102, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.18);
  animation-play-state: paused;
}
.wa-fab svg { width: 34px; height: 34px; display: block; }
.wa-fab::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  opacity: 0;
  animation: wa-ring 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(37, 211, 102, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(37, 211, 102, 0.45),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
}
@keyframes wa-ring {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
@media (max-width: 720px) {
  .wa-fab { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .wa-fab svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-fab::after { animation: none; }
}

/* ===== 10. CTA emphasis — lead capture buttons ===== */
.form-submit, .btn-primary.form-submit {
  position: relative;
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--teal) 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(46, 164, 160, 0.35),
    0 12px 36px rgba(27, 123, 184, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: cta-glow 3s ease-in-out infinite;
}
.form-submit:hover, .btn-primary.form-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px rgba(46, 164, 160, 0.5),
    0 18px 50px rgba(27, 123, 184, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation-play-state: paused;
}
@keyframes cta-glow {
  0%, 100% { box-shadow:
    0 0 0 1px rgba(46, 164, 160, 0.35),
    0 12px 36px rgba(27, 123, 184, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow:
    0 0 0 1px rgba(46, 164, 160, 0.55),
    0 16px 44px rgba(27, 123, 184, 0.45),
    0 0 0 6px rgba(46, 164, 160, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}
@media (prefers-reduced-motion: reduce) {
  .form-submit, .btn-primary.form-submit { animation: none; }
}


/* ============================================================
   11. LK CHATBOT — "הבוט של ליאור קרני"
   Navy circle (left), dark logo treatment, chat panel slides up
   ============================================================ */

#lk-bot { position: fixed; bottom: 28px; left: 24px; z-index: 9998; direction: rtl; }

/* === FAB === */
.lk-bot-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A1628 0%, #1A2340 100%);
  border: 2px solid rgba(46, 164, 160, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 8px 24px rgba(10, 22, 40, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  padding: 0;
}
.lk-bot-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 14px 36px rgba(10, 22, 40, 0.45),
    0 4px 10px rgba(46, 164, 160, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.lk-bot-fab img {
  width: 36px;
  height: 36px;
  /* Logo on dark navy — brighten + warm tint to read as light */
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(140deg) brightness(1.1);
  opacity: 0.95;
}
.lk-bot-fab::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(46, 164, 160, 0.55);
  opacity: 0;
  animation: lk-bot-ring 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lk-bot-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}
.lk-bot-fab.lk-bot-fab-open::before { animation: none; opacity: 0; }
.lk-bot-fab.lk-bot-fab-open {
  background: linear-gradient(135deg, #2EA4A0 0%, #1B7BB8 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

/* === Panel === */
.lk-bot-panel {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(10, 22, 40, 0.06),
    0 24px 64px -8px rgba(10, 22, 40, 0.18),
    0 48px 96px -24px rgba(46, 164, 160, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  font-family: var(--font-body);
}
.lk-bot-panel.lk-bot-panel-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* === Header === */
.lk-bot-header {
  background: linear-gradient(135deg, #0A1628 0%, #1A2340 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(46, 164, 160, 0.25);
}
.lk-bot-header-info { display: flex; align-items: center; gap: 12px; }
.lk-bot-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(46, 164, 160, 0.18);
  padding: 7px;
  border: 1px solid rgba(46, 164, 160, 0.4);
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(140deg) brightness(1.1);
}
.lk-bot-header-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lk-bot-header-status {
  font-size: 12px;
  color: rgba(191, 227, 242, 0.85);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lk-bot-header-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2EA4A0;
  box-shadow: 0 0 8px rgba(46, 164, 160, 0.7);
  animation: lk-bot-pulse 2s ease-in-out infinite;
}
@keyframes lk-bot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.lk-bot-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.lk-bot-close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }

/* === Messages === */
.lk-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #FAFCFF 0%, #F2F8FC 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 22, 40, 0.18) transparent;
}
.lk-bot-messages::-webkit-scrollbar { width: 6px; }
.lk-bot-messages::-webkit-scrollbar-thumb { background: rgba(10, 22, 40, 0.18); border-radius: 3px; }

.lk-bot-message {
  display: flex;
  max-width: 85%;
}
.lk-bot-message-bot { align-self: flex-start; }
.lk-bot-message-user { align-self: flex-end; }

.lk-bot-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.lk-bot-message-bot .lk-bot-bubble {
  background: #FFFFFF;
  color: var(--ink);
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.06), 0 4px 12px -2px rgba(10, 22, 40, 0.05);
  border: 1px solid var(--hairline);
}
.lk-bot-message-user .lk-bot-bubble {
  background: linear-gradient(135deg, #1B7BB8 0%, #2EA4A0 100%);
  color: #fff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(27, 123, 184, 0.25);
}

.lk-bot-message-enter {
  animation: lk-bot-msg-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes lk-bot-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Typing indicator === */
.lk-bot-typing { display: inline-flex; gap: 4px; align-items: center; min-width: 44px; }
.lk-bot-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
  animation: lk-bot-dot 1.2s ease-in-out infinite;
}
.lk-bot-typing span:nth-child(2) { animation-delay: 0.15s; }
.lk-bot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lk-bot-dot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* === Input === */
.lk-bot-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--hairline);
}
.lk-bot-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #FAFCFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
}
.lk-bot-input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 164, 160, 0.14);
}
.lk-bot-send {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1B7BB8 0%, #2EA4A0 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 12px rgba(27, 123, 184, 0.28);
}
.lk-bot-send:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27, 123, 184, 0.4); }
.lk-bot-send svg { width: 18px; height: 18px; transform: scaleX(-1); }

/* === Footer === */
.lk-bot-footer {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 8px 14px 10px;
  background: #fff;
  border-top: 1px solid var(--hairline);
  opacity: 0.7;
}

/* === Mobile === */
@media (max-width: 720px) {
  #lk-bot { bottom: 18px; left: 18px; }
  .lk-bot-fab { width: 58px; height: 58px; }
  .lk-bot-fab img { width: 30px; height: 30px; }
  .lk-bot-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 110px);
    max-height: 720px;
    bottom: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk-bot-fab::before { animation: none; }
  .lk-bot-message-enter { animation: none; }
}
