/* About page: the service-page head (service.css: white page, big two-line title, lede) and job
   photos, then the facts row with the site's custom icons (same as Home), a short story, and
   "What we do": the three service groups with links. */

/* Head: three-line title (last line orange, like Home's "in San Diego County") + buttons,
   with the job photos as a mosaic beside it on desktop and below it on phones. */
.svc-head .about-head h1 {
  font: 600 clamp(3rem, 5.4vw, 5.25rem) / 0.94 var(--font-display);
  color: var(--navy);
}

.about-head h1 b {
  display: block;
  font-weight: inherit;
}

.svc-head .about-head h1 span {
  display: block;
  color: var(--accent);
}

.about-photos {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 460px;
  gap: var(--s3);
  margin-top: var(--s6);
}

@media (min-width: 900px) {
  .about-head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--s7);
    align-items: center;
  }

  .svc-head .about-head h1 {
    font-size: clamp(3.25rem, 5.2vw, 5.25rem);
  }

  .about-head .about-photos {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: clamp(190px, 18vw, 260px) clamp(190px, 18vw, 260px);
    margin-top: 0;
  }

  .about-head .about-photos img:first-child {
    grid-row: span 2;
  }

  .about-head .actions .btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 899px) {
  .svc-head .about-head h1 {
    font-size: clamp(3rem, 8.4vw, 4.5rem);
  }
}

.about-photos img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  background: var(--line);
  object-fit: cover;
}

.about-photos img:first-child {
  object-position: center 30%;
}

.about-photos img:last-child {
  object-position: center 60%;
}

/* Facts row (same look as Home) */
.about-facts {
  padding-block: var(--s7) 0;
}

.about-facts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-facts-row li {
  display: grid;
  gap: var(--s2);
  align-content: start;
}

.about-icon {
  width: 64px;
  height: 64px;
  color: var(--navy);
}

.about-facts-row .about-icon {
  margin-bottom: var(--s3);
}

.about-facts-row b {
  font: 600 1.75rem / 1.05 var(--font-display);
  color: var(--navy);
}

.about-facts-row span {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Story */
.about-story {
  padding-block: var(--s8) 0;
}

.about-story-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s6);
  align-items: start;
}

.about-story h2,
.about-work h2 {
  font: 600 clamp(2.25rem, 4vw, 3.5rem) / 0.98 var(--font-display);
  color: var(--navy);
}

.about-copy {
  display: grid;
  gap: var(--s4);
  max-width: 60ch;
  padding-top: var(--s2);
}

.about-story .about-copy > p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}

.about-story .about-copy > p:first-child {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--navy);
}

/* What we do */
.about-work {
  padding-block: var(--s8);
}

.about-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  align-items: start;
  margin-top: var(--s6);
}

.about-work-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--navy);
}

.about-work-head .about-icon {
  width: 48px;
  height: 48px;
}

.about-work-head h3 {
  font: 600 1.75rem / 1.05 var(--font-display);
  color: var(--navy);
}

.about-work-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-work-col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.about-work-col a .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 0.2s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .about-work-col a:hover {
    color: var(--ink);
  }

  .about-work-col a:hover .icon {
    transform: translateX(3px);
  }
}

@media (max-width: 1024px) {
  .about-facts-row {
    gap: var(--s5);
  }

  .about-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-work-col:first-child {
    grid-row: span 2;
  }
}

@media (max-width: 820px) {
  .about-photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 180px;
    margin-top: var(--s5);
  }

  .about-photos img:first-child {
    grid-column: 1 / -1;
    object-position: center 60%;
  }

  .about-story-inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .about-story,
  .about-facts {
    padding-top: var(--s7);
  }

  .about-work {
    padding-block: var(--s7);
  }

  .about-work-grid {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .about-work-col:first-child {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .about-photos {
    gap: var(--s2);
  }
}

@media (max-width: 640px) {
  .about-facts-row {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .about-facts-row li {
    grid-template-columns: 48px 1fr;
    column-gap: var(--s4);
    row-gap: 2px;
  }

  .about-facts-row .about-icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .about-facts-row b {
    font-size: 1.5rem;
  }

  .about-story .about-copy > p:first-child {
    font-size: 1.125rem;
  }
}
