/**
 * HostStack enterprise footer — premium SaaS / infrastructure layout
 * Loaded globally after hs-design-system.css
 */

html.hs-theme-cyber footer.hs-ft,
html.hs-theme-cyber .hs-ft {
  background: #01060d !important;
  color: #9eb8d4 !important;
}

.hs-ft {
  --hs-ft-bg: #01060d;
  --hs-ft-border: rgba(56, 189, 248, 0.12);
  --hs-ft-ink: #e8f4ff;
  --hs-ft-muted: #9eb8d4;
  --hs-ft-faint: #6b8aad;
  --hs-ft-accent: #38bdf8;
  --hs-ft-accent-hover: #7dd3fc;
  --hs-ft-panel: rgba(8, 22, 44, 0.72);
  position: relative;
  z-index: 1;
  background: var(--hs-ft-bg);
  border-top: 1px solid var(--hs-ft-border);
  color: var(--hs-ft-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  overflow-x: clip;
}

.hs-ft::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(56, 189, 248, 0.07), transparent 70%);
}

.hs-ft__shell {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 1.5rem)
    calc(clamp(1.25rem, 3vw, 2rem) + var(--hs-mobile-dock-h, 0px));
}

/* --- Row 1: main grid --- */
.hs-ft__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

@media (min-width: 640px) {
  .hs-ft__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs-ft__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .hs-ft__grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 2vw, 2.25rem) clamp(1rem, 1.75vw, 1.75rem);
  }

  .hs-ft__brand {
    grid-column: auto;
    padding-right: 0.5rem;
  }
}

/* Brand column */
.hs-ft__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hs-font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hs-ft-ink);
  text-decoration: none !important;
}

.hs-ft__logo-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--hs-ft-accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.hs-ft__tagline {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--hs-ft-muted);
}

.hs-ft__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hs-ft__action {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(56, 189, 248, 0.06);
  color: var(--hs-ft-ink) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hs-ft__action:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--hs-ft-accent-hover) !important;
}

.hs-ft__action--wa {
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.1);
  color: #bbf7d0 !important;
}

.hs-ft__action--wa:hover {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.5);
  color: #dcfce7 !important;
}

.hs-ft__office {
  margin-top: 1.125rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: var(--hs-ft-panel);
}

/* Office + Google Map row */
.hs-ft__location {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: linear-gradient(168deg, rgba(8, 22, 44, 0.92) 0%, rgba(4, 12, 28, 0.88) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 12px 40px rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
  .hs-ft__location {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    align-items: stretch;
    gap: 1.25rem;
  }
}

.hs-ft__location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hs-ft__office-meta {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--hs-ft-faint);
}

.hs-ft__office-meta a {
  color: var(--hs-ft-accent) !important;
  text-decoration: none !important;
}

.hs-ft__office-meta a:hover {
  color: var(--hs-ft-accent-hover) !important;
  text-decoration: none !important;
}

.hs-ft__map-wrap {
  position: relative;
  min-height: 220px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(2, 9, 19, 0.85);
}

.hs-ft__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  filter: saturate(0.88) contrast(1.05) brightness(0.92);
}

@media (min-width: 768px) {
  .hs-ft__map-wrap,
  .hs-ft__map {
    min-height: 260px;
  }
}

.hs-ft__office-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-ft-faint);
}

.hs-ft__office-addr {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--hs-ft-ink);
}

.hs-ft__office-map {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hs-ft-accent) !important;
  text-decoration: none !important;
}

.hs-ft__office-map:hover {
  color: var(--hs-ft-accent-hover) !important;
  text-decoration: none !important;
}

.hs-ft__dc-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 28rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--hs-ft-faint);
}

.hs-ft__dc-list strong {
  color: var(--hs-ft-muted);
  font-weight: 600;
}

/* Nav columns */
.hs-ft__group {
  min-width: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

@media (max-width: 767px) {
  .hs-ft__group {
    border-radius: 0.65rem;
    background: rgba(4, 12, 28, 0.35);
    padding-inline: 0.15rem;
  }

  .hs-ft__group + .hs-ft__group {
    margin-top: 0.35rem;
  }
}

@media (min-width: 768px) {
  .hs-ft__group {
    border-bottom: none;
  }
}

.hs-ft__heading {
  list-style: none;
  margin: 0 0 0.75rem;
  font-family: var(--hs-font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-ft-ink);
}

.hs-ft__heading::-webkit-details-marker {
  display: none;
}

.hs-ft__links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.25rem;
}

.hs-ft__links a {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.15rem 0;
  color: var(--hs-ft-muted) !important;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.hs-ft__links a:hover {
  color: var(--hs-ft-accent-hover) !important;
}

/* Mobile accordions */
@media (max-width: 767px) {
  .hs-ft__group > .hs-ft__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0.85rem 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .hs-ft__group > .hs-ft__heading::after {
    content: "+";
    font-size: 1rem;
    font-weight: 400;
    color: var(--hs-ft-accent);
  }

  .hs-ft__group[open] > .hs-ft__heading::after {
    content: "−";
  }

  .hs-ft__group .hs-ft__links {
    padding-bottom: 0.85rem;
  }

  .hs-ft__links a {
    min-height: 2.75rem;
    font-size: 0.875rem !important;
  }

  .hs-ft__group:not([open]) .hs-ft__links {
    display: none;
  }
}

@media (min-width: 768px) {
  .hs-ft__group > .hs-ft__heading {
    pointer-events: none;
    cursor: default;
    padding: 0;
  }

  .hs-ft__group > .hs-ft__heading::after {
    display: none;
  }
}

/* --- Row 2: trust strip --- */
.hs-ft__trust {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--hs-ft-border);
}

.hs-ft__trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.hs-ft__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0 !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.hs-ft__status:hover {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
}

.hs-ft__status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.hs-ft__trust-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hs-ft-accent) !important;
  text-decoration: none !important;
}

.hs-ft__trust-link:hover {
  color: var(--hs-ft-accent-hover) !important;
  text-decoration: none !important;
}

.hs-ft__trust-meta {
  font-size: 0.75rem;
  color: var(--hs-ft-faint);
}

.hs-ft__pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.hs-ft__pay-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.15rem 0.65rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background: rgba(4, 12, 28, 0.65);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hs-ft-muted);
}

/* --- Row 3: bottom bar --- */
.hs-ft__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-top: clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(56, 189, 248, 0.08);
}

@media (min-width: 768px) {
  .hs-ft__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.hs-ft__legal {
  margin: 0;
  max-width: 42rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--hs-ft-faint);
}

.hs-ft__bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  flex-shrink: 0;
}

.hs-ft__bottom-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hs-ft-muted) !important;
  text-decoration: none !important;
}

.hs-ft__bottom-nav a:hover {
  color: var(--hs-ft-accent-hover) !important;
}

/* Dock clearance on mobile */
@media (max-width: 639px) {
  body.hs-mobile-dock-on .hs-ft__shell {
    padding-bottom: calc(1.25rem + var(--hs-mobile-dock-h, 4.5rem));
  }

  body.hs-mobile-dock-on #hs-cookie.hs-cookie-bar {
    bottom: calc(var(--hs-mobile-dock-h, 4.25rem) + env(safe-area-inset-bottom, 0px));
  }
}
