/* ── Services page inline-style replacements ── */

.services-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.services-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: .05em;
}

.services-card-title {
  font-size: 1.4rem;
  letter-spacing: .05em;
}

.services-card-desc {
  opacity: .7;
  font-size: .875rem;
  line-height: 1.7;
  text-align: justify;
}

.services-browse {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--military);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Services card redesign ── */
.services-card {
  position: relative;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  /* remove old bootstrap utility overrides */
  padding: 0 !important;
  background-color: transparent;
}

/* large ghost icon — centred by default */
.svc-icon-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s ease;
  z-index: 1;
}

.svc-icon-layer svg {
  width: 115px;
  height: 115px;
  opacity: 0.22;
  stroke: #5a4e38;
}

/* small icon circle — slides in from left on hover */
.svc-icon-small {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(-70px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s ease;
  opacity: 0;
  z-index: 3;
}

.svc-icon-small svg {
  width: 22px;
  height: 22px;
}

/* text panel — hidden, slides in from right on hover */
.svc-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px 0 78px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.35s ease 0.08s,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
  pointer-events: none;
  z-index: 4;
}

.svc-text .services-card-title {
  color: #f0ece2;
  margin-bottom: 6px;
}

.svc-text .services-card-desc {
  color: rgba(240, 236, 226, 0.58);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

/* static title — always visible, sits at bottom of card */
.svc-static-title {
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  padding: 10px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.svc-static-title h3 {
  color: #f0ece2;
  margin: 0;
  font-size: 25px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── hover state ── */
.services-card:hover .svc-icon-layer {
  transform: translateX(-38%);
  opacity: 0.32;
}

.services-card:hover .svc-icon-small {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

.services-card:hover .svc-text {
  opacity: 1;
  transform: translateX(0);
}

.services-card .svc-text p,
.services-card .svc-text h3 {
  color: #ffffff;
}

.services-card:hover .svc-static-title {
  opacity: 0;
}

/* keep equal-height columns */
.services-card.h-100 {
  height: 180px !important;
}

.services-card--military {
  background: var(--military);
}

.services-card--rosewood {
  background: #4a0404e8;
}

.services-card--military .svc-icon-layer svg,
.services-card--rosewood .svc-icon-layer svg {
  stroke: #fff;
  opacity: 0.22;
}

.services-card--military .svc-icon-small,
.services-card--rosewood .svc-icon-small {
  background: rgba(90, 78, 56, 0.15);
}

.services-card--military .svc-icon-small svg,
.services-card--rosewood .svc-icon-small svg {
  stroke: #ffffff;
}

.services-card--military .svc-text p,
.a-even .svc-text p {
  color: #ffffff;
}

.services-card--military .svc-static-title {
  background: linear-gradient(to top, rgba(90, 78, 56, 0.18) 0%, transparent 100%);
}

.a-even .svc-static-title {
  background: linear-gradient(to top, rgba(90, 78, 56, 0.18) 0%, transparent 100%);
}

.services-card--military .svc-static-title p,
.services-card--rosewood .svc-static-title p {
  color: #3a2e1e;
}

.services-card--military .svc-corner,
.services-card--rosewood .svc-corner {
  color: #5a4e38;
}

.services-card--military .svc-static-title h3 {
  color: #ffffff;
}