﻿/* =============================================================================
   ABOUT PAGE (about/index.html)
   Sections, top to bottom:
     .page-hero        "WHO WE ARE / PROVEN. SCALABLE. TRUSTED."
     .yellow-strip     thin yellow band
     .story            "How It All Started" text + photo
     .values           Mission / Vision / Core values (dark, with yellow dots + lines)
     .safety-intro     "SAFETY & PERFORMANCE"
     .safety-tiles     three tiles
     .highlight-band   yellow box with a quote
     .closing          "BUILT TO DELIVER. READY TO PERFORM" + two buttons
   ============================================================================= */


/* ---------- Hero -------------------------------------------------------------- */
.page-hero { height: 34.86cqw; padding: 12.39cqw 0 0 6.93cqw; }
.page-hero__title { font-size: 4.181cqw; }
.page-hero__text { width: 31.34cqw; }


/* ---------- How it all started ------------------------------------------------ */
.story {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.88cqw 5.94cqw 4.3cqw 6.46cqw;
}

/* The text keeps a fixed 16px size, so on smaller laptops it takes more lines
   and the section grows taller (the photo stays centred next to it). */
.story__text { width: 42.15cqw; min-height: 39.16cqw; }

.story h2 {
  font-family: "Wix Madefor Display Bold", sans-serif;
  font-size: min(3.484cqw, 52px);
  line-height: 1;
}

.story p {
  width: 42.05cqw;
  margin-left: 0.1cqw;
  font-family: var(--font-small-details);
  font-size: 16px;
  line-height: 1.6;
}
/* the first paragraph always starts 4.88cqw below the top of the title */
.story h2 + p { margin-top: calc(4.88cqw - min(3.484cqw, 52px)); }
/* one empty line between paragraphs */
.story p + p { margin-top: 1.6em; }

.story__picture {
  width: 43.04cqw;
  height: 39cqw;
  object-fit: cover;
  border-radius: 30px;
}


/* ---------- Mission / vision / core values -----------------------------------
   Everything in this section is placed at an exact spot (like the original
   design), so each item has its own left / top position below.               */
.values {
  height: calc(44.31cqw + 50px);   /* grows a little on small laptops: see .core-values below */
  overflow: hidden;
  color: var(--white);
}
.values .background { background-color: rgba(0, 0, 0, 0.94); }

.values > *:not(.background) { position: absolute; }

.values h2 {
  font-family: var(--font-heading);
  font-size: 3.336cqw;
  line-height: 1.3;
  color: var(--yellow);
}
.values p {
  font-size: 1.112cqw;
  line-height: 1.6;
}

/* yellow dot and the thin white line that follows it */
.dot {
  width: 2.41cqw;
  height: 2.41cqw;
  border-radius: 50%;
  background-color: var(--yellow);
}
.line { height: 0; border-top: 0.8px solid var(--white); }

.values__mission-title { left: 6.98cqw; top: 4.83cqw; }
.values__mission-dot   { left: 24.34cqw; top: 5.54cqw; }
.values__mission-line  { left: 26.75cqw; top: 6.71cqw; width: 38.74cqw; }
.values__mission-text  { left: 6.98cqw; top: 9.13cqw; width: 17.95cqw; }

.values__vision-title { left: 15.96cqw; top: 16.27cqw; }
.values__vision-dot   { left: 36.5cqw; top: 16.93cqw; }
.values__vision-line  { left: 38.91cqw; top: 18.12cqw; width: 24.1cqw; }
.values__vision-text  { left: 15.96cqw; top: 20.58cqw; width: 20.1cqw; }

.values__chevrons { left: 55.62cqw; top: 6.66cqw; width: 45.43cqw; height: 11.61cqw; }
.values__chevrons img { width: 100%; height: 100%; object-fit: cover; }

.values__core-title { left: 6.98cqw; top: 28.19cqw; line-height: 1.1 !important; }
.values__core-dot   { left: 23.42cqw; top: 30.65cqw; }
.values__core-line  { left: 25.83cqw; top: 31.82cqw; width: 67.19cqw; }

