/* yuvalgazit.co.il - Custom Project Styles */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

/* Accessible hidden skip link */
.skip-link {
  position: absolute;
  top: -999px;
  right: 1rem;
  left: auto;
  padding: 0.75rem 1.5rem;
  background: #0284c7;
  color: #ffffff;
  z-index: 9999;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* High contrast focus outline */
:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

/* Form inline validation messages */
.inline-name-error,
.inline-tel-error,
.inline-email-error {
  display: none;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.inline-name-error.is-visible,
.inline-tel-error.is-visible,
.inline-email-error.is-visible {
  display: block;
}

/* Anti-Spam Honeypot Field (Off-screen Absolute Placement) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form Wrapper & Success Overlay Swap */
.form-wrapper {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-success-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: inherit;
  z-index: 20;
}

.form-success-overlay.is-active {
  display: flex;
}

/* Custom scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #1e293b;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 3px;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* FAQ Accordion Reset (Removes native triangle marker) */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* Autonomous global.js Lite-YouTube Embed Styling (.lite-yt) */
.lite-yt {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  cursor: pointer;
  overflow: hidden;
}

.lite-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lite-yt:hover img {
  transform: scale(1.03);
}

.lite-youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(2, 132, 199, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lite-yt:hover .lite-youtube-play {
  background: #0284c7;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #ffffff;
  border-radius: 1rem;
  max-width: 48rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Mobile-only spacer for cookie banner - applied directly to footer to match its background color seamlessly */
@media (max-width: 767px) {
  body:has(#cookie-banner:not(.hidden)) footer {
    padding-bottom: 180px;
  }
}
