/**
 * EBP Custom Footer 1 — site footer with logo, copy, form shortcode, social links, copyright.
 * Colours mostly come from Elementor Style controls; these rules handle layout and form fallbacks.
 */

.ebp-footer-1 {
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ebp-footer-1__top {
  padding-block-end: var(--spacing-6);
}

.ebp-footer-1 *,
.ebp-footer-1 *::before,
.ebp-footer-1 *::after {
  box-sizing: inherit;
}

/* Same content width as other EBP sections */
.ebp-footer-1 .wrapper {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top band: logo + blurb on the left, signup form on the right on wide screens */
.ebp-footer-1__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .ebp-footer-1__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
  }
}

/* Left column: logo then rich text */
.ebp-footer-1__left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ebp-footer-1__logo {
  display: block;
  width: auto;
  max-width: 12rem;
  max-height: 3rem;
  height: auto;
  object-fit: contain;
}

/* Plain-text stand-in when no logo image is set (matches approximate logo footprint). */
.ebp-footer-1__logo-text {
  margin: 0;
  max-width: 12rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ebp-footer-1__rich-text {
  margin: 0;
  max-width: 36rem;
  line-height: 1.55;
}

.ebp-footer-1__rich-text p:last-child {
  margin-bottom: 0;
}

/* Form column */
.ebp-footer-1__right {
  min-width: 0;
}

.ebp-footer-1__form-text {
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.ebp-footer-1__form-shortcode {
  min-width: 0;
}

/* Generic shortcode form layout (Contact Form 7 and similar) */
.ebp-footer-1__form-shortcode form {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 0.5rem;
  align-items: stretch;
}

.ebp-footer-1__form-shortcode input[type='email'],
.ebp-footer-1__form-shortcode input[type='text'] {
  flex: 1 1 12rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

.ebp-footer-1__form-shortcode input::placeholder {
  opacity: 0.65;
}

.ebp-footer-1__form-shortcode button,
.ebp-footer-1__form-shortcode input[type='submit'] {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid currentColor;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font-weight: 600;
}

.ebp-footer-1__form-shortcode .wpcf7-spinner {
  position: absolute;
}

.social-and-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-start: var(--spacing-3);
  padding-block-end: var(--spacing-3);
  /* margin-block-start: var(--spacing-3); */
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .ebp-footer-1__form-shortcode form {
    flex-direction: column;
  }

  .ebp-footer-1__form-shortcode button,
  .ebp-footer-1__form-shortcode input[type='submit'] {
    width: 100%;
  }
}

/* Social row: simple inline list */
.ebp-footer-1__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  /* margin: 2.5rem 0 0;
  padding: 1.5rem 0 0; */
  /* border-top: 1px solid rgba(255, 255, 255, 0.12); */
}

.ebp-footer-1__social-item {
  margin: 0;
}

.ebp-footer-1__social-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
  opacity: 0.95;
}

.ebp-footer-1__social-item a:hover,
.ebp-footer-1__social-item a:focus-visible {
  opacity: 1;
}

/* Hard-coded copyright line — smaller and slightly muted */
.ebp-footer-1__copyright {
  /* margin: 1.5rem 0 0;
  padding-top: 1.25rem; */
  /* border-top: 1px solid rgba(255, 255, 255, 0.08); */
  margin-block-end: 0 !important;
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 0.75;
}
