/* ═══════════════════════════════════════════════════════
   ASAS Contracting — Key Projects Card Design
   File: assets/css/key-projects.css
   Used in: projects.html
   Replaces the services-one circle card with a
   rectangular design matching residential-projects.css,
   with the addition of a hotel logo badge.
═══════════════════════════════════════════════════════ */

/* ── SUPPRESS OLD SERVICES-ONE STYLES IN KEY PROJECTS ── */
.kp-section .services-one__single,
.kp-section .services-one__single-inner,
.kp-section .services-one__shape-1,
.kp-section .services-one__shape-2,
.kp-section .services-one__img-box,
.kp-section .services-one__img,
.kp-section .services-one__icon,
.kp-section .services-one__btn-box {
  all: unset;
  display: block;
  box-sizing: border-box;
}

/* ── SECTION ── */
.kp-section {
  padding: 80px 0 100px;
  background: #ffffff;
}

.kp-section .section-title__tagline {
  display: block;
  margin-bottom: 8px;
}

.kp-section .section-title__title {
  margin-bottom: 48px;
}

/* ── CARD WRAPPER ── */
.kp-card-wrap {
  margin-bottom: 30px;
}

/* ── CARD ── */
.kp-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.kp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  color: inherit;
  text-decoration: none;
}

/* ── IMAGE: edge-to-edge rectangle ── */
.kp-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #e8e0d4;
}

.kp-card__img img.kp-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.kp-card:hover .kp-card__photo {
  transform: scale(1.05);
}

/* ── HOVER OVERLAY ── */
.kp-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 18, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.kp-card:hover .kp-card__overlay {
  background: rgba(26, 22, 18, 0.25);
}

/* ── HOTEL LOGO BADGE ── */
/* Positioned bottom-right of the image area */
.kp-card__logo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 0px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  min-height: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 1;
}

.kp-card__logo-badge img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  display: block;
}

/* ── CARD BODY ── */
.kp-card__body {
  padding: 20px 22px 16px;
}

.kp-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1612;
  margin: 0 0 4px;
  line-height: 1.3;
}

.kp-card__location {
  font-size: 13px;
  color: #96702a;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

/* ── MORE DETAILS LINK (replaces services-one__btn) ── */
.kp-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #96702a;
  padding: 8px 0;
  border-top: 1px solid #f0ebe2;
  width: 100%;
  transition: gap 0.2s ease, color 0.2s ease;
}

.kp-card:hover .kp-card__btn {
  gap: 10px;
  color: #694e1d;
}

.kp-card__btn i {
  font-size: 13px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .kp-section {
    padding: 60px 0 80px;
  }
}
