/* Triplan Website / Containers / Site Footer
 * Shortcode: [triplan_site_footer]
 *
 * Realtime preview: previews/website/site-footer.html
 */

.tp-site-footer {
  --tp-footer-bg: var(--tp-midnight);
  --tp-footer-bg-soft: rgba(255, 255, 255, 0.06);
  --tp-footer-border: rgba(255, 255, 255, 0.08);
  --tp-footer-text: #E5E7EB;
  --tp-footer-muted: rgba(229, 231, 235, 0.7);
  --tp-footer-title: #ffffff;
  --tp-footer-accent: var(--tp-primary, #40A1B7);
  --tp-footer-pad-x: var(--tp-section-padding-x-desktop, 90px);
  --tp-footer-max-width: 1400px;
  --tp-footer-radius: 14px;

  position: relative;
  background: var(--tp-footer-bg);
  color: var(--tp-footer-text);
  font-family: var(--tp-body-font, "Poppins", sans-serif);
  font-size: 14px;
  line-height: 1.5;
}

.tp-site-footer *,
.tp-site-footer *::before,
.tp-site-footer *::after {
  box-sizing: border-box;
}

.tp-site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.tp-site-footer a:hover,
.tp-site-footer a:focus-visible {
  color: #fff;
}

.tp-site-footer__inner,
.tp-site-footer__newsletter-inner,
.tp-site-footer__bar-inner,
.tp-site-footer__copy-inner {
  width: 100%;
  max-width: var(--tp-footer-max-width);
  margin: 0 auto;
  padding: 0 var(--tp-footer-pad-x);
}

/* Newsletter strip */

.tp-site-footer__newsletter {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.13), transparent 32%),
    linear-gradient(135deg, var(--tp-cyan-hover) 0%, var(--tp-cyan) 100%);
  padding: 38px 0;
  border-bottom: 1px solid var(--tp-footer-border);
}

.tp-site-footer__newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 32px;
}

.tp-site-footer__newsletter-text {
  color: #fff;
}

.tp-site-footer__newsletter-kicker {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tp-site-footer__newsletter-title {
  margin: 0 0 4px;
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.tp-site-footer__newsletter-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
}

.tp-site-footer__newsletter-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.tp-site-footer__newsletter-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 0 18px 0 46px;
  height: 48px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.tp-site-footer__newsletter-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 15px;
}

.tp-site-footer__newsletter-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--tp-ink);
  height: 100%;
  width: 100%;
}

.tp-site-footer__newsletter-field input::placeholder {
  color: #9ca3af;
}

.tp-site-footer .tp-site-footer__newsletter-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--tp-midnight);
  color: #fff;
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
  box-shadow: 0 8px 22px rgba(27, 186, 202, 0.35);
}

.tp-site-footer .tp-site-footer__newsletter-submit:hover,
.tp-site-footer .tp-site-footer__newsletter-submit:focus-visible {
  background: var(--tp-cyan-hover);
  color: #fff;
  transform: translateY(-1px);
}

.tp-site-footer .tp-site-footer__newsletter-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.tp-site-footer__newsletter-message {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.tp-site-footer__newsletter-message.is-error {
  color: #ffd1cc;
}

.tp-site-footer__newsletter-message.is-success {
  color: #d2f4d6;
}

/* Main columns */

.tp-site-footer__inner {
  padding-top: 56px;
  padding-bottom: 40px;
}

.tp-site-footer__columns {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(150px, 0.8fr) minmax(170px, 0.9fr) minmax(280px, 1.35fr);
  gap: clamp(28px, 3vw, 52px);
}

.tp-site-footer__col-title {
  margin: 0 0 18px;
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--tp-footer-title);
  letter-spacing: 0;
}

/* Brand column */

.tp-site-footer__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.tp-site-footer__brand img {
  width: 124px;
  height: auto;
  display: block;
  object-fit: contain;
}

.tp-site-footer__tagline {
  margin: 0 0 16px;
  font-family: var(--tp-font-accent, Georgia, serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: #fff;
  max-width: 280px;
}

.tp-site-footer__description {
  margin: 0 0 18px;
  color: var(--tp-footer-muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 320px;
}

.tp-site-footer__socials {
  display: inline-flex;
  gap: 8px;
}

.tp-site-footer .tp-site-footer__social {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--tp-footer-bg-soft);
  color: var(--tp-footer-text);
  font-size: 15px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tp-site-footer .tp-site-footer__social:hover,
.tp-site-footer .tp-site-footer__social:focus-visible {
  background: var(--tp-footer-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Link columns */

.tp-site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-site-footer .tp-site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tp-footer-text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.tp-site-footer__link-bullet {
  color: var(--tp-footer-accent);
  font-size: 11px;
  flex-shrink: 0;
}

.tp-site-footer .tp-site-footer__link:hover .tp-site-footer__link-bullet,
.tp-site-footer .tp-site-footer__link:focus-visible .tp-site-footer__link-bullet {
  color: #fff;
}

/* Contact column */

.tp-site-footer__contact-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-site-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--tp-footer-text);
  font-size: 14px;
}

.tp-site-footer__contact-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(27, 186, 202, 0.14);
  color: var(--tp-cyan-soft);
  font-size: 15px;
  flex-shrink: 0;
}

.tp-site-footer .tp-site-footer__contact-list a:hover,
.tp-site-footer .tp-site-footer__contact-list a:focus-visible {
  color: #fff;
}

.tp-site-footer .tp-site-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.tp-site-footer .tp-site-footer__whatsapp:hover,
.tp-site-footer .tp-site-footer__whatsapp:focus-visible {
  background: #1ebe5a;
  color: #fff;
  transform: translateY(-1px);
}

.tp-site-footer__whatsapp i {
  font-size: 18px;
}

.tp-site-footer__whatsapp-caption {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--tp-footer-muted);
  text-align: center;
  position: relative;
}

