/*
Theme Name:   עד המפתח Child Theme
Theme URI:    https://2key.co.il
Description:  Child Theme עבור חברת עד המפתח — ייעוץ וליווי דיור
Author:       עד המפתח
Author URI:   https://2key.co.il
Template:     hello-elementor
Version:      1.0.0
Text Domain:  ad-hamafteach-child
Tags:         rtl-language, hebrew
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --color-primary:      #1A3A6B;
  --color-secondary:    #2E6DB4;
  --color-accent:       #4A90D9;
  --color-bg-light:     #EBF4FF;
  --color-bg-white:     #FFFFFF;
  --color-text-dark:    #1A2B4A;
  --color-text-medium:  #4A5568;
  --color-border:       #C9DFF5;

  --radius-card:        16px;
  --radius-btn:         50px;

  --shadow-card:        0 4px 20px rgba(26, 58, 107, 0.10);
  --shadow-hover:       0 8px 30px rgba(26, 58, 107, 0.18);

  --font-main:          'Rubik', sans-serif;
  --transition:         all 0.3s ease;
}

/* ============================================================
   GLOBAL / RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  font-family: var(--font-main);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

/* ============================================================
   HEADER — STICKY + SHADOW
   ============================================================ */
.site-header,
#masthead,
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg-white);
  box-shadow: 0 2px 12px rgba(26, 58, 107, 0.12);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled,
#masthead.scrolled {
  box-shadow: 0 4px 20px rgba(26, 58, 107, 0.18);
}

/* Logo */
.site-logo img,
.custom-logo,
.elementor-widget-site-logo img {
  max-height: 60px;
  width: auto;
  transition: var(--transition);
}

.site-logo img:hover,
.custom-logo:hover {
  opacity: 0.85;
}

/* Navigation */
.main-navigation,
.elementor-nav-menu {
  direction: rtl;
}

.main-navigation ul,
.elementor-nav-menu__container {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  align-items: center;
}

.main-navigation ul li a,
.elementor-nav-menu--main .elementor-item {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
}

.main-navigation ul li a:hover,
.elementor-nav-menu--main .elementor-item:hover,
.main-navigation ul li.current-menu-item > a,
.elementor-nav-menu--main .elementor-item.elementor-item-active {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

/* CTA Button in nav */
.nav-cta,
.menu-item-cta a {
  background-color: var(--color-primary) !important;
  color: var(--color-bg-white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-btn) !important;
  font-weight: 600 !important;
}

.nav-cta:hover,
.menu-item-cta a:hover {
  background-color: var(--color-secondary) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   HERO SECTION — TWO COLUMNS RTL
   ============================================================ */
.section-hero,
.elementor-section.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-white) 100%);
  padding: 80px 0;
  position: relative;
}

/* Overlay כהה על תמונת הרקע */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(26,58,107,0.85) 50%, rgba(26,58,107,0.4) 100%);
  z-index: 0;
  pointer-events: none;
}

.section-hero .hero-inner,
.section-hero .hero-wave {
  position: relative;
  z-index: 1;
}

/* טקסט לבן על הoverlay */
.section-hero .hero-title         { color: #fff; }
.section-hero .hero-highlight     { color: var(--color-accent); }
.section-hero .hero-sub           { color: rgba(255,255,255,0.88); }
.section-hero .hero-phone-direct  { color: rgba(255,255,255,0.75); }
.section-hero .hero-phone-link    { color: #fff; }
.section-hero .hero-phone-link:hover { color: var(--color-accent); }

.section-hero .hero-badge {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.section-hero .badge-check {
  background-color: rgba(255,255,255,0.25);
  color: #fff;
}

.section-hero .lead-form {
  background-color: rgba(255,255,255,0.97);
}

.hero-inner {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  flex: 1;
  text-align: right;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  color: var(--color-text-medium);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hover);
  max-width: 100%;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  flex-direction: row-reverse;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--color-primary);
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card,
.elementor-widget-container .service-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: right;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: visible; /* no clipping on hover */
  cursor: pointer;
  will-change: transform;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  transition: var(--transition);
}

.service-card:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: 0 12px 36px rgba(26,58,107,0.22);
}

/* מנע overflow חיתוך בגריד */
.services-grid {
  overflow: visible;
  padding-bottom: 12px;
}

.service-card:hover::before {
  width: 0;
}

/* Icon */
.service-card .service-icon,
.service-card .elementor-icon-box-icon {
  width: 72px;
  height: 72px;
  background-color: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-right: auto;
  margin-left: 0;
  transition: var(--transition);
  font-size: 28px;
  color: var(--color-primary);
  overflow: hidden;
  padding: 12px;
}

