/* Homepage sections below the hero: process video, gallery, contact form.

   Kept separate from hero-video.css on purpose — that file's rules exist
   to make the hero's mix-blend-mode trick work and must not pick up
   isolation/background/transform/filter. Nothing here blends.

   Text colour is inherited rather than read from --text-color, and
   surfaces are set per theme, because both theme files define the same
   custom properties on :root. */

/* Tighten the gap between the hero and the first block of text to roughly a
   third of the default. Scoped to the homepage: the hero is full-bleed and
   already clears the fixed navbar, which the site-wide .page-container
   margin exists to do on interior pages. */
.template-homepage .page-container {
  margin-top: 0;
  padding-top: 1rem;
}

.template-homepage .hero {
  margin-bottom: 0;
}

.template-homepage .content-container {
  padding-top: 0.5rem;
}

.home-section {
  margin-top: 4rem;
}

.home-section-title {
  /* Literal font rather than var(--body-font): both theme files define it
     on :root, so the variable isn't reliably Fondamento. */
  font-family: "Fondamento", cursive;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

.home-section-caption {
  text-align: center;
  margin-bottom: 1.25rem;
}

/* Process video */
.process-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.home-gallery {
  margin-top: 3rem;
}

/* Contact form */
.home-contact form {
  position: relative;
}

/* Honeypot: off-canvas rather than display:none, because some bots skip
   fields that are display:none. Deliberately not .sr-only — that keeps
   content reachable, the opposite of what a honeypot needs. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reserve the widget's height so the button doesn't jump when it loads. */
.contact-turnstile {
  min-height: 65px;
}

.theme-cosmic .home-contact .form-control {
  background-color: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(100, 150, 255, 0.3);
  border-radius: 0.5rem;
  color: #e8e8f0;
}

.theme-cosmic .home-contact .form-control::placeholder {
  color: rgba(232, 232, 240, 0.5);
}

.theme-cosmic .home-contact .form-control:focus {
  background-color: rgba(10, 15, 30, 0.8);
  border-color: var(--primary-color, #4e6bff);
  box-shadow: 0 0 0 0.2rem rgba(78, 107, 255, 0.25);
}

.theme-cosmic .home-contact .form-control.is-invalid {
  border-color: var(--accent-color, #ff4081);
}

.theme-cosmic .home-contact .invalid-feedback {
  color: #ff8fb3;
}

.theme-cosmic .home-contact .alert-success {
  background-color: rgba(0, 194, 199, 0.15);
  border-color: rgba(0, 194, 199, 0.5);
  color: #d8f7f8;
}

@media (max-width: 768px) {
  .home-section {
    margin-top: 3rem;
  }
}
