/* "From the blog" - three real posts, above the service-area map band.
 *
 * The mirror carries 62 published posts that nothing on a service page linked
 * to. This is the first band that points inward at the client's own content
 * rather than out at Google, Yelp or the contact page.
 *
 * Grey band. The page body above it is white and the service-area band below it
 * is #1c1c1c, so grey separates it from the body without competing with the
 * dark band underneath.
 *
 * Loaded after process.css - same reason as the three light bands before it:
 * sections.css paints `.sos-band h2` white for the dark bands, and source order
 * is what lets this restate the colour without !important.
 */

.sos-blog {
  background: #f5f5f5;
  padding: 64px 0;
}

/* ---- head --------------------------------------------------------------- */

.sos-blog .sos-bl-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.sos-blog .sos-bl-eyebrow {
  display: block;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #898989;
  margin-bottom: 10px;
}

/* sections.css sets .sos-band h2 to #fff for the dark bands. Restated, not
   fought - this sheet loads later, so source order settles it. */
.sos-blog h2 {
  color: #1a1a1a;
  margin: 0;
}

.sos-blog .sos-bl-rule {
  width: 56px;
  height: 3px;
  background: #dd5c26;
  margin: 18px auto 0;
}

/* ---- the cards ----------------------------------------------------------
   The whole card is the link. One <a> wrapping everything beats a linked title
   plus a linked "read more": the tap target is the card, and nesting an <a>
   inside an <a> for the title would be invalid markup. */

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

.sos-blog .sos-bl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.sos-blog .sos-bl-card:hover {
  border-color: #dd5c26;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* The archive thumbnails are 300x225 - a 4:3 box, fixed here so a card with a
   differently-proportioned image cannot make its row uneven. */
.sos-blog .sos-bl-shot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ececec;
  border-bottom: 1px solid #e2e2e2;
}

@supports not (aspect-ratio: 4 / 3) {
  .sos-blog .sos-bl-shot {
    height: 210px;
  }
}

.sos-blog .sos-bl-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
}

.sos-blog .sos-bl-date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #898989;
  margin-bottom: 8px;
}

/* Two lines, hard. A four-line headline in one card and a one-line headline in
   the next is what makes a row of cards look broken. */
.sos-blog .sos-bl-title {
  font-family: 'Poppins', 'Archivo', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  text-transform: none;
  color: #1a1a1a;
  margin: 0 0 10px;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sos-blog .sos-bl-card:hover .sos-bl-title {
  color: #dd5c26;
}

.sos-blog .sos-bl-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3d3d3d;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* margin-top:auto pins this to the bottom of the card whatever the excerpt
   does, so the three read-more lines sit level across the row. */
.sos-blog .sos-bl-more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #dd5c26;
}

/* ---- closing link ------------------------------------------------------- */

.sos-blog .sos-bl-all {
  text-align: center;
  margin-top: 40px;
}

.sos-blog .sos-bl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 6px;
  border: 1.5px solid #dd5c26;
  background: transparent;
  color: #dd5c26;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sos-blog .sos-bl-btn:hover {
  background: #dd5c26;
  color: #fff;
}

/* ---- responsive ---------------------------------------------------------
   Same ladder the reviews band uses: 3 up, 2 up at Divi's tablet breakpoint,
   1 up on a phone. */

@media all and (max-width: 980px) {
  .sos-blog {
    padding: 48px 0;
  }
  .sos-blog .sos-bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media all and (max-width: 620px) {
  .sos-blog .sos-bl-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sos-blog .sos-bl-btn {
    width: 100%;
    justify-content: center;
  }
}
