/* ============================================================
   Our Solutions — CUSTOM short contact/discovery page.
   Loaded AFTER home-v2.css + about-us.css + industrial-services.css;
   reuses the shared .rd-* system + tokens + .rd-about-hero base.
   Text on any colored/dark bg is given an EXPLICIT color (see CLAUDE.md §6).
   ============================================================ */

/* ---- 1. Hero (reuses the SHARED .rd-about-hero layered pattern: clean photo image
   + CSS purple square + CSS dot-grid, identical structure/behavior to the industry
   heroes. The old bespoke .rd-os-hero-media/-square/-photo classes are gone. This
   page's Figma places the square top-left behind the photo with dots on its exposed
   left edge — a light per-page reposition of the SAME shared square + dots. ---- */
.rd-os-hero { background: #F4F7FF; }
.rd-os-hero .rd-about-hero-inner { grid-template-columns: 1fr 596px; gap: 64px; align-items: center; }
.rd-os-hero-copy h1 {
  font: 800 49px/1.2 var(--v2-font);
  text-transform: uppercase;
  letter-spacing: 3.2px;
  color: var(--v2-dark);
  margin: 0;
  max-width: 520px;
}
.rd-os-hero-copy h1 span { display: block; color: var(--v2-purple); }
.rd-os-hero .rd-about-hero-media img { aspect-ratio: 1192 / 722; }
.rd-os-hero .rd-about-hero-square { top: -42px; left: -58px; width: 316px; height: 300px; background: #A085B5; }
.rd-os-hero .rd-about-hero-dots {
  top: -6px; left: -40px; width: 96px; height: 250px;
  background-image: radial-gradient(#E4CFF5 2px, transparent 2.6px);
  background-size: 16px 16px;
}

/* ---- 2. Contact Form section ---- */
.rd-os-form { background: #fff; padding: 0 0 96px; }
.rd-os-form .rd-container { padding-top: 55px; }
.rd-os-form-inner { display: grid; grid-template-columns: 390px 674px; gap: 88px; align-items: center; }

.rd-os-form-h {
  font: 800 30px/1.28 var(--v2-font);
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--v2-dark);
  margin: 0 0 18px;
}
.rd-os-form-sub {
  font: 400 20px/1.3 var(--v2-font);
  color: var(--v2-purple);
  margin: 0 0 18px;
  max-width: 380px;
}
.rd-os-form-rule { display: block; width: 158px; height: 2px; background: var(--v2-purple-50); margin: 0 0 24px; }
.rd-os-form-desc { font: 400 16px/1.6 var(--v2-font); color: var(--v2-text); margin: 0; max-width: 345px; }

.rd-os-card {
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(72,57,92,.10);
  padding: 44px 44px 47px;
}
.rd-os-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; margin-bottom: 19px; }
.rd-os-field { margin-bottom: 19px; }
.rd-os-field:last-of-type { margin-bottom: 10px; }
.rd-os-field label, .rd-os-row2 label {
  display: block;
  font: 700 15px/1 var(--v2-font);
  color: var(--v2-text);
  margin-bottom: 9px;  /* R5: was 1px — labels sat on top of the inputs. 9px matches .rd-field > span on the careers form, which the client asked this to mimic. */
}
.rd-os-field label .req, .rd-os-row2 label .req { color: var(--v2-text); font-weight: 700; }
.rd-page .rd-os-field input,
.rd-page .rd-os-row2 input,
.rd-page .rd-os-field textarea {
  width: 100%;
  font: 400 15px/1.4 var(--v2-font);
  color: var(--v2-text);
  background: #fff;
  border: 1px solid var(--v2-divider-2);
  border-radius: 6px;
  padding: 10px 14px;
  box-sizing: border-box;
}
.rd-page .rd-os-field input { height: 39px; }
.rd-page .rd-os-row2 input { height: 39px; }
.rd-os-field textarea { height: 99px; resize: vertical; font-family: var(--v2-font); }
.rd-page .rd-os-field input:focus,
.rd-page .rd-os-row2 input:focus,
.rd-page .rd-os-field textarea:focus { outline: none; border-color: var(--v2-purple); }
.rd-page .rd-os-submit {
  display: block; width: 100%;
  background: var(--v2-purple); color: #fff;
  border: none; border-radius: 6px;
  font: 700 13px/1 var(--v2-font-btn);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 17px 0;
  cursor: pointer;
  transition: background .25s ease;
}
.rd-page .rd-os-submit:hover { background: var(--v2-purple-hover); }

/* ---- 3. Our Discovery Process section ---- */
.rd-os-disc { background: #EDF0F2; padding: 88px 0 96px; }
.rd-os-disc .rd-container { max-width: 1248px; }
.rd-os-disc-h {
  width: fit-content;
  font: 700 30px/1.2 var(--v2-font);
  letter-spacing: 6.8px;
  text-transform: uppercase;
  color: var(--v2-text);
  margin: 0 0 40px;
}
.rd-os-disc-rule { display: block; width: auto; height: 2px; background: var(--v2-purple); margin-top: 31px; }

.rd-os-disc-intro { display: grid; grid-template-columns: 620px 1fr; gap: 113px; margin-bottom: 86px; align-items: start; }
.rd-os-disc-intro p { font: 400 17px/1.65 var(--v2-font); color: var(--v2-text); margin: 0; }
.rd-os-check { list-style: none; margin: 0; padding: 0; }
.rd-os-check li { display: flex; align-items: center; gap: 12px; font: 400 16px/1.4 var(--v2-font); color: #101828; margin-bottom: 24px; }
.rd-os-check li:last-child { margin-bottom: 0; }
.rd-os-check svg { flex: 0 0 21px; width: 21px; height: 21px; color: var(--v2-purple); }

.rd-os-steps { display: flex; flex-direction: column; gap: 33px; margin-bottom: 40px; }
.rd-os-step {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 28px rgba(72,57,92,.07);
  padding: 24px 30px;
}
.rd-os-step-num {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--v2-purple-10); color: var(--v2-purple);
  font: 700 18px/1 var(--v2-font);
  display: flex; align-items: center; justify-content: center;
}
.rd-os-step-txt { flex: 1; min-width: 0; }
.rd-os-step-txt h3 { font: 700 17px/1.3 var(--v2-font); color: #101828; margin: 0 0 6px; }
.rd-os-step-txt p { font: 400 15px/1.5 var(--v2-font); color: #364153; margin: 0; max-width: 900px; }
.rd-os-badge {
  flex: 0 0 auto; margin-left: auto;
  background: var(--v2-purple-10); color: var(--v2-purple);
  font: 700 13px/1 var(--v2-font); white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
}

.rd-os-callout {
  background: var(--v2-purple); border-radius: 14px;
  padding: 28px 34px; display: flex; align-items: flex-start; gap: 18px;
}
.rd-os-callout svg { flex: 0 0 30px; width: 30px; height: 30px; color: #fff; margin-top: 2px; }
.rd-os-callout h3 { font: 700 20px/1.2 var(--v2-font); color: #fff; margin: 0 0 10px; }
.rd-os-callout p { font: 400 15px/1.6 var(--v2-font); color: var(--v2-purple-10); margin: 0; max-width: 900px; }

/* ---- responsive ---- */
/* BUG FIX: .rd-os-form-inner is two fixed columns (390px + 674px + 88 gap = 1152px),
   which overflowed the viewport between 981px and ~1200px (horizontal scroll on
   tablets / small laptops) because its stack rule only fired at the 980 breakpoint.
   Stack the copy over the form as soon as the two columns no longer fit. */
@media (max-width: 1200px) {
  .rd-os-form-inner { grid-template-columns: 1fr; gap: 36px; }
  .rd-os-card { max-width: 674px; }
}
@media (max-width: 980px) {
  .rd-os-hero .rd-about-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .rd-os-hero .rd-about-hero-media img { width: 100%; }
  .rd-os-hero .rd-about-hero-square, .rd-os-hero .rd-about-hero-dots { display: none; }
  .rd-os-form-inner { grid-template-columns: 1fr; gap: 40px; }
  .rd-os-card { padding: 30px 26px 34px; }
  .rd-os-disc-intro { grid-template-columns: 1fr; gap: 30px; }
  .rd-os-step { flex-wrap: wrap; }
  .rd-os-badge { margin-left: 72px; }
}
@media (max-width: 640px) {
  .rd-os-row2 { grid-template-columns: 1fr; }
  .rd-os-hero-copy h1 { font-size: 34px; }
  /* R3 (Justin): discovery steps were [num][text][badge] in a row — on a phone the text
     column got crushed to ~96px between the number and the badge and wrapped one word per
     line. Restack as a grid: number + duration on a top row, the description fills the full
     card width beneath. */
  .rd-os-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "num badge" "txt txt";
    align-items: center;
    column-gap: 14px; row-gap: 15px;
    padding: 22px 22px 24px;
  }
  .rd-os-step-num { grid-area: num; }
  .rd-os-badge { grid-area: badge; margin-left: auto; }
  .rd-os-step-txt { grid-area: txt; }
}
