/* ───────────────────────── HERO SERVICE PAGE ───────────────────────── */

.hero.hero-services {
    /* fallback background ก่อนโหลดรูปจริง */
    background: #333;
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
}


/* ───────────────────────── SERVICE HEADER ───────────────────────── */
.services-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 3rem;
}

.services-header .small-title {
  color: #ff3c00;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.services-header .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111;
}

.services-header .section-subtitle {
  font-size: 1.05rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ───────────────────────── SERVICE CARDS ───────────────────────── */
.services {
  background-color: #fff;
  color: #222;
  padding: 3rem 1rem 5rem;
}

.service-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ────────── Individual Card ────────── */
.service-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 400px;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* .card-1 { background-image: url('/img/service-bim-design.jpg'); }
.card-2 { background-image: url('/img/service-construction.jpg'); }
.card-3 { background-image: url('/img/service-management.jpg'); }
.card-4 { background-image: url('/img/service-renovation.jpg'); } */
.card-1 {
  background-image: url('/img/service/h2.PNG');
}

.card-2 {
  background-image: url('/img/service/h3.PNG');
}

.card-3 {
  background-image: url('/img/service/h4.PNG');
}

.card-4 {
  background-image: url('/img/service/h5.PNG');
}

.card-overlay {
  position: absolute;
  inset: 0;
}

.color-blue {
  background-color: rgba(14, 42, 71, 0.7);
}

.color-orange {
  background-color: rgba(255, 60, 0, 0.7);
}

.color-dark {
  background-color: rgba(0, 0, 0, 0.7);
}

.card-content {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: #fff;
  z-index: 2;
}

.card-content h3 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ───────────────────────── Responsive ───────────────────────── */



/* ─── Animation ───────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ───── Hero Animation ───── */
.fade-hero {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 1.2s ease, transform 1.2s ease;
  will-change: opacity, transform;
}

.fade-hero.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}