﻿* { 
  box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #111111;
  direction: rtl;
  font-size: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 600;
  font-size: 1.1rem; /* מוגדל */
}

.main-nav a {
  text-decoration: none;
  color: #111111;
  margin-inline: 10px;
  font-size: 1.05rem; /* מוגדל */
}

.main-nav a:hover {
  opacity: 0.7;
}

.cta-link {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #111;
}

/* HERO */
.hero {
  max-width: 1100px;
  margin: 40px auto 10px;
  padding: 0 20px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: 3.0rem;   /* 3.2כותרת מרכזית גדולה יותר */
  font-weight: 700;
}

.hero-image img {
  max-width: 80%;      /* ניתן לשנות אם גדול/קטן מדי */
  max-height: 320px;
  height: auto;
}

/* כרטיסים מתהפכים */
.info-cards {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  background: transparent;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
}

.info-card-inner {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.info-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  text-align: center;
}

.info-card-face.front {
  background: #ffffff;
}

.info-card-face.back {
  background: #ffffff;
  transform: rotateY(180deg);
  flex-direction: column;
}

.info-card-face h2,
.info-card-face h3 {
  margin: 0 0 6px;
}

.info-card-face p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* האפקט – היפוך */
.info-card:hover .info-card-inner,
.info-card.active .info-card-inner {
  transform: rotateY(180deg);
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e5e5;
  text-align: center;
  padding: 16px;
  color: #777;
  font-size: 0.85rem;
}

/* כפתור נגישות עם האייקון – באמצע הגובה */
.a11y-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 22px;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.a11y-btn img {
  width: 64px;
  height: 64px;
  display: block;
}

/* פאנל נגישות */
.a11y-panel {
  position: fixed;
  bottom: 40px;
  left: 100px;
  width: 260px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.25);
  border: 1px solid #e5e5e5;
  padding: 10px;
  font-size: 0.9rem;
  z-index: 9999;
  display: none;
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 2px;
}

.a11y-actions button {
  margin-inline: 2px;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  cursor: pointer;
  font-size: 0.8rem;
}

.a11y-actions button:hover {
  background: #eaeaea;
}

/* מצב ניגודיות גבוהה */
body.high-contrast {
  background: #000;
  color: #fff;
}

body.high-contrast a {
  color: #ffd700;
}

/* רספונסיביות */
@media (max-width: 900px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
  .hero-image img {
    max-width: 100%;
    max-height: 260px;
  }
}

/* במובייל – הכפתור חוזר למטה שלא יסתיר תוכן */
@media (max-width: 600px) {
  .a11y-btn {
    top: auto;
    transform: none;
    bottom: 22px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}
