/* =========================================================
   LEANIMISE FOOTER
   Figma-accurate (typography, spacing, newsletter)
   ========================================================= */

.lnm-footer {
  padding: 72px 6vw 32px;
  color: #1E1E1E;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
}

/* Links + smooth hover */
.lnm-footer a {
  color: #1E1E1E !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lnm-footer a:hover {
  color: #0495F0 !important;
}

.lnm-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* TOP: logo + newsletter ----------------------------------------------- */
/* Figma: 896px container, 50/50 split */

.lnm-footer__top {
  max-width: 896px;
  margin: 0 auto 56px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  column-gap: 40px;
  row-gap: 32px;
}

.lnm-footer__brand,
.lnm-footer__newsletter {
  flex: 0 0 50%;
}

.lnm-footer__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.lnm-footer__logo {
  width: 250px;
  max-width: 360px; /* let it fill its half nicely */
  height: auto;
  display: block;
}

/* Newsletter ----------------------------------------------------------- */

.lnm-footer__newsletter {
  flex: 0 0 50%;
}

.lnm-footer__nl-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1E1E1E !important;
}

.lnm-footer__nl-caption {
  font-size: 14px;
  margin: 0 0 14px;
  color: #1E1E1E !important;
}

.lnm-footer__form {
  max-width: 100%;
}

.lnm-footer__form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* Row 1: Industry full-width */
.lnm-footer__form-row--top .lnm-footer__field {
  flex: 1 1 100%;
}

/* Row 2: two equal fields (desktop) */
.lnm-footer__form-row--middle .lnm-footer__field {
  flex: 1 1 50%;
}

/* Row 3: email full width */
.lnm-footer__form-row--bottom .lnm-footer__field {
  flex: 1 1 100%;
}

.lnm-footer__field {
  position: relative;
}

/* FORCE all inputs (incl. CF7 / BeTheme overrides) to pill style */
.lnm-footer__field select,
.lnm-footer__field input {
  width: 100%;
  border-radius: 999px !important;
  border: 1px solid #d4d4d4 !important;
  padding: 16px 20px !important;
  font-size: 16px !important;       /* body/placeholder */
  background: #ffffff !important;
  outline: none !important;
  color: #1E1E1E !important;
  min-height: 56px;
  box-sizing: border-box;
  box-shadow: none !important;
}

/* select arrow */
.lnm-footer__field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1E1E1E 50%),
                    linear-gradient(135deg, #1E1E1E 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Placeholder styling – hard override */
.lnm-footer__field input::placeholder {
  color: #707070 !important;
}

/* Email + arrow in same pill (desktop) */
.lnm-footer__field--email input {
  padding-right: 70px !important;
}

.lnm-footer__submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 52px;
  border-radius: 999px;
  border: none !important;
  background: #000000 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.lnm-footer__submit svg {
  width: 18px;
  height: 18px;
  fill: #ffffff !important; /* ensure arrow is visible */
}

/* Mobile full-width CTA (hidden on desktop) */
.lnm-footer__submit-mobile {
  display: none;
  width: 100%;
  margin: 6px 0 6px;
  border: none !important;
  border-radius: 999px;
  background: #000000 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500;
  padding: 14px 20px;
  cursor: pointer;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Consent line – bigger text & checkbox */
.lnm-footer__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 720px;
  color: #1E1E1E;
}

.lnm-footer__consent span {
  color: #1E1E1E;
}

.lnm-footer__consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

/* Columns row ---------------------------------------------------------- */

.lnm-footer__cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.lnm-footer__col {
  flex: 1 1 0;
  min-width: 0;
}

/* Heading with icon + caret
   IMPORTANT: neutralise ALL BeTheme button styles */
.lnm-footer__heading {
  width: 100%;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  color: #1E1E1E;
  font-size: 24px;      /* FIGMA */
  font-weight: 600;
}

.lnm-footer__heading:focus {
  outline: none;
}

.lnm-footer__heading:hover,
.lnm-footer__heading:focus-visible {
  background: transparent !important;
}

/* Hover: only text goes blue */
.lnm-footer__heading-text {
  color: #1E1E1E;
  transition: color 0.2s ease;
}

.lnm-footer__heading:hover .lnm-footer__heading-text {
  color: #0495F0;
}

.lnm-footer__hicon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lnm-footer__hicon {
  width: 22px;
  height: 22px;
  color: #0495F0;
  fill: currentColor;
}

/* caret */
.lnm-footer__caret {
  margin-left: auto;
  font-size: 12px;
  transform-origin: center;
  transition: transform 0.2s ease;
}

