/* R&D page reuses manufacturing-page.css shared components (dosage-card, manufacturing-stats,
   manufacturing-standards) since both are part of the same "interior page" visual family.
   This file only adds what's specific to R&D. */

/* Hero */
.rd-hero {
  background-color: #F8FAFD;
  background-image: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  padding-top: 1.5rem;
  overflow: hidden;
}

.rd-hero__content {
  padding: 4rem 1rem 4rem 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rd-hero__heading {
  margin-bottom: 1.25rem;
}

.rd-hero__heading-light,
.rd-hero__heading-bold {
  display: block;
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.2;
}

.rd-hero__heading-light {
  font-size: 32px;
  font-weight: 500;
}

.rd-hero__heading-bold {
  font-size: 38px;
  font-weight: 700;
}

.rd-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.rd-hero__feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rd-hero__feature i {
  font-size: 22px;
  color: var(--color-primary);
}

.rd-hero__feature span {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-on-surface);
  line-height: 1.3;
  max-width: 110px;
}

.rd-hero__media {
  position: relative;
  height: 100%;
  min-height: 540px;
  background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary));
  overflow: hidden;
}

.rd-hero__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-hero__overlay-card {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  max-width: 320px;
  background-color: rgba(var(--color-primary-deep-rgb), 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.rd-hero__overlay-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.rd-hero__overlay-card p {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.rd-hero__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rd-hero__overlay-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

@media (max-width: 991px) {
  .rd-hero {
    padding-top: 1.5rem;
  }

  .rd-hero__content {
    padding: 3rem 0;
  }

  .rd-hero__media {
    min-height: 320px;
  }

  .rd-hero__overlay-card {
    position: static;
    max-width: none;
    margin: 1.5rem;
  }
}

/* Focus areas section background */
.rd-focus {
  background-color: var(--color-surface);
}

/* Capabilities band — 5-column feature grid (wider than Manufacturing's 4) */
.rd-capabilities__grid {
  grid-template-columns: 1fr 2.6fr 1fr;
}

.rd-capabilities__features {
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.rd-capabilities__cert-caption {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0.9rem 0 0;
}

@media (max-width: 991px) {
  .rd-capabilities__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .rd-capabilities__features {
    grid-template-columns: 1fr;
  }
}
