/* Global styles */
body {
  margin: 0;
  /* Use the Heebo font for modern Hebrew typography */
  font-family: 'Heebo', 'Arial', sans-serif;
  direction: rtl;
  text-align: right;
  color: #333;
  /* Use a light green shade for the page background instead of white */
  background-color: #f0f7f1;
}

/* Header and navigation */
header {
  background-color: #004d40;
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Override RTL so the logo image appears to the left of the text */
  direction: ltr;
}
.logo-icon {
  /* Set the arrow color to match the brand accent */
  color: #8dc63f;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style the text next to the logo icon */
.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}
.logo-img {
  width: 120px;
  height: auto;
}

nav .logo {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: #8dc63f;
}

/* Style the CTA link in the navigation */
.nav-cta {
  background-color: #8dc63f;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: bold;
  color: #004d40 !important;
  transition: background-color 0.3s;
}
.nav-cta:hover {
  background-color: #6ba529;
  color: #004d40 !important;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  /* Set relative positioning to allow absolutely positioned video */
  position: relative;
  overflow: hidden;
  /* Remove background color so that the video is visible */
  background-color: transparent;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 50%;
  max-width: 50%;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 42px;
  margin-top: 0;
  margin-bottom: 20px;
  /* Use a dark green color for the hero heading so it stands out against the light background */
  color: #004d40;
  font-weight: 700;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  /* Use dark green for paragraph text to harmonize with the heading */
  color: #004d40;
}

/* Tagline positioned below the hero action buttons */
.hero-tagline {
  /* Promote the tagline to the centre of the hero with clear typography.  */
  font-size: 24px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 0;
  line-height: 1.5;
  max-width: 800px;
  text-align: center;
  /* Center the tagline horizontally within the hero */
  margin-left: auto;
  margin-right: auto;
  /* Place the tagline on a light backdrop so it remains readable over the video */
  background-color: rgba(255, 255, 255, 0.85);
  padding: 16px 24px;
  border-radius: 8px;
  color: #000;
  /* Soften the edges and add a gentle shadow for depth */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Primary call‑to‑action styling */
.cta-button {
  background-color: #8dc63f;
  color: #004d40;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s;
  display: inline-block;
}

.cta-button:hover {
  background-color: #6ba529;
  color: #004d40;
}

/* Container for hero buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* WhatsApp button styling */
.wa-button {
  background-color: #25D366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.wa-button:hover {
  background-color: #1da94b;
}

.hero-image {
  flex: 1 1 45%;
  max-width: 45%;
  text-align: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Video container inside hero */
.hero-video-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  /* Stretch the video to the left side, cropping on the right */
  object-fit: cover;
  object-position: left center;
}

/* About image styling */
.about-image img {
  /* Limit the size of the about image so that it looks more proportional on desktop */
  width: 70%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  /* Center the image horizontally */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Section styles */
section {
  padding: 60px 20px;
}

section h2 {
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #004d40;
}

.about p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Services */
.services .service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  /* Give service cards a bright background and subtle border to stand out from the page */
  background-color: #ffffff;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin-top: 0;
  color: #004d40;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 600;
}

/* List inside service cards */
.service-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.service-list li {
  position: relative;
  padding-right: 24px;
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 16px;
}

/* Custom bullet for service list */
.service-list li::before {
  content: '\2022';
  color: #8dc63f;
  position: absolute;
  right: 0;
  font-size: 20px;
}

/* CTA inside service cards */
.card-cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 16px;
}

/* Icon styling for services and process steps */
.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  color: #00695c;
  transition: transform 0.3s ease, color 0.3s ease;
  text-align: center;
}

/* Ensure embedded SVG icons fill the icon container */
.icon svg {
  width: 100%;
  height: 100%;
}

/* Hover effects: on service card or process step hover, animate the icon */
.service-card:hover .icon,
.process-steps li:hover .icon {
  transform: scale(1.15) rotate(5deg);
  color: #8dc63f;
}

/* Process */
.process ol {
  list-style: none;
  counter-reset: process-counter;
  padding: 0;
}

/* Constrain the process list width and center it */
.process-steps {
  max-width: 600px;
  margin: 0 auto;
}

.process ol li {
  position: relative;
  padding-right: 45px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.process ol li::before {
  counter-increment: process-counter;
  content: counter(process-counter);
  position: absolute;
  right: 0;
  top: 0;
  background-color: #8dc63f;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Testimonials */
.testimonials {
  background-color: #f0f7f1;
  padding: 40px 20px;
}

.testimonial {
  /* Center each testimonial and constrain its width for a more balanced layout */
  max-width: 650px;
  margin: 0 auto 30px;
  padding: 20px;
  border-right: 5px solid #8dc63f;
  background: #fff;
  border-radius: 4px;
}

/* On smaller screens, allow the about image to fill the width */
@media (max-width: 768px) {
  .about-image img {
    width: 100%;
  }
}

.testimonial p {
  font-style: italic;
  margin: 0 0 10px;
}

.client-name {
  font-weight: bold;
  color: #004d40;
}

/* Contact */
.contact {
  /* Match the light green background used on the rest of the page */
  background-color: #f0f7f1;
}

/* Contact form styling */
.contact-form {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin: 20px auto 0 auto;
}

.contact-form input,
.contact-form textarea {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 12px 14px;
  font-size: 16px;
  font-family: 'Heebo', 'Arial', sans-serif;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  cursor: pointer;
}

/* Note under contact form */
.form-note {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

/* Contact info paragraph style */
.contact-info p {
  margin: 5px 0;
}

/* Footer */
footer {
  background-color: #004d40;
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer p {
  margin: 0;
}

/* Responsive: stack navigation and hero content on smaller screens */
@media (max-width: 768px) {
  /* Stack nav items vertically */
  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  /* Stack hero vertically and center content */
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .hero-content,
  .hero-image {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: center;
  }
  .hero-content {
    margin-bottom: 20px;
  }
  /* Center the hero buttons */
  .hero-actions {
    justify-content: center;
  }
}

/* Additional mobile adjustments for very small screens */
@media (max-width: 600px) {
  /* Reduce hero heading and paragraph sizes */
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 16px;
  }
  /* Adjust the tagline font size on very small screens */
  .hero-tagline {
    font-size: 16px;
  }
  /* Display one service card per row */
  .services .service-cards {
    grid-template-columns: 1fr;
  }
  /* Allow process steps to span full width */
  .process-steps {
    max-width: 100%;
    margin: 0;
  }
  /* Adjust testimonial margin for mobile */
  .testimonial {
    margin: 0 auto 20px auto;
  }
  /* Let the contact form span the full width */
  .contact-form {
    max-width: 100%;
    margin: 0;
  }
}