/* High-Fidelity Footer Styling */

.site-footer {
  background-color: #ffffff;
  color: #475569;
  /* border-top: rgb(175, 173, 173); */
  padding: 4rem 0 0 0;
  font-size: 0.8rem;
  border-bottom: 1px solid #f1f5f9;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
}

/* Footer Columns Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1025px) {
  .footer-grid {
    gap: 1.5rem;
  }
  .footer-col:not(:first-child) {
    border-left: 1px solid #e2e8f0;
    padding-left: 2rem;
  }
}

/* Brand Column */
.brand-col {
  gap: 1.25rem;
}

.footer-logo {
  display: inline-block;
  max-width: 220px;
  line-height: 0;
}

.site-footer .footer-logo img {
  height: 58px;
  max-height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: inline-block;
}

.footer-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #64748b;
}

/* Newsletter Card */
.newsletter-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.newsletter-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.send-icon {
  background-color: rgba(70, 174, 253, 0.12);
  color: #46aefd;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(70, 174, 253, 0.2);
}

.send-icon svg {
  width: 13px;
  height: 13px;
  transform: none;
}

.newsletter-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #46aefd;
  margin-bottom: 0.1rem;
}

.newsletter-info p {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
}

.newsletter-card .newsletter-form-container {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  overflow: hidden;
  margin-top: 0.75rem;
  transition: border-color var(--transition-fast);
  height: 42px;
}

.newsletter-card .newsletter-form-container:focus-within {
  border-color: #002b66;
}

.newsletter-card .newsletter-email-input {
  flex: 1 1 auto !important;
  width: 0 !important;
  min-width: 0 !important;
  border: none !important;
  outline: none !important;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.82rem !important;
  color: #1e293b !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.newsletter-card .newsletter-email-input::placeholder {
  color: #64748b !important;
}

.newsletter-card .newsletter-submit-btn {
  background-color: #002b66 !important;
  color: #ffffff !important;
  border: none !important;
  width: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color var(--transition-fast) !important;
  flex: 0 0 44px !important;
  height: 100% !important;
}

.newsletter-card .newsletter-submit-btn:hover {
  background-color: #001f4d !important;
}

.newsletter-card .newsletter-submit-btn svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
}

/* Badges Container */
.footer-badges {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.25rem;
  flex-wrap: nowrap;
  align-items: center;
}

.footer-badge-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.footer-badge-img {
  height: 35px;
  width: auto;
  object-fit: contain;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.footer-badge-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  border-color: var(--primary-light);
}

/* Nav Headers & Icons */
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.heading-icon {
  background-color: rgba(70, 174, 253, 0.12);
  color: #46aefd;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(70, 174, 253, 0.15);
}

.heading-icon svg {
  width: 14px;
  height: 14px;
}

/* Services Scrollable Ticker */
.footer-services-ticker {
  overflow: hidden;
  height: 260px;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.footer-services-track {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  animation: footerTickerScroll 28s linear infinite;
}

.footer-services-ticker:hover .footer-services-track {
  animation-play-state: paused;
}

@keyframes footerTickerScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.footer-service-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.72rem;
  font-weight: 500;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.3rem;
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  line-height: 1.3;
}

.footer-service-item:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-service-item .arrow {
  color: #cbd5e1;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: 4px;
  transition: color var(--transition-fast);
}

.footer-service-item:hover .arrow {
  color: var(--primary);
}

/* Links lists */
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav-list li {
  border-bottom: 1px solid #f8fafc;
}

.footer-nav-list a {
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 0.78rem;
  transition: all var(--transition-fast);
}

