/* ==========================================================================
   LEAFORGE TECHNOLOGIES — FOOTER
   CLEANUP BUILD: VER0036

   PURPOSE
   -------
   Edit the global footer, footer links, contact details, LinkedIn button, partner box and legal row.

   SECTION DIRECTORY
   -----------------
   01. Base / desktop footer
   02. Responsive footer behavior
   03. Final mobile corrections
   ========================================================================== */

/* ==========================================================================
   00. FOOTER DESIGN VARIABLES — edit these for global footer colors
   ========================================================================== */
:root {
  --lf-footer-bg: #161616;
  --lf-footer-bg-alt: #22262a;
  --lf-footer-bottom-bg: #1b1f23;
  --lf-footer-text: #a5adb5;
  --lf-footer-muted: #8f969d;
  --lf-footer-white: #ffffff;
  --lf-footer-accent: #04414b;
  --lf-footer-border: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   01. BASE / DESKTOP RULES
   ========================================================================== */

.lf-footer p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

.lf-footer-col h3 {
  margin: 0;
  color: var(--lf-footer-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.lf-footer-line {
  display: block;
  width: 58px;
  height: 2px;
  background: var(--lf-footer-accent);
  margin: 18px 0 28px;
}

.lf-footer-address span, .lf-footer-col p {
  display: block;
  margin: 0 0 12px;
  color: var(--lf-footer-text);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.8;
}

.lf-footer-address strong {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
  color: var(--lf-footer-white);
  font-weight: 600;
}

.lf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lf-footer-links li {
  margin-bottom: 12px;
}

.lf-footer a {
  color: var(--lf-footer-text);
  text-decoration: none;
  transition: color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.lf-footer a:hover {
  color: var(--lf-footer-white);
}

.lf-footer a:focus-visible {
  outline: 2px solid var(--lf-footer-accent);
  outline-offset: 4px;
}

.lf-footer-links a {
  position: relative;
  display: inline-block;
  color: var(--lf-footer-text);
  font-size: 14px;
  line-height: 1.65;
}

.lf-footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0;
  height: 2px;
  background: var(--lf-footer-accent);
  transition: width 0.25s ease;
}

.lf-footer-links a:hover {
  padding-left: 16px;
  color: var(--lf-footer-white);
}

.lf-footer-links a:hover::before {
  width: 9px;
}

.lf-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 15px 30px;
  border: 1px solid var(--lf-footer-border);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  text-transform: uppercase;
}

.lf-footer-btn:hover {
  border-color: var(--lf-footer-accent);
  background: var(--lf-footer-accent);
  transform: translateY(-2px);
}

.lf-footer-bottom {
  background: var(--lf-footer-bottom-bg);
  padding: 24px 20px;
  text-align: center;
}

.lf-footer-bottom p {
  margin: 0;
  color: var(--lf-footer-muted);
  letter-spacing: 0.2px;
}

.lf-footer-copyright {
  font-size: 14px;
}

.lf-footer-legal {
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #161616;
  text-align: center;
}

.lf-footer-trademark {
  max-width: 1120px;
  margin: 0 auto !important;
  color: var(--lf-footer-muted);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.15px;
}

.lf-footer-container {
  max-width: 1510px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.35fr 1.15fr 1fr;
  gap: 46px;
  align-items: start;
}

.lf-footer {
  padding: 26px 0;
  text-align: center;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--lf-footer-text);
}

.lf-footer-main {
  padding: 64px 20px 66px;
}

@media (max-width: 1200px) {
  .lf-footer-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
  }
}

