/* ==========================================================================
   SERVICES PAGE MODERN LUXURY STYLING - PNMEC
   Cơ Khí Xây Dựng (9 Dịch Vụ) & Xây Dựng Dân Dụng (3 Dịch Vụ)
   ========================================================================== */

@import '../common/reset.css';
@import '../common/variables.css';
@import '../common/header.css';
@import '../common/footer.css';
@import '../common/components.css';

/* ── 1. HERO BANNER ─────────────────────────────────────────── */
.srv-hero {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.82) 100%),
    url('../../images/home-hero.png') center/cover no-repeat;
  padding: 85px 0 95px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.srv-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to top, var(--bg-light), transparent);
}

.srv-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.srv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: var(--accent-gold);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.srv-hero__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.srv-hero__subtitle {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Quick Nav Pills */
.srv-quick-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.srv-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.srv-nav-pill--gold {
  background: var(--accent-gold);
  color: var(--primary-navy);
}

.srv-nav-pill--gold:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.srv-nav-pill--blue {
  background: #2563eb;
  color: #ffffff;
}

.srv-nav-pill--blue:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.srv-nav-pill--outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.srv-nav-pill--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.srv-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.5);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.srv-breadcrumb a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

.srv-breadcrumb a:hover {
  color: #ffffff;
}

.srv-breadcrumb span {
  color: #e2e8f0;
}

/* ── 2. SECTION CONTAINER & HEADERS ─────────────────────────── */
.srv-section {
  padding: 85px 0 95px;
  background: #ffffff;
  scroll-margin-top: 100px;
}

.srv-section--alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.srv-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 45px;
}

.srv-sec-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 54px;
}

.srv-sec-head--white .srv-sec-title {
  color: #ffffff;
}

.srv-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.srv-sec-badge--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.srv-sec-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.srv-sec-desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin: 0 auto;
}

.srv-sec-desc--light {
  color: #94a3b8;
}

.srv-sec-divider {
  width: 54px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
  margin: 18px auto 0;
}

.srv-sec-divider--blue {
  background: #2563eb;
}

/* ── 3. SERVICE CARDS GRID (3 COLUMNS) ───────────────────────── */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.srv-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.srv-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.srv-card--highlight:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.srv-card__media,
.srv-card__img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #1e293b;
}

.srv-card__media img,
.srv-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.srv-card:hover .srv-card__media img,
.srv-card:hover .srv-card__img-wrap img {
  transform: scale(1.08);
}

.srv-card__badge-code {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.srv-card__badge-code--blue {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.5);
}

.srv-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
  z-index: 3;
  pointer-events: none;
}

.srv-card:hover .srv-card__overlay {
  opacity: 1;
  visibility: visible;
}

.srv-card__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold);
  color: var(--primary-navy);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(12px);
  transition: all 0.3s ease;
}

.srv-card:hover .srv-card__overlay-btn {
  transform: translateY(0);
}

.srv-card__overlay-btn:hover {
  background: #ffffff;
  color: var(--primary-navy);
}

.srv-card__body {
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.srv-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.srv-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.srv-card__title a:hover {
  color: var(--accent-gold);
}

.srv-card--highlight .srv-card__title a:hover {
  color: #2563eb;
}

.srv-card__desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 65px;
  flex: 1;
}

.srv-empty-state {
  text-align: center;
  padding: 56px 24px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.srv-empty-state i {
  font-size: 40px;
  color: #94a3b8;
  display: block;
  margin-bottom: 14px;
  opacity: 0.6;
}

.srv-empty-state h4 {
  font-size: 18px;
  color: var(--primary-navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.srv-empty-state p {
  font-size: 14px;
  margin: 0;
}

.srv-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.srv-card__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  font-weight: 500;
}

.srv-card__bullet-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  flex-shrink: 0;
  margin-top: 2px;
}

.srv-card__bullet-ico--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.srv-card__footer {
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.srv-card__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #d97706;
  text-decoration: none;
  background: rgba(245, 158, 11, 0.12);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.srv-card__action-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateY(-1px);
}

.srv-card__action-btn--blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.srv-card__action-btn--blue:hover {
  background: #2563eb;
  color: #ffffff;
}

.srv-card__proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.srv-card__proj-btn:hover {
  color: var(--primary-navy);
  gap: 8px;
}

.srv-card__proj-btn i {
  color: var(--accent-gold);
  font-size: 11px;
}

.srv-card--highlight .srv-card__proj-btn i {
  color: #2563eb;
}

/* ── 4. WORKFLOW SECTION (5 STEPS) ──────────────────────────── */
.srv-workflow {
  padding: 90px 0 100px;
  background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.srv-workflow::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.srv-workflow__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.srv-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 20px 24px;
  position: relative;
  backdrop-filter: blur(6px);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.srv-step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.srv-step-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}

.srv-step-card:hover .srv-step-num {
  color: rgba(245, 158, 11, 0.2);
}

.srv-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 18px;
  transition: all 0.3s ease;
}

.srv-step-card:hover .srv-step-icon {
  background: var(--accent-gold);
  color: var(--primary-navy);
  transform: scale(1.1);
}

.srv-step-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.srv-step-card p {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* ── 5. CTA BOX ─────────────────────────────────────────────── */
.srv-cta {
  padding: 85px 0 95px;
  background: var(--bg-light);
}

.srv-cta__box {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 48px 52px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.srv-cta__box::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.srv-cta__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.srv-cta__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.srv-cta__desc {
  font-size: 14.5px;
  color: #cbd5e1;
  margin: 0;
  max-width: 620px;
  line-height: 1.65;
}

.srv-cta__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.srv-cta__actions .btn-outline,
.srv-cta__actions .btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer !important;
  text-decoration: none;
  pointer-events: auto !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
  user-select: none;
}

.srv-cta__actions .btn-outline i,
.srv-cta__actions .btn-outline-white i {
  color: #ffffff !important;
  font-size: 15px;
  transition: color 0.3s ease;
}

.srv-cta__actions .btn-outline:hover,
.srv-cta__actions .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-gold, #F59E0B);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.srv-cta__actions .btn-outline:hover i,
.srv-cta__actions .btn-outline-white:hover i {
  color: var(--accent-gold, #F59E0B) !important;
}

.srv-cta__actions .btn-outline:active,
.srv-cta__actions .btn-outline-white:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 14px;
}

/* ── 6. RESPONSIVE BREAKPOINTS ──────────────────────────────── */
@media (max-width: 1280px) {
  .srv-container {
    padding: 0 24px;
  }
  .srv-grid {
    gap: 20px;
  }
}

@media (max-width: 1100px) {
  .srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .srv-workflow__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .srv-cta__box {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  .srv-cta__actions {
    width: 100%;
    flex-direction: column;
  }
  .srv-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .srv-hero__title {
    font-size: 30px;
  }
  .srv-sec-title {
    font-size: 24px;
  }
  .srv-grid {
    grid-template-columns: 1fr;
  }
  .srv-workflow__grid {
    grid-template-columns: 1fr;
  }
  .srv-card__title {
    min-height: auto;
  }
}
