/* RevConnect · Digital Marketing sections (merged from /demo into /demo2).
   Uses the colour, type and spacing tokens defined in styles.css, so light/dark
   themes and English/Arabic (LTR/RTL) work without further changes. */

/* ---------- Service explorer ---------- */
.mk-explorer {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 20px;
  align-items: start;
}
.mk-list { display: grid; gap: 8px; }
.mk-list button {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  text-align: start;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.mk-list button:hover { border-color: var(--brand); }
.mk-list button[aria-selected="true"] {
  background: var(--surface-2);
  border-color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}
[dir="rtl"] .mk-list button[aria-selected="true"] { box-shadow: inset -3px 0 0 var(--brand); }
.mk-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blob-1); color: var(--brand);
}
.mk-list button:nth-child(even) .mk-ic { background: var(--blob-2); color: var(--orange); }
.mk-ic svg { width: 22px; height: 22px; }
.mk-txt { display: grid; gap: 2px; min-width: 0; }
.mk-txt b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.mk-txt small { color: var(--muted); font-size: 14px; }

.mk-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3.4vw, 40px);
  display: grid;
  gap: 18px;
  align-content: start;
  box-shadow: var(--shadow);
}
.mk-panel[hidden] { display: none; }
.mk-panel h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.mk-answer {
  font-size: 17.5px;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--brand);
}
.mk-foot { color: var(--muted); font-size: 15px; }
.mk-panel .btn { justify-self: start; }

/* ---------- Visibility layers ---------- */
.mk-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mk-layer {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px;
  text-align: start;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mk-layer:hover { border-color: var(--brand); transform: translateY(-2px); }
.mk-layer[aria-pressed="true"] { border-color: var(--brand); box-shadow: var(--shadow); }
.mk-layer h3 { font-size: 23px; }
.mk-layer p { color: var(--muted); font-size: 15.5px; }
.mk-bar {
  display: block; height: 6px; border-radius: 999px;
  background: var(--surface-2); overflow: hidden; margin-top: 6px;
}
.mk-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--orange));
}
[dir="rtl"] .mk-bar i { background: linear-gradient(270deg, var(--brand), var(--orange)); margin-inline-start: 0; }
.mk-goal { font: 600 12.5px var(--font-mono); color: var(--brand); letter-spacing: .04em; }
html[lang="ar"] .mk-goal { font-family: var(--font-ar-body); font-size: 13.5px; letter-spacing: 0; }

/* ---------- Method + CTA ---------- */
.mk-method-h {
  margin: 56px 0 24px;
  font: 600 13px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
html[lang="ar"] .mk-method-h { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 15px; text-transform: none; }
.mk-cta {
  margin-top: 44px;
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center;
}
.mk-cta span { color: var(--muted); font-size: 15px; }

/* ---------- Readiness check ---------- */
.rq-wrap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.rq-intro { display: grid; gap: 14px; align-content: start; }
.rq-intro h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.rq-intro p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.rq-intro .btn { justify-self: start; margin-top: 6px; }
.rq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
  min-width: 0;
}
.rq-card .eyebrow { color: var(--muted); }
.rq-card h3 { font-size: clamp(22px, 2.4vw, 27px); font-weight: 800; margin-top: 8px; }
.rq-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.rq-list { margin-top: 14px; }
.rq-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.rq-yn { display: flex; gap: 6px; flex-shrink: 0; }
.rq-yn button {
  min-width: 46px; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--fg);
  font: 600 14px var(--font-body);
}
html[lang="ar"] .rq-yn button { font-family: var(--font-ar-body); }
.rq-yn button:hover { border-color: var(--brand); }
.rq-yn .rq-y[aria-pressed="true"] { background: var(--good); border-color: var(--good); color: #FFFFFF; }
.rq-yn .rq-n[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #FFFFFF; }
.rq-score { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.rq-ring { width: 96px; height: 96px; flex-shrink: 0; }
.rq-ring circle { fill: none; stroke-width: 9; }
.rq-ring .bg { stroke: var(--line); }
.rq-ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .6s ease, stroke .3s ease; }
.rq-ring text { fill: var(--fg); font: 800 26px var(--font-display); }
.rq-score p { color: var(--muted); font-size: 15px; }
.rq-score p b { color: var(--fg); }
.rq-score p small { display: block; margin-top: 6px; font-size: 13px; }

/* ---------- Header: one more nav link, so switch to the menu button earlier
   (styles.css switches at 1080px; these are the same rules at 1279px) ---------- */
@media (max-width: 1279px) {
  .nav-links, .nav-cta { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: grid; position: absolute; inset-inline: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(49, 23, 34, 0.12);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
    margin: 0;
  }
  .site-header.open .nav-links a { padding: 13px 10px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header.open .nav-links .mobile-cta { display: block; margin-top: 12px; }
  .site-header.open .nav-links .mobile-cta a { background: var(--btn); color: var(--on-btn); text-align: center; border-radius: 999px; border: 0; font-weight: 600; }
}

/* ---------- Footer: room for the extra column ---------- */
@media (min-width: 861px) {
  .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rq-wrap { grid-template-columns: 1fr; }
  .mk-explorer { grid-template-columns: 1fr; }
  .mk-list { grid-template-columns: 1fr 1fr; }
  .mk-layers { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rq-intro .btn { width: 100%; justify-self: stretch; white-space: normal; text-align: center; }
  .rq-row { font-size: 15px; }
  .rq-score { gap: 14px; }
  .mk-list { grid-template-columns: 1fr; }
  .mk-panel .btn, .mk-cta .btn { width: 100%; justify-self: stretch; white-space: normal; text-align: center; }
}
