/* =============================================
   NITZAN DIGITAL – Landing Page CSS
   Theme: Brown / Beige / Warm Neutrals
   Direction: RTL (Hebrew)
   ============================================= */

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

:root {
  --brand-slate: #2F3D4C;
  /* Main Dark Slate from Logo */
  --brand-slate-light: #4A5568;
  --brand-peach: #F1C59E;
  /* Main Peach Accent from Logo */
  --brand-peach-hover: #EBC49F;

  --bg-dark: #1A202C;
  --bg-main: #F7FAFC;
  /* Clean Light Grey/White */
  --bg-card: #FFFFFF;

  --text-primary: #1A202C;
  --text-muted: #4A5568;
  --white: #FFFFFF;

  --shadow-sm: 0 2px 10px rgba(47, 61, 76, 0.08);
  --shadow-md: 0 4px 20px rgba(47, 61, 76, 0.12);
  --shadow-lg: 0 10px 40px rgba(47, 61, 76, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 100px;

  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--brand-slate);
}

.accent-light {
  color: var(--brand-peach);
}

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-slate);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
}

.header-logo {
  height: 240px;
  width: auto;
  object-fit: contain;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-peach);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--brand-peach);
}

.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-btn {
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-dropdown-btn:hover {
  color: var(--brand-peach);
  background: rgba(255, 255, 255, 0.05);
}

.drop-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-dropdown-wrap:hover .drop-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--brand-slate-light);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  padding: 8px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 200;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop-item {
  display: block;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.drop-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-peach);
}

.nav-cta {
  background: var(--brand-peach);
  color: var(--brand-slate);
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 8px;
}

.nav-cta:hover {
  background: var(--brand-peach-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(241, 197, 158, 0.3);
}

/* ---- MOBILE MENU TOGGLE (NEW) ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  z-index: 10000;
}

@media (max-width: 1024px) {
  body.nav-open {
    overflow: hidden !important;
  }

  .nav-main {
    position: fixed;
    top: 0;
    left: -100%;
    /* Changed from right to left */
    width: 100%;
    height: 100vh;
    background: var(--brand-slate);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    padding: 40px 20px;
    display: none;
  }

  body.nav-open .nav-main {
    left: 0 !important;
    /* Changed from right to left */
    display: flex !important;
    background: var(--brand-slate);
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .nav-toggle {
    display: block !important;
  }

  .nav-link,
  .nav-dropdown-btn {
    font-size: 20px;
    padding: 12px;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    min-width: 100%;
    box-shadow: none;
    display: flex;
    /* Always flex on mobile, but height 0 */
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0;
    padding: 0;
  }

  .nav-dropdown-wrap.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
    margin-top: 15px;
    padding: 5px 0;
  }

  .nav-dropdown-wrap.active .drop-arrow {
    transform: rotate(180deg);
  }

  .nav-cta {
    margin: 20px 0 0;
    font-size: 18px;
    padding: 12px 40px;
  }
}

/* ==============================================
   FOOTER
   ============================================== */
.home-page-body .header {
  background: var(--brown-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.home-page-body .header-logo {
  filter: none;
}

.home-page-body .tab-nav {
  background: transparent;
}

.home-page-body .tab-btn {
  color: var(--beige-cream);
}

.home-page-body .tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

.home-page-body .tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: none;
}

.home-page-body .dropdown-menu {
  background: var(--brown-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.home-page-body .drop-item {
  color: var(--beige-cream);
}

.home-page-body .drop-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Lets talk section specific */
@media (max-width: 1024px) {
  .lets-talk-tablet {
    display: none !important;
  }
}

/* ---- INNER PAGES (SERVICES / ABOUT) ---- */
.opt-hero,
.about-hero {
  background: var(--brown-dark);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.opt-hero::before,
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(237, 217, 188, 0.1) 0%, transparent 65%);
}

.opt-hero-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.opt-hero h1,
.about-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}

.opt-hero-lead,
.about-hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  line-height: 1.6;
}

.about-hero-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--beige-light);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--beige-light);
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.about-card p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.opt-section {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.opt-section-alt {
  background: var(--beige-pale);
  max-width: 100%;
  border-radius: 24px;
  margin: 0 16px;
  padding: 60px 24px;
}

.opt-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: center;
}

.opt-includes-grid {
  display: grid;
  gap: 16px;
}

.opt-include-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--beige-light);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.opt-include-icon {
  width: 50px;
  height: 40px;
  border-radius: 10px;
  background: var(--beige-light);
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.opt-include-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.opt-examples-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.opt-example-pill {
  background: var(--white);
  border: 1px solid var(--beige-light);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.opt-process-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.opt-process-grid::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--beige-light);
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 768px) {
  .opt-process-grid::before {
    left: 24px;
  }
}

.opt-process-step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--beige-light);
  position: relative;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  align-self: flex-start;
  width: calc(50% - 24px);
}

.opt-process-step:nth-child(even) {
  align-self: flex-end;
  flex-direction: row-reverse;
  text-align: left;
}

@media (max-width: 768px) {

  .opt-process-step,
  .opt-process-step:nth-child(even) {
    width: 100%;
    align-self: stretch;
    flex-direction: row;
    text-align: right;
  }
}

.opt-process-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--brown-dark);
  background: var(--beige-light);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--white);
  border: 2px solid var(--brown-dark);
}

.opt-process-text {
  font-size: 18px;
  font-weight: 700;
}

.opt-cta {
  text-align: center;
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.opt-cta h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.opt-cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.opt-cta-btn {
  display: inline-block;
  background: var(--brown-dark);
  color: #fff;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(92, 61, 46, 0.3);
  transition: all 0.3s ease;
}

.opt-cta-btn:hover {
  background: var(--brown-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* WAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background: #20BA56;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.wa-icon {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.wa-label {
  font-size: 15px;
}

/* ---- INTERACTIVITY UTILITIES ---- */
.tilt-card,
.crm-pain-card,
.agent-type-card,
.service-card,
.logo-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

[data-parallax] {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.floating-icon {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- SCROLL REVEAL ANIMATIONS (global) ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(55px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-55px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal-up.visible,
.reveal-slide-right.visible,
.reveal-slide-left.visible,
.reveal-scale.visible,
.reveal.visible,
.reveal-zoom.visible,
.reveal-right.visible,
.reveal-left.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {

  .reveal-up,
  .reveal-slide-right,
  .reveal-slide-left,
  .reveal-scale,
  .reveal,
  .reveal-zoom,
  .reveal-right,
  .reveal-left {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== WHY SECTION — UNIFIED CARD LAYOUT ===== */
.crm-why-section {
  background: var(--white, #fff);
}

.crm-why-centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.crm-why-heading {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--brand-slate, #2F3D4C);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 14px;
}

.crm-why-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: var(--brown-light, #D4a373);
  border-radius: 2px;
}

.crm-why-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.crm-why-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--brand-peach, #Faf7f2);
  padding: 22px 28px;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, #2F2A26);
  text-align: right;
  direction: rtl;
  border: 1.5px solid transparent;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  line-height: 1.6;
}

.crm-why-card:hover {
  background: #fff;
  border-color: var(--brown-light, #D4a373);
  box-shadow: 0 12px 32px rgba(92, 61, 46, 0.09);
  transform: translateY(-3px);
}

.crm-why-card-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--brown-main, #A87a51);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 5px 14px rgba(168, 122, 81, 0.32);
}

@media (max-width: 600px) {
  .crm-why-heading {
    font-size: 1.9rem;
  }

  .crm-why-card {
    padding: 18px 20px;
    font-size: 1rem;
    gap: 14px;
  }

  .crm-why-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}