/*
 * Services Page — First Temple v2
 */

/* ============================================
   Services Overview
   ============================================ */
.overview-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.overview-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: var(--leading-snug);
}

.overview-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.overview-text:last-child {
  margin-bottom: 0;
}

/* ============================================
   Service Detail — alternating image/text with bg number
   ============================================ */
.service-detail {
  display: block;
  margin-bottom: var(--space-10);
  position: relative;
  scroll-margin-top: 100px;
  padding: var(--space-8);
  background: var(--color-bg-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}

.service-detail__number {
  font-family: var(--font-accent);
  font-size: var(--text-hero);
  font-weight: var(--font-bold);
  color: var(--color-border);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-2);
  display: block;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail__image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.service-detail__image img {
  width: 100%;
  height: auto;
  display: block;
}

.service-detail__content {
  position: relative;
}

.service-detail__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}

.service-detail__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.service-features {
  margin-bottom: var(--space-6);
}

.features-heading {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.features-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.features-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-4);
  position: relative;
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.service-achievement {
  padding: var(--space-4);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}

.achievement-heading {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.achievement-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: var(--font-medium);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .service-detail {
    padding: var(--space-6);
    margin-bottom: var(--space-6);
  }
}

/* ============================================
   Other Services — simple list, minimal radius
   ============================================ */
.other-service {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-bg-white);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.other-service:last-child {
  margin-bottom: 0;
}

.other-service__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.other-service__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.other-service__icon .material-symbols-outlined {
  font-size: 40px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.services-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.other-service__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.other-service__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
}

.other-service__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.other-service__features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.other-service__features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-4);
  position: relative;
}

.other-service__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

@media (max-width: 640px) {
  .other-service {
    grid-template-columns: 1fr;
  }

  .other-service__icon {
    margin: 0 auto;
  }
}

/* ============================================
   Support Flow — horizontal timeline
   ============================================ */
.flow-steps {
  display: flex;
  gap: 0;
  position: relative;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
}

/* Connecting arrow between steps */
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid var(--color-accent);
  z-index: 1;
}

.flow-step__number {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.flow-step__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.flow-step__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .flow-steps {
    flex-direction: column;
    gap: var(--space-4);
  }

  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: 0;
    right: 50%;
    transform: translateX(50%) translateY(50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--color-accent);
    border-bottom: none;
  }

  .flow-step {
    padding: var(--space-4);
    text-align: left;
  }
}

/* ============================================
   Download Button
   ============================================ */
.btn--download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.btn--download .material-symbols-outlined {
  font-size: 20px;
}

.btn--download.btn--sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

/* ============================================
   Lead Capture Modal
   ============================================ */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.lead-modal__content {
  position: relative;
  background: var(--color-bg-white);
  border-radius: var(--radius-sm);
  padding: var(--space-8);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg, 0 25px 50px -12px rgba(0,0,0,.25));
}

.lead-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
}

.lead-modal__close:hover {
  color: var(--color-text);
}

.lead-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.lead-modal__subtitle {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-6);
}

.lead-modal__form .form-group {
  margin-bottom: var(--space-4);
}

.lead-modal__form .form-actions {
  margin-top: var(--space-6);
}

@media (max-width: 640px) {
  .lead-modal__content {
    padding: var(--space-6);
  }
}