@media (max-width: 900px) {
  .lf-footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .lf-footer-main {
    padding: 46px 18px 48px;
  }

  .lf-footer-container {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .lf-footer-col {
    text-align: center;
  }

  .lf-footer-line {
    margin-left: auto;
    margin-right: auto;
  }

  .lf-footer-links a:hover {
    padding-left: 0;
  }

  .lf-footer-links a::before {
    display: none;
  }

  .lf-footer-btn {
    width: 100%;
    max-width: 260px;
  }
}

@media (min-width: 769px) {
  .lf-footer-container {
    grid-template-columns: 1.25fr 1fr 1.35fr 1.2fr 1fr;
    align-items: flex-start;
  }
}

.lf-linkedin {
  display: inline-flex;
  width: 46px;
  height: 46px;
  margin-top: 14px;
  background: var(--lf-footer-white);
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  border-radius: 4px;
}

.lf-linkedin:hover {
  background: var(--lf-footer-accent);
  transform: translateY(-2px);
}

.lf-partner-box {
  display: inline-block;
  padding: 18px 20px;
  border: 1px solid var(--lf-footer-border);
  background: rgba(255, 255, 255, 0.035);
}

.lf-partner-small {
  color: #d6b85a;
  font-size: 12px;
  margin-bottom: 5px;
}

.lf-partner-title {
  color: var(--lf-footer-white);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
}

.lf-partner-text {
  color: var(--lf-footer-muted);
  font-size: 12px;
  margin-top: 8px;
}

@media (min-width: 769px) {
  .lf-partner-box {
    text-align: center;
  }
}

.lf-footer-col:not(#a#b#c) {
  text-align: left;
}

.lf-footer-address:not(#a#b#c) {
  margin: 0;
  font-style: normal;
}

.lf-footer-links li:not(#a#b#c) {
  margin: 0 0 12px;
  padding: 0;
}

.lf-footer-btn:not(#a#b#c) {
  color: var(--lf-footer-white);
}

.lf-footer-container:not(#a#b#c) {
  padding-left: 50px;
  padding-right: 50px;
}

footer:not(#a#b#c) {
  background-color: var(--lf-footer-bg);
}

.lf-footer:not(#a#b#c) {
  width: 100%;
  margin: 0;
  background: #161616;
  background-color: #161616;
}

.lf-footer-main:not(#a#b#c) {
  background: #161616;
  background-color: #161616;
}

body:not(.home-page) main + .lf-footer:not(#a#b#c) {
  margin-top: 0;
}

@media (max-width: 640px) {
  .lf-footer-container:not(#a#b#c) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 769px) {
  .lf-footer-line:not(#a#b#c) {
    margin-left: 0;
    margin-right: 0;
  }

  .lf-footer-address span:not(#a#b#c), .lf-footer-address strong:not(#a#b#c), .lf-footer-col a:not(#a#b#c), .lf-footer-col p:not(#a#b#c) {
    text-align: left;
  }
}

.lf-linkedin:not(#a#b#c) {
  color: var(--lf-footer-bg-alt);
}

.lf-linkedin:hover:not(#a#b#c) {
  color: var(--lf-footer-white);
}

@media (max-width: 640px) {
  .lf-linkedin:not(#a#b#c) {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) {
  .lf-linkedin:not(#a#b#c) {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .lf-footer-container:not(#a#b#c) {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .lf-footer-col:not(#a#b#c), .lf-footer-about:not(#a#b#c) {
    text-align: center;
  }

  .lf-footer-line:not(#a#b#c) {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991px) {
  .lf-footer:not(#a#b#c) {
    text-align: center;
  }

  .lf-footer-container:not(#a#b#c), .lf-footer-main:not(#a#b#c) {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .lf-footer-col:not(#a#b#c), .lf-footer-about:not(#a#b#c), .lf-footer-links:not(#a#b#c), .lf-footer-address:not(#a#b#c) {
    text-align: center;
  }

  .lf-footer-line:not(#a#b#c) {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991px) {
  .lf-footer-logo img:not(#a#b#c) {
    aspect-ratio: auto;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
  }
}

@media (max-width: 991px) {
  .lf-footer-main:not(#a#b#c) {
    text-align: left;
  }
}

/* ==========================================================================
   02. RESPONSIVE BASE RULES
   ========================================================================== */

@media (max-width: 767px) {
  .lf-footer-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .lf-footer-col, .lf-footer-about, .lf-footer-contact, .lf-footer-address {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  .lf-footer-address span, .lf-footer-address strong, .lf-footer-col a, .lf-footer-col p {
    text-align: left !important;
  }

  .lf-linkedin {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .lf-footer-bottom, .lf-footer-bottom-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   03. FINAL MOBILE / TABLET RULES
   ========================================================================== */

@media (max-width: 767.98px) {
  .lf-footer-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .lf-footer-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .lf-footer-col, .lf-footer-about, .lf-footer-contact, .lf-footer-address {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  .lf-footer-links, .lf-footer-links li {
    width: 100% !important;
  }

  .lf-footer-col a, .lf-footer-col p, .lf-footer-address span, .lf-footer-address strong {
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  .lf-footer-bottom, .lf-footer-bottom-inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
    text-align: center !important;
  }

  .lf-linkedin {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}
