/* Arthrex patient congratulations — primary palette */
:root {
  --c-sky: #46acc2;
  --c-teal: #498c8a;
  --c-earth: #4d4730;
  --c-page: #f6f9fa;
  --c-text: #2a2f33;
  --c-muted: #5c656b;
  --header-h: 4.25rem;
  --page-gutter: 1.25rem;
  --content-max: 56rem;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-page);
  line-height: 1.55;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgb(70 172 194 / 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgb(73 140 138 / 0.1), transparent 45%),
    linear-gradient(165deg, rgb(77 71 48 / 0.04) 0%, transparent 35%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem var(--page-gutter);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(73 140 138 / 0.2);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: auto;
  width: min(160px, 42vw);
  display: block;
  scale: 0.8;
}

.logo--footer {
  width: min(140px, 50vw);
  opacity: 0.95;
}

.site-header__menu {
  position: relative;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: rgb(70 172 194 / 0.15);
  color: var(--c-teal);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgb(70 172 194 / 0.28);
  outline: 2px solid var(--c-sky);
  outline-offset: 2px;
}

.nav-toggle__bars {
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: var(--c-earth);
  border-radius: 1px;
  transition: background 0.2s;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-earth);
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 110;
  width: min(16rem, calc(100vw - 2rem));
  max-height: calc(100dvh - var(--header-h) - 1rem);
  overflow-y: auto;
  padding: 0.35rem 0 0.5rem;
  background: #fff;
  border: 1px solid rgb(73 140 138 / 0.25);
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgb(77 71 48 / 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.35rem);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
  pointer-events: none;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list li {
  border-bottom: 1px solid rgb(70 172 194 / 0.15);
}

.site-nav__list li:last-child {
  border-bottom: none;
}

.site-nav__list a {
  display: block;
  padding: 0.75rem 1.1rem;
  color: var(--c-earth);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--c-sky);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(77 71 48 / 0.35);
  top: var(--header-h);
}

.nav-backdrop[hidden] {
  display: none;
}

.main {
  flex: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.75rem var(--page-gutter) 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-teal);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  color: var(--c-earth);
  line-height: 1.2;
}

.hero__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--c-muted);
}

.video-section {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem;
  background: linear-gradient(
    145deg,
    rgb(70 172 194 / 0.18) 0%,
    rgb(73 140 138 / 0.12) 50%,
    rgb(77 71 48 / 0.08) 100%
  );
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgb(77 71 48 / 0.12);
}

.video-frame__accent {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  z-index: 0;
}

.video-frame__accent--tl {
  top: 0.35rem;
  left: 0.35rem;
  background: var(--c-sky);
  opacity: 0.35;
}

.video-frame__accent--br {
  bottom: 0.35rem;
  right: 0.35rem;
  background: var(--c-teal);
  opacity: 0.4;
}

.video-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #0d1114;
}

.video-shell::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 56.25%;
  pointer-events: none;
}

.patient-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(13 17 20 / 0.75) 0%,
    transparent 45%,
    rgb(13 17 20 / 0.25) 100%
  );
  transition: opacity 0.35s ease, visibility 0.35s;
}

.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.video-overlay__text {
  margin: 0;
  max-width: 90%;
  text-align: center;
  font-size: clamp(0.85rem, 2.8vw, 1.1rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 -1px 0 #000,
    0 1px 0 #000,
    -1px 0 0 #000,
    1px 0 0 #000,
    0 2px 4px rgb(0 0 0 / 0.45);
}

.product-strip {
  margin: 0 auto 2rem;
  max-width: 42rem;
}

.product-strip__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 520px) {
  .product-strip__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

.product-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1rem 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid rgb(73 140 138 / 0.2);
}

.product-strip__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-strip__icon svg {
  width: 100%;
  height: 100%;
}

.product-strip__icon--sky {
  color: var(--c-sky);
}

.product-strip__icon--teal {
  color: var(--c-teal);
}

.product-strip__icon--earth {
  color: var(--c-earth);
}

.product-strip__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-earth);
  line-height: 1.35;
}

.support {
  margin-top: 1rem;
}

.support__card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgb(73 140 138 / 0.25);
  box-shadow: 0 4px 20px rgb(70 172 194 / 0.08);
  overflow: hidden;
}

.support__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-sky), var(--c-teal), var(--c-earth));
}

.support__figure {
  margin: 0 0 1.1rem;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid rgb(73 140 138 / 0.2);
  box-shadow: 0 6px 20px rgb(77 71 48 / 0.08);
}

.support__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 520px) {
  .support__photo {
    max-height: 16rem;
  }
}

.support__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--c-earth);
}

.support__text {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.98rem;
}

.site-footer {
  margin-top: auto;
  padding: 2rem var(--page-gutter);
  background: linear-gradient(180deg, rgb(77 71 48 / 0.06) 0%, rgb(73 140 138 / 0.12) 100%);
  border-top: 1px solid rgb(73 140 138 / 0.2);
}

.site-footer__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.site-footer__brand {
  justify-self: start;
  transform: translateX(10px);
}

.site-footer__socials {
  justify-self: center;
}

.site-footer__socials-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__socials-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--c-earth);
  border-radius: 0.35rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-footer__socials-list a:hover,
.site-footer__socials-list a:focus-visible {
  color: var(--c-sky);
  background: rgb(70 172 194 / 0.12);
}

.site-footer__socials-list a:focus-visible {
  outline: 2px solid var(--c-sky);
  outline-offset: 2px;
}

.site-footer__social-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.site-footer__legal {
  margin: 0 auto;
  max-width: var(--content-max);
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 560px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer__brand {
    justify-self: center;
  }

  .site-footer__socials {
    justify-self: center;
  }

  .site-footer__spacer {
    display: none;
  }
}
