/* Event Hub page styles — extends the D3 design system in styles.css */

/* ---------- Hero ---------- */

.eh-hero {
  display: flex;
  flex-flow: column;
  gap: 3rem;
  padding: var(--pad);
  min-height: 70svh;
  justify-content: space-between;
}

.eh-hero__kicker {
  color: var(--black);
}

.eh-hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: 0.85;
  max-width: 14ch;
  text-transform: uppercase;
}

.eh-hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--pad);
}

.eh-hero__sub {
  max-width: 34rem;
}

.eh-hero__bottom .button {
  width: fit-content;
  min-width: 18rem;
  padding-inline: 2.5rem;
}

/* ---------- Smaller statement variant ---------- */

.statement--small {
  font-size: 1.5rem;
}

/* ---------- Failure modes / checklist ---------- */

.eh-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: column;
}

.eh-checklist__item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-bottom: var(--border) solid var(--black-line);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.eh-checklist__item:last-child {
  border-bottom: none;
}

.eh-checklist__mark {
  flex: none;
  color: var(--red);
}

/* ---------- Dark sections ---------- */

.eh-dark {
  position: relative;
  background-color: var(--black);
  color: var(--light-grey);
}

/* ---------- Before / During / After ---------- */

.col--third {
  flex: 33.333%;
  max-width: 33.333%;
  width: 100%;
  display: flex;
  flex-flow: column;
}

.eh-phase {
  gap: 1.5rem;
}

.eh-phase__number {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--white);
}

.eh-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: column;
  gap: 0.75rem;
}

.eh-list li {
  padding-left: 1.25rem;
  position: relative;
}

.eh-list li::before {
  content: "//";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--green);
}

/* ---------- Case study stats & quotes ---------- */

.eh-stat {
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

.eh-stat__number {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.8;
}

.eh-stat__unit {
  font-size: 0.35em;
  font-family: var(--font-heading);
  margin-left: 0.15em;
}

.eh-quote {
  margin: 0;
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

/* ---------- Fit check form ---------- */

.eh-form {
  display: flex;
  flex-flow: column;
  gap: 1.25rem;
  width: 100%;
}

.eh-form__field {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
}

.eh-form__optional {
  text-transform: none;
  opacity: 0.6;
}

.eh-form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: var(--border) solid var(--white-line);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white);
  appearance: none;
}

.eh-form__input:focus {
  outline: 2px solid var(--green);
  outline-offset: -1px;
}

.eh-form__input::placeholder {
  color: var(--dark-grey);
}

select.eh-form__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9' fill='%23ffffff'%3E%3Cpath d='M2.35201 0.967773L5.24801 4.51977V4.72777L2.35201 8.26377L0.640015 7.33577L2.81601 4.61577L0.640015 1.89577L2.35201 0.967773Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.5rem;
}

select.eh-form__input option {
  color: var(--black);
}

.eh-form__input--textarea {
  resize: vertical;
  min-height: 5rem;
}

.eh-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.eh-form__submit {
  margin-top: 0.5rem;
}

.eh-form__status {
  min-height: 1.2em;
}

.eh-form__status.is-error {
  color: var(--red);
}

.eh-form__status.is-success {
  color: var(--green);
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .eh-hero {
    min-height: 55svh;
  }

  .eh-hero__bottom {
    flex-flow: column;
    align-items: flex-start;
  }

  .col--third {
    flex-basis: 100%;
    max-width: 100%;
  }

  .eh-stat__number {
    font-size: 5rem;
  }
}
