/* ═══════════════════════════════════════
   SERVICES SECTION (section2)
═══════════════════════════════════════ */

.services-section {
  position: relative;
  background: var(--bg-primary);
  z-index: 2;
}

.services-shell {
  max-width: 90%;
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) clamp(20px, 4vw, 56px);
}

/* ── Section header ── */
.services-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}

.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px 8px 11px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary-60);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px -10px rgba(15, 37, 67, 0.4);
  margin-bottom: 24px;
}
.services-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hero-green);
}
.services-eyebrow b { color: var(--text-primary); font-weight: 700; }

.services-head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.services-head h2 .s-grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-intro {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-primary-60);
  padding-bottom: 6px;
}

/* ── Cards grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}
.services-grid > a:nth-child(even) { margin-top: 52px; }

/* ── Service card ── */
.svc-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 22px;
  overflow: hidden;
  min-height: 460px;
  color: #fff;
  box-shadow: 0 20px 50px -28px rgba(15, 37, 67, 0.5);
  background: linear-gradient(160deg, #1d3b2a, #0e2418);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px -30px rgba(15, 37, 67, 0.6);
}

.svc-card .media { position: absolute; inset: 0; }
.svc-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover .media img { transform: scale(1.13); }

.svc-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 12, 0.15) 0%,
    rgba(8, 18, 12, 0) 30%,
    rgba(8, 18, 12, 0.62) 64%,
    rgba(6, 14, 9, 0.92) 100%
  );
}

/* glowing border on hover */
.svc-card .edge {
  position: absolute; inset: 0;
  border-radius: 22px;
  padding: 1.5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.svc-card:hover .edge { opacity: 1; }

/* number badge */
.svc-num {
  position: absolute;
  top: 20px; left: 22px;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

/* tag pill */
.svc-tag {
  position: absolute;
  top: 24px; right: 22px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 7px 13px;
  border-radius: 100px;
}

/* card body */
.svc-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 26px 28px;
}
.svc-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.1;
  margin-bottom: 10px;
  color: #fff;
}
.svc-body p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
}
.svc-card:hover .svc-body p {
  max-height: 140px;
  opacity: 1;
  margin-bottom: 16px;
}

.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  margin-top: 14px;
}
.svc-more svg { transition: transform 0.3s ease; }
.svc-card:hover .svc-more svg { transform: translateX(6px); }
.svc-more .pill {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

/* touch / no-hover — always show description */
@media (hover: none) {
  .svc-body p { max-height: 140px; opacity: 1; margin-bottom: 16px; }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > a:nth-child(even) { margin-top: 0; }
}
@media (max-width: 900px) {
  .services-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .svc-card { min-height: 420px; }
  .svc-body p { max-height: 140px; opacity: 1; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card, .svc-card .media img { transition: none; }
}