/* the four values hang from the line: a short line down to a small dot, then the text.
   On desktop the short line is always 50px long (like the original), so the text
   and the dot are placed from that. */
.core-values {
  left: 26.44cqw;
  top: 31.85cqw;
  display: grid;
  grid-template-columns: repeat(4, 16.77cqw);
  list-style: none;
}
.core-values li {
  position: relative;
  width: 11.81cqw;
  padding-top: calc(50px + 1.53cqw);
  font-size: 1.112cqw;
  line-height: 1.6;
  color: var(--light-grey);
}
.core-values li::before {             /* short line down */
  content: "";
  position: absolute;
  top: 0;
  left: 0.72cqw;
  height: 50px;
  border-left: 0.8px solid var(--white);
}
.core-values li::after {              /* small dot */
  content: "";
  position: absolute;
  top: calc(50px - 0.42cqw);
  left: 0;
  width: 1.56cqw;
  height: 1.36cqw;
  border-radius: 50%;
  background-color: var(--yellow);
}


/* ---------- Safety & performance -------------------------------------------- */
.safety-intro {
  padding: 3.36cqw 0;
  text-align: center;
}
.safety-intro h2 { text-transform: uppercase; }
.safety-intro p {
  font-size: 1.112cqw;
  line-height: 1.6;
  color: var(--grey);
}

.safety-tiles {
  display: flex;
  gap: 2.42cqw;
  padding: 0 0 4.2cqw 7.03cqw;
}

.safety-tile {
  width: 27.03cqw;
  height: 29.24cqw;
  padding: 1.57cqw 1.62cqw 0 1.42cqw;
  border: 0.8px solid rgba(0, 0, 0, 0.2);
  border-radius: 1.394cqw;
  background-color: var(--cream);
}

.safety-tile img {
  width: 23.83cqw;
  height: 10.71cqw;
  margin-left: 0.16cqw;
  object-fit: cover;
  border-radius: 0.697cqw;
}

.safety-tile h3 {
  margin-top: 1.68cqw;
  font-size: 1.603cqw;
  line-height: 1.4;
}

.safety-tile ul,
.safety-tile p {
  margin-top: 2.05cqw;
  font-size: 1.112cqw;
  line-height: 1.4;
  color: var(--grey);
}
.safety-tile ul { padding-left: 2cqw; }


/* ---------- Yellow quote box ---------------------------------------------------
   The box hangs down over the top of the next section. */
.highlight-band {
  position: relative;
  z-index: 1;
  height: 7.24cqw;
}
.highlight-band__box {
  position: absolute;
  left: 6.98cqw;
  top: 1.21cqw;
  width: 86.04cqw;
  height: 7.56cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 17.01cqw;
  background-color: var(--yellow);
  font-size: 1.251cqw;
  line-height: 1.6;
  text-align: center;
}


/* ---------- Closing --------------------------------------------------------- */
.closing {
  height: 21.21cqw;
  padding-top: 5.62cqw;
  text-align: center;
}
.background--white { background-color: var(--white); }

.closing__buttons {
  display: flex;
  justify-content: center;
  gap: 2.1cqw;
  margin-top: 3.2cqw;
}
.closing .button { height: 3.46cqw; }
.closing .button:first-child { width: 15.59cqw; }
.closing .button:last-child  { width: 15.12cqw; }


/* =============================================================================
   TABLET
   ============================================================================= */
