/* ============================================================
   OXALIS — OUR STORY PAGE CSS
   Built from Figma: Our Story page
   ============================================================ */

/* ─── PAGE WRAPPER ─────────────────────────────────────────── */
.ox-story-page {
  background: #13252A;
}

/* ─── SECTION 1: HERO ───────────────────────────────────────── */
.ox-story-hero {
  background: #13252A;
  padding: 0 179px;
  box-sizing: border-box;
  display: flow-root;
}
.ox-story-hero__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding: 80px 0 64px;
}
.ox-story-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  flex: 0 0 558px;
}
.ox-story-hero__h1 {
  font-family: 'Tenez', serif;
  font-weight: 400;
  font-size: 68px;
  line-height: 105%;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  color: #F3F4F4;
  margin: 0;
}
.ox-story-hero__divider {
  display: flex;
  align-items: center;
  width: 100%;
  height: 2px;
}
.ox-story-hero__divider-cap {
  display: block;
  width: 24px;
  height: 2px;
  background: #F3F4F4;
  flex-shrink: 0;
}
.ox-story-hero__divider-line {
  display: block;
  flex: 1;
  height: 2px;
  background: rgba(243, 244, 244, 0.25);
}
.ox-story-hero__intro {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  color: #F3F4F4;
  margin: 0;
}
/* Right: hero illustration */
.ox-story-hero__illustration {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.ox-story-hero__illustration-img {
  width: 100%;
  max-width: 593px;
  height: auto;
  display: block;
}

/* ─── SECTION 2: WHY WE EXIST ───────────────────────────────── */
.ox-story-why {
  background: #13252A;
  padding: 0 179px;
  box-sizing: border-box;
  display: flow-root;
}
.ox-story-why__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.ox-story-why__h2 {
  font-family: 'Tenez', serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 105%;
  color: #F3F4F4;
  margin: 0;
}
.ox-story-why__deck {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}
.ox-story-why__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  gap: 16px;
  flex: 1;
  background: #1F3035;
  border: 1px solid #717C7F;
  margin-right: -1px;
}
.ox-story-why__card-title {
  font-family: 'Tenez', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 105%;
  color: #F3F4F4;
  margin: 0;
}
.ox-story-why__card-body {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  color: #F3F4F4;
  margin: 0;
}

/* ─── LIGHT FRAME ───────────────────────────────────────────── */
.ox-story-frame--light {
  background: #FAF4E5;
  padding: 0 179px;
  box-sizing: border-box;
  display: flow-root;
}

/* ─── SECTION 3: FOUNDING ───────────────────────────────────── */
.ox-story-founding__row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}
.ox-story-founding__content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 32px 24px 0;
  gap: 12px;
  flex: 1;
}
.ox-story-founding__eyebrow-label {
  color: #F3F4F4;
}
.ox-story-founding__h2 {
  font-family: 'Tenez', serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 105%;
  color: #F3F4F4;
  margin: 0;
}
.ox-story-founding__body {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  color: #F3F4F4;
  margin: 0;
}
.ox-story-founding__photo {
  box-sizing: border-box;
  flex: 1;
  min-height: 500px;
  background: #1F3035 center/cover no-repeat;
  border: 1px solid #717C7F;
}

/* ─── SECTION 4: THE COMPANY ────────────────────────────────── */
.ox-story-company__row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}
.ox-story-company__photo {
  box-sizing: border-box;
  flex: 1;
  min-height: 500px;
  background: #1F3035 center/cover no-repeat;
  border: 1px solid #717C7F;
}
.ox-story-company__content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 32px;
  gap: 16px;
  flex: 1;
  background: #FAF4E5;
  border: 1px solid #717C7F;
  margin-right: -1px;
}
.ox-story-company__h2 {
  font-family: 'Tenez', serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 105%;
  color: #13252A;
  margin: 0;
}
.ox-story-company__body {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  color: #13252A;
  margin: 0;
}

