/* Safeguard About page.
   Hero over a photo with three facts, then white sections (approach, what we do,
   how we work), a navy band, licence and office cards, and the quote call to
   action. Colours, fonts, radius and the container come from the site tokens. */

/* ---- Hero ---- */
.sg-about-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sg-navy);
}

.sg-about-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 22%;
}

.sg-about-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 3rem 2.75rem;
}

.sg-about-hero h1 {
  margin: 0;
  font-family: var(--sg-font-head);
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.sg-about-hero__title,
.sg-about-hero__accent {
  display: inline;
}

.sg-about-hero__title {
  color: var(--sg-navy);
}

.sg-about-hero__accent {
  color: var(--sg-blue);
}

.sg-about-hero__lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--sg-ink);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.sg-about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.sg-about-hero .sg-about-hero__proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 44rem;
  margin: 2.75rem 0 0;
  padding: 1rem 1.15rem;
  list-style: none;
  background: #fff;
  border-radius: var(--sg-radius);
  box-shadow: 0 1px 2px rgb(12 45 68 / 8%), 0 12px 24px -12px rgb(12 45 68 / 22%);
}

.sg-about-hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sg-about-hero__proof-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--sg-grad-blue);
  color: #fff;
}

.sg-about-hero__proof-icon .sg-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #fff;
}

.sg-about-hero__proof li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sg-about-hero__proof-label {
  color: var(--sg-navy);
  font-family: var(--sg-font-btn);
  font-size: 0.92rem;
  font-weight: 700;
}

.sg-about-hero__proof-value {
  color: var(--sg-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

@media (min-width: 720px) {
  .sg-about-hero .sg-about-hero__proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.05rem 1.25rem;
  }
}

@media (max-width: 719px) {
  .sg-about-hero__photo {
    object-position: 68% center;
  }

  .sg-about-hero__inner {
    padding-block: 2.25rem 2.5rem;
  }

  .sg-about-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- Shared ---- */
.sg-about-intro,
.sg-about-offer,
.sg-about-work,
.sg-about-facts {
  padding: 2.75rem 0;
  background: #fff;
}

@media (min-width: 768px) {
  .sg-about-intro,
  .sg-about-offer,
  .sg-about-work,
  .sg-about-facts {
    padding: 4.25rem 0;
  }
}

.sg-about .sg-about-title,
.sg-about-title {
  margin: 0;
  font-family: var(--sg-font-head);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--sg-navy);
}

.sg-about-title--light {
  color: #fff;
}

.sg-about-prose p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--sg-ink);
}

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

.sg-about-prose--light p {
  color: rgb(255 255 255 / 88%);
}

/* Blue and orange gradient icon tiles, the same as the homepage cards. */
.sg-about-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  color: #fff;
}

.sg-about-tile .sg-icon {
  color: #fff;
}

.sg-about-tile--blue {
  background: var(--sg-grad-blue);
  box-shadow: 0 2px 6px -2px rgb(23 105 161 / 45%);
}

.sg-about-tile--orange {
  background: var(--sg-grad-orange);
  box-shadow: 0 2px 6px -2px rgb(251 117 35 / 50%);
}

/* ---- Approach ---- */
.sg-about-intro__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .sg-about-intro__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: start;
  }
}

/* ---- What we do ---- */
.sg-about-offer .sg-about-offer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  padding-inline-start: 0;
  margin-inline-start: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .sg-about-offer .sg-about-offer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sg-about-offer .sg-about-offer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2.5rem;
  }
}

.sg-about-offer__item {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  background: #fff;
  box-shadow: 0 1px 1px rgb(12 45 68 / 5%), 0 3px 8px -3px rgb(12 45 68 / 12%);
}

.sg-about-offer__item h3 {
  margin: 1.1rem 0 0;
  font-family: var(--sg-font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sg-navy);
}

.sg-about-offer__item p {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sg-muted);
}

.sg-about-offer .sg-about-offer__note {
  margin: 1.75rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sg-ink);
}

/* ---- How we work ---- */
.sg-about-work__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .sg-about-work__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3.5rem;
    align-items: start;
  }
}

.sg-about-work .sg-about-work__lead {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--sg-ink);
}

.sg-about-work .sg-about-work__start {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--sg-orange);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sg-ink);
}

.sg-about-work__start strong {
  color: var(--sg-navy);
}

.sg-about-work .sg-about-work__steps {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
  margin-inline-start: 0;
  list-style: none;
}

.sg-about-work__steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--sg-ink);
  box-shadow: 0 1px 1px rgb(12 45 68 / 5%), 0 3px 8px -3px rgb(12 45 68 / 12%);
}

.sg-about-work__num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sg-grad-orange);
  font-family: var(--sg-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

/* ---- Navy band ---- */
.sg-about-focus {
  padding: 3rem 0;
  background: linear-gradient(135deg, #0c2d44 0%, #0e3a5c 60%, #124e7a 140%);
}

@media (min-width: 768px) {
  .sg-about-focus {
    padding: 4.5rem 0;
  }
}

.sg-about-focus__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .sg-about-focus__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: start;
  }
}

/* ---- Licence and office ---- */
.sg-about-facts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .sg-about-facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.5rem;
  }
}

.sg-about-facts__card {
  padding: 1.5rem;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  background: #fff;
  box-shadow: 0 1px 1px rgb(12 45 68 / 5%), 0 3px 8px -3px rgb(12 45 68 / 12%);
}

.sg-about-facts__card h3 {
  margin: 1.1rem 0 0;
  font-family: var(--sg-font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sg-navy);
}

.sg-about-facts__card p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sg-ink);
}

.sg-about-facts__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.sg-about-facts__links a {
  font-weight: 600;
  color: var(--sg-blue);
  text-decoration: none;
}

.sg-about-facts__links a:hover,
.sg-about-facts__links a:focus-visible {
  color: var(--sg-blue-dark);
  text-decoration: underline;
}
