
/* =========================================
   TINOR DELTA — PREMIUM CORPORATE FOOTER
========================================= */

.td-footer {
  --td-accent: #3935f5;
  --td-accent-hover: #514cff;
  --td-bg: #08090e;
  --td-text: #f4f5fb;
  --td-muted: #a4a9bc;
  --td-border: rgba(148, 163, 184, 0.17);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--td-text);
  background:
    radial-gradient(
      ellipse at 5% 0%,
      rgba(57, 53, 245, 0.13),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 100% 100%,
      rgba(57, 53, 245, 0.08),
      transparent 35%
    ),
    var(--td-bg);

  font-family: inherit;
  font-size: 15px;
}

.td-footer,
.td-footer * {
  box-sizing: border-box;
}

.td-footer__container {
  width: min(100% - 64px, 1320px);
  margin-inline: auto;
}

.td-footer__main {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.95fr 1.15fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: 76px 60px;
  align-items: start;
}

/* BRAND */


.td-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.td-footer__logo-image {
  display: block;
  width: 250px;
  max-width: 100%;
  height: 90px;
  object-fit: contain;
  object-position: left center;
}



.td-footer__description {
  max-width: 350px;
  margin: 24px 0;
  color: var(--td-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* SOCIAL LINKS */

.td-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.td-social {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce0ff;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.td-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.td-social:first-child svg {
  fill: none;
  stroke: #e7e9ff;
  stroke-width: 2;
}

.td-social:first-child .td-social__dot {
  fill: #e7e9ff;
  stroke: none;
}

.td-social:nth-child(2) .td-social__play {
  fill: var(--td-bg);
}

.td-social:hover {
  transform: translateY(-3px);
  border-color: var(--td-accent);
  background: rgba(57, 53, 245, 0.17);
}

/* NAVIGATION */

.td-footer__column {
  min-width: 0;
}

.td-footer__heading {
  position: relative;
  margin: 4px 0 29px;
  padding-bottom: 15px;
  color: var(--td-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.td-footer__heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  border-radius: 5px;
  background: var(--td-accent);
  content: "";
}

.td-footer__column ul {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-footer__column a {
  display: inline-block;
  color: var(--td-muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 180ms ease;
}

.td-footer__column a:hover,
.td-footer__legal a:hover {
  color: #8d89ff;
}


/* CONTACT & SUPPORT */

.td-footer__contact {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(35, 36, 76, 0.30),
    rgba(15, 16, 26, 0.72)
  );
}

.td-footer__contact-heading {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 15px;
  color: #f4f5fb;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.td-footer__contact-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  border-radius: 5px;
  background: #3935f5;
  content: "";
}

.td-footer__contact-intro {
  margin: 0 0 22px;
  color: #a4a9bc;
  font-size: 13px;
  line-height: 1.8;
}

.td-footer__contact-list {
  display: grid;
  gap: 8px;
}

.td-contact-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

a.td-contact-item:hover {
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(57, 53, 245, 0.09);
}

.td-contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(129, 140, 248, 0.20);
  border-radius: 11px;
  background: rgba(57, 53, 245, 0.13);
  color: #9691ff;
}

.td-contact-icon svg,
.td-trust-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-contact-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 5px;
}

.td-contact-copy strong {
  color: #f4f5fb;
  font-size: 13px;
  font-weight: 600;
}

.td-contact-copy small {
  overflow-wrap: anywhere;
  color: #a4a9bc;
  font-size: 11px;
  line-height: 1.6;
}

.td-contact-arrow {
  flex: 0 0 auto;
  color: #9691ff;
  font-size: 16px;
}

.td-footer__trust {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.td-trust-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(57, 53, 245, 0.12);
  color: #9691ff;
}

.td-footer__trust strong {
  display: block;
  margin-bottom: 5px;
  color: #f4f5fb;
  font-size: 12px;
}

.td-footer__trust p {
  margin: 0;
  color: #a4a9bc;
  font-size: 11px;
  line-height: 1.7;
}

.td-contact-item:focus-visible {
  outline: 2px solid #9691ff;
  outline-offset: 3px;
}



/* ===== FIX FOOTER BOTTOM ALIGNMENT ===== */

.td-footer__bottom {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;

  margin-top: 0;
  padding: 24px 0;

  border-top: 1px solid rgba(148, 163, 184, 0.20);
}

.td-footer__copyright {
  flex: 1 1 260px;
  margin: 0;
  color: #a4a9bc;
  font-size: 13px;
  line-height: 1.7;
}

.td-footer__legal {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.td-footer__legal a {
  color: #a4a9bc;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.td-footer__legal a:hover {
  color: #8580ff;
}

.td-footer__location {
  flex: 0 0 auto;
  color: #a4a9bc;
  font-size: 13px;
  white-space: nowrap;
}

/* Remove any old short divider from the brand column */
.td-footer__brand::after {
  content: none !important;
}

/* Fix contact email wrapping */
.td-contact-copy small {
  overflow-wrap: anywhere;
  word-break: normal;
}


/* =========================================
   TINOR DELTA FOOTER — RESPONSIVE
========================================= */

/* Tablet */
@media (max-width: 1024px) {

  .td-footer__container {
    width: calc(100% - 48px);
  }

  .td-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 30px;
    padding-block: 55px 42px;
  }

  .td-footer__brand {
    min-width: 0;
  }

  .td-footer__contact {
    padding: 22px;
  }

  .td-footer__logo-image {
    width: 220px;
    height: 80px;
  }

}

/* Mobile */
@media (max-width: 767px) {

  .td-footer {
    font-size: 14px;
  }

  .td-footer__container {
    width: calc(100% - 36px);
  }

  .td-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 40px 30px;
  }

  /* Brand */
  .td-footer__logo-image {
    width: 210px;
    max-width: 100%;
    height: 75px;
    object-position: left center;
  }

  .td-footer__description {
    max-width: 100%;
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 1.8;
  }

  /* Social links */
  .td-footer__socials {
    gap: 10px;
  }

  .td-social {
    width: 42px;
    height: 42px;
  }

  /* Navigation columns */
  .td-footer__heading {
    margin: 0 0 20px;
    padding-bottom: 12px;
    font-size: 17px;
  }

  .td-footer__column ul {
    gap: 14px;
  }

  .td-footer__column a {
    font-size: 14px;
    padding-block: 2px;
  }

  /* Contact panel */
  .td-footer__contact {
    width: 100%;
    min-width: 0;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .td-footer__contact-heading {
    font-size: 17px;
  }

  .td-footer__contact-intro {
    font-size: 13px;
  }

  .td-contact-item {
    gap: 10px;
    padding: 11px 5px;
  }

  .td-contact-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .td-contact-copy {
    flex: 1;
    min-width: 0;
  }

  .td-contact-copy strong {
    font-size: 13px;
  }

  .td-contact-copy small {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .td-footer__trust {
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
  }

  /* Copyright and legal links */
  .td-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0 24px;
  }

  .td-footer__copyright {
    flex: none;
    width: 100%;
    font-size: 12px;
  }

  .td-footer__legal {
    flex: none;
    justify-content: flex-start;
    gap: 12px 20px;
  }

  .td-footer__legal a {
    font-size: 12px;
    white-space: normal;
  }

  .td-footer__location {
    white-space: normal;
    font-size: 12px;
  }

}

/* Small mobile screens */
@media (max-width: 380px) {

  .td-footer__container {
    width: calc(100% - 28px);
  }

  .td-footer__main {
    gap: 28px;
    padding-block: 32px 25px;
  }

  .td-footer__logo-image {
    width: 185px;
    height: 68px;
  }

  .td-footer__contact {
    padding: 17px 12px;
  }

  .td-contact-item {
    gap: 8px;
  }

  .td-contact-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .td-contact-arrow {
    font-size: 14px;
  }

  .td-footer__legal {
    gap: 12px 15px;
  }

}
