/* =========================
   GLOBAL OVERRIDES
   Lightweight global polish only
========================= */

a {
  transition: color 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
  text-decoration: none;
}

button,
.project-box a,
.highlight-box a,
.hero-btn,
.quicknav-cta,
.cta-button,
.careers-btn {
  cursor: pointer;
  user-select: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--eds-primary);
  outline-offset: 2px;
}

img,
picture,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
a {
  overflow-wrap: break-word;
}

button,
input,
select,
textarea {
  border-radius: 6px;
}

textarea {
  resize: vertical;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 10002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--eds-primary);
  border-radius: 999px;
  background: var(--eds-primary);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.back-to-top.is-visible {
  display: inline-flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #ffffff;
  color: var(--eds-primary);
}

@media (max-width: 768px) {
  button,
  .project-box a,
  .highlight-box a,
  .hero-btn,
  .quicknav-cta,
  .cta-button,
  .careers-btn {
    white-space: normal;
  }

  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .bottom-bar-text {
    font-size: 11px;
    line-height: 1.4;
  }
}