/* Lists */
.lnm-footer__list {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lnm-footer__list li {
  font-size: 18px;
  font-weight: 400;
  color: #1E1E1E;
  max-width: 305px;     /* Figma width for long items */
}

.lnm-footer__list a {
  font-size: 18px;
  font-weight: 400;
  color: #1E1E1E !important;
  transition: color 0.2s ease;
}

.lnm-footer__list a:hover {
  color: #0495F0 !important;
}

/* Social icons --------------------------------------------------------- */

.lnm-footer__socials {
  margin: 40px auto 18px;
  max-width: 1120px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.lnm-footer__social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
}

.lnm-footer__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Brand colors */
.lnm-footer__social--fb { color: #1877F2; }
.lnm-footer__social--ig { color: #E4405F; }
.lnm-footer__social--li { color: #0A66C2; }
.lnm-footer__social--yt { color: #FF0000; }
.lnm-footer__social--x  { color: #000000; }

/* Legal --------------------------------------------------------------- */

.lnm-footer__legal {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 8px;
  border-top: 1px solid #e1e1e1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 16px;
  color: #1E1E1E;
}

/* kill any theme opacity */
.lnm-footer__legal *,
.lnm-footer__socials * {
  opacity: 1 !important;
}

.lnm-footer__legal-label {
  font-weight: 600;
  color: #1E1E1E;
}

.lnm-footer__legal-divider {
  font-size: 16px;
  color: #1E1E1E;
}

.lnm-footer__legal a {
  color: #1E1E1E !important;
}

/* Desktop: lists always visible, caret hidden ------------------------- */

@media (min-width: 768px) {
  .lnm-footer__col .lnm-footer__list {
    display: flex !important;
  }
  .lnm-footer__caret {
    display: none;
  }
}

/* Tablet: 2x2 columns ------------------------------------------------- */

@media (max-width: 1023px) and (min-width: 768px) {
  .lnm-footer__cols {
    flex-wrap: wrap;
    row-gap: 32px;
  }
  .lnm-footer__col {
    flex: 0 0 48%;
  }
}

/* Mobile -------------------------------------------------------------- */

@media (max-width: 767px) {

  .lnm-footer {
    padding: 40px 20px 24px;
  }

  .lnm-footer__top {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    column-gap: 0;
    row-gap: 24px;
    margin-bottom: 32px;
  }

  .lnm-footer__brand {
    width: 100%;
    justify-content: center;
  }

  .lnm-footer__logo {
    max-width: 190px;
    margin: 0 auto 10px;
  }

  .lnm-footer__newsletter {
    width: 100%;
  }

  .lnm-footer__form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .lnm-footer__form-row--middle .lnm-footer__field,
  .lnm-footer__form-row--top .lnm-footer__field,
  .lnm-footer__form-row--bottom .lnm-footer__field {
    flex: 1 1 100%;
    width: 100%;
  }

  /* On mobile: remove arrow from email pill, use big CTA instead */
  .lnm-footer__field--email input {
    padding-right: 20px !important;
  }

  .lnm-footer__submit {
    display: none !important;
  }

  .lnm-footer__submit-mobile {
    display: block;
  }

  .lnm-footer__cols {
    flex-direction: column;
    gap: 0;
  }

  .lnm-footer__heading {
    font-size: 18px;
    padding: 14px 0 !important;
    border-top: 1px solid #e3e3e3;
  }

  .lnm-footer__col:last-child .lnm-footer__heading {
    border-bottom: 1px solid #e3e3e3;
  }

  /* Accordion behaviour */
  .lnm-footer__col .lnm-footer__list {
    display: none;
    padding-bottom: 10px;
  }

  .lnm-footer__col.is-open .lnm-footer__list {
    display: flex;
  }

  .lnm-footer__col.is-open .lnm-footer__caret {
    transform: rotate(180deg);
  }

  .lnm-footer__socials {
    margin-top: 32px;
  }

  .lnm-footer__legal {
    margin-top: 10px;
    font-size: 14px;
  }
}


/* ============================================================
   🔧 FINAL PATCHES — MOBILE FIXES
   ============================================================ */

/* Force all input fields on mobile to be full width */
@media (max-width: 767px) {
  .lnm-footer__field input,
  .lnm-footer__field select {
    width: 100% !important;
  }

  /* Make each column wrapper full-width */
  .lnm-footer__col {
    width: 100% !important;
  }
}


/* ============================================================
   🔧 FINAL PATCHES — WEB (Desktop) FIXES
   ============================================================ */

/* Fix heading width + bottom spacing */
.lnm-footer__heading {
  width: 80% !important;
  padding-bottom: 20px !important;
}

/* Fix desktop arrow pill so it's NEVER stretched */
.lnm-footer__submit {
  width: auto !important;
  min-width: 52px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  color: #ffffff !important;
}

/* Fix arrow icon visibility */
.lnm-footer__submit svg {
  width: 18px !important;
  height: 18px !important;
  fill: #ffffff !important;
}

/* =========================================
   PATCH: Arrow button only on desktop
   ========================================= */

/* Hide arrow button on mobile */
@media (max-width: 767px) {
  button.lnm-footer__submit {
    display: none !important;
  }
}

/* Show arrow button on tablet/desktop */
@media (min-width: 768px) {
  button.lnm-footer__submit {
    display: flex !important;
  }
}




@media (max-width: 767px) {
  /* Make mobile footer items follow our custom order */
  .lnm-footer__top {
    display: flex;
    flex-direction: column;
  }

  /* 1. logo */
  .lnm-footer__brand {
    order: 1;
  }

  /* 2. socials */
  .lnm-footer__socials {
    order: 2;
    margin-top: 20px; /* adjust spacing as needed */
  }

  /* 3. newsletter */
  .lnm-footer__newsletter {
    order: 3;
  }

  /* 4. columns */
  .lnm-footer__cols {
    order: 4;
  }

  /* 5. legal */
  .lnm-footer__legal {
    order: 5;
  }
}