.tp-site-footer__whatsapp-caption::before,
.tp-site-footer__whatsapp-caption::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  vertical-align: middle;
  margin: 0 8px;
}

/* Bottom bar (rating + badges) */

.tp-site-footer__bar {
  border-top: 1px solid var(--tp-footer-border);
  padding: 18px 0;
}

.tp-site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
}

.tp-site-footer__bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tp-footer-text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}

.tp-site-footer__bar-item strong {
  font-weight: 700;
  color: #fff;
}

.tp-site-footer__bar-item--rating i {
  color: #FFB800;
  font-size: 16px;
  margin-right: 2px;
}

.tp-site-footer__bar-google {
  font-size: 17px;
  background: linear-gradient(135deg, #4285F4 0%, #DB4437 33%, #F4B400 66%, #0F9D58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tp-site-footer__bar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
}

/* Copyright row */

.tp-site-footer__payments-img {
  display: block;
  flex: 0 0 auto;
  height: 26px;
  width: auto;
  max-width: 100%;
  opacity: 0.95;
}

.tp-site-footer__copy {
  border-top: 1px solid var(--tp-footer-border);
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.18);
}

.tp-site-footer__copy-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  color: var(--tp-footer-muted);
  font-size: 13px;
}

.tp-site-footer__copy-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
}

.tp-site-footer .tp-site-footer__copy a:hover,
.tp-site-footer .tp-site-footer__copy a:focus-visible {
  color: #fff;
}

/* Responsive */

@media (max-width: 1100px) {
  .tp-site-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }

  .tp-site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .tp-site-footer {
    --tp-footer-pad-x: var(--tp-section-padding-x-mobile, 20px);
    --tp-footer-contact-margin: 12px;
    font-size: 13px;
  }

  .tp-site-footer__newsletter {
    padding: 20px 0;
  }

  .tp-site-footer__newsletter-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tp-site-footer__newsletter-kicker {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .tp-site-footer__newsletter-title {
    margin-bottom: 3px;
    font-size: 20px;
  }

  .tp-site-footer__newsletter-desc {
    max-width: 44ch;
    font-size: 12.5px;
    line-height: 1.42;
  }

  .tp-site-footer__newsletter-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .tp-site-footer__newsletter-field {
    width: 100%;
    height: 44px;
  }

  .tp-site-footer .tp-site-footer__newsletter-submit {
    width: auto;
    height: 44px;
    padding-inline: 16px;
  }

  .tp-site-footer__newsletter-message {
    min-height: 0;
    margin-top: 0;
  }

  .tp-site-footer__newsletter-message:empty {
    display: none;
  }

  .tp-site-footer__inner {
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .tp-site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .tp-site-footer__col--brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    text-align: left;
  }

  .tp-site-footer__brand {
    margin: 0;
  }

  .tp-site-footer__brand img {
    width: 104px;
  }

  .tp-site-footer__tagline {
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .tp-site-footer__description {
    grid-column: 1 / -1;
    max-width: 48ch;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .tp-site-footer__socials {
    justify-self: end;
  }

  .tp-site-footer .tp-site-footer__social {
    width: 40px;
    height: 40px;
  }

  .tp-site-footer__col-title {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .tp-site-footer__list {
    gap: 0;
  }

  .tp-site-footer .tp-site-footer__link {
    width: 100%;
    min-height: 44px;
    gap: 7px;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .tp-site-footer__link-bullet {
    font-size: 9px;
  }

  .tp-site-footer__col--contact {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid var(--tp-footer-border);
  }

  .tp-site-footer__contact-list {
    margin-bottom: 12px;
    gap: 4px;
  }

  .tp-site-footer__contact-list li {
    min-height: 40px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
  }

  .tp-site-footer__contact-icon {
    width: 32px;
    height: 32px;
  }

  .tp-site-footer .tp-site-footer__whatsapp {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    margin-top: 2px;
    padding: 10px 16px;
  }

  .tp-site-footer__whatsapp-caption {
    display: none;
  }

  .tp-site-footer__bar {
    padding: 12px 0;
  }

  .tp-site-footer__bar-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tp-site-footer__bar-item {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 7px 8px;
    border: 1px solid var(--tp-footer-border);
    border-radius: 10px;
    background: var(--tp-footer-bg-soft);
    font-size: 11.5px;
    text-align: center;
  }

  .tp-site-footer__bar-divider {
    display: none;
  }

  .tp-site-footer__copy {
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  }

  .tp-site-footer__copy-inner {
    flex-direction: column;
    gap: 9px;
    font-size: 11.5px;
    text-align: center;
  }

  .tp-site-footer__copy-links {
    justify-content: center;
    gap: 6px 12px;
  }

  .tp-site-footer__payments-img {
    height: 20px;
  }
}

/* Runtime guard against theme/Elementor styles */
.tp-site-footer.tp-site-footer {
  background: var(--tp-footer-bg) !important;
  color: var(--tp-footer-text) !important;
}

.tp-site-footer.tp-site-footer .tp-site-footer__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tp-site-footer.tp-site-footer .tp-site-footer__contact-list {
  list-style: none !important;
  margin: 0 0 var(--tp-footer-contact-margin, 18px) !important;
  padding: 0 !important;
}

.tp-site-footer.tp-site-footer .tp-site-footer__newsletter-field input {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  color: var(--tp-ink) !important;
}
