/* ============================
   SERVICES PAGE
============================ */
.services-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 100px 20px; /* Protects content from being overlapped by fixed header/footer */
  box-sizing: border-box;
}

.services-intro {
  max-width: 520px;
  margin: 0 auto 30px auto;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Vertical Stack for Service Terms */
.services-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-family: "Gothic", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.service-item {
  position: relative;
  cursor: pointer;
}

.service-term {
  font-size: 3.7rem;
  line-height: 1.1;
  margin: 0;
  color: #000;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
  white-space: nowrap;
}

/* Base Active Underline (Only when popup is open) */
.service-item.is-active .service-term {
  text-decoration-color: #000;
}

/* Hover Underline — ONLY on devices with a real mouse cursor (prevents sticky mobile hover) */
@media (hover: hover) and (pointer: fine) {
  .service-item:hover .service-term {
    text-decoration-color: #000;
  }
}

/* Centered Popup Card */
.service-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #31FF2F; /* Electric Neon Green */
  color: #000;
  text-align: left;
  text-transform: none;
  
  /* Inherit brand font & adjust weight */
  font-family: inherit; 
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  
  width: min(320px, 85vw);
  padding: 24px;
  border-radius: 16px;
  
  /* Flat look — no shadow */
  box-shadow: none; 

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

.service-item.is-active .service-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-title {
  font-family: inherit;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.service-popup ul {
  padding-left: 18px;
  margin: 0;
}

.service-popup li {
  margin-bottom: 4px;
}

/* Mobile Breakpoint */
@media (max-width: 700px) {
  .service-term {
    font-size: 1.9rem;
    white-space: normal;
  }

  .service-popup {
    width: min(290px, 80vw);
    padding: 20px;
    font-size: 0.75rem;
  }
}