/* =========================================================
   MATRIX PROPERTIES LTD — Diaspora page
   Builds on styles.css, pages.css, details.css, services.css, request.css
   ========================================================= */

/* ---------- Hero ---------- */
.dg-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f7f9fd, #f1f5fb); }
.dg-hero__img {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%; object-fit: cover; object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}
.dg-hero__media { display: none; }
.dg-hero__inner { position: relative; z-index: 1; padding-top: 16px; padding-bottom: 32px; }
.dg-hero .crumbs { margin-bottom: 16px; }
.dg-hero__title { font-size: clamp(36px, 3.6vw, 54px); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; max-width: 640px; }
.dg-hero__sub { font-size: clamp(18px, 1.55vw, 23.5px); font-weight: 300; color: #2b3d7d; margin-top: 14px; max-width: 700px; }
.dg-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.dg-btn { height: 50px; padding: 0 24px; font-size: 17px; gap: 16px; border-radius: 4px; }
.dg-btn .ico--lg { width: 24px; height: 24px; }
.dg-btn--wa { background: #fff; color: #1d8c3b; border: 1.5px solid var(--wa); padding: 0 26px 0 22px; }
.dg-btn--wa .ico--lg { width: 28px; height: 28px; color: var(--wa); }
.dg-btn--wa:hover { background: var(--wa); color: #fff; }
.dg-btn--wa:hover .ico--lg { color: #fff; }

/* ---------- Feature cards ---------- */
.dg-section { padding-top: 22px; }
.dg-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dg-card {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 24px; align-items: start;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 18px 16px 30px 20px;
  box-shadow: 0 4px 16px rgba(15, 35, 95, .04);
}
.dg-card__icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; }
.dg-card__icon svg { width: 32px; height: 32px; }
.dg-card__icon--blue { background: #e6effb; color: var(--blue); }
.dg-card__icon--green { background: #e2f4e7; color: #1f9a40; }
.dg-card__icon--amber { background: #fdf0d3; color: #e8a10a; }
.dg-card h3 { font-size: 17px; font-weight: 600; margin-top: 12px; }
.dg-card p { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

/* ---------- How we work + callback ---------- */
.dg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 675px); gap: 36px; align-items: start; padding-top: 18px; padding-bottom: 16px; }
.dg-how .sv-h2 { margin-bottom: 4px; }
.dg-how__sub { font-size: 18px; font-weight: 300; color: #2b3d7d; }
.dg-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.dg-steps li { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 36px; padding-bottom: 28px; }
.dg-steps li:last-child { padding-bottom: 0; }
.dg-steps li:not(:last-child)::before { content: ""; position: absolute; left: 26px; top: 64px; bottom: 10px; width: 2px; background: #9bb9e6; }
.dg-steps__n { width: 54px; height: 54px; border-radius: 50%; background: #e6effb; display: grid; place-items: center; font-size: 24px; font-weight: 600; color: var(--blue); }
.dg-steps h3 { font-size: 20px; font-weight: 600; margin-top: 2px; }
.dg-steps p { font-size: 16.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; max-width: 470px; }

.callback { background: #eef4fd; border: 1px solid #e0e9f8; border-radius: 8px; padding: 16px 22px 12px; scroll-margin-top: 16px; }
.callback h2 { font-size: 28px; font-weight: 700; letter-spacing: -.015em; }
.callback__sub { font-size: 16.5px; color: var(--muted); margin-top: 4px; }
.callback__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin-top: 14px; }
.callback__wide { grid-column: 1 / -1; }
.callback .vfield { margin-bottom: 10px; }
.callback .vfield__label { font-size: 14px; font-weight: 400; margin-bottom: 4px; }
.callback .vfield__label em { font-size: 14px; color: var(--navy); }
.callback .vfield input { height: 32px; padding: 4px 12px; font-size: 13.5px; }
.callback .vfield textarea { min-height: 54px; padding: 6px 12px; font-size: 13.5px; }
.callback__select { position: relative; display: block; }
.callback__select select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 32px; border: 1px solid #cfd6e2; border-radius: 4px;
  background: #fff; font: inherit; font-size: 13.5px; color: var(--navy); padding: 0 36px 0 12px; outline: none; cursor: pointer;
}
.callback__select select:invalid { color: #8a93a5; }
.callback__select select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 95, 208, .12); }
.callback__select svg { position: absolute; right: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--blue); pointer-events: none; }
.vfield.is-invalid select { border-color: #e5383b; }
.callback__submit { height: 42px; font-size: 16px; gap: 16px; margin-top: 2px; }
.callback__note { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; padding-left: 10px; }
.callback__note svg { width: 17px; height: 17px; color: var(--navy); }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .dg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 24px; }
}
@media (max-width: 960px) {
  .dg-hero__img { position: static; display: block; width: calc(100% - 48px); height: auto; aspect-ratio: 736 / 298; margin: 0 24px 4px; border-radius: 6px; -webkit-mask-image: none; mask-image: none; }
  .dg-hero__inner { padding-bottom: 14px; }
  .dg-split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body.page-diaspora { padding-bottom: 72px; }
  .dg-hero { background: #fff; }
  .dg-hero__inner { padding-top: 10px; padding-bottom: 12px; }
  .dg-hero .crumbs { font-size: 13.5px; margin-bottom: 10px; }
  .dg-hero__title { font-size: clamp(28px, 9vw, 38px); line-height: 1.02; }
  .dg-hero__sub { font-size: 18px; margin-top: 6px; line-height: 1.2; }
  .dg-hero__actions { flex-direction: column; gap: 8px; margin-top: 12px; }
  .dg-btn { width: 100%; height: 46px; font-size: 16px; }
  .dg-hero__img { width: calc(100% - 32px); margin: 0 16px; aspect-ratio: 573 / 194; object-position: 30% center; }

  .dg-section { padding-top: 14px; }
  .dg-cards { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dg-card { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: center; padding: 8px 12px 8px 14px; }
  .dg-card__icon { width: 44px; height: 44px; }
  .dg-card__icon svg { width: 23px; height: 23px; }
  .dg-card h3 { font-size: 15.5px; margin-top: 0; }
  .dg-card p { font-size: 13.5px; margin-top: 1px; }

  .dg-split { padding-top: 14px; gap: 14px; }
  .dg-how__sub { font-size: 14.5px; }
  .dg-steps { margin-top: 12px; }
  .dg-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 24px; padding-bottom: 14px; }
  .dg-steps li:not(:last-child)::before { left: 19px; top: 46px; bottom: 6px; }
  .dg-steps__n { width: 40px; height: 40px; font-size: 19px; }
  .dg-steps h3 { font-size: 15.5px; margin-top: 0; }
  .dg-steps p { font-size: 13.5px; margin-top: 2px; }

  .callback { padding: 12px 14px 10px; }
  .callback h2 { font-size: 22px; }
  .callback__sub { font-size: 13.5px; }
  .callback__form { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
  .callback .vfield { margin-bottom: 8px; }
  .callback .vfield__label, .callback .vfield__label em { font-size: 13.5px; margin-bottom: 3px; }
  .callback .vfield input, .callback__select select { height: 38px; font-size: 14px; }
  .callback__submit { height: 44px; }
  .callback__note { font-size: 12px; padding-left: 0; gap: 10px; }
}
