/* Site navigation
   Custom (not Bootstrap's JS-driven navbar collapse), since the bundled
   main.bc58148c.js doesn't wire up Bootstrap's jQuery-based components,
   same reason the carousel in index.html got a small custom script instead
   of relying on Bootstrap's carousel plugin. */

body {
  padding-top: 54px;
}

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.94);
}

.site-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}

.site-navbar-brand {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
}

.site-navbar-brand:hover,
.site-navbar-brand:focus {
  color: #f97316;
  text-decoration: none;
}

.site-navbar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.site-navbar-links li {
  margin-left: 20px;
}

.site-navbar-links a {
  color: #eee;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 2px;
  display: inline-block;
}

.site-navbar-links a:hover,
.site-navbar-links a:focus {
  color: #f97316;
  text-decoration: none;
}

.site-navbar-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}

.site-navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

/* Keep anchor jumps from landing right under the fixed bar */
.card[id] {
  scroll-margin-top: 64px;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 767px) {
  .site-navbar-toggle {
    display: inline-block;
  }

  .site-navbar-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: rgba(20, 20, 20, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 15px 14px;
  }

  .site-navbar-links.open {
    display: flex;
  }

  .site-navbar-links li {
    margin-left: 0;
    margin-top: 6px;
  }
}

/* Case study preview tiles (index.html "Case Studies" section) */
.case-study-tile {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-study-tile img,
.case-study-tile-placeholder-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.case-study-tile-placeholder-img {
  background: #f2f2f2;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-align: center;
}

.case-study-tile-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-study-tile-body p {
  flex: 1;
}

.btn-case-study {
  display: inline-block;
  background: rgba(20, 20, 20, 0.94);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  align-self: flex-start;
}

.btn-case-study:hover,
.btn-case-study:focus {
  background: #f97316;
  color: #fff;
  text-decoration: none;
}

.btn-case-study-disabled {
  display: inline-block;
  background: #ccc;
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  align-self: flex-start;
  cursor: default;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.94);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  background: #f97316;
}

/* Space between a carousel's caption text and any note below it */
.carousel-note {
  margin-top: 20px;
}

/* Case study: live Figma prototype embed */
.figma-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 4 / 3;
  margin: 15px auto 20px;
}

.figma-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 4px;
}

.figma-embed-caption {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 20px;
}

/* Case study: exported screen gallery */
.screen-gallery-item {
  margin-bottom: 24px;
}

.screen-gallery-item img {
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 8px;
}

.screen-gallery-item p {
  margin-bottom: 0;
}

/* Case study: skim-friendly emphasis on key terms and figures */
.hl {
  color: #f97316;
  font-weight: 700;
}

a.hl:hover,
a.hl:focus {
  color: #c2410c;
}

/* Case study: pulled-out callout phrase above a paragraph */
.pull-phrase {
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-top: 5px;
  text-align: center;
  color: #f97316;
}

/* Case study: video comparison embed */
.video-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  margin: 15px auto 20px;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 4px;
}
