/* ==========================================================================
   SkyPets — About Us page
   Editorial layouts for the approved company copy and photography.
   ========================================================================== */

.about-page {
  overflow-x: clip;
}

.about-section {
  padding: 64px 0;
}

.about-section + .about-section {
  border-top: 1px solid var(--line);
}

.about-ceo-section {
  background: var(--paper);
}

.about-certificate-section {
  background: var(--cream);
}

.about-container {
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
}

.about-ceo-article::after {
  content: "";
  display: table;
  clear: both;
}

.about-ceo-image {
  float: left;
  width: min(39%, 410px);
  height: auto;
  margin: 0 38px 24px 0;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(15, 46, 32, 0.1);
}

.about-page h1,
.about-page h2 {
  color: var(--green-dark);
  letter-spacing: 0;
  text-transform: none;
}

.about-page h1 {
  margin: 0 0 24px;
  padding-top: 8px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.02;
}

.about-page h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
}

.about-prose {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}

.about-prose p {
  margin: 0 0 18px;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-company-intro {
  max-width: 860px;
}

.about-certificate-heading {
  text-align: center;
}

.about-certificate-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(15, 46, 32, 0.1);
}

.about-certificate-image {
  display: block;
  width: 100%;
  height: auto;
}

.about-wide-media {
  margin: 38px 0 46px;
}

.about-wide-media img,
.about-editorial-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(15, 46, 32, 0.1);
}

.about-editorial-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 48px;
  margin-top: 48px;
}

.about-editorial-row.is-reversed {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
}

.about-editorial-row.is-reversed .about-editorial-media {
  order: 2;
}

.about-editorial-row.is-reversed .about-editorial-copy {
  order: 1;
}

@media (max-width: 900px) {
  .about-section {
    padding: 48px 0;
  }

  .about-container {
    width: min(100% - 28px, 720px);
  }

  .about-ceo-image {
    float: none;
    width: min(100%, 520px);
    margin: 0 auto 30px;
  }

  .about-page h1 {
    padding-top: 0;
    font-size: clamp(38px, 8vw, 52px);
  }

  .about-editorial-row,
  .about-editorial-row.is-reversed {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 38px;
  }

  .about-editorial-row.is-reversed .about-editorial-media,
  .about-editorial-row.is-reversed .about-editorial-copy {
    order: initial;
  }
}

@media (max-width: 560px) {
  .about-section {
    padding: 38px 0;
  }

  .about-page h1 {
    margin-bottom: 20px;
    font-size: 38px;
  }

  .about-page h2 {
    margin-bottom: 20px;
    font-size: 32px;
  }

  .about-prose {
    font-size: 16px;
    line-height: 1.68;
  }

  .about-certificate-card {
    padding: 6px;
  }

  .about-wide-media {
    margin: 30px 0 36px;
  }
}
