/* ==========================================================================
   Footer (#footer.jt-footer)
   Navy to match the scrolled top bar. Four columns: brand + LinkedIn,
   Company links, Products links, contact details + button.
   Bottom bar: copyright and "Back to top".
   ========================================================================== */

#footer.jt-footer {
  position: relative;
  padding: 72px 15px 0;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(33, 142, 205, 0.16), transparent 70%),
    #0D0E1F;
  color: rgba(255, 255, 255, 0.7);
}
/* Thin brand-coloured line along the top edge */
#footer.jt-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ED2524 0%, #1C69A1 55%, #013f5b 100%);
}

.jt-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
}

/* ---- Brand ------------------------------------------------------------ */
.jt-footer-brand img { display: block; width: 210px; height: auto; margin-bottom: 18px; }
.jt-footer-brand p {
  max-width: 300px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
}
.jt-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.jt-footer-social:hover,
.jt-footer-social:focus { background: #ED2524; border-color: #ED2524; color: #fff; text-decoration: none; }

/* ---- Columns ---------------------------------------------------------- */
.jt-footer .jt-footer-title {
  margin: 6px 0 18px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.jt-footer-links,
.jt-footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}
.jt-footer-links li + li { margin-top: 10px; }
.jt-footer-links a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, padding 0.2s ease;
}
.jt-footer-links a:hover,
.jt-footer-links a:focus { color: #fff; padding-left: 4px; text-decoration: none; }

.jt-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.6;
}
.jt-footer-contact .fa {
  flex: 0 0 16px;
  margin-top: 4px;
  color: #ED2524;
  text-align: center;
}
.jt-footer-contact a,
.jt-footer-contact address { margin: 0; font-style: normal; color: rgba(255, 255, 255, 0.85); }
.jt-footer-contact a:hover,
.jt-footer-contact a:focus { color: #fff; text-decoration: none; }

.jt-footer-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.jt-footer-btn:hover,
.jt-footer-btn:focus { background: #ED2524; border-color: #ED2524; color: #fff; text-decoration: none; }

/* ---- Bottom bar ------------------------------------------------------- */
.jt-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.jt-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.jt-footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.jt-footer-top .fa { transition: transform 0.2s ease; }
.jt-footer-top:hover,
.jt-footer-top:focus { color: #fff; text-decoration: none; }
.jt-footer-top:hover .fa { transform: translateY(-3px); }

.jt-footer a:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 991px) {
  .jt-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 599px) {
  #footer.jt-footer { padding-top: 56px; }
  .jt-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 40px; }
  .jt-footer-brand,
  .jt-footer-grid > div:last-child { grid-column: 1 / -1; }
  .jt-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jt-footer-links a, .jt-footer-top .fa, .jt-footer-social, .jt-footer-btn { transition: none; }
  .jt-footer-links a:hover { padding-left: 0; }
  .jt-footer-top:hover .fa { transform: none; }
}
