/* =========================================================
   services.css  |  Delivery Experience page
   ========================================================= */

/* ================= PAGE HERO (FULL-WIDTH BACKGROUND) ================= */

/* The background now sits on the full-width section, so there is
   no white gap on the left/right of the hero any more. */
.page-hero {
  /* Change this one line to swap the hero image */
  --hero-img: url("https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=1800&q=85");

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  background-color: #1f3d2f;
  background-image:
    linear-gradient(90deg,
      rgba(12, 48, 36, 0.38) 0%,
      rgba(12, 48, 36, 0.18) 50%,
      rgba(12, 48, 36, 0) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* No pseudo-element layers needed any more */
.page-hero::before,
.page-hero::after {
  content: none;
}

.page-hero .breadcrumbs,
.page-hero .breadcrumbs a,
.page-hero .breadcrumbs span {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumbs span:last-child {
  color: #ffffff;
  font-weight: 600;
}

.page-hero .breadcrumbs {
  margin-bottom: 12px;
}

/* The inner grid is now just a layout wrapper (no card look) */
.page-hero-grid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 260px;
  margin: 0;
  padding: 8px 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Left content */
.page-hero-grid>div {
  width: 100%;
  max-width: 640px;
  margin-right: auto;
  text-align: left;
}

.page-hero-grid .section-badge {
  display: inline-block;
  margin-bottom: 12px;
}

.page-hero-title {
  margin: 0 0 12px;
  font-size:2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.page-hero-title span {
  color: var(--primary-green);
}

.page-hero-sub {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.page-hero-grid .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ================= WHAT WE DO ================= */

.container.what-we-do {
  padding-top: 56px;
}
.what-we-do{
 font-size:2.2rem; 
 font-weight:800; 
 color:var(--navy-text);
}
.what-we-do-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.what-we-do-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-text);
}

.what-we-do-sub {
  max-width: 500px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: right;
}

/* ================= SERVICE CARDS ================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-white, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-green);
  outline: none;
}

.service-card:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 3px;
}

.service-card-header {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: var(--light-green-bg);
}

.service-card-header img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-header img {
  transform: scale(1.08);
}

.service-card-icon-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-white, #ffffff);
  color: var(--primary-green);
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
}

.service-card:hover .service-card-icon-badge {
  background-color: var(--primary-green);
  color: #ffffff;
  transform: scale(1.1) rotate(-6deg);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.service-card-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy-text);
  transition: var(--transition-fast);
}

.service-card:hover .service-card-title {
  color: var(--primary-green);
}

.service-card-desc {
  flex: 1;
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-body);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-green);
  transition: var(--transition-fast);
}

.service-card:hover .service-card-link {
  gap: 12px;
}

/* ================= LAPTOP ================= */

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {
  .page-hero {
    padding: 14px 0 28px;
  }

  .page-hero-grid {
    min-height: 220px;
    padding: 8px 0;
  }

  .page-hero-grid>div {
    max-width: 560px;
  }

  .container.what-we-do {
    padding-top: 44px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
  .page-hero {
    padding: 12px 0 24px;
  }

  .page-hero-grid {
    min-height: auto;
    padding: 8px 0;
  }

  /* On phones the overlay is even across the hero for readable text */
  .page-hero {
    background-image:
      linear-gradient(rgba(12, 48, 36, 0.45), rgba(12, 48, 36, 0.45)),
      var(--hero-img);
  }

  .page-hero-grid>div {
    max-width: 100%;
  }

  .page-hero-title {
    font-size: 1.9rem;
  }

  .page-hero-sub {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .container.what-we-do {
    padding-top: 32px;
  }

  .what-we-do-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .what-we-do-title {
    font-size: 1.75rem;
  }

  .what-we-do-sub {
    max-width: 100%;
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 56px;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

  .service-card,
  .service-card-header img,
  .service-card-icon-badge {
    transition: none;
  }

  .service-card:hover,
  .service-card:hover .service-card-header img {
    transform: none;
  }
}