/* -------------------------------------------------------------------------
 * CAM Realty - Our Story elements
 *
 * Type is expressed as calc(N * var(--os)) so the whole page can be rescaled
 * from one value. The mockup was drawn in a small canvas, so it renders at
 * 1.5x by default; set --os: 1px for a 1:1 match with the mockup.
 * ---------------------------------------------------------------------- */

.os-section {
  --os: 1.5px;
  --os-purple: #29205f;
  --os-red: #ff403f;
  --os-ink: var(--cam-indigo);
  --os-muted: #5d5a78;
  --os-soft: #f7f6fb;
  padding: 42px 0;
  /* margin-bottom: 18px; */
  background: #fff;
  color: var(--os-ink);
  font-family: var(--rh-font-body);
}

.os-section h1,
.os-section h2,
.os-section h3 {
  font-family: var(--rh-font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--os-ink);
  text-transform: none;
}

.os-wrap {
  width: min(1120px, calc(100% - 58px));
  margin: 0 auto;
}

.os-red {
  color: var(--os-red);
}
.os-story .cam-hero__actions{
  display: flex;
  gap: 32px;
}

.os-photo {
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
}

.os-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-caption,
.os-photo-caption,
.os-team-caption {
  text-align: center;
  /* color: 28f; */
  /* margin-top: 5px; */
}

/* Photo captions use the founder-name treatment. Note: white text - these
   sections currently sit on a white background. */
.os-photo-caption {
  margin: 20px 0 0;
  /* color: rgba(255, 255, 255, 0.94); */
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 300;
  text-align: center;
}

.os-caption {
  font-size: calc(8 * var(--os));
  color: #fff;
}

.os-team-caption {
  font-size: calc(8 * var(--os));
}

/* ---------- where we began ---------- */

.os-begin {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(42px, 6vw, 96px) 5.5%;
  background: #2b2168;
}

/* Photo layer; the image URL comes from an inline custom property. */
.os-begin::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--os-begin-bg, none);
  background-position: center 48%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.015);
}

.os-begin::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(39, 31, 91, 0.73), rgba(39, 31, 91, 0.66));
}

.os-begin__layout {
  width: min(100%, 1500px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(300px, 0.9fr);
  /* stretch, so the portrait column matches the copy card height */
  align-items: stretch;
  gap: clamp(36px, 4.2vw, 72px);
}

.os-begin__copy {
  min-height: 530px;
  padding: clamp(38px, 4.3vw, 72px) clamp(32px, 3.5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  box-shadow: 0 18px 55px rgba(19, 16, 55, 0.14);
}

.os-begin__title {
  margin: 0 0 12px;
  color: #26394b;
  /* font-size: clamp(46px, 4.35vw, 72px); */
  font-weight: 700;
  line-height: 1.08;
}

.os-begin__subtitle {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--cam-indigo);
  font-size: 28px!important;
  font-weight: 300;
  line-height: 1.3;
}

.os-begin__body p {
  max-width: 920px;
  margin: 0 0 30px;
  color: var(--cam-indigo);
  line-height: 1.5;
  text-align: justify;
}

.os-begin__body p:last-child {
  margin-bottom: 0;
}

/* Every bold run in the Our Story elements is brand blue. */
.os-section strong,
.os-section b {
  font-weight: 700;
  color: var(--cam-indigo);
}

.os-begin__founder {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 430px;
  justify-self: center;
  margin: 0;
  text-align: center;
}

.os-begin__photo {
  width: 100%;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(14, 11, 48, 0.2);
}

.os-begin__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.os-begin__name {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 300;
  text-align: center;
}

.os-section ul,
.os-section ol,
.os-section li,
.os-section p {
  font-size: 2rem;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  .os-begin {
    min-height: auto;
    padding: 58px 4%;
  }

  .os-begin__layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.85fr);
    gap: 30px;
  }

  .os-begin__copy {
    min-height: 470px;
    padding: 38px 32px;
  }

  .os-begin__body p {
    font-size: 16px;
    text-align: left;
  }

  .os-begin__photo {
    border-radius: 28px;
  }
}