.service-card .service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.service-card:hover .service-icon img {
  filter: brightness(0) invert(1);
}

.service-card:hover .service-icon,
.service-card:hover .elementor-icon-box-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-bg-white);
}

/* Text */
.service-card .service-title,
.service-card h3,
.service-card .elementor-icon-box-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  transition: var(--transition);
}

.service-card:hover .service-title,
.service-card:hover h3,
.service-card:hover .elementor-icon-box-title {
  color: var(--color-bg-white);
}

.service-card .service-desc,
.service-card p,
.service-card .elementor-icon-box-description {
  font-size: 15px;
  color: var(--color-text-medium);
  line-height: 1.7;
  transition: var(--transition);
}

.service-card:hover .service-desc,
.service-card:hover p,
.service-card:hover .elementor-icon-box-description {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border-bottom: 4px solid var(--color-secondary);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--color-primary);
}

.team-card .team-photo,
.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-border);
  margin: 0 auto 20px;
  display: block;
  transition: var(--transition);
}

.team-card:hover .team-photo,
.team-card:hover img {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px var(--color-bg-light);
}

.team-card .team-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.team-card .team-role {
  font-size: 14px;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 14px;
}

.team-card .team-bio {
  font-size: 14px;
  color: var(--color-text-medium);
  line-height: 1.7;
}

/* ============================================================
   PROCESS SECTION — DARK BLUE BG + HORIZONTAL STEPS + ARROWS
   ============================================================ */
.section-process,
.process-section {
  background-color: var(--color-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-process::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: rgba(74, 144, 217, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.section-process .section-title,
.process-section h2 {
  color: var(--color-bg-white);
  text-align: center;
  margin-bottom: 12px;
}

.section-process .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 16px;
  margin-bottom: 56px;
}

.process-steps {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

/* Arrow between steps (via pseudo-element on the connector) */
.process-step:not(:first-child)::after {
  content: '←';
  position: absolute;
  top: 28px;
  left: -10px;
  font-size: 22px;
  color: var(--color-accent);
  font-weight: 300;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-bg-white);
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-bg-white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wapulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

@keyframes wapulse {
  0%   { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0    rgba(37, 211, 102, 0); }
}

/* Tooltip */
.whatsapp-float::before {
  content: 'דברו איתנו';
  position: absolute;
  right: 72px;
  left: auto;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.whatsapp-float:hover::before {
  opacity: 1;
}

/* ============================================================
   GENERAL SECTIONS
   ============================================================ */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-align: right;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-medium);
  margin-bottom: 48px;
  text-align: right;
}

.section-title .highlight {
  color: var(--color-secondary);
}

/* Divider accent */
.title-underline {
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin: 12px 0 32px;
}

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

/* ============================================================
   TESTIMONIALS / REVIEWS
   ============================================================ */
.testimonial-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: right;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 80px;
  color: var(--color-bg-light);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-size: 15px;
  color: var(--color-text-medium);
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 15px;
}

.testimonial-stars {
  color: #F6C90E;
  font-size: 16px;
  margin-bottom: 12px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  padding: 40px 0;
}

.stats-grid {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.stat-item {
  text-align: center;
  color: var(--color-bg-white);
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 15px;
  opacity: 0.85;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 20px;
  text-align: right;
  direction: rtl;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--color-bg-white);
  font-size: 17px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-bg-white);
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   ELEMENTOR OVERRIDES
   ============================================================ */
.elementor-section .elementor-container {
  direction: rtl;
}

.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-main) !important;
}

