/* ==========================================================================
   osrs.css — OSRS Product Sub-page
   Extends yardos.css. Spacing from Figma CSS (2.2 OSRS 1512px x 4482px).
   Light header handled in main.css via .page-template-page-osrs-php
   ========================================================================== */

/* ── Shared section wrapper ──────────────────────────────────────────────── */
.ox-osrs-section {
  background: #FAF4E5;
  padding: 0 178px;
  box-sizing: border-box;
  display: flow-root;
}

/* ── Headings ────────────────────────────────────────────────────────────── */
.ox-osrs-h2 {
  font-family: 'Tenez', serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 105%;
  color: #13252A;
  margin: 0;
}

/* ── Body text ───────────────────────────────────────────────────────────── */
.ox-osrs-body {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  color: #13252A;
  margin: 0;
}

/* ── Fancy stroke spacer ─────────────────────────────────────────────────── */
/* Figma: fancy-stroke-spacer height 169px, padding 32px 0px
   That means 32px top + 2px line + 32px bottom = 66px, remaining 103px
   split as margin. In practice: padding 83.5px 0 around the 2px line. */
.ox-osrs-stroke {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 83px 0;
  width: 100%;
}
.ox-osrs-stroke__cap {
  display: block;
  width: 24px;
  height: 2px;
  background: #13252A;
  flex-shrink: 0;
}
.ox-osrs-stroke__line {
  display: block;
  flex: 1;
  height: 2px;
  background: #13252A;
  opacity: 0.2;
}
/* Light variant for dark form section */
.ox-osrs-stroke--light .ox-osrs-stroke__cap  { background: #F3F4F4; }
.ox-osrs-stroke--light .ox-osrs-stroke__line { background: #F3F4F4; opacity: 0.2; }

/* After-form stroke is shorter: height 108px, padding 32px 0px */
.ox-osrs-stroke--sm { padding: 53px 0; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.ox-osrs-hero {
  position: relative;
  background: #FAF4E5;
  min-height: 794px;
  overflow: hidden;
}
.ox-osrs-hero__bg {
  position: absolute;
  /* Figma: left 536px, top 128px, width 925px, height 794px on 1512px canvas */
  left: 35.4%;
  top: 128px;
  width: 61.2%;
  height: 794px;
  background-size: contain;
  background-position: top left;
  background-repeat: no-repeat;
  pointer-events: none;
}
.ox-osrs-hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 178px;
  box-sizing: border-box;
  min-height: 794px;
  display: flex;
  flex-direction: column;
}

/* Back link — Figma: left 179px, top 165px */
.ox-osrs-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #13252A;
  text-decoration: none;
  margin-top: 165px;
  margin-bottom: 24px;
}
.ox-osrs-back:hover { opacity: 0.7; }

/* Lockup — Figma: top 224px, width 565px, gap 24px */
.ox-osrs-hero__lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 565px;
}

/* ==========================================================================
   2. CLIENTS
   Figma: section-clients height 296px, gap 32px between eyebrow block & logos
   eyebrow-header-blurb height 124px, gap 12px
   ========================================================================== */
.ox-osrs-clients {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 0;
  padding-bottom: 0;
}

.ox-osrs-clients__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Logos row — Figma: padding 40px 44px, gap 64px */
.ox-osrs-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  padding: 40px 44px;
  border: 1px solid #717C7F;
  box-sizing: border-box;
  width: 100%;
}
.ox-osrs-logos__item img {
  display: block;
  height: 60px;
  width: auto;
  mix-blend-mode: multiply;
  object-fit: contain;
}

/* ==========================================================================
   3. THE PROBLEM
   Figma: eyebrow-header-blurb padding 24px 32px, gap 12px, border #717C7F
   ========================================================================== */
.ox-osrs-problem {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 32px;
  background: #FAEDDA;
  border: 1px solid #717C7F;
  box-sizing: border-box;
  width: 100%;
}

/* ==========================================================================
   4. FEATURE CARDS
   Figma: row1 height 253px (2 cols), row2 height 232px (3 cols)
   value-box: padding 24px 16px 24px 24px, gap 24px
   row2 margin-top: -1px (overlap borders)
   ========================================================================== */
