/* ============================================================
   WACK Contracting — service page layout
   Loaded alongside site.css on /services/* pages only.
   ============================================================ */

:root {
  --muted: #5f5e5e;
  --ink-b: #1b1c1c;
}

/* ---------- hero ---------- */
.sp-hero {
  padding: 40px 0 72px;
}
.sp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
.sp-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.0875em;
  color: rgba(85, 67, 58, 0.6);
}
.sp-crumbs a:hover {
  color: var(--rust);
}
.sp-crumbs [aria-current] {
  color: var(--rust);
}
.sp-hero h1 {
  font-family: var(--mono-label);
  font-weight: 800;
  font-size: 50px;
  line-height: 1.2;
  color: var(--ink-b);
}
.sp-hero h1 em {
  font-style: normal;
  color: var(--rust);
}
.sp-lead {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
}
.sp-hero .btn {
  margin-top: 28px;
  padding: 16px 32px;
  font-size: 18px;
  gap: 10px;
}
.sp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 28px;
}
.sp-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--gray);
}
.sp-figure {
  position: relative;
}
.sp-figure .shot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.sp-figure .shot img {
  width: 100%;
  aspect-ratio: 645 / 484;
  object-fit: cover;
}
/* the design darkens the photo so the badge reads against it */
.sp-figure .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}
.sp-badge {
  position: absolute;
  left: -24px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.sp-badge .ring {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 9999px;
  background: rgba(196, 107, 53, 0.1);
}
.sp-badge b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-b);
}
.sp-badge small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- why invest ---------- */
.sp-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
.sp-why-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow:
    0 4px 6px -4px rgba(0, 0, 0, 0.1),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.sp-why h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink-b);
}
.sp-why > p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}
.sp-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 26px;
}
.sp-feat {
  display: flex;
  gap: 16px;
}
.sp-feat img {
  flex: none;
  width: 24px;
  height: 24px;
}
.sp-feat b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-b);
}
.sp-feat span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* optional kicker above the benefits heading */
.sp-why .eyebrow {
  display: block;
  margin-bottom: 10px;
}
/* gallery row on pages that have no testimonial yet */
.sp-proj-top.no-quote .sp-shot {
  grid-area: 1 / 1 / 2 / 4;
}

/* ---------- featured projects ---------- */
.sp-projects {
  text-align: center;
}
.sp-projects .sub {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
}
.sp-proj-rows {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 50px;
  text-align: left;
}
/* Three columns chosen so one grid serves both rows of the desktop layout:
   row 1 is  shot(1-2) | quote(3)  = 872 + 436
   row 2 is  thumb(1)  | thumb(2-3) = 654 + 654   (at the 1340px container) */
.sp-proj-top {
  display: grid;
  grid-template-columns: 654fr 186fr 436fr;
  grid-template-rows: 500px 300px;
  gap: 32px;
}
.sp-gallery {
  display: contents;
}
.sp-gallery .sp-shot {
  grid-area: 1 / 1 / 2 / 3;
}
.sp-quote {
  grid-area: 1 / 3 / 2 / 4;
}
.sp-gallery img.sp-thumb:nth-of-type(1) {
  grid-area: 2 / 1 / 3 / 2;
}
.sp-gallery img.sp-thumb:nth-of-type(2) {
  grid-area: 2 / 2 / 3 / 4;
}
.sp-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.sp-shot {
  position: relative;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}
.sp-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-shot .cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 53%);
}
.sp-shot h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.sp-meta li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.sp-meta img {
  flex: none;
  width: 12px;
  height: auto;
}
.sp-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 100px 32px;
  background: #eae8e7;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.sp-quote img {
  align-self: flex-start;
  height: 26px;
}
.sp-quote blockquote {
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-b);
}
.sp-quote figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sp-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #e2dfde;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-b);
}
.sp-quote b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-b);
}
.sp-quote small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.btn-outline {
  margin-top: 50px;
  padding: 12px 32px;
  font-size: 18px;
  color: var(--rust);
  background: transparent;
  border: 2px solid var(--rust);
}
.btn-outline:hover {
  background: var(--rust);
  color: var(--white);
}

/* ---------- why homeowners choose ---------- */
.sp-choose {
  padding: 72px 0;
  background: var(--dark);
}
.sp-choose .head {
  margin-bottom: 50px;
  text-align: center;
}
.sp-choose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.044em;
  text-transform: uppercase;
  color: #fbf9f8;
}
.sp-choose .head p {
  margin-top: 10px;
  font-size: 20px;
  color: #e4e2e2;
}
.sp-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sp-choose-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: rgba(251, 249, 248, 0.05);
  border: 1px solid rgba(221, 215, 207, 0.2);
  border-radius: 20px;
}
.sp-choose-card img {
  align-self: flex-start;
  height: 30px;
  width: auto;
}
.sp-choose-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fbf9f8;
}
.sp-choose-card p {
  font-size: 16px;
  line-height: 1.4;
  color: #e4e2e2;
}

