/* ===== RESET ===== */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  direction: rtl;
  background: url('assets/taxi-bg.png') center center / cover no-repeat fixed;
  color: #222;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(90deg, #f6c700, #ffdf00);
  color: #111;
  padding: 20px 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  position: relative;
  z-index: 10; /* ✅ כדי שהתפריט לא יופיע מעל */
}

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

.logo-title {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 12px;
}

.logo {
  height: 48px;
  margin-left: 12px;
}

.site-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #222;
  z-index: 11;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #000;
  text-decoration: underline;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #fff7c3, #fff0a3);
  padding: 80px 20px 60px;
  text-align: center;
  border-radius: 14px;
  margin-top: 30px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 15px;
  color: #111;
}

.hero p {
  font-size: 20px;
  color: #111;
}

/* ===== FEATURES ===== */
.features {
  display: flex;
  gap: 20px;
  margin: 60px 0 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature-box {
  flex: 1;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-box h3 {
  margin-bottom: 12px;
  color: #222;
  font-size: 20px;
}

.feature-box p {
  font-size: 16px;
  color: #555;
}

/* ===== CONTENT ===== */
.content {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-size: 17px;
  line-height: 1.8;
}

/* ===== DATATABLES ===== */
.datatable-container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-top: 40px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fffef5;
  font-size: 16px;
}

.price-table thead {
  background-color: #fffae0;
}

.price-table th, .price-table td {
  text-align: center;
  padding: 14px;
  border: 1px solid #ddd;
}

.price-table tbody tr:hover {
  background-color: #fffce0;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
}

.dataTables_wrapper .dataTables_filter label {
  font-weight: bold;
}

/* ===== CTA (fixed order + no overflow) ===== */
.call-to-action{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin:60px 0;
  text-align:center;
  flex-direction: row-reverse;   /* שומר סדר ימין→שמאל בדסקטופ */
}

/* כפתורים */
.call-to-action .cta-btn,
.call-to-action a{
  appearance:none;
  display:inline-block;
  padding:14px 28px;
  background:#fff !important;
  color:#000 !important;
  border:2px solid #000 !important;
  border-radius:8px !important;
  font-weight:700;
  text-decoration:none !important;
  line-height:1.2;
  box-shadow:none !important;
  text-shadow:none !important;
  white-space:normal;            /* לא לשמור שורה אחת */
  word-break:break-word;         /* לשבור מילים ארוכות */
  box-sizing:border-box;         /* המסגרת בתוך הרוחב */
  max-width:100%;
}

.call-to-action .cta-btn:hover,
.call-to-action a:hover{
  transform:translateY(-2px);
  background:#000 !important;
  color:#fff !important;
}

/* מובייל: בלי גלישה ועם סדר אנכי */
@media (max-width:768px){
  .call-to-action{
    flex-direction: column-reverse;   /* היה column */
    align-items:center;
  }
  .call-to-action .cta-btn,
  .call-to-action a{
    width:calc(100% - 32px);
    max-width:420px;
    margin:0 auto;
    text-align:center;
  }
}


/* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: #ffd700;
  text-align: center;
  padding: 30px 20px;
  font-size: 15px;
  margin-top: 60px;
  border-top: 5px solid #e0b100;
}

.footer-section {
  margin: 30px 0 0;
}

.footer-section h4 {
  margin-bottom: 8px;
  font-size: 16px;
  color: #ffd700;
}

.footer-section p {
  margin: 0;
  font-size: 14px;
  color: #eee;
}

/* ===== CALL BUTTON (MOBILE) ===== */
@media only screen and (max-width: 768px) {
  .call-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    z-index: 1000;
    display: inline-block;
  }
}

@media only screen and (min-width: 769px) {
  .call-button {
    display: none !important;
  }
}

/* ===== ACCESSIBILITY ===== */
.accessibility-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #003366;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

.high-contrast a {
  color: #00ffff !important;
}

.high-contrast .feature-box,
.high-contrast .content,
.high-contrast footer,
.high-contrast header {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

.large-text {
  font-size: 1.2em;
}

/* ===== RESPONSIVE MENU ===== */
@media (max-width: 768px) {
  .site-header {
    padding: 10px 0;
  }

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

  .menu-toggle {
    display: block;
    font-size: 26px;
    order: 1;
  }

  .site-title {
    font-size: 18px;
    text-align: center;
    order: 2;
    flex-grow: 1;
  }

  .logo-title {
    order: 3;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
  }

  .logo {
    height: 36px;
    margin: 0;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: #fffbe3;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: right; /* ✅ תוקן */
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    margin: 10px 0;
    font-size: 18px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }
}


/* ===== HEADER FIX FOR MOBILE MENU ===== */
@media (max-width: 768px) {
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    position: relative;
  }

  .menu-toggle {
    order: 3; /* שמאל */
  }

  .logo-title {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 8px;
  }

  .nav {
    order: 1;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 999;
    display: none;
    flex-direction: column;
    background: #fffbe3;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    margin: 10px 0;
    font-size: 18px;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* מונע אובדן פוקוס במעבר עם מקלדת */
:focus {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* קישור "דלג לתוכן" – חובה לפי תקן ת״י 5568 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 10px;
}

/* נגישות עבור הודעות מערכת (כמו הודעת הצלחה בטפסים) */
[role="status"],
[role="alert"] {
  font-weight: 600;
}

/* הבטחת ניגודיות מספקת */
a {
  color: #0044cc;
}
a:hover, a:focus {
  color: #000;
  text-decoration: underline;
}

/* נראות ברורה של כפתורי ניווט ונגישות */
button,
.menu-toggle,
.cta-btn,
.call-button {
  outline: none;
}
button:focus,
.menu-toggle:focus,
.cta-btn:focus,
.call-button:focus {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* כפתור הנגישות של "נגיש לי" – עוזר לו להיות בולט וברור */
#nagishli_button,
.ptaxi-nagish {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* טקסט מוסתר וקריא לקוראי מסך בלבד */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
