/* Category pages (hubs). The shared mdz-hub-* blocks (steps, FAQ, close) come from hub-crm.css;
   this file adds the hero visuals, the "מה בפנים" grid, the deep sections and the works. */

.mdz-main--hub .mdz-btn--light {
  color: var(--mdz-night);
}

.mdz-main--hub .mdz-link {
  color: var(--mdz-purple-deep);
}

/* Hero visuals */
.mdz-hub-visual {
  position: relative;
  min-height: 420px;
}

.mdz-hub-visual--shots .mdz-deep-shots__img,
.mdz-hub-brand__shot {
  position: absolute;
  width: 62%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(185, 140, 255, .3), 0 40px 50px -30px rgba(10, 5, 40, .9);
  transform: translate3d(var(--dx, 0), var(--dy, 0), 0) rotate(var(--r));
  transition: transform .4s var(--mdz-ease);
}

.mdz-hub-visual--shots .mdz-deep-shots__img--1 { --r: -5deg; top: 0; left: 4%; z-index: 3; }
.mdz-hub-visual--shots .mdz-deep-shots__img--2 { --r: 4deg; top: 26%; left: 34%; z-index: 2; }
.mdz-hub-visual--shots .mdz-deep-shots__img--3 { --r: -2deg; top: 52%; left: 10%; z-index: 1; opacity: .9; }

.mdz-hub-visual__browser {
  position: absolute;
  top: 6%;
  left: 2%;
  width: 78%;
  box-shadow: 0 0 0 1px rgba(185, 140, 255, .3), 0 40px 60px -30px rgba(10, 5, 40, .9);
  transform: rotate(-3deg);
}

.mdz-hub-visual__screen,
.mdz-hub-visual__phone-screen {
  display: block;
  width: 100%;
  height: auto;
}

.mdz-hub-visual__phone {
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
  width: 28%;
  aspect-ratio: 390 / 760;
  border: 6px solid #0d0b1e;
  border-radius: 26px;
  background: #0d0b1e;
  box-shadow: 0 0 0 1px rgba(185, 140, 255, .35), 0 30px 50px -20px rgba(10, 5, 40, .9);
  transform: rotate(4deg);
}

.mdz-hub-visual__chip {
  position: absolute;
  z-index: 3;
  padding: 7px 12px;
  border: 1px solid rgba(185, 140, 255, .45);
  border-radius: var(--mdz-radius-pill);
  background: rgba(17, 19, 51, .82);
  color: var(--mdz-neon-mist);
  font-size: 12px;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
}

.mdz-hub-visual__chip--a { top: 2%; right: 12%; }
.mdz-hub-visual__chip--b { top: 46%; left: 0; }
.mdz-hub-visual__chip--c { bottom: 4%; left: 30%; }

/* Marketing: three posts */
.mdz-hub-post {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 46%;
  overflow: hidden;
  border-radius: 14px;
  background: var(--mdz-white);
  box-shadow: 0 0 0 1px rgba(185, 140, 255, .3), 0 40px 50px -30px rgba(10, 5, 40, .9);
  transform: rotate(var(--r));
}

.mdz-hub-post--1 { --r: -6deg; top: 4%; left: 6%; z-index: 3; }
.mdz-hub-post--2 { --r: 3deg; top: 14%; left: 44%; z-index: 2; }
.mdz-hub-post--3 { --r: -1deg; top: 44%; left: 24%; z-index: 4; }

.mdz-hub-post__head,
.mdz-hub-post__foot {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.mdz-hub-post__ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(#f9a03f, #e1306c, #7443b6, #f9a03f);
}

.mdz-hub-post__who {
  width: 40%;
  height: 7px;
  border-radius: 4px;
  background: #e8e3f1;
}

.mdz-hub-post__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.mdz-hub-post__foot i {
  width: 14px;
  height: 14px;
  border: 1.6px solid #2a2440;
  border-radius: 50%;
}

/* SEO and measurement: a result and the sources behind it */
.mdz-hub-serp,
.mdz-hub-measure {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--mdz-white);
  color: var(--mdz-ink);
  box-shadow: 0 0 0 1px rgba(185, 140, 255, .3), 0 40px 60px -30px rgba(10, 5, 40, .9);
}