@media (max-width: 700px) {

  .os-section.os-begin{
    padding: 30px;
  }
  .cam-hero__actions{
    flex-direction: column;
    width: max-content;
    margin: auto;
  }
  .os-begin {
    padding: 34px 18px 42px;
  }

  .os-begin::after {
    background: rgba(39, 31, 91, 0.76);
  }

  .os-begin__layout {
    width: 100%;
    max-width: 560px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .os-begin__copy {
    min-height: auto;
    padding: 32px 25px;
  }

  .os-begin__subtitle {
    margin-bottom: 22px;
    font-size: clamp(19px, 5vw, 24px);
  }

  .os-begin__body p {
    margin-bottom: 19px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
  }

  .os-begin__founder {
    width: min(78%, 330px);
    justify-self: center;
  }

  .os-begin__founder {
    height: auto;
  }

  .os-begin__photo {
    flex: 0 0 auto;
    height: clamp(340px, 105vw, 430px);
    border-radius: 25px;
  }

  .os-begin__name {
    margin-top: 14px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .os-begin {
    padding-inline: 13px;
  }

  .os-begin__copy {
    padding: 27px 20px;
  }

  /* .os-begin__title {
    font-size: 33px;
  } */

  .os-begin__body p {
    font-size: 14px;
  }

  .os-begin__founder {
    width: 82%;
  }
}

/* ---------- two brothers ---------- */

.os-two-col {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  /* stretch, so the photo column matches the height of the copy */
  align-items: stretch;
}

.os-photo-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* gap: 18px; */
}

.os-photo--tall {
  flex: 1 1 auto;
  height: auto;
  min-height: 290px;
}

.os-pair {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 32px;
  margin-top: 54px;
}

.os-pair .os-photo {
  height: 180px;
}

/* Pair photos under the brothers copy: taller, per design. */
.os-brothers .os-pair .os-photo {
  height: 500px;
}

.os-copy__sub {
  font-size: calc(10 * var(--os));
  color: var(--cam-indigo);
  margin-bottom: 13px;
}

.os-copy p {
  /* font-size: calc(10 * var(--os)); */
  line-height: 1.5;
  color: var(--cam-indigo);
  margin: 8px 0;
}

/* ---------- journey ---------- */

.os-journey {
  padding-top: 26px;
}

.os-section-title {
  margin: 0 0 22px;
}

/* The red accent word must not pick up a different weight anywhere. */
.os-section-title .os-red,
.os-core h2 {
  font-weight: 700;
}

.os-section-title {
  font-weight: 700;
}

.os-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding-top: 23px;
  margin: 20px 0 35px;
}

.os-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 27px;
  height: 1px;
  background: #aaa4c7;
}

.os-milestone {
  position: relative;
  padding-top: 25px;
}

.os-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--os-purple);
  z-index: 1;
}

.os-milestone:nth-child(2) .os-dot { width: 13px; height: 13px; top: -2px; }
.os-milestone:nth-child(3) .os-dot { width: 16px; height: 16px; top: -3px; }
.os-milestone:nth-child(4) .os-dot { width: 19px; height: 19px; top: -4px; background: var(--os-red); }

.os-milestone h3 {
  font-family: var(--rh-font-body);
  font-size: calc(10 * var(--os));
  font-weight: 700;
  margin: 0 0 6px;
}

.os-milestone p {
  /* font-size: calc(12 * var(--os)); */
  line-height: 1.5;
  color: var(--cam-indigo);
  margin: 0;
}

/* ---------- today ----------
 * Layout is its own (photo grid), typography matches the brothers copy.
 * ---------------------------------------------------------------------- */

.os-subheading {
  margin: 0 0 4px;
  font-size: calc(25 * var(--os));
}

.os-lead {
  font-size: calc(10 * var(--os));
  color: var(--cam-indigo);
  margin-bottom: 13px;
}

.os-today p {
  line-height: 1.5;
  color: var(--cam-indigo);
  margin: 8px 0;
}

.os-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 17px;
}

.os-team-grid .os-photo {
  height: 100%;
  max-height: 420px;
  border-radius: 6px;
}

/* ---------- why ---------- */

.os-why {
  padding-top: 24px;
}


.os-why__intro {
  font-size: calc(10 * var(--os));
  color: var(--cam-indigo);
  margin-bottom: 8px;
}

.os-why__list {
  padding-left: 14px;
  margin: 24px 0 15px;
}

.os-why__list li {
  line-height: 1.5;
  color: var(--cam-indigo);
  margin: 8px 0;
}

.os-why p {
  color: var(--cam-indigo);
  line-height: 1.5;
  margin: 4px 0 13px;
}

.os-office-photo {
  width: 65%;
  height: 420px;
  max-height: 420px;
  margin: 20px auto 0;
  border-radius: 9px;
  overflow: hidden;
}

.os-office-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- vision ---------- */

.os-vision {
  padding-top: 22px;
}

.os-vision h2 {
  font-size: calc(24 * var(--os));
  margin: 0 0 7px;
}

.os-vision h3 {
  font-family: var(--rh-font-body);
  font-size: calc(10 * var(--os));
  margin: 0 0 2px;
}

.os-vision p {
  color: var(--cam-indigo);
  margin: 0 0 8px;
  line-height: 1.5;
}

.os-vision__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 32px 0;
}

.os-vision-box {
  padding: 23px 25px;
  color: #fff;
  text-align: center;
}

.os-vision-box--red {
  background: var(--os-red);
}

.os-vision-box--indigo {
  background: var(--os-purple);
}

.os-vision-icon {
  font-size: calc(23 * var(--os));
  margin-bottom: 22px;
}

/* Uploaded icon image: same optical size as the text glyph. */
.os-vision-icon img {
  display: block;
  width: auto;
  max-width: calc(50 * var(--os));
  max-height: calc(50 * var(--os));
  margin: 0 auto;
  object-fit: contain;
}

