/* --- Global Styles & Variables --- */
:root {
  --color-primary: #4FB5A8; /* טורקיז רך */
  --color-secondary: #3A3A3A; /* אפור כהה */
  --color-accent: #A4D4CD; /* תכלת בהיר */
  --color-background: #FFFFFF; /* לבן */
  --color-text: #2E2E2E; /* אפור טקסט */
  --color-light-gray: #f9f9f9; /* אפור רקע בהיר */
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Heebo', sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  direction: rtl;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

h1, h2, h3, h4 {
  margin-top: 0;
  font-weight: 700;
}

h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; color: var(--color-primary); text-align: center; margin-bottom: 2rem;}
h4 { font-size: 1.25rem; color: var(--color-secondary); }

section {
  padding: 4rem 1rem;
}

/* --- Header --- */
header {
  background: var(--color-primary);
  padding: 1rem 0;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
}
.logo, header a { color: white; text-decoration: none; }

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

nav a {
  font-weight: bold;
  transition: opacity 0.2s;
}
nav a:hover { opacity: 0.8; }

.cta {
  background: var(--color-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s;
}
.cta:hover { background-color: #555; }

/* --- Hero Section --- */
#hero {
  background: var(--color-light-gray);
  text-align: center;
  padding: 5rem 1rem;
}
#hero h2 { color: var(--color-secondary); }
#hero p { font-size: 1.2rem; max-width: 600px; margin: 1rem auto 2rem; }

/* --- Services & Articles --- */
.services-grid, .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
#services article, #articles article {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-align: center;
}
#services article:hover, #articles article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- About Section --- */
#about { background: var(--color-light-gray); }
.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    display: block;
    margin: auto;
    border: 5px solid var(--color-accent);
}

/* --- Contact Section --- */
#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

#contact label {
    font-weight: bold;
    margin-bottom: -0.5rem;
}

#contact input, #contact textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  background: #fdfdfd;
}
#contact input:focus, #contact textarea:focus {
    outline: 2px solid var(--color-primary);
    border-color: var(--color-primary);
}

.contact-direct {
    text-align: center;
    margin-top: 1.5rem;
}
.contact-direct a {
    color: var(--color-primary);
    font-weight: bold;
}

/* --- Buttons --- */
.button, button[type="submit"] {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.2s;
  align-self: center;
  margin-top: 1rem;
}
.button:hover, button[type="submit"]:hover {
  background: #3e9a8e;
}


/* --- Footer --- */
footer {
  background: var(--color-secondary);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #ddd;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }

  .header-container {
      flex-direction: column;
      gap: 1rem;
  }
  
  nav ul {
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
  }

  .cta { display: none; } /* Hide CTA button on mobile to save space */
  
  .about-container {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .about-image {
      order: -1; /* Move image to the top on mobile */
      margin-bottom: 2rem;
  }
}

.about-image .hero-image {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    display: block;
    margin: auto;
    border: 5px solid var(--color-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