.elementor-button {
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-btn) !important;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .process-steps {
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Process */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .process-step::after {
    content: '↓' !important;
    top: auto;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Stats */
  .stats-grid {
    flex-direction: column;
    gap: 28px;
  }

  /* WhatsApp */
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float::before {
    display: none;
  }

  /* Nav */
  .main-navigation ul {
    flex-direction: column;
  }

  /* Section padding */
  .section-padding {
    padding: 52px 0;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .service-card {
    padding: 24px 20px;
  }

  .team-card {
    padding: 24px 16px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
}


/* ============================================================
   HEADER — LAYOUT (PHP template)
   ============================================================ */
.header-inner {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

/* Logo text */
.site-logo-link {
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-medium);
  letter-spacing: 0.3px;
}

/* Nav list */
.main-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 7px 14px;
  border-radius: 20px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

/* Header CTA button */
.header-cta-btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 7px;
  background-color: var(--color-primary);
  color: #fff !important;
  font-size: 15.5px;      /* +2px */
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  direction: ltr;          /* מספר טלפון תמיד LTR */
}

.header-cta-btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.hamburger:hover { background-color: var(--color-bg-light); }

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.is-active .ham-line-1 { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .ham-line-2 { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .ham-line-3 { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
  opacity: 1;
}


/* ============================================================
   HERO — additional styles (PHP template)
   ============================================================ */

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #16A34A;
  border: none;
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}

/* override hero overlay badge colors — already green, keep as-is */
.section-hero .hero-badge {
  background-color: #16A34A;
  border-color: transparent;
  color: #fff;
}

.section-hero .badge-check {
  background-color: transparent;
  color: #fff;
}

/* Hero heading */
.hero-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero-highlight {
  color: var(--color-secondary);
  position: relative;
}

.hero-sub {
  font-size: 17px;
  color: var(--color-text-medium);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 500px;
}

/* Lead form */
.lead-form {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.lead-form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 16px;
}

.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.lead-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  direction: rtl;
  text-align: right;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.lead-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(46, 109, 180, 0.12);
}

.lead-input::placeholder {
  color: #9BA8BB;
}

.lead-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.lead-submit-btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Phone direct */
.hero-phone-direct {
  font-size: 15px;
  color: var(--color-text-medium);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;   /* RTL: טקסט בימין, מספר בשמאל */
  justify-content: flex-start;
  margin: 0;
}

.hero-phone-text {
  white-space: nowrap;
}

.hero-phone-link {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 17px;        /* +2px מהגודל הקודם */
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;          /* מספר טלפון תמיד LTR */
}

.hero-phone-link:hover { color: var(--color-primary); }

/* Hero visual / image placeholder */
.hero-visual {
  flex: 0 0 40%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  width: 100%;
  max-width: 380px;
  position: relative;
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-medium);
  font-size: 13px;
  border: 3px dashed var(--color-border);
}

/* Real hero illustration */
.hero-illustration {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(26, 58, 107, 0.15));
}

/* ── כרטיס סטטיסטיקות Hero ── */
.hero-stats-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-stats-header {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.hero-stats-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-stats-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-stat-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 14px;
}

.hero-stat-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stat-info {
  text-align: right;
  flex: 1;
}

.hero-stat-val {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.hero-stat-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.hero-stats-cta {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: var(--transition);
}

.hero-stats-cta:hover {
  background-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Stat badges */
.hero-stat-badge {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-hover);
  text-align: center;
  min-width: 100px;
}

.hero-stat-badge strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 2px;
}

.hero-stat-badge span {
  font-size: 11px;
  color: var(--color-text-medium);
  white-space: nowrap;
}

.badge-top    { top: 10%;  right: -12px; }
.badge-bottom { bottom: 15%; left: -12px; }

/* Wave */
.hero-wave {
  line-height: 0;
  margin-bottom: -2px;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* Form feedback */
.form-success,
.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.form-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.form-success--dark {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}


/* ============================================================
   SECTION — WHY US
   ============================================================ */
.section-why {
  background-color: var(--color-bg-light);
}

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

.why-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: right;
  box-shadow: var(--shadow-card);
  border-top: 3px solid transparent;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--color-accent);
}

.why-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-bg-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-primary);
  transition: var(--transition);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card:hover .why-icon {
  background-color: var(--color-primary);
  color: #fff;
}

.why-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.why-desc {
  font-size: 14px;
  color: var(--color-text-medium);
  line-height: 1.7;
  margin: 0;
}


/* ============================================================
   SERVICES — overrides for 4×2 grid
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.services-cta {
  text-align: center;
}

.services-cta .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}


/* ============================================================
   TEAM — 5 cards grid
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.team-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.team-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-card:hover .team-photo-placeholder {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(46, 109, 180, 0.12);
}


/* ============================================================
   PROCESS — step layout with arrows
   RTL: flex-direction row + direction:rtl → שלב 1 בימין
   ============================================================ */
.process-steps {
  display: flex;
  flex-direction: row; /* direction:rtl גורם להתחלה מימין */
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  direction: rtl;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 8px;
  min-width: 0;
}

.process-arrow {
  display: flex;
  align-items: flex-start;
  padding-top: 14px;
  flex-shrink: 0;
  font-size: 22px;
  color: rgba(255,255,255,0.45);
  line-height: 1;
  user-select: none;
}

.step-number--final {
  background: linear-gradient(135deg, #25D366, #1a9e4e);
}

.step-body {
  margin-top: 4px;
}


/* ============================================================
   TESTIMONIALS — 3-column grid
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card blockquote {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.testimonial-city {
  font-size: 12px;
  color: var(--color-text-medium);
  font-weight: 400;
}


/* ============================================================
   CTA SECTION — gradient
   ============================================================ */
.section-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}

/* CTA form */
.cta-form {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-card);
  padding: 32px;
  backdrop-filter: blur(6px);
}

