/* The Local Enquiry Co — approved interaction and typography refinements. */

.button,
.mobile-menu summary,
.mobile-action-bar a {
  touch-action: manipulation;
}

.button:active,
.mobile-menu summary:active,
.mobile-action-bar a:active {
  transform: scale(0.98);
  transition-duration: 80ms;
}

h1,
h2,
h3 {
  letter-spacing: normal;
}

h1 {
  letter-spacing: -0.04em;
}

h2 {
  letter-spacing: -0.025em;
}

h3 {
  letter-spacing: -0.012em;
}

/* Critical copy should be readable immediately. Decorative content may settle in. */
.hero-copy.reveal,
.page-hero-inner.reveal {
  animation: none;
}

.reveal {
  animation-duration: 360ms;
}

.reveal-delay {
  animation-delay: 80ms;
}

/* Keep one purposeful hero signal instead of several perpetual movements. */
.browser-card,
.floating-search,
.floating-enquiry,
.orbit,
.journey-path span,
.stack-front {
  animation: none;
}

.motion-line span {
  animation-duration: 3.4s;
}

.service-card:active {
  transform: scale(0.992);
  transition-duration: 80ms;
}

/* A real founder portrait carries more trust than decorative placeholder art. */
.founder-card-photo {
  aspect-ratio: 2 / 3;
  min-height: 0;
}

.founder-card-photo::before {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(5, 27, 26, 0.78));
}

.founder-card-photo::after {
  display: none;
}

.founder-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.founder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.founder-card-photo .founder-label {
  text-shadow: 0 2px 18px rgba(5, 27, 26, 0.55);
}

.founder-card-photo .founder-label small {
  color: #e9dfc8;
}

/* The menu appears from—and returns to—the control that opened it. */
@media (width <= 1020px) {
  .mobile-menu nav {
    transform-origin: top right;
  }

  .mobile-menu[open]:not(.is-closing) nav {
    animation: lec-menu-enter 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .mobile-menu.is-closing nav {
    animation: lec-menu-exit 200ms cubic-bezier(0.4, 0, 1, 1) both;
    pointer-events: none;
  }
}

@keyframes lec-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lec-menu-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
}

#enquiry-form {
  scroll-margin-top: 110px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #a63d32;
  box-shadow: 0 0 0 3px rgba(166, 61, 50, 0.12);
}

.field-error {
  color: #8a2f27;
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.field-error[hidden] {
  display: none;
}

@media (width <= 760px) {
  .contact-grid .quote-form {
    order: 1;
  }

  .contact-grid .contact-aside {
    order: 2;
  }
}

@media (hover: none) {
  .button:active,
  .mobile-menu summary:active,
  .mobile-action-bar a:active {
    transform: scale(0.98);
  }

  .service-card:active {
    transform: scale(0.992);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open] nav,
  .mobile-menu.is-closing nav {
    animation: none;
  }
}

/* Paragraph rhythm — the global reset zeroes every margin, and these
   prose blocks stack multiple body paragraphs without restoring a gap,
   so consecutive paragraphs (and the About heading, and legal lists)
   sat flush against each other. Every other prose container on the site
   already sets its own paragraph margins. Values are em-based, so the
   spacing scales correctly on mobile and desktop alike. */
.about-copy > p:not(.eyebrow) {
  margin-bottom: 1.15em;
}

.about-copy h2 {
  margin-bottom: 0.7rem;
}

.legal-copy p,
.legal-copy ul,
.legal-copy ol {
  margin-bottom: 1.1em;
}

.legal-copy > *:last-child {
  margin-bottom: 0;
}
