/* The About page bands that are not shared with the service pages. Built by about_page()
 * in build_site.py; the story band keeps expert.css and the video keeps video.css.
 *
 * Page rhythm, top to bottom: photo hero (the crew shot, full bleed), grey story, white
 * "What You Can Expect", grey "See Us at Work", white reviews, grey services, orange call
 * band.
 *
 * The About page does not load sections.css, so nothing here leans on .sos-band or its
 * .sos-wrap -- the column is .sos-ab-wrap, defined below. Divi pads every p and heading,
 * bullets every ul and borders every blockquote by bare element selector, so each is zeroed
 * where it is used.
 */

.sos-ab-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.sos-ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dd5c26;
  margin-bottom: 12px;
}

.sos-ab-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.sos-ab-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.sos-ab-intro h2,
.sos-ab-cta h2 {
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
}

.sos-ab-intro p {
  color: #5f5a56;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 14px 0 0;
  padding: 0;
}

/* A centred text link under a band: "View Our Projects", "Read all reviews on Google". */
.sos-ab-more {
  text-align: center;
  margin: 32px 0 0;
  padding: 0;
}

.sos-ab-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dd5c26;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(221, 92, 38, 0.3);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sos-ab-more a:hover,
.sos-ab-more a:focus-visible {
  color: #b8481b;
  border-bottom-color: #b8481b;
}

/* ---- buttons ---------------------------------------------------------------
   Black is the default (it sits on the orange call band); .is-orange is the hero's
   Get in Touch; .is-ghost is the white outline on the orange band. */

.sos-ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0b0b0b;
  color: #fff;
  border: 2px solid #0b0b0b;
  border-radius: 6px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sos-ab-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sos-ab-btn:hover,
.sos-ab-btn:focus-visible {
  background: #262322;
  border-color: #262322;
  color: #fff;
  transform: translateY(-1px);
}

.sos-ab-btn.is-orange {
  background: #dd5c26;
  border-color: #dd5c26;
}

.sos-ab-btn.is-orange:hover,
.sos-ab-btn.is-orange:focus-visible {
  background: #b8481b;
  border-color: #b8481b;
}

.sos-ab-btn.is-ghost {
  background: transparent;
  border-color: #fff;
}

.sos-ab-btn.is-ghost:hover,
.sos-ab-btn.is-ghost:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #b8481b;
}

/* ---- 1. hero ----------------------------------------------------------------
   The crew photo fills the hero; the copy sits on the left over it.

   The photo is a real <img> behind everything (z-index -2 inside an isolated section). The
   supplied file already has the two men right of centre, clear of the copy.

   Vertical crop: the men span about 38-65% of the photo's height, so their middle is ~51%.
   With object-fit: cover a landscape hero crops top and bottom, and object-position Y at the
   subject's own middle keeps that middle in the middle of the hero at any aspect ratio
   ((0.51*H - h/2) / (H - h) stays ~51% for any image height H and hero height h). At 56% their
   heads ran into the top edge on a wide, short screen.

   One overlay (::before, z-index -1) does two jobs. From the left, a near-black wash under
   the copy that clears by about 60% across, so the white text reads and the people on the
   right stay bright and unshaded -- that contrast is what puts them forward. From the
   bottom, a short darkening so the hero's lower edge is not a hard line of sunlit dirt.

   At least one screen tall: the viewport less the header above it (81px desktop, 127px
   once the phone bar and mobile header stack). svh after vh so a phone's retracting toolbar
   does not push the fold. Not --sos-herotop, which the service heroes use: hero-form.js
   publishes it and returns before doing so on a page with no estimate form -- this one. */

.sos-ab-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: calc(100vh - 81px);
  min-height: calc(100svh - 81px);
  background: #0b0b0b;
  padding: 72px 0;
  color: #fff;
}

.sos-ab-head-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 51%;
}

