/* =========================================================
   SERVICES.CSS — "Our Top Services" 3-card grid
   1:1 image placeholders, responsive layout.
   ========================================================= */

.services {
  /* Includes horizontal padding so it isn't overridden by .container
     (services.css loads after main.css => this rule wins). */
  padding: clamp(2.75rem, 5vw, 4rem) 1.5rem;
}

/* ---- Section header (centered, stacked) ---- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  margin-bottom: 0.1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
}

/* Section subtitle (centered under the title) */
.section-sub {
  max-width: 560px;
  margin: 0.6rem auto 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---- Grid (3 cards) — full container width, synced with hero/standard sections ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

/* ---- Card (image bleeds edge-to-edge, no inner padding around it) ---- */
.service-card {
  background: var(--surface);
  border: var(--border-1);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: stretch;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 rgba(105, 159, 71, 0.45);
}

/* 1:1 image — flush with card edges, zoom on hover */
.service-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-light), var(--navy-light));
  border-bottom: var(--border-1);
}

/* (number badges removed — images stand alone) */

.service-thumb [data-lucide] {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}

/* Real <img> — fills the box, zooms on card hover */
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-thumb img {
  transform: scale(1.05);
}

/* ---- Card body (text under image, left-aligned) ---- */
.service-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.1rem 1.25rem 1.35rem;
}

.service-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  transition: gap 0.22s var(--ease), color 0.22s var(--ease);
}

.service-link [data-lucide] { width: 15px; height: 15px; }

.service-link:hover { color: var(--navy); gap: 0.65rem; }
/* ===== Responsive grid ===== */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .services { padding: 2.75rem 1.5rem 3rem; }
}