/* ----------------------------------------------
   Reset בסיסי
---------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Heebo', sans-serif;
  scroll-behavior: smooth;
  background-color: #FDF9F4;
  color: #1E2E45;
}

/* ----------------------------------------------
   Header
---------------------------------------------- */
header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

header nav button {
  font-weight: 500;
  font-size: 1rem;
  color: #1E2E45;
  transition: color 0.3s;
}

header nav button:hover {
  color: #D9A441;
}

/* ----------------------------------------------
   Language Switcher
---------------------------------------------- */
#languageButton {
  display: inline-flex;
  flex-direction: row; /* תמיד שורה, לא משנה RTL */
  align-items: center;
  justify-content: center;
  border: 1px solid #1E2E45;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  background-color: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1E2E45;
  cursor: pointer;
  transition: all 0.3s;
}

#languageButton:hover {
  background-color: #FDF9F4;
}

#languageButton span {
  display: inline-block;
}

#languageButton svg {
  display: inline-block;
  margin-left: 0.25rem; /* המרווח תמיד מימין לטקסט */
}

#languageDropdown {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: 9rem;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 100;
}

#languageDropdown button {
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #1E2E45;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

#languageDropdown button:hover {
  background-color: #D9A441;
  color: white;
}

/* ----------------------------------------------
   Hero Section
---------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 5rem; /* תואם ל-header */
  background: linear-gradient(135deg, #FDF9F4 0%, #F5EFE7 50%, #FDF9F4 100%);
  text-align: center;
}

#hero img {
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Hero Headline/Subheadline */
#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1E2E45;
}

#hero h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #D9A441;
}

#hero p {
  font-size: 1.25rem;
  max-width: 45rem;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  color: #1E2E45;
  opacity: 0.8;
}

/* Hero CTA Button */
#hero button {
  background-color: #D9A441;
  color: white;
  padding: 1.5rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s;
}

#hero button:hover {
  background-color: #C18F35;
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

/* ----------------------------------------------
   Sections
---------------------------------------------- */
section {
  padding: 6rem 2rem;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1E2E45;
  text-align: center;
}

section p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1E2E45;
  opacity: 0.85;
}

/* About Values Grid */
.values-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.values-grid .value-item {
  text-align: center;
  padding: 1.5rem;
  background-color: #FDF9F4;
  border-radius: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.values-grid .value-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ----------------------------------------------
   Suppliers Section
---------------------------------------------- */
#suppliers {
  color: white;
  background: linear-gradient(135deg, #1E2E45 0%, #2A3F5F 100%);
}

#suppliers h2 {
  color: white;
}

#suppliers p, #suppliers .requirement, #suppliers .benefit {
  color: rgba(255,255,255,0.8);
}

#suppliers .requirement {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

#suppliers .benefit {
  padding: 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 2rem;
  transition: all 0.3s;
}

#suppliers .benefit:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.03);
}

/* ----------------------------------------------
   Footer
---------------------------------------------- */
footer {
  background-color: #1E2E45;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
}

/* ----------------------------------------------
   Responsive
---------------------------------------------- */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
  }

  #hero h1 {
    font-size: 2.25rem;
  }

  #hero h2 {
    font-size: 1.5rem;
  }

  #hero p {
    font-size: 1rem;
  }

  #hero button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* ----------------------------------------------
   RTL Support
---------------------------------------------- */
body.rtl {
  direction: rtl;
  text-align: right;
}

/* Header: שומר על הלוגו וכפתור שפה במקומם */
body.rtl header > div > .absolute.left-0 {
  left: 0;
}

body.rtl header > div > .absolute.right-0 {
  right: 0;
}

/* ניווט הכפתורים הופך מימין לשמאל */
body.rtl header nav {
  flex-direction: row-reverse;
}

/* סידור טקסטים ב־About/Suppliers */
body.rtl .values-grid .value-item,
body.rtl #suppliers .requirement,
body.rtl #suppliers .benefit {
  text-align: right;
}