.sos-ab-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(11, 11, 11, 0.9) 0%,
      rgba(11, 11, 11, 0.8) 30%,
      rgba(11, 11, 11, 0.45) 48%,
      rgba(11, 11, 11, 0) 64%),
    linear-gradient(0deg, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0) 28%);
}

.sos-ab-head .sos-ab-wrap {
  width: 100%;
}

.sos-ab-head-copy {
  max-width: 560px;
}

.sos-ab-head h1 {
  color: #fff;
  margin: 0;
  padding: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sos-ab-head .sos-ab-lede {
  max-width: 500px;
  margin: 22px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
  line-height: 1.65;
}

.sos-ab-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.sos-ab-down {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid #dd5c26;
  padding-bottom: 3px;
}

.sos-ab-down span {
  color: #dd5c26;
  transition: transform 0.15s ease;
}

.sos-ab-down:hover,
.sos-ab-down:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}

.sos-ab-down:hover span {
  transform: translateY(3px);
}

/* Wide screens: the content column stops growing at 1180px and centres, so the men sit
   further right of the copy's left edge but the copy ends further LEFT as a share of the
   width. Pull the wash in to match, or it shades the nearer man. */
@media all and (min-width: 1440px) {
  .sos-ab-head::before {
    background:
      linear-gradient(90deg,
        rgba(11, 11, 11, 0.9) 0%,
        rgba(11, 11, 11, 0.8) 34%,
        rgba(11, 11, 11, 0.4) 46%,
        rgba(11, 11, 11, 0) 54%),
      linear-gradient(0deg, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0) 28%);
  }
}

/* Bottom right, under the people. */
.sos-ab-head-tag {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 9px 14px;
  background: rgba(11, 11, 11, 0.85);
  color: #fff;
  border-radius: 6px;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ---- 2. story ----------------------------------------------------------------
   expert.css lays it out; only the photo crop is set here. */

/* The story photo is Chris standing full length in a portrait frame a little taller than the
   4:5 box. Anchored just above centre: the ~8% trimmed comes mostly off the gravel below his
   boots rather than his head. */
.sos-expert .sos-ab-story-shot {
  object-position: 50% 35%;
}

/* ---- 3. what you can expect ------------------------------------------------------ */

.sos-ab-values {
  background: #fff;
  padding: 80px 0;
}

.sos-ab-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sos-ab-card {
  background: #fff;
  border: 1px solid #e7e4e1;
  border-radius: 10px;
  padding: 30px 28px 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.sos-ab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(221, 92, 38, 0.1);
  margin-bottom: 18px;
}

.sos-ab-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #dd5c26;
  stroke-width: 2;
}

