/* Services Pages Styling */

.services-overlay {
  /* Darkened background overlay similar to about page */
  background: linear-gradient(
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.4)
  ), var(--bg);
  min-height: 100vh;
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
}


.services-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  z-index: 10;
}

.services-close:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.services-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.services-content {
  color: var(--ink);
  width: 100%;
}

/* Services Index Page */
.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-title {
  font-size: 2em;
  color: var(--primary);
  margin-bottom: 0.8em;
}

.services-subtitle {
  font-size: 1.65em;
  color: var(--accent);
  margin-bottom: 0;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto 2rem;
  max-width: 1120px;
  width: 100%;
}

.services-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-card {
  background: var(--surface-elevated, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  flex: 0 1 320px;
  max-width: 360px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
  text-decoration: none;
}

.service-card:hover * {
  text-decoration: none;
}

.service-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--primary);
}

.service-card-title {
  font-size: 1.4em;
  color: var(--primary);
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  text-align: center;
}

.service-card-oneliner {
  font-size: 1.05em;
  color: var(--ink-muted);
  margin: 0;
  text-align: center;
  flex-grow: 1;
}

.service-card-cta {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95em;
  color: var(--accent);
  font-weight: 600;
}

/* Service Detail Page */
.service-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-detail-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: block;
}

.service-detail-icon svg {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
}

.service-detail-title {
  flex: 1;
  font-size: 2em;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}

.service-detail-intro {
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 2rem;
}

.service-detail-section {
  margin-bottom: 2.5rem;
}

.service-detail-section-title {
  font-size: 1.4em;
  color: var(--secondary);
  margin: 1.5em 0 0.8em 0;
  font-weight: 700;
}

/* List styling moved to shared/css/text-formatting.css */

.service-detail-cta {
  text-align: center;
  background: var(--surface-elevated, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.service-detail-cta-heading {
  color: var(--primary);
  font-size: 1.8em;
  margin: 0 0 1rem 0;
}

.service-detail-cta-message {
  color: var(--ink-muted);
  font-size: 1.1em;
  margin: 0 0 1.5rem 0;
}

.service-detail-cta-button {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1em;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.service-detail-cta-button:hover {
  color: var(--bg); /* Override global a:hover to maintain button text color */
  background: var(--accent); /* Maintain accent background */
  text-decoration: none; /* Override global a:hover underline */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--ink-muted); /* Muted shadow - visible in both light and dark modes */
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .services-title {
    font-size: 1.8em;
  }

  .service-detail-title {
    font-size: 1.8em;
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .services-overlay {
    padding: 1rem;
  }


  .services-header {
    flex-direction: column;
    align-items: center;
  }

  .services-title {
    font-size: 1.5em;
    text-align: center;
  }

  .services-subtitle {
    font-size: 1.4em;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 740px;
    gap: 1.5rem;
  }

  .services-row {
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
    flex: 0 1 320px;
  }

  .service-detail-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .service-detail-icon {
    width: 48px;
    height: 48px;
  }

  .service-detail-title {
    font-size: 1.5em;
    text-align: center;
  }

}

@media (max-width: 680px) {
  .services-row {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 100%;
    flex: 0 1 auto;
  }
}

/* Mobile Landscape - Override to horizontal layout */
@media (max-width: 767px) and (orientation: landscape) {
  .services-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .services-title {
    text-align: left;
  }

  .service-detail-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .service-detail-title {
    text-align: left;
  }
}
