.project-gallery-section,
.testimonials-section {
  padding: clamp(4.5rem, 8vw, 7rem) 1rem;
}

.project-gallery-section { background: #f4f6f9; }
.testimonials-section { background: var(--tdls-dark); }

.home-section-heading {
  max-width: 760px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.home-section-heading h2 {
  margin: 0.55rem 0 0.8rem;
  color: var(--tdls-blue);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.home-section-heading p { margin: 0; color: #526074; font-size: 1.05rem; line-height: 1.7; }

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.project-gallery-item {
  position: relative;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  background: var(--tdls-dark);
}

.project-gallery-item--wide { grid-column: span 2; }
.project-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.project-gallery-item:hover img { transform: scale(1.035); }
.project-gallery-item figcaption { position: absolute; inset: auto 0 0; padding: 3.5rem 1.35rem 1.25rem; color: #fff; background: linear-gradient(transparent, rgba(7, 17, 31, 0.94)); }
.project-gallery-item strong, .project-gallery-item span { display: block; }
.project-gallery-item strong { font-family: var(--font-heading); font-size: 1.35rem; text-transform: uppercase; }
.project-gallery-item span { margin-top: 0.3rem; color: rgba(255,255,255,.78); }
.project-gallery-item figcaption a { position: relative; z-index: 2; display: inline-flex; margin-top: 0.75rem; color: #fff; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.project-gallery-item figcaption a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.testimonials-section .home-section-heading h2,
.testimonials-section .home-section-heading p { color: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.testimonial-card { display: flex; min-height: 300px; flex-direction: column; padding: clamp(1.6rem, 4vw, 2.5rem); background: #fff; border-top: 5px solid var(--tdls-red); }
.testimonial-stars { color: #f2a900; font-size: 1.35rem; letter-spacing: .12em; }
.testimonial-card blockquote { flex: 1; margin: 1.25rem 0 2rem; color: #263246; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.7; }
.testimonial-card footer { display: flex; flex-direction: column; }
.testimonial-card footer a { color: var(--tdls-blue); font-weight: 800; }
.testimonial-card footer span { color: #6b7584; font-size: .88rem; }

@media (max-width: 991.98px) {
  .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .project-gallery-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .project-gallery-item--wide { grid-column: auto; }
  .project-gallery-item { min-height: 300px; }
}