.mdz-hub-serp {
  top: 2%;
  left: 2%;
  z-index: 2;
  width: 72%;
  transform: rotate(-2deg);
}

.mdz-hub-measure {
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 58%;
  transform: rotate(3deg);
}

.mdz-hub-serp__tag {
  color: var(--mdz-purple);
  font-size: 11px;
  letter-spacing: .06em;
}

.mdz-hub-serp__bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius-pill);
  color: var(--mdz-muted);
  font-size: 13px;
}

.mdz-hub-serp__result {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mdz-hub-serp__result--dim .mdz-hub-serp__title {
  color: #5d5870;
}

.mdz-hub-serp__result--dim .mdz-hub-serp__lines i {
  background: #f3f0f8;
}

.mdz-hub-serp__title {
  color: #1a0dab;
  font-size: 16px;
}

.mdz-hub-serp__url {
  color: #187037;
  font-size: 12px;
  direction: ltr;
  text-align: right;
}

.mdz-hub-serp__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mdz-hub-serp__lines i {
  height: 7px;
  border-radius: 4px;
  background: #ece8f3;
}

.mdz-hub-serp__lines i:last-child {
  width: 70%;
}

.mdz-hub-measure__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.mdz-hub-measure__row i {
  width: var(--w);
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #b98cff, #7443b6);
}

/* Branding: a client's logo, palette, site and phone */
.mdz-hub-brand__logo {
  position: absolute;
  top: 0;
  right: 6%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 104px;
  border-radius: 18px;
  background: var(--mdz-white);
  box-shadow: 0 0 0 1px rgba(185, 140, 255, .3), 0 30px 40px -24px rgba(10, 5, 40, .9);
  transform: rotate(4deg);
}

.mdz-hub-brand__logo-img {
  width: 76%;
  height: auto;
}

.mdz-hub-brand__swatches {
  position: absolute;
  top: 36%;
  right: 0;
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(17, 19, 51, .82);
  box-shadow: 0 0 0 1px rgba(185, 140, 255, .35);
}

.mdz-hub-brand__swatches i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.mdz-hub-brand__swatches i:nth-child(1) { background: #0b2a7a; }
.mdz-hub-brand__swatches i:nth-child(2) { background: #1fa5ff; }
.mdz-hub-brand__swatches i:nth-child(3) { background: #2fcf5a; }
.mdz-hub-brand__swatches i:nth-child(4) { background: #ff4fa3; }

.mdz-hub-brand__shot {
  --r: -4deg;
  top: 18%;
  left: 2%;
  z-index: 2;
}

.mdz-hub-brand__phone {
  right: 22%;
}

/* מה בפנים */
.mdz-hub-inside__head {
  max-width: 720px;
}

.mdz-hub-inside__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin-top: 32px;
}

.mdz-hub-inside__grid .mdz-tag {
  font-family: var(--mdz-font-mono);
  font-size: 11px;
}

/* Steps: as many columns as steps */
.mdz-hub-steps__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mdz-hub-steps__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mdz-hub-steps__list--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* לעומק: the content layer's sections */
.mdz-hub-deep__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  align-items: start;
}

.mdz-hub-deep__head,
.mdz-hub-deep__body {
  min-width: 0; /* a wide table scrolls inside its frame instead of widening the page */
}

.mdz-hub-deep__head .mdz-hub__title {
  margin-top: 0;
}

.mdz-hub-deep__p {
  max-width: 68ch;
  color: var(--mdz-ink-soft, var(--mdz-ink));
  font-size: 17px;
  line-height: 1.75;
}

.mdz-hub-deep__p + .mdz-hub-deep__p {
  margin-top: 14px;
}

.mdz-hub-deep__h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.mdz-hub-deep__h3 + .mdz-hub-deep__p {
  margin-top: 8px;
}

.mdz-hub-deep__subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-top: 28px;
}

.mdz-hub-deep__sub {
  padding-top: 18px;
  border-top: 1px solid var(--mdz-line);
}

.mdz-hub-deep__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mdz-hub-deep__card {
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius-l);
  background: var(--mdz-white);
}

.mdz-section--white .mdz-hub-deep__card {
  background: var(--mdz-lavender-soft);
}

.mdz-hub-deep__num {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
}

.mdz-hub-deep__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius-l);
  background: var(--mdz-white);
}

