@charset "utf-8";

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */

/* Intro section — landscape image + paragraph copy (with inline links).
   Override the shared fixed media height so the shorter landscape image
   sits flush with its text. */
.sdintro_sec .cont_section__media {
  height: auto;
}

.sdintro_sec .cont_section__media img {
  aspect-ratio: 660 / 356;
  object-fit: cover;
}

/* Comprehensive services — content + portrait image, cream background */
.sdcomp_sec .cont_section__media {
  height: auto;
}

.sdcomp_sec .cont_section__media img {
  aspect-ratio: 660 / 740;
  object-fit: cover;
}

/* Subcontractors — portrait image + content (with checklist + buttons) */
.sdsub_sec .cont_section__media {
  height: auto;
}

.sdsub_sec .cont_section__media img {
  aspect-ratio: 660 / 725;
  object-fit: cover;
}

/* Button row under the copy */
.sd_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

/* Checklist items: bold title + description under the shared gold bullet */
.servicedetailpg .cont_section__content li strong {
    display: block;
    margin-bottom: 3px;
    font-family: var(--font-secondary);
    font-weight: var(--fw-medium);
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-black);
}

/* ----- Three project blocks (image + title + description cards) -----
   Single section class only; everything else targeted by descendants. */
.sdblocks_sec .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* .container has a clearfix ::before/::after — kill them so they don't
   become phantom grid items and shift the cards */
.sdblocks_sec .container::before,
.sdblocks_sec .container::after {
  content: none;
}

.sdblocks_sec a {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-white);
}

.sdblocks_sec figure {
    margin: 0;
    overflow: hidden;
    height: 360px;
}

.sdblocks_sec figure img {
  width: 100%;
  aspect-ratio: 490 / 360;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sdblocks_sec a:hover figure img {
  transform: scale(1.05);
}

.sdblocks_sec a > div {
  padding: 29px 55px 44px 33px;
}

.sdblocks_sec strong {
  display: block;
  margin-bottom: 11px;
  font-family: var(--font-secondary);
  font-weight: var(--fw-bold);
  font-size: 20px;
  line-height: 1.25;
  color: var(--color-black);
  transition: color 0.25s ease;
}

.sdblocks_sec a:hover strong {
  color: var(--color-gold-dark);
}

.sdblocks_sec p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Inline links in the body copy */
.servicedetailpg .cont_section__content a:not(.btn) {
  color: var(--color-body);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}

.servicedetailpg .cont_section__content a:not(.btn):hover {
  color: var(--color-heading);
}

.sdblocks_sec {
	.cardtitle_div {padding:30px;}
}

/* ============================================================
   RESPONSIVE — one consolidated block per breakpoint
   ============================================================ */
@media (max-width: 992px) {
  .sdblocks_sec .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .sdblocks_sec a > div {
    padding: 26px 28px 34px;
  }
}

@media (max-width: 576px) {
  .sdblocks_sec .container {
    grid-template-columns: 1fr;
  }
}
