/* Sydney Line Marking / Premier Workplace Solutions
   Recent Line Marking Projects Gallery — hover-reveal photo cards. */

.recent-projects-gallery-section {
  position: relative;
  background-color: var(--slm-navy);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(245, 184, 0, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245, 184, 0, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0B111A 0%, #0F172A 100%);
  padding: 88px 0 80px 0;
  color: #FFFFFF;
  border-top: 3px solid rgba(245, 184, 0, 0.35);
  border-bottom: 3px solid rgba(245, 184, 0, 0.35);
  overflow: hidden;
}

.recent-projects-gallery-section .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--slm-font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--slm-radius-sm);
  border-left: 3px solid var(--slm-yellow);
  margin-bottom: 12px;
}

.recent-projects-gallery-section .section-tag-dark {
  background-color: rgba(245, 184, 0, 0.15);
  color: var(--slm-yellow);
}

.recent-gallery-heading {
  font-family: var(--slm-font-heading);
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.recent-gallery-subheading {
  font-family: var(--slm-font-body);
  font-size: 16px;
  font-weight: 400;
  color: #CBD5E1;
  max-width: 760px;
  margin: 12px auto 0 auto;
  line-height: 1.6;
}

/* Large photography cards */
.recent-project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--slm-black);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.recent-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  border-color: rgba(245, 184, 0, 0.6);
}

.recent-project-img-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  display: block;
}

.recent-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-project-card:hover .recent-project-img {
  transform: scale(1.07);
}

/* Dark overlay + text reveal on hover */
.recent-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 26, 0.05) 0%, rgba(11, 17, 26, 0.5) 55%, rgba(11, 17, 26, 0.94) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  transition: background 0.4s ease;
  z-index: 2;
}

.recent-project-card:hover .recent-project-overlay {
  background: linear-gradient(180deg, rgba(11, 17, 26, 0.35) 0%, rgba(11, 17, 26, 0.82) 45%, rgba(11, 17, 26, 0.98) 100%);
}

.recent-project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-project-card:hover .recent-project-content {
  transform: translateY(0);
}

.recent-project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(245, 184, 0, 0.18);
  color: var(--slm-yellow);
  border: 1px solid rgba(245, 184, 0, 0.45);
  font-family: var(--slm-font-heading);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.recent-project-title {
  font-family: var(--slm-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease, margin 0.3s ease;
}

.recent-project-card:hover .recent-project-title {
  color: var(--slm-yellow);
  margin-bottom: 10px;
}

.recent-project-desc {
  font-family: var(--slm-font-body);
  font-size: 14px;
  color: #E2E8F0;
  line-height: 1.55;
  margin-bottom: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, max-height 0.35s ease;
}

.recent-project-card:hover .recent-project-desc {
  opacity: 1;
  max-height: 120px;
  transform: translateY(0);
}

@media (hover: none) {
  /* Touch devices can't hover — keep the reveal content visible so nothing is hidden behind a tap-only overlay. */
  .recent-project-overlay {
    background: linear-gradient(180deg, rgba(11, 17, 26, 0.35) 0%, rgba(11, 17, 26, 0.82) 45%, rgba(11, 17, 26, 0.98) 100%);
  }

  .recent-project-content,
  .recent-project-desc {
    transform: translateY(0);
    opacity: 1;
    max-height: 120px;
  }

  .recent-project-title {
    margin-bottom: 10px;
  }
}

@media (max-width: 991px) {
  .recent-projects-gallery-section {
    padding: 56px 0;
  }

  .recent-gallery-heading {
    font-size: 28px;
  }

  .recent-project-img-wrapper {
    height: 320px;
  }
}

@media (max-width: 575px) {
  .recent-project-img-wrapper {
    height: 260px;
  }

  .recent-project-overlay {
    padding: 22px 18px;
  }
}
