/* Generic detail modal for internal pages (services, reviews, etc.) */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.info-modal.is-open {
  display: flex;
}

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.info-modal__box {
  position: relative;
  z-index: 1;
  width: min(440px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 30px 28px 26px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3);
  animation: infoModalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes infoModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.info-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.info-modal__close:hover { color: #334155; transform: rotate(90deg); }

.info-modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.info-modal__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #EDE9FE 0%, #F5F3FF 100%);
  color: #6D28D9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.info-modal__icon svg { width: 26px; height: 26px; }

.info-modal__head-text { min-width: 0; }

.info-modal__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-modal__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}

.info-modal__price {
  display: inline-block;
  margin: 2px 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #7C3AED;
  letter-spacing: 0.01em;
}

.info-modal__body {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}

.info-modal__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-modal__list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}

.info-modal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EDE9FE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.info-modal__cta {
  display: block;
  text-align: center;
  padding: 13px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-modal__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.32);
}

/* Review-specific modal content */
.info-modal__stars {
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: #F59E0B;
  margin-bottom: 4px;
}
.info-modal__stars .review-star--off { color: #E2E8F0; }

.info-modal__quote {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #1E293B;
  font-style: italic;
  margin: 14px 0 18px;
}

.info-modal__result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ECFDF5;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 700;
}

.info-modal__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #EEF2F7;
}

.info-modal__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #EDE9FE;
}

.info-modal__author strong { display: block; font-size: 0.98rem; color: #0F172A; }
.info-modal__author span { display: block; font-size: 0.82rem; color: #64748B; }
.info-modal__author time { display: block; font-size: 0.76rem; color: #94A3B8; margin-top: 2px; }

body.info-modal-open { overflow: hidden; }

/* Clickable card affordance */
.detail-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #7C3AED;
  transition: gap 0.2s ease;
}

.portfolio-item__info .detail-card-hint {
  margin-right: 14px;
}

[data-detail-card] { cursor: pointer; }
[data-detail-card]:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 3px; }
[data-detail-card]:hover .detail-card-hint { gap: 7px; }

.review-card--clickable { cursor: pointer; }
.review-card--clickable:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 3px; }
.review-card__more { margin-top: 4px; }
.review-card--clickable:hover .review-card__more { gap: 7px; }

/* Dark theme */
body[data-theme="dark"] .info-modal__box {
  background: #0F172A;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
body[data-theme="dark"] .info-modal__title { color: #F1F5F9; }
body[data-theme="dark"] .info-modal__body { color: #94A3B8; }
body[data-theme="dark"] .info-modal__icon { background: rgba(124, 58, 237, 0.18); color: #C4B5FD; }
body[data-theme="dark"] .info-modal__list li { color: #CBD5E1; }
body[data-theme="dark"] .info-modal__list li::before { background-color: rgba(124, 58, 237, 0.22); }
body[data-theme="dark"] .info-modal__quote { color: #E2E8F0; }
body[data-theme="dark"] .info-modal__author { border-top-color: rgba(148, 163, 184, 0.18); }
body[data-theme="dark"] .info-modal__author strong { color: #F1F5F9; }
body[data-theme="dark"] .info-modal__result { background: rgba(4, 120, 87, 0.18); color: #6EE7B7; }