.os-vision-box h3 {
  font-family: var(--rh-font-heading);
  font-size: calc(17 * var(--os));
  margin: 0 0 14px;
  color: #fff;
}

.os-vision-box p {
  color: #fff;
  text-align: left;
  line-height: 1.5;
}

.os-khmer {
  font-size: calc(10 * var(--os));
  line-height: 1.5;
}

/* ---------- core values ---------- */

.os-core {
  padding-top: 25px;
  padding-bottom: 28px;
}

.os-core__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  /* stretch, so the photo matches the height of the values box */
  align-items: stretch;
}

.os-core__media {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.os-core__image {
  flex: 1 1 auto;
  height: auto;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}

.os-core__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-core h2 {
  color: var(--os-red);
  margin: 0 0 8px;
}

.os-core__list {
  padding-left: 14px;
  margin: 0;
}

.os-core__list li {
  line-height: 1.5;
  margin: 3px 0;
  color: var(--cam-indigo);
}

.os-note {
  font-size: calc(9 * var(--os));
  font-weight: 600;
  color: var(--os-purple);
  margin-top: 12px;
}

/* ---------- faq ---------- */

.os-faq {
  padding: 0 0 28px;
}

.os-faq__heading {
  background: var(--os-purple);
  color: #fff;
  padding: 32px 0;
}

.os-faq__heading h2 {
  font-size: calc(25 * var(--os));
  color: #fff;
  margin: 0;
}

.os-faq__list {
  padding-top: 45px;
}

.os-faq__item {
  margin: 0 0 13px;
}

/* Two columns: images on the left, question + answer on the right. */
.os-faq__grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.os-faq__images {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.os-faq__images .os-faq__icon {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

@media (max-width: 700px) {
  .os-faq__grid {
    grid-template-columns: 1fr;
  }

  .os-faq__images {
    /* flex-direction: row; */
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 22px;
    align-items: center;
  }

  .os-faq__images .os-faq__icon {
    width: 180px;
  }
}

.os-faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 7px;
  border-radius: 30px 0 30px 0;
  background: var(--os-purple);
  color: #fff;
  text-align: center;
  font-family: var(--rh-font-heading);
  font-size: calc(15 * var(--os));
}

.os-faq__icon--big {
  font-size: calc(32 * var(--os));
}

/* Uploaded icon: same indigo tile, image contained. */
.os-faq__icon--image {
  padding: 12px;
}

.os-faq__icon--image img {
  display: block;
  width: 100%;
  height: 100%;
  /* max-height: 66px; */
  object-fit: contain;
}

.os-faq__item h3 {
  font-family: var(--rh-font-body);
  font-size: 26px;
  color: var(--os-red);
  margin: 0 0 4px;
}

.os-faq__item p {
  /* font-size: calc(8 * var(--os)); */
  line-height: 1.5;
  color: var(--cam-indigo);
  margin: 0 0 6px;
}
.os-faq__body ol,
.os-core__content{
  padding-left: 20px;
}
/* ---------- large screens ---------- */

@media (min-width: 900px) {
  .os-two-col {
    gap: 40px;
  }

  .os-pair .os-photo {
    height: 250px;
  }

  .os-timeline {
    gap: 28px;
  }

  .os-milestone h3 {
    font-size: calc(13 * var(--os));
  }
  
  .os-faq__icon {
    min-height: 90px;
  }

  /* .os-faq__item p {
    font-size: calc(10 * var(--os));
  } */
}

/* ---------- small screens ---------- */

@media (max-width: 700px) {
  .os-section {
    --os: 1.15px;
    padding: 30px 0;
  }

  .os-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
    margin: 15px 0 28px;
  }

  .os-timeline::before {
    display: none;
  }

  .os-two-col,
  .os-core__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .os-two-col {
    align-items: start;
  }

  .os-photo-stack {
    height: auto;
  }

  .os-photo--tall {
    flex: 0 0 auto;
    height: 510px;
    min-height: 0;
  }

  .os-vision__grid {
    grid-template-columns: 1fr;
    margin: 32px 0 0;
  }
  .os-team-grid,
  .os-timeline,
  .os-pair{
   grid-template-columns: auto;
  }
  .os-timeline{
    gap:32px;
  }
  .os-today .os-team-grid{
    gap: 64px;
  }
  .os-why{
    padding-top: 94px;
  }
  .os-core__body{
    padding-top: 54px;
  }

  .os-office-photo {
    width: 100%;
    height: 200px;
  }

  .os-core__media {
    height: auto;
  }

  .os-core__image {
    flex: 0 0 auto;
    height: 240px;
    min-height: 0;
  }

  .os-faq__icon {
    min-height: 60px;
  }
  .os-milestone{
    border-top: 1px solid;
  }
  i.os-dot{
    margin-top: -6px;
  }

}
@media (max-width:768px){
  .os-core .os-core__grid{
    grid-template-columns: auto;
  }
}