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

:root {
  --footer-bg: #071526;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* WCAG 2.2 Focus Not Obscured: Prevents sticky headers from covering focused inputs */
  scroll-padding-top: 5rem;
  scroll-padding-bottom: 7rem;
}

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 and Fixed Ratio Overlay */
.form-wrapper {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

/* 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);
}

/* Modal Backdrop & Content Styling */
.modal-backdrop {
  background-color: rgba(7, 21, 38, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #ffffff;
  border-radius: 1.5rem;
  max-width: 44rem;
  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: expands footer seamless background to prevent white gaps */
@media (max-width: 767px) {
  body:has(#cookie-banner:not(.hidden)) footer {
    padding-bottom: 180px;
    background-color: var(--footer-bg, #071526);
  }
}