/* Site footer shared by the redesigned pages (home, products, ...).
   The markup is generated per page by scripts/sync-site-footer.py. */

/* Pages that still load shared-footer.css would otherwise restyle every <footer>
   (footer:not(.contact-footer)); keep this footer's own surface. */
body footer.home-footer {
  border-top: 0;
  background: var(--bg-raised);
}

/* ===== FOOTER ===== */
/* Mobile first: newsletter, brand, link columns and legal row stacked, separated by thin rules.
   From 1024px the newsletter becomes a full-width band and the rest sits in a 1216px row. */
.home-footer {
  --hf-faint: #6b6b72;
  --hf-field-bg: rgba(255, 255, 255, 0.04);
  --hf-field-border: rgba(255, 255, 255, 0.12);
  padding: 40px 24px 32px;
  background: var(--bg-raised);
  font-family: var(--body, 'Inter', sans-serif);
}
html[data-theme="light"] .home-footer {
  --hf-faint: #8a8a92;
  --hf-field-bg: #fff;
  --hf-field-border: #d4d2cc;
}
.home-footer a {
  text-decoration: none;
  transition: color 0.2s;
}
.home-footer h3,
.home-footer h4,
.home-footer p {
  margin: 0;
}

/* Newsletter */
.hf-news {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rail);
}
.hf-news h3 {
  font-family: var(--body, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text-strong);
}
.hf-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hf-form input {
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--hf-field-border);
  border-radius: 100px;
  background: var(--hf-field-bg);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
}
.hf-form input::placeholder {
  color: var(--hf-faint);
  opacity: 1;
}
.hf-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.hf-form button {
  height: 48px;
  border: 0;
  border-radius: 100px;
  background: var(--accent);
  color: var(--btn-on-accent);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

/* Brand, address and LinkedIn */
.hf-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rail);
}
.hf-logo {
  display: block;
  width: 160px;
  aspect-ratio: 1557.84 / 200;
}
.hf-logo-light,
html[data-theme="light"] .hf-logo-dark {
  display: none;
}
html[data-theme="light"] .hf-logo-light {
  display: block;
}
.hf-about {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.04px; /* nudges "telecoms" onto the last line, as in the design */
  color: var(--text-dim);
}
.hf-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}
.hf-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--text-strong);
}
.hf-lines,
.hf-phone {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  color: var(--text-dim);
}
.hf-social {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.hf-social img {
  display: block;
  width: 24px;
  height: 24px;
}

/* Link columns */
.hf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rail);
}
.hf-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 159px;
  white-space: nowrap;
}
.hf-col h4 {
  font-size: 12px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hf-faint);
}
.hf-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hf-col a {
  display: block;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  color: var(--text-strong);
}
.hf-col a:hover {
  color: var(--home-accent-link, var(--accent));
}

/* Legal row */
.hf-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  white-space: nowrap;
}
.hf-bottom p {
  color: var(--hf-faint);
}
.hf-legal {
  display: flex;
  gap: 16px;
}
.hf-legal a {
  color: var(--text-dim);
}
.hf-legal a:hover {
  color: var(--text-strong);
}

@media (min-width: 1024px) {
  .home-footer {
    padding: 0;
    border-top: 1px solid var(--border);
    /* Content lines up with the 1216px column; 24px minimum side padding */
    --hf-inset: max(24px, calc((100% - 1216px) / 2));
  }

  /* Newsletter band */
  .hf-news {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px var(--hf-inset);
    border-bottom-color: var(--border);
  }
  .hf-news h3 {
    font-size: 28px;
    line-height: 42px;
  }
  .hf-form {
    position: relative;
    flex-direction: row;
    flex: none;
    width: 375px;
    height: 44px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg-card);
  }
  .hf-form input {
    height: 42px;
    padding: 13px 110px 13px 17px;
    border: 0;
    border-radius: 100px 4px 4px 100px;
    background: transparent;
    font-size: 14px;
    line-height: 16px;
  }
  .hf-form input::placeholder {
    color: var(--text-strong);
  }
  .hf-form button {
    position: absolute;
    top: 0;
    left: 287.5px;
    height: 42px;
    padding: 0 19px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
  }

  /* Brand + address on the left, link columns on the right */
  .hf-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 63px var(--hf-inset);
  }
  .hf-intro {
    display: grid;
    grid-template-columns: 210px 151px;
    column-gap: 78px;
    row-gap: 24px;
    align-items: start;
    padding: 0;
    border-bottom: 0;
  }
  .hf-logo {
    grid-column: 1;
    width: 210px;
  }
  .hf-about {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 92px; /* five lines, centred in a 92px box */
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 19.5px;
  }
  .hf-social {
    grid-column: 1;
  }
  .hf-address {
    grid-column: 2;
    grid-row: 1 / span 3;
    gap: 16px;
    white-space: normal;
  }
  .home-footer .hf-name {
    margin-bottom: 8px;
    font-size: 10.9px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 1.44px;
    color: var(--text-dim);
  }
  .hf-lines,
  .hf-phone {
    font-size: 14px;
    font-weight: 500;
    line-height: 22.75px;
  }
  .hf-lines {
    max-width: 140px; /* the street number wraps onto two lines: "3477 McKee Rd / #1080" */
  }
  .hf-phone {
    line-height: 20px;
  }
  .hf-links {
    flex-wrap: nowrap;
    gap: 78px;
    padding: 0;
    border-bottom: 0;
  }
  .hf-col {
    flex: none;
    gap: 24px;
  }
  .hf-col h4 {
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
    text-transform: none;
    color: var(--text-dim);
  }
  .hf-col ul {
    gap: 16px;
  }
  .hf-col a {
    font-weight: 500;
    line-height: 20px;
    color: var(--text-dim);
  }
  .hf-col a:hover {
    color: var(--text-strong);
  }

  /* Legal row */
  .hf-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    height: 56px;
    padding: 0 var(--hf-inset);
    border-top: 1px solid var(--border);
  }
  .hf-bottom p {
    color: var(--text-dim);
  }
  .hf-legal {
    gap: 20px;
  }
}

/* fade-in load */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.32s; }
.d4 { animation-delay: 0.46s; }
.d5 { animation-delay: 0.6s; }

/* ===== LIGHT THEME HOME ===== */
html[data-theme="light"] .closing .btn-primary svg {
  stroke: #121212;
}
