/* Backdrop & box */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}

.modal-backdrop.open { opacity: 1; pointer-events: auto }

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 44px);
  width: 100%;
  max-width: 400px;
  transform: translateY(20px) scale(.97);
  transition: transform .3s var(--ease);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
}

.modal-backdrop.open .modal-box { transform: none }

.modal-close {
  position: absolute;
  top: clamp(14px, 2vw, 20px);
  right: clamp(14px, 2vw, 20px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .07);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}

.modal-close:hover { background: rgba(0, 0, 0, .14) }
.modal-close svg { width: 14px; height: 14px; stroke: var(--black); stroke-width: 2; fill: none }

/* Quote picker */
.modal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.modal-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: clamp(20px, 3vw, 28px);
  word-break: keep-all;
}

.modal-btns { display: flex; flex-direction: column; gap: 10px }

.modal-svc-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--light);
  border: 1.5px solid transparent;
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}

.modal-svc-btn:hover { border-color: var(--black); background: #fff; transform: translateY(-2px) }

.modal-svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.modal-svc-info { flex: 1 }
.modal-svc-name { font-size: clamp(15px, 1.8vw, 17px); font-weight: 800; letter-spacing: -.4px; margin-bottom: 2px }
.modal-svc-desc { font-size: 12px; color: var(--gray); line-height: 1.45; word-break: keep-all }

.modal-svc-arrow { flex-shrink: 0; opacity: .3; transition: opacity .18s, transform .18s }
.modal-svc-btn:hover .modal-svc-arrow { opacity: 1; transform: translateX(3px) }
.modal-svc-arrow svg { width: 14px; height: 14px; stroke: var(--black); stroke-width: 2; fill: none }

/* Service detail */
.modal-box--wide {
  max-width: 600px;
  padding: 0;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-box--wide .modal-close { background: rgba(255, 255, 255, .9); z-index: 10 }

.sdm-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
}

.sdm-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .6s ease;
}

.sdm-body { padding: clamp(22px, 4vw, 36px); overflow-y: auto; -webkit-overflow-scrolling: touch }

.sdm-badge { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #345D33; margin-bottom: 8px }
.sdm-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 12px }
.sdm-desc { font-size: clamp(13px, 1.4vw, 15px); color: var(--gray); line-height: 1.75; word-break: keep-all; margin-bottom: 26px }

.sdm-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.sdm-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px }

.sdm-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(13px, 1.3vw, 14px);
  line-height: 1.55;
  word-break: keep-all;
}

.sdm-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #345D33;
  flex-shrink: 0;
  margin-top: 5px;
}

.sdm-cta {
  display: block;
  text-align: center;
  background: #345D33;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: opacity .2s;
}

.sdm-cta:hover { opacity: .85 }

/* ── SERVICE DETAIL MODAL ── */
.st-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .22s, visibility 0s .22s;
}
.st-overlay.open { opacity: 1; pointer-events: all; visibility: visible; transition: opacity .22s, visibility 0s; }
.st-wrap { position: relative; width: 100%; height: 100%; max-width: 430px; overflow: hidden; display: flex; flex-direction: column; background: #fff; pointer-events: none; }
@media(max-width: 540px) {
  .st-arr { width: 38px; height: 38px; }
  .st-arr svg { width: 17px; height: 17px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
  .st-arr--prev { left: 8px; }
  .st-arr--next { right: 8px; }
}
.st-overlay.open .st-wrap { pointer-events: auto; }
.st-close { position: absolute; top: 16px; right: 14px; z-index: 30; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: none; color: #111; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; transition: background .18s; font-family: inherit; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.st-close:hover { background: #f0f0f0; }
.st-slides { width: 100%; flex: 1; position: relative; overflow: hidden; }
.st-slide { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity .22s ease; pointer-events: none; }
.st-slide.active { opacity: 1; pointer-events: all; }
.st-img { width: 100%; flex-shrink: 0; height: min(56vw, 290px); background: #e8ede8; position: relative; overflow: hidden; }
.st-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-img-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(0,0,0,.2); }
.st-img-ph-icon { font-size: 42px; }
.st-img-ph p { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.st-img-grad { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to top, rgba(255,255,255,.95) 0%, transparent 100%); }
.st-cat-header { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 18px 16px; z-index: 2; }
.st-cat-icon { display: none; }
.st-cat-title { font-size: 24px; font-weight: 800; color: #111; letter-spacing: -.6px; }
.st-content { flex: 1; background: #fff; padding: 18px 22px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.st-content-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: rgba(0,0,0,.45); margin-bottom: 10px; }
.st-items { list-style: none; display: flex; flex-direction: column; gap: 0; counter-reset: item-counter; }
.st-items li { counter-increment: item-counter; display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: #1a1a1a; line-height: 1.6; word-break: keep-all; padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.st-items li:last-child { border-bottom: none; }
.st-items li::before { content: counter(item-counter); font-size: 11px; font-weight: 800; color: #345D33; min-width: 18px; padding-top: 3px; flex-shrink: 0; text-align: right; }
/* Side arrow navigation */
.st-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 955;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: transform .2s var(--ease), background .18s, box-shadow .18s, opacity .18s;
}
@media(min-width: 541px) {
  .st-arr {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
  }
}
.st-arr svg { width: 20px; height: 20px; flex-shrink: 0; }
.st-arr--prev { left: max(12px, calc(50% - 215px - 60px)); }
.st-arr--next { right: max(12px, calc(50% - 215px - 60px)); }
.st-arr:hover:not(:disabled) {
  background: rgba(255,255,255,.35);
  box-shadow: 0 6px 28px rgba(0,0,0,.15);
  transform: translateY(-50%) scale(1.08);
}
.st-arr:disabled { opacity: 0; pointer-events: none; cursor: default; }
@media(min-width: 480px) {
  .st-wrap { border-radius: 20px; height: min(88vh, 820px); box-shadow: 0 24px 72px rgba(0,0,0,.2); }
  .st-overlay { background: rgba(0,0,0,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

/* ── VIDEO MODAL ── */
.vm-overlay {
  position: fixed; inset: 0; z-index: 960;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .25s, visibility 0s .25s;
}
.vm-overlay.open { opacity: 1; pointer-events: all; visibility: visible; transition: opacity .25s, visibility 0s; }
.vm-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.vm-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.vm-close:hover { background: rgba(255,255,255,.28); }
.vm-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 80px clamp(180px, 30vw, 260px) 44px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  color: #fff; font-size: 15px; font-weight: 500;
  line-height: 1.65; text-align: left; word-break: keep-all;
  pointer-events: none;
}
.vm-caption strong {
  display: block; font-size: 17px; font-weight: 700;
  letter-spacing: -.3px; margin-bottom: 5px;
}
