/*
 * EC Footer 2A — styles for the "EC Footer" widget (ec-footer).
 *
 * Loaded on every frontend page, like header.css. Place the widget in a
 * full-width section without padding; the widget draws its own background and
 * aligns its content to the same box as the 2A header (Elementor kit content
 * box: 1250px, centered, 4% minimum side margin).
 *
 * Text, link, and list rules use two classes (.ec-footer .ec-footer__x) to beat
 * the Elementor kit (.elementor-kit-N a/p/h*) and The7 content styles; image
 * sizes need !important against Elementor's and The7's image constraints.
 */

.ec-footer {
  background: #1f3454;
  color: #dbe5ef;
}

.ec-footer__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ec-footer-max-width, min(1250px, 92%));
  margin: 0 auto;
  padding: 64px 0 28px;
}

.ec-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.35fr);
  gap: 44px 56px;
  padding-bottom: 56px;
}

/* --- Logo and description ---------------------------------------------- */

.ec-footer .ec-footer__logo {
  display: inline-block;
  vertical-align: top;
}

.ec-footer .ec-footer__logo img {
  display: block;
  width: auto !important;
  height: 64px !important;
  max-width: none !important;
}

.ec-footer .ec-footer__wordmark {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ec-footer .ec-footer__description {
  max-width: 380px;
  margin: 22px 0 0;
  padding: 0;
  color: #dbe5ef;
  font-size: 15px;
  line-height: 1.65;
}

/* --- Column titles and links -------------------------------------------- */

.ec-footer .ec-footer__label {
  margin: 0 0 14px;
  padding: 0;
  color: #8aa7c7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ec-footer .ec-footer__links,
.ec-footer .ec-footer__legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-footer .ec-footer__links li,
.ec-footer .ec-footer__legal li {
  margin: 0;
  padding: 0;
}

.ec-footer .ec-footer__links li::before,
.ec-footer .ec-footer__legal li::before {
  content: none;
}

.ec-footer .ec-footer__links li + li {
  margin-top: 7px;
}

.ec-footer .ec-footer__link,
.ec-footer .ec-footer__legal-link {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ec-footer .ec-footer__link:hover,
.ec-footer .ec-footer__link:focus-visible,
.ec-footer .ec-footer__legal-link:hover,
.ec-footer .ec-footer__legal-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- LinkedIn follow card ------------------------------------------------
   Same visual weight as the newsletter row in the 2A mockup: an outlined
   box on the navy ground with a white button. */

.ec-footer__follow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.ec-footer__follow-icon {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border: 1.5px solid #8aa7c7;
  border-radius: 4px;
  color: #8aa7c7;
}

.ec-footer__follow-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

.ec-footer__follow-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ec-footer .ec-footer__follow-title {
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.ec-footer .ec-footer__follow-subtitle {
  margin: 4px 0 0;
  padding: 0;
  color: #b6c8dc;
  font-size: 13px;
  line-height: 1.45;
}

.ec-footer .ec-footer__follow-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 42px;
  padding: 0 20px;
  border-radius: 2px;
  background: #ffffff;
  color: #1f3454;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}

.ec-footer .ec-footer__follow-button:hover,
.ec-footer .ec-footer__follow-button:focus-visible {
  background: #dbe5ef;
  color: #1f3454;
  text-decoration: none;
}

.ec-footer .ec-footer__follow-button:focus-visible {
  outline: 2px solid #8aa7c7;
  outline-offset: 2px;
}

/* --- Bottom bar ------------------------------------------------------------ */

.ec-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ec-footer .ec-footer__copyright {
  margin: 0;
  padding: 0;
  color: #8aa7c7;
  font-size: 13px;
  line-height: 1.5;
}

.ec-footer .ec-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.ec-footer .ec-footer__legal-link {
  color: #dbe5ef;
  font-size: 13px;
}

/* The7's fixed "back to top" button (bottom right, ~50px tall incl. offset)
   reaches into the content box below ~1350px viewport width; extra bottom
   space keeps the legal links clear of it when scrolled to the very end. */
@media (max-width: 1366px) {
  .ec-footer__inner {
    padding-bottom: 72px;
  }
}

/* --- Tablet: logo and links side by side, LinkedIn below ----------------- */

@media (max-width: 1024px) {
  .ec-footer__inner {
    padding-top: 52px;
  }

  .ec-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 48px;
    padding-bottom: 44px;
  }

  .ec-footer__col--follow {
    grid-column: 1 / -1;
    max-width: 560px;
  }
}

/* --- Phone: one column; the follow button gets its own full-width row ---- */

@media (max-width: 767px) {
  .ec-footer__inner {
    padding-top: 44px;
  }

  .ec-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-bottom: 36px;
  }

  .ec-footer .ec-footer__logo img {
    height: 54px !important;
  }

  .ec-footer__follow {
    flex-wrap: wrap;
    padding: 16px;
  }

  /* Zero basis keeps the text beside the icon instead of wrapping below it. */
  .ec-footer__follow-text {
    flex-basis: 0;
  }

  .ec-footer .ec-footer__follow-button {
    flex-basis: 100%;
  }

  .ec-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