.sos-ab-card h3 {
  color: #1a1a1a;
  margin: 0 0 10px;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.sos-ab-card p {
  color: #5f5a56;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

/* ---- 4. see us at work -----------------------------------------------------------
   The video band's markup (so video.js and video.css still drive the player), restyled as
   one section with four project photos under it. `.sos-video.sos-ab-work` outranks
   video.css's `.sos-video` on specificity, so the grey and the padding win without
   !important. */

.sos-video.sos-ab-work {
  background: #f5f5f5;
  border-top: 1px solid #e2e2e2;
  padding: 80px 0;
}

.sos-ab-work .sos-vid-holder {
  max-width: 1000px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sos-ab-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 16px auto 0;
}

.sos-ab-photos .sos-gl-tile {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #ececec;
  aspect-ratio: 1 / 1;
}

.sos-ab-photos .sos-gl-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

/* lightbox.css scopes its zoom affordance to .sos-gallery; these tiles are not in one. */
.sos-ab-photos .sos-gl-tile.is-zoomable {
  cursor: zoom-in;
}

.sos-ab-photos .sos-gl-tile.is-zoomable:hover img,
.sos-ab-photos .sos-gl-tile.is-zoomable:focus-visible img {
  transform: scale(1.04);
}

.sos-ab-photos .sos-gl-tile.is-zoomable:focus-visible {
  outline: 3px solid #dd5c26;
  outline-offset: 2px;
}

/* ---- 5. reviews -------------------------------------------------------------------- */

.sos-ab-reviews {
  background: #fff;
  padding: 80px 0;
}

.sos-ab-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.sos-ab-review {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  border: 1px solid #e7e4e1;
  border-radius: 10px;
  padding: 26px 26px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.sos-ab-stars {
  color: #f5a623;
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
}

.sos-ab-review blockquote {
  flex: 1;
  margin: 14px 0 20px;
  padding: 0;
  border: 0;
  quotes: none;
}

.sos-ab-review blockquote p {
  color: #3d3d3d;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.sos-ab-review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #efedeb;
  color: #5f5a56;
  font-size: 0.85rem;
  line-height: 1.3;
}

.sos-ab-review figcaption img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}

.sos-ab-review figcaption strong {
  display: block;
  color: #1a1a1a;
  font-size: 0.97rem;
}

/* ---- 6. services ------------------------------------------------------------------
   Plain links to the hubs. Grey band, white tiles -- the same card treatment as the
   trust bar on the service pages. */

.sos-ab-services {
  background: #f5f5f5;
  border-top: 1px solid #e2e2e2;
  padding: 80px 0;
}

.sos-ab-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sos-ab-links li {
  margin: 0;
  padding: 0;
}

.sos-ab-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 16px 18px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sos-ab-links a span {
  color: #dd5c26;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.sos-ab-links a:hover,
.sos-ab-links a:focus-visible {
  border-color: #dd5c26;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.sos-ab-links a:hover span {
  transform: translateX(3px);
}

/* ---- 7. closing call band -------------------------------------------------------- */

.sos-ab-cta {
  background: #dd5c26;
  padding: 72px 0;
  text-align: center;
}

.sos-ab-cta h2 {
  color: #fff;
}

.sos-ab-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 14px auto 0;
  padding: 0;
}

.sos-ab-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.sos-ab-cta .sos-ab-hours {
  font-size: 0.92rem;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- responsive ---------------------------------------------------------------- */

@media all and (max-width: 980px) {
  /* Stacked: a headline over the middle of a portrait photo would sit on the people, so
     the photo takes the top of the hero and the copy runs below it, over a fade to black.
     The photo box height is repeated on the overlay so the fade ends where the photo does. */
  .sos-ab-head {
    display: block;
    min-height: calc(100vh - 127px);
    min-height: calc(100svh - 127px);
    padding: 0 0 48px;
  }
  .sos-ab-head-bg {
    position: relative;
    inset: auto;
    height: min(60svh, 520px);
    object-position: 50% 57%;
  }
  .sos-ab-head::before {
    inset: 0 0 auto 0;
    height: min(60svh, 520px);
    background: linear-gradient(180deg, rgba(11, 11, 11, 0) 45%, #0b0b0b 100%);
  }
  .sos-ab-head .sos-ab-wrap {
    margin-top: -56px;
  }
  .sos-ab-head-tag {
    top: 16px;
    right: 16px;
    bottom: auto;
  }
  .sos-ab-values,
  .sos-ab-reviews,
  .sos-ab-services,
  .sos-video.sos-ab-work {
    padding: 56px 0;
  }
  .sos-ab-cards,
  .sos-ab-review-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .sos-ab-photos {
    grid-template-columns: repeat(2, 1fr);
  }
  .sos-ab-intro {
    margin-bottom: 30px;
  }
}

@media all and (max-width: 560px) {
  .sos-ab-cta {
    padding: 56px 0;
  }
  .sos-ab-head-actions .sos-ab-btn,
  .sos-ab-actions .sos-ab-btn {
    width: 100%;
  }
  .sos-ab-head-actions {
    gap: 18px;
  }
  .sos-ab-photos {
    gap: 10px;
  }
}