.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.cta-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cta-input,
.cta-select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-dark);
  background: rgba(255,255,255,0.95);
  direction: rtl;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
  box-sizing: border-box;
}

.cta-input:focus,
.cta-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.25);
  background: #fff;
}

.cta-input::placeholder { color: #9BA8BB; }

.cta-select {
  /* custom arrow ▾ */
  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='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
  cursor: pointer;
}

.cta-select option {
  background-color: #fff;
  color: var(--color-text-dark);
  direction: rtl;
}

.cta-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cta-submit-btn:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: row-reverse;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin: 16px 0 0;
}


/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-hero-bar {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-white) 100%);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: clamp(26px, 4vw, 40px);
  color: var(--color-primary);
  margin: 12px 0 0;
}

.breadcrumb {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-medium);
}

.breadcrumb a {
  color: var(--color-secondary);
}

.breadcrumb-sep {
  color: var(--color-border);
}

.page-content-wrap {
  padding: 60px 0;
}

.page-content-inner {
  max-width: 800px;
}


/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--color-secondary);
}


/* ============================================================
   UTILITY
   ============================================================ */
.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;
}

.text-center { text-align: center !important; }
.text-right  { text-align: right !important; }


/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid          { grid-template-columns: repeat(2, 1fr); }
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .team-grid         { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-form-grid     { grid-template-columns: 1fr 1fr; }
  .cta-submit-btn    { grid-column: span 2; }

  .hero-stats-card { max-width: 280px; }

  .process-steps {
    flex-wrap: wrap;
    gap: 8px;
  }

  .process-arrow { display: none; }

  .process-step {
    flex: 0 0 calc(33.333% - 8px);
    padding-bottom: 20px;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* ── Header ── */
  .header-inner { height: 62px; }

  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 62px;
    right: 0;
    width: min(300px, 85vw);
    height: calc(100vh - 62px);
    background-color: var(--color-bg-white);
    box-shadow: -4px 0 24px rgba(26,58,107,0.18);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-overlay { display: block; }

  body.menu-open .main-nav { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
    gap: 2px;
  }

  .nav-link {
    padding: 13px 16px;
    font-size: 16px;
    border-radius: 10px;
    display: block;
    text-align: right;
    width: 100%;
  }

  .header-cta-btn span { display: none; }
  .header-cta-btn      { padding: 9px 12px; }
  .header-cta-btn svg  { width: 18px; height: 18px; }

  /* ── Hero: עמודה אחת, טקסט למעלה, כרטיס למטה ── */
  .hero-inner {
    flex-direction: column;
    gap: 28px;
    padding: 40px 20px 20px;
  }

  .hero-content { order: 1; flex: unset; width: 100%; }
  .hero-visual  {
    order: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    flex: unset;
  }

  .hero-stats-card { max-width: 100%; width: 100%; }

  .hero-sub          { font-size: 15px; }
  .lead-form-row     { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(26px, 7vw, 36px); }

  /* ── Why ── */
  .why-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── Services: 2×4 ── */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ── Team: 2 בשורה ── */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* ── Process: אנכי עם קו מחבר ── */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
  }

  /* קו אנכי מחבר */
  .process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    width: 2px;
    background: rgba(255,255,255,0.2);
    z-index: 0;
  }

  .process-arrow { display: none; }

  .process-step {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 16px;
    text-align: right;
    width: 100%;
    max-width: 340px;
    padding: 0 0 24px;
    position: relative;
    z-index: 1;
  }

  .step-body  { flex: 1; }
  .step-title { font-size: 15px; }
  .step-desc  { font-size: 13px; }

  .step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  /* ── Testimonials ── */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* ── CTA form ── */
  .cta-form       { padding: 20px; }
  .cta-form-grid  { grid-template-columns: 1fr; gap: 10px; }
  .cta-submit-btn { grid-column: span 1; justify-content: center; width: 100%; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* ── Scroll to top ── */
  .scroll-top-btn { bottom: 20px; right: 20px; }

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


/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Services: שמור 2 עמודות — לא לצמצם ל-1 */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .service-card { padding: 20px 14px; }
  .service-card .service-icon { width: 52px; height: 52px; }

  /* Team: שמור 2 בשורה */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .team-card { padding: 18px 12px; }
  .team-photo-placeholder { width: 80px; height: 80px; }

  .why-card { padding: 20px 16px; }
  .hero-badge { font-size: 12px; padding: 5px 12px; }

  .btn-primary,
  .btn-outline { width: 100%; justify-content: center; }

  .lead-form { padding: 18px; }
  .lead-submit-btn { font-size: 14px; padding: 12px 18px; }
}
