/* jQuery-free CSS fixes */

/* Tab buttons - reset button defaults, Webflow JS adds pointer cursor via JS */
button.w-tab-link {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

/* Project hover overlay - replaces Webflow IX1 interactions */
.projectwrapper .projectcontent {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projectwrapper:hover .projectcontent {
  opacity: 1;
}

/* Slider navigation (replacing Webflow JS slider) */
.w-slider-arrow-left,
.w-slider-arrow-right {
  cursor: pointer;
}

/* Background video poster img — matches .w-background-video > video from webflow.css */
.w-background-video > img {
  position: absolute;
  margin: auto;
  width: 100%;
  height: 100%;
  right: -100%;
  bottom: -100%;
  top: -100%;
  left: -100%;
  object-fit: cover;
  z-index: -100;
}

/* Mobile nav menu - controlled via React state instead of Webflow JS */
.w-nav-menu {
  transition: height 0.3s ease;
}

/* --- Contact form modernization --- */

/* Inputs: boxed, modern */
.formblock.w-input {
  font-size: 18px;
  font-weight: 300;
  padding: 14px 16px;
  height: auto;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fafafa;
  text-align: left;
}

.formblock.w-input::placeholder {
  color: #999;
  font-weight: 300;
}

.formblock.w-input:focus {
  border-color: var(--dark-slate-grey);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  background-color: #fff;
  outline: none;
}

/* Textarea taller */
.formblock.message.w-input {
  height: 140px;
  resize: vertical;
}

/* reCAPTCHA centering */
.w-form-formrecaptcha {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 12px;
}

/* Submit button: full-width, modern */
.form input.button.w-button {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 16px 25px;
  font-size: 15px;
  letter-spacing: 2px;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.form input.button.w-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Success message */
.w-form-done {
  background-color: transparent;
  padding: 40px 20px;
}

/* Error message */
.w-form-fail {
  background-color: transparent;
  border: 1px solid #e8a0a0;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  margin-top: 16px;
}
