/* Site-specific tweaks layered over the ported WordPress theme CSS. */

/* 404 page (layouts/404.html), in the homepage hero's type and the brand orange. */
.lel-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 16px 96px;
  text-align: center;
  color: var(--mainColor, #202020);
}
.lel-404__inner { max-width: 760px; }
.lel-404__badge {
  display: inline-block;
  padding: 7px 18px 6px;
  border-radius: 50px;
  background: #FE6A00;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lel-404__title {
  margin: 28px 0 20px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.lel-404__nowrap { white-space: nowrap; }
.lel-404__mark {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.12em;
  margin-left: 0.1em;
}
.lel-404__lead {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--secondaryColor, rgba(0, 0, 0, 0.5));
}
.lel-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.lel-404__links a {
  padding: 8px 20px 7px;
  border-radius: 50px;
  background: var(--secondaryBackground, #fbe1d2);
  color: var(--mainColor, #202020);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lel-404__links a:hover,
.lel-404__links a:focus-visible {
  background: #FE6A00;
  color: #fff;
}
.lel-404__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px 13px;
  border-radius: 50px;
  background: #FE6A00;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.lel-404__home:hover,
.lel-404__home:focus-visible { transform: translateY(-2px); }
.lel-404__help {
  margin-top: 40px;
  font-size: 14px;
  color: var(--secondaryColor, rgba(0, 0, 0, 0.5));
}
.lel-404__help a { color: inherit; text-decoration: underline; }

/* Contact form: the theme keeps a filled input's floating label up via .has-content but
   forgot the textarea, so "Message" dropped back over the typed text on blur. Same
   declarations as the theme's floated-label rule. */
.pe--form.focus--label form .form-field:has(textarea.has-content) > label {
  transform: translateY(0) scale(.75);
  top: -1rem;
  font-size: 12px;
  color: var(--secondaryColor);
  margin-bottom: 0;
}

/* Contact form result line (filled in by pe-forms.js from contact.php's reply). */
.pe-form--submit--message p { margin: 16px 0 0; font-size: 15px; line-height: 1.5; }
.pe-form--submit--message p:empty { display: none; }
.pe-form--submit--message p.success { color: #1f7a3f; }
.pe-form--submit--message p.error { color: #c0392b; }

/* Contact form Start button states. pe-forms.js toggles .wait / .success / .error on
   .pe--button but the marquee button style shows none of them. On submit the scrolling
   START freezes and fades, and a centred label (injected by _partials/contact-config.html)
   reads SENDING, then SENT / TRY AGAIN, in the same type as START. */
.custom-form-widget-form .pb--handle { transition: transform 0.12s ease; }
.custom-form-widget-form .pb--handle:active { transform: scale(0.96); }

.custom-form-widget-form .pe--button:is(.wait, .success, .error) .pb--marquee__inner {
  animation-play-state: paused;
}
.custom-form-widget-form .pe--button .pb--marquee--wrap { transition: opacity 0.2s ease; }
.custom-form-widget-form .pe--button:is(.wait, .success, .error) .pb--marquee--wrap { opacity: 0; }

.lel-btn-status {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: inherit;
  background: #FE6A00;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.lel-btn-status .lel-btn-label::before { content: ""; }
.lel-btn-check { display: none; }

/* Specific enough to beat the theme's ".button--marquee ... .pb--handle>span { opacity: 0 }". */
.custom-form-widget-form .pe--button:is(.wait, .success, .error) .pb--handle > .lel-btn-status { opacity: 1; visibility: visible; }

.pe--button.wait .lel-btn-label::before { content: "SENDING"; }
.pe--button.wait .lel-btn-label { animation: lel-pulse 1s ease-in-out infinite; }
.pe--button.wait .pb--handle { cursor: progress; }
@keyframes lel-pulse { 50% { opacity: 0.45; } }

.pe--button.success .lel-btn-check { display: inline; }
.pe--button.success .lel-btn-label::before { content: "SENT"; }

.pe--button.error:not(.wait) .lel-btn-status { background: #c0392b; }
.pe--button.error:not(.wait) .lel-btn-label::before { content: "TRY AGAIN"; }

/* While sending: dim and lock the fields so it's clear the form is busy. */
.pe--form:has(.pe--button.wait) .form-field { opacity: 0.55; pointer-events: none; transition: opacity 0.2s ease; }
