@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #bd970a;
  --dark: #0a1a2a;
  --white: #ffffff;
  --muted: #e5e7eb;
  --accent: #d8b847;
  --transition: 0.6s ease; /* smoother transitions */
}

/* ---------- GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

section {
  width: 100%;
  padding: 100px 0;
  position: relative;
}


.container-section {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

/* Fade-in on scroll */
.container-section {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HERO SECTION ---------- */
.services-hero {
  height: 70vh;
  min-height: 420px;
  background: linear-gradient(rgba(10, 26, 42, 0.85), rgba(10, 26, 42, 0.9)),
              url('../img/procurement/bg1.jpeg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  position: relative;
  animation: fadeIn 1.5s ease forwards;
}

.services-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(189, 151, 10, 0.4);
  margin-bottom: 15px;
  animation: fadeSlide 1.5s ease forwards;
}

.services-hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.services-hero p {
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  color: var(--muted);
  max-width: 750px;
  margin: 15px auto;
  line-height: 1.6;
  animation: fadeSlide 2s ease forwards;
}

/* ---------- WHY CHOOSE US ---------- */
.service-section {
  background: var(--dark);
  margin-top: 20px;
  border-radius: 30px;
  color: var(--white);
}

.service-section h2 {
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.service-section p {
  max-width: 700px;
  margin: 10px auto 40px;
  color: var(--muted);
}

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 28px 22px;
  border: 1px solid rgba(189, 151, 10, 0.25);
  border-radius: 12px;
  transition: all 0.6s ease;
}

.service-list li:hover {
  transform: translateY(-10px);
  background: rgba(189, 151, 10, 0.12);
  border-color: var(--primary);
  box-shadow: 0 12px 25px rgba(189, 151, 10, 0.3);
}

/* ---------- WHAT WE PROCURE ---------- */
.sub-section {
  background: var(--white);
}

.sub-section h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--dark);
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  height: 250px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: all 0.8s ease;
  transform: scale(1);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 42, 0.7), transparent);
  transition: opacity 0.6s ease;
}

.card span {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  z-index: 2;
}

.card:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 30px rgba(189, 151, 10, 0.3);
}

.card:hover::after {
  background: linear-gradient(to top, rgba(189, 151, 10, 0.35), transparent);
}

/* ---------- PROCESS ---------- */
.process-section {
  background: var(--dark);
  color: var(--white);
}

.process-section h3 {
  color: var(--primary);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 40px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  width: min(230px, 90%);
  border-radius: 12px;
  border: 1px solid rgba(189, 151, 10, 0.3);
  color: var(--white);
  font-weight: 500;
  transition: all 0.6s ease;
}

.step span {
  display: block;
  width: 45px;
  height: 45px;
  margin: 0 auto 12px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 50%;
  line-height: 45px;
  font-weight: 700;
  font-size: 1.1rem;
}

.step:hover {
  background: rgba(189, 151, 10, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(189, 151, 10, 0.3);
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--dark), #111a29);
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary);
  font-weight: 600;
}

.cta-section p {
  margin: 15px auto 25px;
  max-width: 600px;
  color: var(--muted);
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.6s ease;
}

.cta-btn:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(189, 151, 10, 0.35);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-hero { height: 60vh; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .services-hero { height: 55vh; padding: 80px 15px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .services-grid, .service-list { grid-template-columns: 1fr; }
  .card { height: 200px; }
  .process-steps { flex-direction: column; align-items: center; }
}

@media (max-width: 380px) {
  .services-hero { padding: 120px 10px; height: auto; }
  .services-hero h1 { font-size: 1.6rem; }
  .services-hero p { font-size: 0.9rem; }
}

/* ---------- BACK BUTTON ---------- */
.back-btn-container {
  text-align: center;
  margin-top: -40px; /* Pulls it up a bit under the hero */
  margin-bottom: 60px;
}

.back-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-decoration: none;
  margin-top: 47px;
}

.back-btn:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(189, 151, 10, 0.3);
}

@media (max-width: 768px) {
  .back-btn{
    margin-top:55px;
  }
}