/* ============ SERVICE / INTERIOR DETAIL MODAL ============ */
.smodal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}
.smodal[hidden] { display: none; }

.smodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.smodal.is-open .smodal__backdrop { opacity: 1; }

/* ---- Panel ---- */
.smodal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: min(880px, 100%);
  max-height: min(88vh, 620px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.smodal.is-open .smodal__panel { opacity: 1; transform: none; }

/* ---- Media side ---- */
.smodal__media {
  position: relative;
  min-height: 260px;
  background: var(--ink-2);
}
.smodal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.smodal__media img[hidden] { display: none; }

/* red panel stand-in when a service has no photograph */
.smodal__ico {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: #fff;
  background: var(--red);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.07) 0 1px,
      transparent 1px 9px);
}
.smodal__ico[hidden] { display: none; }

/* ---- Text side ---- */
.smodal__body {
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.smodal__body .eyebrow { color: var(--red); }

.smodal__title {
  margin-top: 14px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.smodal__note {
  margin-top: 14px;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--text-on-dark);
}

.smodal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 32px);
}
/* outline button sits on a dark panel here, so invert its colours */
.smodal__wa {
  color: #fff;
  border-color: var(--line-on-dark);
}
.smodal__wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

/* ---- Close ---- */
.smodal__x {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-on-dark);
  color: #fff;
  font-size: 0.95rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.smodal__x:hover { background: var(--red); transform: rotate(90deg); }
.smodal__x:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* page behind the modal must not scroll */
body.smodal-open { overflow: hidden; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .smodal__panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
  .smodal__media { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .smodal__backdrop, .smodal__panel { transition: none; }
}