@media (max-width: 1000px) {
  .page-hero { height: 47.68cqw; padding: 19.77cqw 0 0 3.95cqw; }
  .page-hero__eyebrow { font-weight: 700; }
  .page-hero__title { font-size: 5.312cqw; }
  .page-hero__text { width: 54.46cqw; }

  .yellow-strip { height: 3.16cqw; }

  .story { flex-direction: column; align-items: flex-start; height: 90.85cqw; padding: 5.2cqw 0 0 7.91cqw; }
  .story__text { width: 85.88cqw; min-height: 0; }
  .story p { width: 85.2cqw; margin-left: 0.68cqw; }
  .story h2 + p { margin-top: 1.36cqw; }
  .story__picture { align-self: flex-end; width: 41.02cqw; height: 37.18cqw; margin: 1.24cqw 5.19cqw 0 0; }

  .values { height: 62.94cqw; }
  .values h2 { font-size: 3.366cqw; }
  .values p { font-size: 1.594cqw; }
  .values__mission-title { left: 3.95cqw; top: 4.86cqw; }
  .values__mission-dot   { left: 21.35cqw; top: 5.54cqw; }
  .values__mission-line  { left: 23.76cqw; top: 6.67cqw; width: 38.74cqw; }
  .values__mission-text  { left: 3.95cqw; top: 9.27cqw; width: 19.21cqw; }
  .values__vision-title { left: 12.99cqw; top: 20.23cqw; }
  .values__vision-dot   { left: 36.5cqw; top: 19.72cqw; }
  .values__vision-line  { left: 38.91cqw; top: 20.88cqw; width: 24.1cqw; }
  .values__vision-text  { left: 12.99cqw; top: 24.52cqw; width: 21.47cqw; }
  .values__chevrons { left: 55.48cqw; top: 6.67cqw; width: 48.59cqw; height: 15.59cqw; }
  .values__core-title { left: 3.95cqw; top: 36.16cqw; }
  .values__core-dot   { left: 26.39cqw; top: 38.68cqw; }
  .values__core-line  { left: 28.8cqw; top: 39.81cqw; width: 67.19cqw; }
  .core-values { left: 24.92cqw; top: 39.88cqw; grid-template-columns: repeat(4, 17.87cqw); }
  .core-values li { width: 12.54cqw; padding-top: 7.24cqw; font-size: 1.594cqw; }
  .core-values li::before { left: 0.72cqw; height: 5.65cqw; }
  .core-values li::after { top: 5.23cqw; width: 1.67cqw; height: 1.45cqw; }

  .safety-intro { padding: 8.02cqw 0; }
  .safety-intro h2 { font-size: 3.484cqw; }
  .safety-intro p { width: 53.11cqw; margin: 0 auto; font-size: 1.859cqw; }

  .safety-tiles { gap: 2.37cqw; padding: 3.95cqw 0 8.02cqw 4.18cqw; }
  .safety-tile { width: 28.93cqw; height: 45.54cqw; padding: 1.59cqw 1.58cqw 0 1.36cqw; border-radius: 1.394cqw; }
  .safety-tile img { width: 24.18cqw; height: 10.85cqw; margin-left: 0.22cqw; }
  .safety-tile h3 { margin-top: 1.58cqw; }
  .safety-tile ul, .safety-tile p { margin-top: 1.58cqw; font-size: 1.859cqw; }
  .safety-tile ul { width: 24.18cqw; padding-left: 3.39cqw; }

  .highlight-band { height: 15.93cqw; }
  .highlight-band__box { left: 7.01cqw; top: 9.94cqw; width: 85.99cqw; height: 9.49cqw; padding: 0 8.58cqw; font-size: 1.859cqw; }

  .closing { height: 26.89cqw; padding-top: 7.57cqw; }
  .closing h2 { font-size: 3.984cqw; }
  .closing__buttons { gap: 2.03cqw; margin-top: 3.27cqw; }
  .closing .button { height: 6.67cqw; font-size: 1.812cqw; white-space: normal; text-align: center; }
  .closing .button:first-child { width: 22.6cqw; }
  .closing .button:last-child  { width: 24.97cqw; }
  .closing .button::after { width: 3.4cqw; height: 3.4cqw; }
}


/* =============================================================================
   PHONE
   ============================================================================= */
