/* ═══════════════════════════════════════════════════
   R&D — RESEARCH & DEVELOPMENT PAGE STYLES
   Ported verbatim from the static research-development.html
   inline <style>. Loaded conditionally via has_block() for
   any rautomead/rd-* block (see inc/enqueue.php).
   ═══════════════════════════════════════════════════ */

/* ── Hero ── */
.rd-hero {
  position: relative;
  min-height: min(90vh, 980px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0A0A0A;
}

.rd-hero__image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rd-hero__image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 0.7) 30%,
    rgba(10, 10, 10, 0.3) 60%,
    rgba(10, 10, 10, 0.15) 100%
  );
}

.rd-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.rd-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #CE4405;
  margin-bottom: 1.5rem;
}

.rd-hero__label-line {
  width: 2rem;
  height: 1px;
  background: #CE4405;
}

.rd-hero__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}

.rd-hero__title-accent {
  color: var(--color-primary);
}

.rd-hero__body {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: 0;
}

/* ── What We Offer ── */
.rd-offer {
  background: #F5F3F0;
  padding: 8rem 2rem;
  position: relative;
}

.rd-offer__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.rd-offer__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #CE4405;
  margin-bottom: 1rem;
}

.rd-offer__label-line {
  width: 2rem;
  height: 1px;
  background: #CE4405;
}

.rd-offer__heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #1A1A1A;
  margin: 0 0 4rem;
  letter-spacing: -0.02em;
}

.rd-offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .rd-offer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rd-offer__grid {
    grid-template-columns: 1fr;
  }
}

.rd-offer-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rd-offer-card:hover {
  border-color: rgba(206, 68, 5, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rd-offer-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(206, 68, 5, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #CE4405;
}

.rd-offer-card__number {
  display: none;
}

.rd-offer-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 0.5rem;
}

.rd-offer-card__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

/* ── Trial Machines ── */
.rd-machines {
  background: #111111;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.rd-machines__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 9999px;
  filter: blur(140px);
  background: radial-gradient(ellipse at center, rgba(206, 68, 5, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.rd-machines__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.rd-machines__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #CE4405;
  margin-bottom: 1rem;
}

.rd-machines__label-line {
  width: 2rem;
  height: 1px;
  background: #CE4405;
}

.rd-machines__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.rd-machines__subtext {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 4rem;
}

.rd-machines__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .rd-machines__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rd-machines__grid {
    grid-template-columns: 1fr;
  }
}

.rd-machine-card {
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease;
}

.rd-machine-card:hover {
  border-color: rgba(206, 68, 5, 0.3);
}

.rd-machine-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.03);
}

.rd-machine-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rd-machine-card__body {
  padding: 1.25rem 1.5rem;
}

.rd-machine-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.rd-machine-card__desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* ── University Partnership ── */
.rd-partnership {
  background: #F5F3F0;
  padding: 8rem 2rem;
}

.rd-partnership__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 768px) {
  .rd-partnership__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.rd-partnership__content {
}

.rd-partnership__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #CE4405;
  margin-bottom: 1rem;
}

.rd-partnership__label-line {
  width: 2rem;
  height: 1px;
  background: #CE4405;
}

.rd-partnership__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #1A1A1A;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.rd-partnership__text {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.rd-partnership__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rd-partnership__list li {
  position: relative;
  padding: 0.625rem 0 0.625rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.5;
}

.rd-partnership__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-primary);
}

.rd-partnership__image {
  border-radius: 1rem;
  overflow: hidden;
}

.rd-partnership__image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rd-partnership__image--placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Process Section ── */
.rd-process {
  background: #111111;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.rd-process__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.rd-process__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #CE4405;
  margin-bottom: 1rem;
}

.rd-process__label-line {
  width: 2rem;
  height: 1px;
  background: #CE4405;
}

.rd-process__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.rd-process__subtext {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 4rem;
}

.rd-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: process-step;
}

@media (max-width: 1024px) {
  .rd-process__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rd-process__steps {
    grid-template-columns: 1fr;
  }
}

.rd-process-step {
  counter-increment: process-step;
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  transition: border-color 0.3s ease;
}

.rd-process-step:hover {
  border-color: rgba(206, 68, 5, 0.25);
}

.rd-process-step__number {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(206, 68, 5, 0.5);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.rd-process-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.rd-process-step__text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

/* ── Gallery / Images ── */
.rd-gallery {
  background: #F5F3F0;
  padding: 6rem 2rem;
}

.rd-gallery__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.rd-gallery__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #CE4405;
  margin-bottom: 1rem;
}

.rd-gallery__label-line {
  width: 2rem;
  height: 1px;
  background: #CE4405;
}

.rd-gallery__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #1A1A1A;
  margin: 0 0 3rem;
  letter-spacing: -0.02em;
}

.rd-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .rd-gallery__grid {
    grid-template-columns: 1fr;
  }
}

.rd-gallery__item {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rd-gallery__item:hover {
  border-color: rgba(206, 68, 5, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.rd-gallery__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.rd-gallery__img--placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rd-gallery__caption {
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1A1A1A;
}
