/* ==========================================================================
   Homepage footer — ported from the reference workspace design
   (C:\Users\vishva.s\Desktop\tyasuite-workspace-20260831-102716\index.html,
   footer.home-footer, and its assets/css/home-footer.css).

   All classes are prefixed "hft-" so this never collides with the previous
   homepage footer's ".site-footer"/".footer-*" rules in
   assets/home/css/base.css (which this section replaces — the old
   <footer class="site-footer"> markup in home_footer.php has been removed,
   so no duplicate footer renders).

   Behaviour/JS: assets/home/js/home-footer-v2.js
   ========================================================================== */
.hft-footer .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hft-footer {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 24px 32px;
  overflow: hidden;
  color: #0f172a;
  background: #FFFFFF;
  border-top: 1px solid #e4e9ee;
  font-family: Figtree, sans-serif;
}

.hft-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.hft-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.hft-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(32px, 4.5vw, 56px);
  align-items: start;
}

.hft-brand-name {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.hft-brand-address {
  max-width: 380px;
  margin: 0 0 14px;
  color: #4a5a6b;
  font-size: 0.95rem;
  line-height: 1.65;
}

.hft-brand-mail {
  margin: 0 0 22px;
  color: #4a5a6b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hft-brand-mail strong {
  color: #0f172a;
}

.hft-brand-mail a {
  color: #4782A2;
  text-decoration: none;
}

.hft-brand-mail a:hover {
  text-decoration: underline;
}

.hft-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #FFFFFF;
  background: linear-gradient(90deg, #4782A2, #6FBAD9);
  box-shadow: 0 16px 34px rgba(71, 130, 162, 0.24);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.hft-social-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hft-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hft-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #dce7ed;
  border-radius: 50%;
  overflow: hidden;
  color: #4782A2;
  background: #eaf3f7;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hft-social a svg {
  width: 17px;
  height: 17px;
}

/* Each icon keeps its own brand color at all times, background stays
   white — hovering only lifts the icon slightly, it does not change
   the background or icon color. */
.hft-social a.hft-social--linkedin { color: #0a66c2; }
.hft-social a.hft-social--facebook { color: #1877f2; }
.hft-social a.hft-social--youtube { color: #ff0000; }
.hft-social a.hft-social--instagram { color: #d6249f; }

.hft-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.hft-columns {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(120px, 0.9fr) minmax(110px, 0.85fr) minmax(280px, 1.25fr);
  gap: clamp(20px, 2.8vw, 36px);
  align-items: start;
  width: 100%;
}

.hft-col {
  text-align: left;
  min-width: 0;
}

.hft-col:first-child a {
  white-space: nowrap;
}

.hft-col h3 {
  margin: 0 0 20px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hft-col a {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  padding: 10px 0;
  min-height: 44px;
  box-sizing: border-box;
  color: #5c6b7a;
  font-size: 1rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.hft-col a:hover {
  color: #2f5f7e;
  transform: translateX(3px);
}

.hft-newsletter h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
}

.hft-newsletter p {
  margin: 0 0 18px;
  color: #5c6b7a;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 34ch;
}

.hft-newsletter-form {
  display: flex;
  width: 100%;
  max-width: 380px;
  gap: 0;
}

.hft-newsletter-form input {
  min-width: 0;
  flex: 1;
  height: 48px;
  min-height: 48px;
  border: 1px solid #d7dee4;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  color: #25313d;
  background: #FFFFFF;
  font-family: Figtree, sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0 14px;
  outline: none;
  box-sizing: border-box;
}

.hft-newsletter-form input.is-error {
  box-shadow: inset 0 0 0 2px #f87171;
}

.hft-newsletter-status {
  margin: 10px 0 0;
  min-height: 1.2em;
  color: #5c6b7a;
  font-size: 0.88rem;
  line-height: 1.4;
}

.hft-newsletter-status.is-error { color: #fca5a5; }
.hft-newsletter-status.is-success { color: #6ee7b7; }

.hft-newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 0 5px 5px 0;
  color: #FFFFFF;
  background: #15D3AF;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hft-newsletter-form button svg {
  width: 18px;
  height: 18px;
}

.hft-newsletter-form button:hover:not(:disabled) {
  background: #11b494;
  transform: translateX(1px);
}

.hft-newsletter-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hft-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: clamp(52px, 6.5vw, 80px) 0 32px;
  padding: 30px 34px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(120deg, #0f2a3f 0%, #4782A2 55%, #6FBAD9 100%);
  box-shadow: 0 20px 40px -16px rgba(15, 42, 63, 0.35);
}

.hft-demo h3 {
  margin: 0 0 8px;
  color: #FFFFFF;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.hft-demo p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.hft-demo .hft-cta {
  flex: 0 0 auto;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  background: transparent;
  box-shadow: none;
  transition: transform 0.24s ease;
}

.hft-demo .hft-cta:hover {
  transform: translateY(-2px);
}

.hft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #e4e9ee;
}

.hft-bottom p {
  margin: 0;
  color: #5c6b7a;
  font-size: 0.9rem;
  line-height: 1;
}

.hft-bottom-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
}

.hft-bottom-links a {
  color: #5c6b7a;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
}

.hft-bottom-links a:hover {
  color: #2f5f7e;
}

@media (max-width: 1024px) {
  .hft-top { grid-template-columns: 1fr; }
  .hft-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hft-newsletter { grid-column: 1 / -1; }
  .hft-newsletter-form { max-width: 100%; }
  .hft-demo { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
  .hft-columns { grid-template-columns: 1fr; gap: 28px; }
  .hft-col:first-child a { white-space: normal; }
  .hft-newsletter { grid-column: auto; }
  .hft-newsletter p { max-width: none; }
  .hft-demo { text-align: left; }
  .hft-bottom {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
  }
  .hft-bottom-links { justify-content: flex-start; margin-left: 0; }
}

@media (max-width: 560px) {
  .hft-footer { padding: 48px 18px 28px; }
  .hft-brand-name {
    font-size: 0.92rem;
    white-space: nowrap;
  }
  .hft-newsletter-form { flex-direction: column; gap: 10px; max-width: 100%; }
  .hft-newsletter-form input,
  .hft-newsletter-form button {
    width: 100%;
    height: 52px;
    min-height: 52px;
    border-radius: 8px;
    box-sizing: border-box;
  }
  .hft-newsletter-form input { padding: 0 16px; font-size: 1rem; }
  .hft-newsletter-form button {
    font-size: 0;
    line-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hft-newsletter-form button svg {
    display: none;
  }
  .hft-newsletter-form button::after {
    content: "Subscribe";
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1;
  }
}