@media (max-width: 750px) {
  .page-hero { height: 94.93cqw; padding: 33.33cqw 0 0 5.33cqw; }
  .page-hero__title { width: 61.33cqw; font-size: 8.588cqw; }
  .page-hero__text { width: 61.33cqw; color: var(--white); }

  .yellow-strip { height: 3.2cqw; }

  .story { height: 266.67cqw; padding: 14.93cqw 0 0 8cqw; }
  .story__text { width: 84.8cqw; }
  .story h2 { font-size: 26px; }
  .story p { width: 84.8cqw; margin-left: -0.53cqw; font-size: 14px; }
  .story h2 + p { margin-top: 1.6cqw; }
  .story__picture { align-self: flex-start; width: 83.47cqw; height: 72cqw; margin: 2.13cqw 0 0 0.8cqw; }

  .values { height: 85.6cqw; }
  .values h2 { font-size: 3.446cqw; }
  .values p { font-size: 2.67cqw; }
  .values__mission-title { left: 5.33cqw; top: 4.8cqw; }
  .values__mission-dot   { left: 28.06cqw; top: 5.49cqw; }
  .values__mission-line  { left: 30.47cqw; top: 6.52cqw; width: 38.78cqw; }
  .values__mission-text  { left: 5.33cqw; top: 9.33cqw; width: 37.6cqw; }
  .values__vision-title { left: 14.4cqw; top: 27.2cqw; }
  .values__vision-dot   { left: 37.82cqw; top: 27.74cqw; }
  .values__vision-line  { left: 40.23cqw; top: 28.84cqw; width: 24.12cqw; }
  .values__vision-text  { left: 14.4cqw; top: 31.73cqw; width: 49.87cqw; }
  .values__chevrons { left: 55.47cqw; top: 6.67cqw; width: 47.2cqw; height: 21.87cqw; }
  .values__core-title { left: 5.33cqw; top: 44.27cqw; }
  .values__core-dot   { left: 20.77cqw; top: 46.83cqw; }
  .values__core-line  { left: 23.18cqw; top: 47.86cqw; width: 71.54cqw; }
  .core-values { left: 21.33cqw; top: 48.04cqw; grid-template-columns: repeat(4, 18.4cqw); }
  .core-values li { width: 20.53cqw; padding-top: 14.89cqw; font-size: 2.67cqw; }
  .core-values li::before { left: 0.72cqw; height: 13.33cqw; }
  .core-values li::after { top: 12.9cqw; left: 0.26cqw; width: 1.72cqw; height: 1.49cqw; }

  .safety-intro { padding: 8cqw 0; }
  .safety-intro h2 { width: 84cqw; margin: 0 auto; font-size: 6.71cqw; }
  .safety-intro p { width: 75.2cqw; margin: 2.67cqw auto 0; font-size: 3.489cqw; }

  .safety-tiles { flex-direction: column; gap: 6.67cqw; padding: 8cqw 0 7.73cqw 5.6cqw; }
  .safety-tile { width: 89.07cqw; height: 78.13cqw; padding: 6.67cqw 0 0 6.4cqw; border-radius: 4.026cqw; }
  .safety-tile:last-child { height: 100.27cqw; }
  .safety-tile img { width: 70.93cqw; height: 32cqw; margin-left: 0.27cqw; border-radius: 2.684cqw; }
  .safety-tile h3 { width: 75.73cqw; margin-top: 5.33cqw; font-size: 5.339cqw; }
  .safety-tile ul { width: 70.93cqw; margin-top: 5.33cqw; padding-left: 6.13cqw; font-size: 3.489cqw; }
  .safety-tile p { width: 70.93cqw; margin-top: 5.33cqw; font-size: 3.489cqw; }

  .highlight-band { height: 16cqw; }
  .highlight-band__box { left: 6.93cqw; top: 10.13cqw; width: 86.13cqw; height: 27.47cqw; padding: 0 8.54cqw; font-size: 3.737cqw; }

  .closing { height: 78.13cqw; padding-top: 25.6cqw; }
  .closing h2 { width: 86.13cqw; margin: 0 auto; font-size: 6.71cqw; }
  .closing__buttons { flex-direction: column; align-items: center; gap: 2.13cqw; margin-top: 3.2cqw; }
  .closing .button { width: 48cqw !important; height: 13.33cqw; font-weight: 400; font-size: 3.697cqw; white-space: nowrap; }
  .closing .button:first-child { font-size: 3.418cqw; }
  .closing .button::after { width: 6cqw; height: 6cqw; }
}