.ox-osrs-features__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.ox-osrs-cards {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}
.ox-osrs-cards--2 + .ox-osrs-cards--3 { margin-top: -1px; }

.ox-osrs-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 16px 24px 24px;
  gap: 24px;
  background: #FAEDDA;
  border: 1px solid #717C7F;
  box-sizing: border-box;
  margin-right: -1px;
}
.ox-osrs-card:last-child { margin-right: 0; }
.ox-osrs-cards--2 .ox-osrs-card { flex: 1 1 50%; min-height: 253px; }
.ox-osrs-cards--3 .ox-osrs-card { flex: 1 1 33.333%; min-height: 232px; }

.ox-osrs-card__icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }

.ox-osrs-card__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.ox-osrs-card__title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: #13252A;
  margin: 0;
}
.ox-osrs-card__rule {
  width: 100%;
  height: 1px;
  border: none;
  background: #717C7F;
  margin: 0;
}
.ox-osrs-card__body {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 150%;
  color: #13252A;
  margin: 0;
}

/* ==========================================================================
   5. FORM — DARK SECTION
   Figma: Dark frame padding 0px 179px
   stroke before form: height 160px, padding 32px 0px
   stroke after form: height 108px, padding 32px 0px
   eyebrow color: #F3F4F4
   ========================================================================== */

/* Success / error states */
.ox-osrs-form-success, .ox-osrs-form-error {
  padding: 16px 20px;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 300;
  border: 1px solid;
}
.ox-osrs-form-success { background: #1a3a2a; border-color: #03D8D8; color: #F3F4F4; }
.ox-osrs-form-error   { background: #3a1a1a; border-color: #FF6600; color: #F3F4F4; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .ox-osrs-section,
  .ox-osrs-hero__inner { padding-left: 48px; padding-right: 48px; }
  .ox-osrs-hero { min-height: auto; }
  .ox-osrs-hero__bg { top: 80px; height: 520px; }
  .ox-osrs-back { margin-top: 80px; }
}
@media (max-width: 768px) {
  .ox-osrs-section,
  .ox-osrs-hero__inner { padding-left: 24px; padding-right: 24px; }
  .ox-osrs-hero__bg    { left: 0; top: 0; width: 100%; height: 260px; position: relative; }
  .ox-osrs-hero__inner { min-height: auto; }
  .ox-osrs-back        { margin-top: 32px; }
  .ox-osrs-h2          { font-size: 32px; }
  .ox-osrs-cards       { flex-direction: column; }
  .ox-osrs-cards--2 .ox-osrs-card,
  .ox-osrs-cards--3 .ox-osrs-card {
    flex: none; width: 100%; margin-right: 0; margin-bottom: -1px; min-height: auto;
  }
}

/* Override form header margin from yardos.css */
.ox-osrs-page .ox-yardos-form__header {
  margin-top: 0;
}

/* ─── LIGHT HEADER OVERRIDE (matching Atlassian pattern) ──── */
.page-template-page-oae-php body { background: #FAF4E5; }
.page-template-page-oae-php .ox-header {
  background: #FAF4E5;
  border-top-color: #FAF4E5;
}
.page-template-page-oae-php .ox-nav__link {
  background: #FAEDDA;
  color: #13252A;
}
.page-template-page-oae-php .ox-nav__link:hover { background: #F5E0C0; }
.page-template-page-oae-php .ox-header__divider { background: #D4C9B8; }
.page-template-page-oae-php .ox-header__logo { background: #FAF4E5; }
.page-template-page-oae-php .ox-logo__text { color: #13252A; }
.page-template-page-oae-php .ox-nav__list { background: #FAF4E5; }
.page-template-page-oae-php .ox-nav__dropdown { background: #FAF4E5; }
.page-template-page-oae-php .ox-nav__dropdown a { color: #13252A; }
.page-template-page-oae-php .ox-nav__dropdown a:hover { background: #F0E8D5; }
.page-template-page-oae-php .ox-logo .ox-logo__svg path,
.page-template-page-oae-php .ox-logo .ox-logo__svg circle { fill: #13252A; }
.page-template-page-oae-php .ox-nav__chevron path { stroke: #FF6600; }