/* ---------- build process ---------- */
.sp-process .head p {
  max-width: 932px;
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--muted);
}
.sp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 50px;
}
/* the rust rule the step markers sit on */
.sp-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  height: 2px;
  background: var(--rust);
}
.sp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.sp-step .dot {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  background: var(--rust);
  border: 4px solid #fbf9f8;
}
.sp-step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-b);
}
.sp-step p {
  font-family: var(--display);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  /* quote drops below; the gallery becomes a real box again */
  .sp-proj-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .sp-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .sp-gallery .sp-shot {
    grid-column: 1 / -1;
    height: 460px;
  }
  .sp-thumb {
    height: 260px;
  }
  .sp-quote {
    padding: 40px 32px;
  }
  .sp-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
  .sp-steps::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .sp-hero-grid,
  .sp-why-grid,
  .sp-feats,
  .sp-choose-grid {
    grid-template-columns: 1fr;
  }

  /* ---- hero: photo first, then the copy ---- */
  .sp-hero {
    padding: 30px 0 30px;
  }
  .sp-hero-grid {
    gap: 33px;
  }
  .sp-figure {
    order: -1;
    margin-bottom: 8px;
  }
  .sp-crumbs {
    display: none;
  }
  .sp-hero h1 {
    font-size: 34px;
  }
  .sp-lead,
  .sp-projects .sub,
  .sp-choose .head p,
  .sp-process .head p {
    font-size: 16px;
  }
  .sp-lead {
    margin-top: 24px;
  }
  /* badge tucks under the bottom-left corner of the photo */
  .sp-badge {
    left: 0;
    bottom: -22px;
    padding: 10px;
    gap: 12px;
  }
  .sp-badge .ring {
    width: 40px;
    height: 40px;
  }
  .sp-trust {
    gap: 14px 22px;
    margin-top: 22px;
  }
  .sp-trust li {
    font-size: 14px;
  }

  /* ---- why invest ---- */
  .sp-why h2,
  .sp-choose h2 {
    font-size: 28px;
  }
  .sp-why-grid {
    gap: 24px;
  }
  .sp-why-img {
    height: 240px;
  }
  .sp-feats {
    gap: 18px;
    margin-top: 22px;
  }
  .sp-feat img {
    width: 20px;
    height: 20px;
  }
  .sp-feat {
    gap: 12px;
  }

  /* ---- projects: swipeable row, quote underneath ---- */
  .sp-proj-rows {
    gap: 24px;
    margin-top: 32px;
  }
  .sp-shot .cap {
    padding: 24px;
  }
  .sp-meta {
    gap: 8px 18px;
  }
  /* every project photo rides in one swipeable row, next one peeking */
  .sp-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .sp-gallery::-webkit-scrollbar {
    display: none;
  }
  .sp-gallery > * {
    flex: 0 0 76%;
    scroll-snap-align: center;
  }
  .sp-gallery .sp-shot,
  .sp-thumb {
    height: 360px;
  }
  .sp-quote {
    padding: 28px 24px;
  }
  .btn-outline {
    margin-top: 32px;
  }

  /* ---- why homeowners choose: icon beside the title ---- */
  .sp-choose {
    padding: 56px 0;
  }
  .sp-choose .head {
    margin-bottom: 28px;
  }
  .sp-choose-grid {
    gap: 16px;
  }
  .sp-choose-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 14px;
    padding: 22px;
  }
  .sp-choose-card img {
    grid-row: 1;
    align-self: center;
    height: 26px;
  }
  .sp-choose-card h3 {
    grid-column: 2;
    align-self: center;
    font-size: 18px;
  }
  .sp-choose-card p {
    grid-column: 2;
    font-size: 15px;
  }

  /* ---- build process: timeline turns vertical ---- */
  .sp-steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 28px;
  }
  .sp-steps::before {
    display: block;
    left: 23px;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 2px;
    height: auto;
  }
  .sp-step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
    padding-bottom: 26px;
    text-align: left;
  }
  .sp-step .dot {
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    border-width: 3px;
  }
  .sp-step .dot img {
    width: 18px;
    height: auto;
  }
  .sp-step h3 {
    grid-column: 2;
    align-self: center;
    font-size: 19px;
    line-height: 1.25;
  }
  .sp-step p {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .sp-hero h1 {
    font-size: 30px;
  }
  .sp-gallery .sp-shot,
  .sp-thumb {
    height: 300px;
  }
  .sp-gallery > * {
    flex: 0 0 82%;
  }
}

/* ---------- hero buttons: step down exactly like the homepage ---------- */
@media (max-width: 860px) {
  .sp-hero .btn,
  .btn-outline {
    font-size: 13px;
    padding: 10px 18px;
  }
}
@media (max-width: 620px) {
  .sp-hero .btn,
  .btn-outline {
    font-size: 13px;
    padding: 10px 18px;
  }
}
