/* Local tweaks on top of the Webflow CSS. mirror.py copies this to
   site/assets/overrides.css and links it after the Webflow stylesheet. */

/* Home hero intro line (was 18px / 27px) */
.rl_header5_content .rl-text-style-medium.is-white {
  font-size: 22px;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .rl_header5_content .rl-text-style-medium.is-white {
    font-size: 19px;
  }
}

/* Home "What people say about us" quotes (were 16px) and attributions (were 16px) */
.rl_section_testimonial1 .rl-heading-style-h5-copy-copy {
  font-size: 20px;
  line-height: 1.4;
}
.rl_section_testimonial1 .rl-text-style-regular {
  font-size: 18px;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .rl_section_testimonial1 .rl-heading-style-h5-copy-copy { font-size: 18px; }
  .rl_section_testimonial1 .rl-text-style-regular { font-size: 17px; }
}

/* Embedded video in news articles (additions.py) */
.ddt-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 50px 0 16px;
  overflow: hidden;
  background: #000;
}
.ddt-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 2026 InAVation Awards winner badge (additions.py) */
.ddt-award-badge {
  display: block;
  line-height: 0;
}
.ddt-award-badge img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
a.ddt-award-badge {
  transition: opacity 0.2s ease;
}
a.ddt-award-badge:hover {
  opacity: 0.85;
}
.ddt-award-badge--hero {
  width: 240px;
  margin: 56px auto 0;
  opacity: 0.9;
}
.ddt-award-badge--article {
  width: 220px;
  margin-top: 32px;
}
.rl_home4-features_image-wrapper:has(.ddt-award-badge--card) {
  position: relative;
}
.ddt-award-badge--card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 96px;
}
.ddt-award-badge--card img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
@media screen and (max-width: 767px) {
  .ddt-award-badge--hero { width: 200px; max-width: 100%; margin-top: 32px; }
  .ddt-award-badge--article { width: 180px; }
}

/* News and project card images always fill the card width, so a smaller
   source image (e.g. the award photo) lines up with the Webflow ones */
.rl_home4-features_image-wrapper > img {
  width: 100%;
  height: auto;
}

/* Article header images fill the content width like the Webflow articles,
   whose headers come from 2000px originals */
.rl_header26_content-copy > img {
  width: 100%;
  height: auto;
}

/* Home hero service icons (additions.py) */
.ddt-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 680px;
  margin: 64px auto 0;
}
.ddt-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-family: "Neue Montreal", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  padding: 22px 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ddt-service:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}
.ddt-service svg {
  width: 40px;
  height: 40px;
}
@media screen and (max-width: 767px) {
  .ddt-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
  }
  .ddt-service { font-size: 15px; }
}

/* More breathing room between the home hero headline, intro and button */
.rl_header5_content .rl_heading1_spacing-block-1 { height: 36px; }
.rl_header5_content .rl_heading1_spacing-block-2 { height: 48px; }

/* Scroll-down cue at the bottom of the home hero (additions.py) */
.ddt-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  margin-left: -18px;
  color: #fff;
  opacity: 0.8;
  line-height: 0;
  animation: ddt-nudge 2s ease-in-out infinite;
}
.ddt-scroll-cue:hover { opacity: 1; }
@keyframes ddt-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .ddt-scroll-cue { animation: none; }
}
@media screen and (max-width: 767px) {
  .rl_header5_content .rl_heading1_spacing-block-1 { height: 28px; }
  .rl_header5_content .rl_heading1_spacing-block-2 { height: 36px; }
  .ddt-services { margin-top: 44px; }
  .ddt-award-badge--hero { margin-top: 44px; }
  .ddt-scroll-cue { bottom: 16px; }
}

/* Let the home hero grow past one screen when its content needs it, and keep
   clear space at the bottom for the scroll cue */
.rl_section_header5 { height: auto; min-height: 100vh; }
.header5_component { max-height: none; padding: 96px 0 104px; box-sizing: border-box; }
@media screen and (max-width: 767px) {
  .header5_component { padding: 48px 0 80px; }
}
