/* ==========================================
   Footer + floating "Let's Talk" button
   Shared by the product pages (imported from styles.css) and /designs,
   which has its own base stylesheet.
   ========================================== */

/* ==========================================
   Floating Contact Button
   ========================================== */
.contact-btn {
  position: fixed;
  left: 16 px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 13, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.4px solid #808080;
  border-radius: 20px;
  padding: 12px 12px 12px 24px;
  text-decoration: none;
  z-index: 50;
  transition: background-color 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover {
  background: #282828;
}

/* Hidden while scrolling up, or once the footer (with its own contact
   links) scrolls into view — either way it exits downward, fading out. */
.contact-btn.is-hidden {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

.contact-btn-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.contact-btn-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  line-height: 1.1;
}

.contact-btn-time {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #fff;
  line-height: 1.1;
}

.contact-btn-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: #141414;
  border-radius: 8px;
  padding: 12px;
}

.contact-btn-cta span {
  font-family: 'Kode Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-btn-cta img {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* Desktop instance: fixed width, right-anchored instead of spanning full width */
@media (min-width: 1024px) {
  .contact-btn {
    left: auto;
    width: 361px;
  }
}

/* Bottom block: LinkedIn banner, Reach out, Footer nav */
.d-footer-block {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 140px 0 0;
}

.d-linkedin-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  padding-right: 20px;
  background: linear-gradient(89deg, rgb(194, 194, 194) 15.9%, rgb(115, 115, 115) 29.6%, rgb(71, 71, 71) 41.6%, rgb(44, 44, 44) 57.4%);
}

.d-banner-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 115px;
  height: 115px;
  object-fit: cover;
  pointer-events: none;
}

.d-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 40px;
  border: 1px solid #808080;
  border-radius: 12px;
  background-color: #141414;
  background-clip: padding-box;
}

.d-banner-btn span {
  font-family: 'Kode Mono', monospace;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.d-banner-btn img {
  width: 19px;
  height: 19px;
}

.d-reachout {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  padding: 0 8px;
}

.d-reachout-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 28px;
}

.d-reachout-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 0.95;
  color: #fff;
  margin: 0;
}

.d-reachout-sub {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  color: #7b7b7b;
  max-width: 452px;
  margin: 0;
}

.d-reachout-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-right: 60px;
}

.d-reachout-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}

.d-reachout-link img {
  width: 20px;
  height: 18px;
  object-fit: contain;
}

/* Click-to-copy feedback (main.js) — briefly underlines the email link
   instead of navigating to a mail client. text-decoration propagates down
   to nested text (e.g. .footer-link's inner spans) without extra rules.
   position:relative anchors the .copy-tooltip below. */
a[href^="mailto:"] {
  position: relative;
}

a[href^="mailto:"].is-copied {
  text-decoration: underline;
}

/* "Copied!" tooltip (main.js injects this span into every mailto: link).
   Sits centered above the link, hidden until .is-copied is toggled on. */
.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1A1A1A;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1;
}

.is-copied .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.d-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 24px;
  border-top: 1px solid #707070;
}

.d-footer-logo {
  font-family: 'Instrument Serif', serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.1;
  color: #fff;
}

.d-footer-icon-link {
  display: block;
  line-height: 0;
}

.d-footer-icon {
  width: 34px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* ==========================================
   Footer (mobile)
   ========================================== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding-top: 40px;
}

.footer-reachout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.footer-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 0.95;
  color: #fff;
  margin: 0;
  padding: 0 20px;
  width: 100%;
}

.footer-sub {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: #7b7b7b;
  margin: 0;
  padding: 0 20px;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0 16px;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background-color: #1A1A1A;
  border-radius: 8px;
  padding: 8px 16px;
}

.footer-link-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 0 0;
}

.footer-link-main img {
  width: 20px;
  height: auto;
  flex-shrink: 0;
}

.footer-link span {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  text-align: left;
  white-space: nowrap;
}

.footer-link-arrow {
  width: 18.767px;
  height: 18.767px;
  flex-shrink: 0;
}

.footer-nav-wrap {
  width: 100%;
  padding: 0 16px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 24px 16px;
  border-top: 1px solid #707070;
}

.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.1;
  color: #fff;
}

.footer-icon-link {
  display: block;
  line-height: 0; /* strip the inline-anchor gap under the image */
}

.footer-icon {
  width: 34px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Language switch in the footer nav (between the logo and the icon).
   Target page and memory of the choice: lang.js / scripts/build-pt.js */
.lang-switch {
  font-family: 'Kode Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: #7b7b7b;
  text-transform: uppercase;
  transition: color 0.2s;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  color: #fff;
}
