/* Footer layout and responsive styles */
.footer {
  background: linear-gradient(90deg, #eef8f3 0%, #d9f1e7 52%, #eef8f3 100%) !important;
  color: #1b4434 !important;
  padding: clamp(34px, 5vw, 60px) 0 18px !important;
  border-top: 1px solid rgba(27, 68, 52, 0.12) !important;
  font-size: 16px !important;
}

.footer__grid {
  display: grid !important;
  width: min(100% - 32px, 1480px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  grid-template-columns: minmax(260px, 1.35fr) minmax(170px, .9fr) minmax(170px, .9fr) minmax(230px, 1.15fr) !important;
  gap: clamp(22px, 3vw, 42px) !important;
  align-items: start !important;
  text-align: left !important;
  font-size: 1rem !important;
}

.footer__grid > div {
  min-width: 0 !important;
}

.footer .brand {
  display: inline-flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

.footer .brand img {
  width: clamp(180px, 18vw, 260px) !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain !important;
}

.footer .brand__txt,
.footer h4,
.footer__links,
.footer .social {
  text-align: left !important;
  justify-content: flex-start !important;
}

.footer-about-preview {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 7 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 48ch !important;
  max-height: none !important;
  margin: 8px 0 0 !important;
  color: rgba(27, 68, 52, 0.82) !important;
  font-size: clamp(0.86rem, 0.9vw, 0.95rem) !important;
  line-height: 1.65 !important;
}

.footer h4,
.footer__col--services h4,
.footer__col--quick h4,
.footer__col--contact h4 {
  color: #173c2d !important;
  font-family: "Cinzel", "Poppins", serif !important;
  font-size: clamp(1rem, 1.05vw, 1.14rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 14px !important;
}

.footer h4::after {
  content: "" !important;
  display: block !important;
  width: 36px !important;
  height: 2px !important;
  margin: 7px 0 0 !important;
  background: #3c7861 !important;
  border-radius: 999px !important;
}

.footer__links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer__links li {
  margin: 8px 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
}

.footer__links,
.footer__links a,
.footer__link,
.footer__col--services .footer__links,
.footer__col--quick .footer__links,
.footer__col--contact .footer__links,
.footer__col--services .footer__links li,
.footer__col--quick .footer__links li,
.footer__col--contact .footer__links li,
.footer__col--services .footer__links a,
.footer__col--quick .footer__links a,
.footer__col--contact .footer__links a,
.footer__col--contact .footer__link,
.footer__col--contact .ic {
  font-size: clamp(0.86rem, 0.88vw, 0.96rem) !important;
  line-height: 1.5 !important;
}

.footer__links a,
.footer__link {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  max-width: 100% !important;
  color: #356f5a !important;
  overflow-wrap: anywhere !important;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease !important;
}

.footer__links a:hover,
.footer__link:hover {
  color: #0f9f70 !important;
  transform: translateX(2px) !important;
  text-shadow: none !important;
}

.footer__col--contact h4[style] {
  margin-top: 18px !important;
}

.footer .social {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.footer .social a {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(27, 68, 52, 0.14) !important;
  color: #1b4434 !important;
  font-size: 0.98rem !important;
}

.footer .social a:hover {
  color: #0f9f70 !important;
  background: #fff !important;
  border-color: rgba(15, 159, 112, 0.35) !important;
  box-shadow: 0 8px 20px rgba(15, 159, 112, 0.16) !important;
  transform: translateY(-2px) !important;
}

.footer__bar {
  width: min(100% - 32px, 1480px) !important;
  margin: clamp(24px, 3vw, 40px) auto 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(60, 120, 97, 0.28) !important;
  color: rgba(27, 68, 52, 0.75) !important;
  text-align: center !important;
  font-size: clamp(0.78rem, 0.8vw, 0.9rem) !important;
  line-height: 1.5 !important;
}

.footer__bar .container {
  width: 100% !important;
}

.footer__bar p {
  margin: 0 !important;
}

@media (max-width: 1180px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(100% - 28px, 1480px) !important;
    gap: 28px !important;
  }

  .footer__col--brand {
    grid-column: 1 / -1 !important;
  }

  .footer-about-preview {
    max-width: 72ch !important;
    -webkit-line-clamp: 5 !important;
  }
}

@media (max-width: 720px) {
  .footer {
    padding: 3px 0 16px !important;
  }

  .footer__grid {
    grid-template-columns: 1fr !important;
    width: min(100% - 24px, 1480px) !important;
    gap: 24px !important;
    text-align: center !important;
  }

  .footer__col--brand {
    grid-column: auto !important;
  }

  .footer .brand,
  .footer .social {
    justify-content: center !important;
  }

  .footer .brand img {
    width: min(69vw, 220px) !important;
    max-height: 67px !important;
  }

  .footer .brand__txt,
  .footer h4,
  .footer__links {
    text-align: center !important;
  }

  .footer h4::after {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-about-preview {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    -webkit-line-clamp: 6 !important;
    font-size: 0.9rem !important;
  }

  .footer__links a,
  .footer__link {
    justify-content: center !important;
    text-align: center !important;
  }

  .footer__bar {
    width: min(100% - 24px, 1480px) !important;
    font-size: 0.78rem !important;
  }
}

/* Final fix: footer when phone browser uses "Desktop site" */
@media (pointer: coarse) and (min-width: 700px) and (max-width: 1200px) {
  .footer {
    padding: 26px 0 12px !important;
    overflow-x: hidden !important;
  }

  .footer__grid {
    display: grid !important;
    grid-template-columns: 1.15fr 1fr 0.82fr 1.2fr !important;
    width: calc(100% - 16px) !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    gap: 10px !important;
    align-items: start !important;
    text-align: left !important;
  }

  .footer__grid > div,
  .footer__col,
  .footer__col--brand {
    min-width: 0 !important;
    grid-column: auto !important;
  }

  .footer .brand,
  .footer .brand__txt,
  .footer h4,
  .footer__links,
  .footer .social {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .footer .brand {
    margin-bottom: 6px !important;
  }

  .footer .brand img {
    width: clamp(120px, 15vw, 170px) !important;
    max-height: 48px !important;
  }

  .footer-about-preview {
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    font-size: 0.68rem !important;
    line-height: 1.22 !important;
    -webkit-line-clamp: 5 !important;
  }

  .footer h4,
  .footer__col h4,
  .footer__col--services h4,
  .footer__col--quick h4,
  .footer__col--contact h4,
  .footer__col--contact h4[style] {
    font-size: 0.68rem !important;
    line-height: 1.05 !important;
    margin: 0 0 5px !important;
    white-space: nowrap !important;
  }

  .footer h4::after {
    width: 22px !important;
    height: 1px !important;
    margin: 3px 0 0 !important;
  }

  .footer__links,
  .footer__col .footer__links {
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer__links li,
  .footer__col .footer__links li {
    margin: 2px 0 !important;
    padding: 0 !important;
    line-height: 1.12 !important;
  }

  .footer__links a,
  .footer__link,
  .footer__col .footer__links a,
  .footer__col--contact .footer__link,
  .footer__col--contact .ic {
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 3px !important;
    max-width: 100% !important;
    font-size: 0.74rem !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .footer__col--contact h4[style] {
    margin-top: 7px !important;
  }

  .footer .social {
    gap: 5px !important;
    margin-top: 4px !important;
  }

  .footer .social a {
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
    font-size: 0.68rem !important;
  }

  .footer__bar {
    width: calc(100% - 16px) !important;
    margin: 14px auto 0 !important;
    padding-top: 8px !important;
    font-size: 0.62rem !important;
    line-height: 1.25 !important;
  }
}

/* Absolute final: phone desktop-mode footer type tuning */
@media (pointer: coarse) and (min-width: 700px) and (max-width: 1200px) {
  .footer__col--brand .footer-about-preview,
  .footer-about-preview {
    font-size: 0.56rem !important;
    line-height: 1.08 !important;
    margin-top: 2px !important;
  }

  .footer .brand img {
    width: clamp(108px, 13vw, 150px) !important;
    max-height: 40px !important;
  }

  .footer__col--services h4,
  .footer__col--quick h4,
  .footer__col--contact h4,
  .footer__col--contact h4[style] {
    font-size: 1rem !important;
    line-height: 1rem !important;
    margin: 0 0 3px !important;
  }

  .footer__col--services .footer__links li,
  .footer__col--quick .footer__links li,
  .footer__col--contact .footer__links li {
    margin: 0 !important;
    line-height: 0.92 !important;
  }

  .footer__col--services .footer__links a,
  .footer__col--quick .footer__links a,
  .footer__col--contact .footer__links a,
  .footer__col--contact .footer__link,
  .footer__col--contact .ic {
    font-size: 0.78rem !important;
    line-height: 0.95 !important;
  }
}

/* Absolute final: footer on phone desktop-mode */
@media (pointer: coarse) and (min-width: 700px) and (max-width: 1200px) {
  .footer__grid {
    display: grid !important;
    grid-template-columns: 1.25fr 0.9fr 0.8fr 1fr !important;
    width: min(100% - 18px, 1480px) !important;
    gap: 10px !important;
    text-align: left !important;
  }

  .footer__col--brand {
    grid-column: auto !important;
  }

  .footer .brand,
  .footer .brand__txt,
  .footer h4,
  .footer__links,
  .footer .social {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .footer .brand img {
    width: clamp(140px, 15vw, 190px) !important;
    max-height: 54px !important;
  }

  .footer-about-preview {
    font-size: 0.72rem !important;
    line-height: 1.18 !important;
    -webkit-line-clamp: 5 !important;
  }

  .footer h4,
  .footer__col h4,
  .footer__col--services h4,
  .footer__col--quick h4,
  .footer__col--contact h4,
  .footer__col--contact h4[style] {
    font-size: 0.46rem !important;
    line-height: 0.95 !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
  }

  .footer h4::after {
    width: 18px !important;
    height: 1px !important;
    margin: 2px 0 0 !important;
  }

  .footer__links,
  .footer__col .footer__links {
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer__links li,
  .footer__col .footer__links li {
    margin: 1px 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .footer__links a,
  .footer__link,
  .footer__col .footer__links a,
  .footer__col--contact .footer__link,
  .footer__col--contact .ic {
    font-size: 0.92rem !important;
    line-height: 1 !important;
    gap: 3px !important;
  }

  .footer .social {
    gap: 5px !important;
    margin-top: 4px !important;
  }

  .footer .social a {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
    font-size: 0.72rem !important;
  }
}

/* Phone browser "Desktop site" footer final reset */
@media (pointer: coarse) and (min-width: 700px) and (max-width: 1200px) {
  .footer {
    padding: 24px 0 12px !important;
    overflow-x: hidden !important;
  }

  .footer__grid {
    display: grid !important;
    grid-template-columns: 1.1fr 0.92fr 0.72fr 1.16fr !important;
    width: calc(100% - 12px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    gap: 8px !important;
    align-items: start !important;
    text-align: left !important;
  }

  .footer__grid > div,
  .footer__col,
  .footer__col--brand,
  .footer__col--services,
  .footer__col--quick,
  .footer__col--contact {
    min-width: 0 !important;
    grid-column: auto !important;
    text-align: left !important;
  }

  .footer .brand {
    justify-content: flex-start !important;
    margin-bottom: 5px !important;
  }

  .footer .brand img {
    width: clamp(112px, 14vw, 155px) !important;
    max-height: 42px !important;
  }

  .footer-about-preview {
    max-width: 100% !important;
    margin: 3px 0 0 !important;
    font-size: 0.62rem !important;
    line-height: 1.15 !important;
    -webkit-line-clamp: 6 !important;
  }

  .footer h4,
  .footer__col h4,
  .footer__col--services h4,
  .footer__col--quick h4,
  .footer__col--contact h4,
  .footer__col--contact h4[style] {
    font-size: 0.58rem !important;
    line-height: 1 !important;
    margin: 0 0 4px !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .footer h4::after {
    width: 18px !important;
    height: 1px !important;
    margin: 2px 0 0 !important;
  }

  .footer__links,
  .footer__col .footer__links {
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer__links li,
  .footer__col .footer__links li {
    margin: 2px 0 !important;
    padding: 0 !important;
    line-height: 1.08 !important;
  }

  .footer__links a,
  .footer__link,
  .footer__col .footer__links a,
  .footer__col--contact .footer__link,
  .footer__col--contact .ic {
    display: inline-flex !important;
    align-items: flex-start !important;
    max-width: 100% !important;
    gap: 3px !important;
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .footer__col--contact h4[style] {
    margin-top: 6px !important;
  }

  .footer .social {
    gap: 4px !important;
    margin-top: 4px !important;
    justify-content: flex-start !important;
  }

  .footer .social a {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    font-size: 0.68rem !important;
  }

  .footer__bar {
    width: calc(100% - 12px) !important;
    margin-top: 14px !important;
    padding-top: 8px !important;
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
  }
}

/* Final footer phone/desktop-mode type balance */
@media (pointer: coarse) and (max-width: 1200px) {
  .footer h4,
  .footer__col--services h4,
  .footer__col--quick h4,
  .footer__col--contact h4 {
    font-size: 0.52rem !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
  }

  .footer h4::after {
    width: 24px !important;
    height: 1px !important;
    margin-top: 4px !important;
  }

  .footer__links li,
  .footer__col--services .footer__links li,
  .footer__col--quick .footer__links li,
  .footer__col--contact .footer__links li {
    margin: 2px 0 !important;
    line-height: 1.12 !important;
  }

  .footer__links,
  .footer__links a,
  .footer__link,
  .footer__col--services .footer__links,
  .footer__col--quick .footer__links,
  .footer__col--contact .footer__links,
  .footer__col--services .footer__links a,
  .footer__col--quick .footer__links a,
  .footer__col--contact .footer__links a,
  .footer__col--contact .footer__link,
  .footer__col--contact .ic {
    font-size: 0.98rem !important;
    line-height: 1.02 !important;
  }
}

@media (pointer: coarse) and (min-width: 700px) and (max-width: 1200px) {
  .footer {
    font-size: 16px !important;
    padding: clamp(32px, 4vw, 52px) 0 16px !important;
  }

  .footer__grid {
    grid-template-columns: minmax(230px, 1.25fr) minmax(145px, .8fr) minmax(145px, .8fr) minmax(210px, 1fr) !important;
    width: min(100% - 28px, 1480px) !important;
    gap: clamp(16px, 2vw, 28px) !important;
    align-items: start !important;
    text-align: left !important;
  }

  .footer__col--brand {
    grid-column: auto !important;
  }

  .footer .brand,
  .footer .brand__txt,
  .footer h4,
  .footer__links,
  .footer .social {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .footer .brand img {
    width: clamp(170px, 16vw, 230px) !important;
    max-height: 64px !important;
  }

  .footer-about-preview {
    max-width: 42ch !important;
    -webkit-line-clamp: 6 !important;
    font-size: clamp(0.76rem, 1.25vw, 0.9rem) !important;
    line-height: 1.55 !important;
  }

  .footer h4,
  .footer__col--services h4,
  .footer__col--quick h4,
  .footer__col--contact h4 {
    font-size: clamp(0.60rem, 0.9vw, 0.8rem) !important;
    line-height: 1 !important;
    margin-bottom: 1px !important;
  }

  .footer h4::after {
    margin: 6px 0 0 !important;
  }

  .footer__links,
  .footer__links a,
  .footer__link,
  .footer__col--services .footer__links,
  .footer__col--quick .footer__links,
  .footer__col--contact .footer__links,
  .footer__col--services .footer__links li,
  .footer__col--quick .footer__links li,
  .footer__col--contact .footer__links li,
  .footer__col--services .footer__links a,
  .footer__col--quick .footer__links a,
  .footer__col--contact .footer__links a,
  .footer__col--contact .footer__link,
  .footer__col--contact .ic {
    font-size: clamp(0.82rem, 1.12vw, 0.96rem) !important;
    line-height: 1.34 !important;
  }

  .footer__links li {
    margin: 4px 0 !important;
  }

  .footer__col--contact h4[style] {
    margin-top: 10px !important;
  }

  .footer .social a {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    font-size: 0.84rem !important;
  }

  .footer__bar {
    font-size: clamp(0.66rem, 1vw, 0.78rem) !important;
    margin-top: 24px !important;
  }
}

/* Final phone/desktop-mode footer tightening */
@media (pointer: coarse) and (max-width: 1200px) {
  .footer__col--services h4,
  .footer__col--quick h4,
  .footer__col--contact h4 {
    font-size: clamp(0.72rem, 0.9vw, 0.84rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 5px !important;
  }

  .footer__col--services .footer__links,
  .footer__col--quick .footer__links,
  .footer__col--contact .footer__links {
    gap: 0 !important;
  }

  .footer__col--services .footer__links li,
  .footer__col--quick .footer__links li,
  .footer__col--contact .footer__links li {
    margin: 3px 0 !important;
    line-height: 1.24 !important;
  }

  .footer__col--services .footer__links a,
  .footer__col--quick .footer__links a,
  .footer__col--contact .footer__links a,
  .footer__col--contact .footer__link,
  .footer__col--contact .ic {
    font-size: clamp(0.82rem, 1.12vw, 0.96rem) !important;
    line-height: 1.3 !important;
    gap: 4px !important;
  }

  .footer__col--contact h4[style] {
    margin-top: 9px !important;
  }
}

@media (max-width: 720px) {
  .footer__col--services h4,
  .footer__col--quick h4,
  .footer__col--contact h4 {
    font-size: 0.9rem !important;
    margin-bottom: 7px !important;
  }

  .footer__links li {
    margin: 4px 0 !important;
  }

  .footer__links a,
  .footer__link {
    font-size: 0.8rem !important;
    line-height: 1.28 !important;
  }
}