/* ─── SECTION 5: FIVE VALUES ────────────────────────────────── */
.ox-story-values__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.ox-story-values__h2 {
  font-family: 'Tenez', serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 105%;
  text-transform: capitalize;
  color: #13252A;
  margin: 0;
}
.ox-story-values__deck {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}
.ox-story-values__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 16px 24px 24px;
  gap: 24px;
  flex: 1;
  background: #FAEDDA;
  border: 1px solid #717C7F;
  margin-right: -1px;
}
.ox-story-values__card-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ox-story-values__card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.ox-story-values__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-story-values__card-divider {
  width: 100%;
  height: 1px;
  background: #717C7F;
  border: none;
  margin: 0;
}
.ox-story-values__card-body {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 21px;
  color: #13252A;
  margin: 0;
}

/* ─── SECTION 6: CONTACT FORM ───────────────────────────────── */
.ox-story-form {
  background: #13252A;
  padding: 0 179px;
  box-sizing: border-box;
  display: flow-root;
}
.ox-story-form__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 80px;
}
.ox-story-form__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 32px;
}
.ox-story-form__h2 {
  font-family: 'Tenez', serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 105%;
  text-transform: capitalize;
  color: #F3F4F4;
  margin: 0;
}
.ox-story-form__intro {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  color: #F3F4F4;
  margin: 0;
}
.ox-story-form__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.ox-story-form__row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 100%;
}
.ox-story-form__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.ox-story-form__label {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 105%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F3F4F4;
}
.ox-story-form__input {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  background: #1F3035;
  border: 1px solid #717C7F;
  color: #F3F4F4;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  padding: 0 12px;
  outline: none;
}
.ox-story-form__input:focus { border-color: #FF6600; }
.ox-story-form__textarea {
  box-sizing: border-box;
  width: 100%;
  height: 129px;
  background: #1F3035;
  border: 1px solid #717C7F;
  color: #F3F4F4;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  padding: 12px;
  outline: none;
  resize: vertical;
}
.ox-story-form__textarea:focus { border-color: #FF6600; }
.ox-story-form__submit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  background: #1F3035;
  border: 1px solid #FF6600;
  cursor: pointer;
  text-decoration: none;
}
.ox-story-form__submit-label {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F3F4F4;
}
.ox-story-form__submit:hover { background: #263e44; }

/* === Our Story: Founding (dark) === */
.ox-story-founding {
  background: #13252A;
  padding: 0 179px;
  box-sizing: border-box;
  display: flow-root;
}
.ox-story-founding__images {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  align-content: flex-start;
}
.ox-story-founding__cell,
.ox-story-founding__logo-cell {
  width: calc(33.333% - 6px);
  aspect-ratio: 1 / 1;
  background-color: #1F3035;
}
.ox-story-founding__cell {
  background-size: 125%;
  background-position: center;
  background-repeat: no-repeat;
}
.ox-story-founding__logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.ox-story-founding__logo-cell svg {
  width: 100%;
  height: auto;
}

/* ============================================================
   Responsive — added 2026-05-06, follows unified scale
   1100 / 900 / 600 / 480
   ============================================================ */

@media (max-width: 1100px) {
  /* Reduce section padding from 179px to 64px */
  .ox-story-hero,
  .ox-story-why,
  .ox-story-frame--light,
  .ox-story-founding,
  .ox-story-form {
    padding: 0 64px;
  }

  /* Hero content no longer fixed-width */
  .ox-story-hero__content {
    flex: 1;
  }

  .ox-story-hero__h1 {
    font-size: 52px;
  }

  /* Section headings */
  .ox-story-why__h2,
  .ox-story-founding__h2,
  .ox-story-company__h2,
  .ox-story-values__h2,
  .ox-story-form__h2 {
    font-size: 38px;
  }

  /* Company photo reduce min-height */
  .ox-story-company__photo,
  .ox-story-founding__photo {
    min-height: 400px;
  }
}

@media (max-width: 900px) {
  /* Reduce section padding further */
  .ox-story-hero,
  .ox-story-why,
  .ox-story-frame--light,
  .ox-story-founding,
  .ox-story-form {
    padding: 0 32px;
  }

  /* Hero: hide illustration on tablet/mobile (same as contact page) */
  .ox-story-hero__inner {
    flex-direction: column;
    padding: 48px 0;
  }
  .ox-story-hero__illustration {
    display: none;
  }

  /* Founding: stack text + images */
  .ox-story-founding__row {
    flex-direction: column;
    gap: 32px;
  }
  .ox-story-founding__content {
    padding: 24px 0;
  }

  /* Why We Exist: keep 3-up but allow wrap */
  .ox-story-why__deck {
    flex-wrap: wrap;
    gap: 0;
  }

  /* Company: stack photo + content */
  .ox-story-company__row {
    flex-direction: column;
  }
  .ox-story-company__photo {
    min-height: 300px;
  }
  .ox-story-company__content {
    margin-right: 0;
  }

  /* Values: wrap into 2-3 per row */
  .ox-story-values__deck {
    flex-wrap: wrap;
  }
  .ox-story-values__card {
    flex: 1 1 calc(50% - 1px);
    margin-bottom: -1px;
  }

  /* Form rows: keep side-by-side at tablet */
  .ox-story-form__inner {
    padding: 0 0 48px;
  }
}

@media (max-width: 600px) {
  /* Reduce section padding to 16px */
  .ox-story-hero,
  .ox-story-why,
  .ox-story-frame--light,
  .ox-story-founding,
  .ox-story-form {
    padding: 0 16px;
  }

  /* Hero */
  .ox-story-hero__inner {
    padding: 32px 0;
    gap: 24px;
  }
  .ox-story-hero__h1 {
    font-size: 38px;
  }
  /* Section headings */
  .ox-story-why__h2,
  .ox-story-founding__h2,
  .ox-story-company__h2,
  .ox-story-values__h2,
  .ox-story-form__h2 {
    font-size: 30px;
  }

  /* Why We Exist: stack cards to 1 column */
  .ox-story-why__deck {
    flex-direction: column;
  }
  .ox-story-why__card {
    margin-right: 0;
    margin-bottom: -1px;
  }
  .ox-story-why__card-title {
    font-size: 26px;
  }

  /* Founding: image grid 2-up instead of 3-up */
  .ox-story-founding__cell,
  .ox-story-founding__logo-cell {
    width: calc(50% - 4px);
  }
  .ox-story-founding__content {
    gap: 16px;
  }

  /* Company: reduce photo height, full-width content */
  .ox-story-company__photo {
    min-height: 240px;
  }
  .ox-story-company__content {
    padding: 24px 16px;
  }

  /* Values: 1 column */
  .ox-story-values__deck {
    flex-direction: column;
  }
  .ox-story-values__card {
    flex: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: -1px;
  }

  /* Form rows: stack to single column */
  .ox-story-form__row {
    flex-direction: column;
    gap: 24px;
  }
  .ox-story-form__submit {
    min-height: 44px;
  }
  .ox-story-form__inner {
    padding: 0 0 32px;
  }
  .ox-story-form__input {
    height: 44px;
  }
}

@media (max-width: 480px) {
  /* Hero: tighten further */
  .ox-story-hero__h1 {
    font-size: 34px;
  }
  .ox-story-hero__content {
    gap: 24px;
  }
  .ox-story-hero__intro {
    font-size: 16px;
  }
  /* Section headings */
  .ox-story-why__h2,
  .ox-story-founding__h2,
  .ox-story-company__h2,
  .ox-story-values__h2,
  .ox-story-form__h2 {
    font-size: 28px;
  }

  /* Founding */
  .ox-story-founding__h2 {
    font-size: 28px;
  }
  .ox-story-founding__body {
    font-size: 16px;
  }

  /* Company */
  .ox-story-company__photo {
    min-height: 200px;
  }
  .ox-story-company__body {
    font-size: 16px;
  }

  /* Values card body */
  .ox-story-values__card-body {
    font-size: 14px;
    line-height: 160%;
  }

  /* Form */
  .ox-story-form__intro {
    font-size: 16px;
  }
}