.mdz-hub-deep__table-wrap:focus-visible {
  outline: 3px solid var(--mdz-purple);
  outline-offset: 3px;
}

.mdz-hub-deep__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.mdz-hub-deep__table th,
.mdz-hub-deep__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mdz-line-soft);
  text-align: right;
  vertical-align: top;
}

.mdz-hub-deep__table thead th {
  background: var(--mdz-lavender);
  font-weight: 700;
}

.mdz-hub-deep__table tbody th {
  width: 22%;
  color: var(--mdz-purple-deep);
  font-weight: 700;
}

.mdz-hub-deep__table tr:last-child th,
.mdz-hub-deep__table tr:last-child td {
  border-bottom: 0;
}

.mdz-hub-deep__fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mdz-hub-deep__fit-col {
  padding: 22px;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius-l);
  background: var(--mdz-white);
}

.mdz-hub-deep__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.mdz-hub-deep__list li {
  position: relative;
  padding-inline-start: 26px;
  line-height: 1.6;
}

.mdz-hub-deep__list li::before {
  content: "";
  position: absolute;
  top: .55em;
  inset-inline-start: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mdz-purple);
}

.mdz-hub-deep__list--yes li::before,
.mdz-hub-deep__list--check li::before {
  top: .35em;
  width: 14px;
  height: 8px;
  border-radius: 0;
  background: none;
  border-bottom: 2px solid var(--mdz-purple);
  border-left: 2px solid var(--mdz-purple);
  transform: rotate(-45deg);
}

.mdz-hub-deep__list--no li::before {
  background: #b8b1c9;
}

.mdz-hub-deep a,
.mdz-hub-steps a,
.mdz-hub-faq a {
  color: var(--mdz-purple-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* One line between the sections and the works */
.mdz-hub-mid {
  padding-block: 44px;
  background: linear-gradient(120deg, #111333, #2a1a5e);
  color: var(--mdz-white);
}

.mdz-hub-mid__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}

.mdz-hub-mid__text {
  max-width: 720px;
  color: #e7e1f7;
  font-size: 19px;
  line-height: 1.6;
}

/* Works */
.mdz-hub-works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.mdz-hub-works__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body a.mdz-hub-work {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--mdz-line);
  border-radius: var(--mdz-radius-l);
  background: var(--mdz-white);
  color: var(--mdz-ink);
  text-decoration: none;
  transition: border-color var(--mdz-speed), transform var(--mdz-speed);
}

body a.mdz-hub-work:hover {
  border-color: var(--mdz-purple);
  color: var(--mdz-ink);
  transform: translateY(-3px);
}

body a.mdz-hub-work:focus-visible {
  outline: 3px solid var(--mdz-purple);
  outline-offset: 3px;
}

.mdz-hub-work__shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111333;
}

.mdz-hub-work__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mdz-hub-work__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.mdz-hub-work__name {
  font-size: 19px;
  font-weight: 800;
}

.mdz-hub-work__line {
  flex: 1;
  color: var(--mdz-muted);
  font-size: 15px;
  line-height: 1.55;
}

.mdz-hub-work__more {
  color: var(--mdz-purple-deep);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .mdz-hub-steps__list--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 64px; }
  .mdz-hub-works__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .mdz-hub-visual {
    min-height: 280px;
    margin-top: 12px;
  }

  .mdz-hub-inside__grid,
  .mdz-hub-works__grid,
  .mdz-hub-works__grid--4,
  .mdz-hub-deep__inner,
  .mdz-hub-deep__subs,
  .mdz-hub-deep__cards,
  .mdz-hub-deep__fit {
    grid-template-columns: 1fr;
  }

  .mdz-hub-deep__inner {
    gap: 22px;
  }

  .mdz-hub-steps__list--3,
  .mdz-hub-steps__list--4,
  .mdz-hub-steps__list--6 {
    grid-template-columns: 1fr;
  }

  .mdz-hub-serp { width: 86%; }
  .mdz-hub-measure { width: 70%; }
  .mdz-hub-brand__logo { width: 110px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .mdz-hub-visual--shots .mdz-deep-shots__img,
  body a.mdz-hub-work {
    transition: none;
  }
}