.footer-nav-list .arrow {
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-nav-list a:hover .arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* Quick Links Address Block */
.footer-address-block {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid #e8edf5;
  padding-top: 1rem;
}

.footer-address-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-address-icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.footer-address-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.footer-address-text {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Offices Column */
.offices-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.countries-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.countries-list li {
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  position: relative;
  padding-left: 0;
}

.view-countries-btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1.25rem;
  transition: color var(--transition-fast);
}

.view-countries-btn:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Contacts Column */
.contact-section {
  margin-bottom: 1.25rem;
}

.contact-section:not(:last-child) {
  border-bottom: 1.5px dotted #cbd5e1;
  padding-bottom: 1.25rem;
}

.contact-section:last-child {
  margin-bottom: 0;
}

.contact-section .footer-heading {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

.contact-section .heading-icon {
  width: 24px;
  height: 24px;
}

.contact-section .heading-icon svg {
  width: 12px;
  height: 12px;
}

.contact-details {
  padding-left: 2rem;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-details p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-details strong {
  color: var(--dark-bg);
  white-space: nowrap;
}

.contact-details a {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.contact-details a:hover {
  text-decoration: underline;
}

.font-sm {
  font-size: 0.85rem;
}

/* TRUST BAR */
.footer-trust-bar {
  background-color: #d6e4fb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1.75rem;
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-trust-bar .container-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-cards-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.75rem 0 0;
  margin: 0 1.75rem 0 0;
  border-right: 1px solid #dde3ed;
}

.trust-card:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.trust-icon {
  background-color: #eef2ff;
  color: #3b5bdb;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(59, 91, 219, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 15px;
  height: 15px;
}

.trust-text h6 {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.1rem;
  white-space: nowrap;
}

.trust-text p {
  font-size: 0.67rem;
  color: #64748b;
  white-space: nowrap;
}

/* Social Section */
.footer-social-section {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.social-btn-container {
  display: flex;
  gap: 0.35rem;
}

.social-circle-btn {
  background-color: #ffffff;
  border: 1px solid #dde3ed;
  color: #475569;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.social-circle-btn svg {
  width: 12px;
  height: 12px;
}

.social-circle-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 91, 164, 0.2);
}

/* Quick Links sub-section below Services ticker */
.footer-quicklinks-sub {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8edf5;
}

.footer-quicklinks-sub .offices-sub {
  margin-bottom: 0.75rem;
}

.footer-quicklinks-sub .footer-nav-list {
  gap: 0.55rem;
}

.footer-quicklinks-sub .footer-nav-list li {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.3rem;
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-text {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: flex-end;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.footer-legal-links a:hover {
  color: var(--primary);
}

/* RESPONSIVE LAYOUT FOR FOOTER */

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1.1fr 1fr 1.2fr;
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .brand-col {
    grid-column: span 3;
    max-width: 600px;
    margin-bottom: 1.5rem;
  }
  .footer-trust-bar .container-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .trust-cards-container {
    gap: 1.5rem;
  }
  .footer-services-ticker {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .brand-col {
    grid-column: span 2;
  }
  .footer-services-ticker {
    height: 180px;
  }
  .trust-cards-container {
    gap: 1rem;
  }
  .trust-card {
    padding: 0 1rem 0 0;
    margin: 0 1rem 0 0;
  }
  .footer-social-section {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .brand-col {
    grid-column: span 1;
  }
  .footer-services-ticker {
    height: 160px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-legal-links {
    justify-content: center;
    gap: 0.45rem 0.9rem;
  }
  .footer-legal-links a {
    font-size: 0.72rem;
  }
  .footer-trust-bar {
    padding: 0.85rem 1rem;
  }
  .trust-cards-container {
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .trust-card {
    border-right: none;
    border-bottom: 1px solid #dde3ed;
    padding: 0 0 0.75rem 0;
    margin: 0;
  }
  .trust-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-social-section {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
  .contact-details p {
    white-space: normal;
  }
  .contact-details strong {
    white-space: normal;
  }
  .contact-details a {
    white-space: normal;
  }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   Fixed bottom-left, smooth scroll, hidden until user scrolls down.
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c7cfc 0%, #1e90ff 100%);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(12, 124, 252, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, #1e90ff 0%, #0c7cfc 100%);
  box-shadow: 0 8px 26px rgba(12, 124, 252, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.scroll-top-btn:active {
  transform: translateY(-1px);
}

.scroll-top-btn i {
  transition: transform 0.25s ease;
}

.scroll-top-btn:hover i {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn,
  .scroll-top-btn i {
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    transform: none !important;
  }
}
