/* Site-wide accessibility and UX fixes (loaded after the theme CSS). */

/* Visually hidden, still read by screen readers */
.sahar-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Visible keyboard focus everywhere (theme removes outlines) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #ffd400 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #000 !important;
}
main:focus { outline: none; }

/* Skip link: high contrast when shown */
.skip-link:focus,
.skip-link:focus-visible {
  background: #000 !important;
  color: #fff !important;
  font-size: 18px !important;
  padding: 12px 18px !important;
  z-index: 100000 !important;
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
}

/* Bigger tap targets for the footer contact list */
.elementor-icon-list-items .elementor-icon-list-item > a {
  min-height: 24px;
  padding-block: 4px;
}

/* Contact form additions */
.sahar-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sahar-form-note {
  width: 100%;
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
}
.sahar-form-note a { text-decoration: underline; color: inherit; }
.sahar-form-status { width: 100%; font-size: 16px; font-weight: 700; }
.sahar-form-status:empty { display: none; }
.sahar-form-status.is-ok { color: #1b7f3b; background: #e9f7ee; padding: 10px 12px; border-radius: 4px; }
.sahar-form-status.is-error { color: #8a0000; background: #fdecec; padding: 10px 12px; border-radius: 4px; }

/* Links to the legal pages in the footer */
.sahar-legal {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #000;
  color: #fff;
  font-size: 16px;
}
.sahar-legal a { color: #fff; text-decoration: underline; padding: 4px 2px; }

/* Pause control for background videos (WCAG 2.2.2) */
.sahar-video-toggle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid #fff;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
.sahar-video-toggle:hover { background: #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Simple layout for the legal pages and the 404 page */
.sahar-doc-wrap { background: #0d0d0d; }
.sahar-doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  font-size: 18px;
  line-height: 1.7;
  color: #fff;
}
.sahar-doc h1 { font-size: 36px; line-height: 1.25; margin: 0 0 24px; color: #fff; }
.sahar-doc h2 { font-size: 24px; line-height: 1.3; margin: 32px 0 12px; color: #fff; }
.sahar-doc p, .sahar-doc li { color: #f1f1f1; font-weight: 400; }
.sahar-doc h1, .sahar-doc h2 { font-weight: 700; }
.sahar-doc ul { padding-inline-start: 1.4em; }
.sahar-doc a { color: #fff; text-decoration: underline; }
.sahar-doc .sahar-updated { color: #cfcfcf; font-size: 16px; }
.sahar-doc .sahar-btn {
  display: inline-block;
  margin: 8px 0 0 12px;
  padding: 12px 22px;
  background: #c11618;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
}

/* Larger body text across the site. max(…, 1em) keeps text that is already larger as is. */
.elementor-widget-text-editor > .elementor-widget-container,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li,
.elementor-widget-theme-post-content p,
.elementor-widget-theme-post-content li,
.elementor-image-box-description,
.elementor-icon-box-description,
.sahar-seo p {
  font-size: max(18px, 1em) !important;
  line-height: 1.65 !important;
}
.elementor-icon-list-text {
  font-size: max(17px, 1em) !important;
}
/* Pasted text with a small inline size (10–19px) inside text blocks */
.elementor-widget-text-editor [style*="font-size: 1"][style*="px"],
.elementor-widget-text-editor [style*="font-size:1"][style*="px"] {
  font-size: max(17px, 1em) !important;
}
@media (max-width: 767px) {
  .elementor-widget-text-editor > .elementor-widget-container,
  .elementor-widget-text-editor p,
  .elementor-widget-text-editor li,
  .elementor-widget-theme-post-content p,
  .elementor-widget-theme-post-content li,
  .elementor-image-box-description,
  .elementor-icon-box-description,
  .sahar-seo p {
    font-size: max(17px, 1em) !important;
  }
}
