/* ==========================================================================
   مركبة للمشاريع الرقمية — Markaba Digital Projects
   Design tokens + components. Logical properties throughout so a single
   stylesheet serves both the RTL (ar) and LTR (en) documents.
   ========================================================================== */

:root {
  --mk-plum-900: #2A0912;
  --mk-plum-800: #3A0D1E;
  --mk-plum-700: #4E0C22;
  --mk-plum-600: #6E1230;
  --mk-plum-500: #8C1D42;
  --mk-plum-400: #A82F5F;
  --mk-plum-300: #B03A72;

  --mk-pink-300: #F0A6C6;
  --mk-pink-200: #F5BBD3;
  --mk-pink-100: #E9CBD7;
  --mk-pink-050: #FAF0F4;

  --mk-ink: #2A1119;
  --mk-ink-strong: #3A0D1E;
  --mk-ink-muted: #6B4A55;
  --mk-ink-soft: #5C3A45;
  --mk-ink-faint: #8C6C77;
  --mk-ink-ghost: #9B7B85;
  --mk-ink-trace: #B39AA2;

  --mk-bg: #FBF7F8;
  --mk-surface: #ffffff;
  --mk-hairline: rgba(110, 18, 48, 0.09);
  --mk-hairline-strong: rgba(110, 18, 48, 0.22);

  --mk-shell: 1240px;
  --mk-radius: 20px;
  --mk-radius-lg: 28px;
  --mk-pill: 999px;

  --mk-font-display: "Tajawal", "Sora", system-ui, sans-serif;
  --mk-font-body: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif;

  --mk-ease: 0.2s ease;
}

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mk-bg);
  color: var(--mk-ink);
  font-family: var(--mk-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--mk-plum-500);
  text-decoration: none;
  transition: color var(--mk-ease);
}
a:hover { color: var(--mk-plum-300); }

::selection { background: var(--mk-plum-600); color: #fff; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--mk-plum-400);
  outline-offset: 2px;
  border-radius: 6px;
}

.mk-shell {
  max-width: var(--mk-shell);
  margin-inline: auto;
}

.mk-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------- animations -- */

@keyframes mk-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes mk-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mk-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

@keyframes mk-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ buttons -- */

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--mk-pill);
  font-family: var(--mk-font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--mk-ease), color var(--mk-ease),
              border-color var(--mk-ease), transform var(--mk-ease),
              box-shadow var(--mk-ease);
}

.mk-btn--primary {
  background: var(--mk-plum-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(110, 18, 48, 0.22);
}
.mk-btn--primary:hover {
  background: var(--mk-plum-500);
  color: #fff;
  transform: translateY(-1px);
}

.mk-btn--light {
  background: #fff;
  color: var(--mk-plum-600);
  font-weight: 700;
  padding: 15px 30px;
  font-size: 15.5px;
}
.mk-btn--light:hover {
  background: var(--mk-pink-200);
  color: var(--mk-plum-700);
}

.mk-btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 15px 28px;
  font-size: 15.5px;
}
.mk-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.mk-btn--outline {
  border-color: var(--mk-hairline-strong);
  background: transparent;
  color: var(--mk-plum-600);
  font-family: "Sora", var(--mk-font-body);
  font-size: 13px;
  padding: 9px 15px;
}
.mk-btn--outline:hover {
  background: var(--mk-pink-050);
  border-color: var(--mk-plum-500);
}

/* ------------------------------------------------------------- header -- */

.mk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 248, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(110, 18, 48, 0.1);
}

.mk-nav {
  position: relative;
  max-width: var(--mk-shell);
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Desktop: the panel is just a flex row pushed to the far edge. Below the
   nav breakpoint it becomes the drop-down sheet (see the media query). */
.mk-nav__panel {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-inline-start: auto;
  flex-wrap: wrap;
  row-gap: 10px;
  justify-content: flex-end;
}

/* Hamburger — hidden until the nav collapses. */
.mk-burger {
  display: none;
  margin-inline-start: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--mk-hairline-strong);
  border-radius: 12px;
  background: var(--mk-pink-050);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: background var(--mk-ease), border-color var(--mk-ease);
}
.mk-burger:hover { background: #F3DEE6; border-color: var(--mk-plum-500); }
.mk-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--mk-plum-600);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.mk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.mk-brand__logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  mix-blend-mode: multiply;
}
.mk-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.mk-brand__name {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--mk-plum-600);
  letter-spacing: -0.2px;
}
.mk-brand__sub {
  font-size: 10.5px;
  color: var(--mk-ink-ghost);
  letter-spacing: 0.5px;
}

.mk-nav__links {
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  align-items: center;
  font-size: 14.5px;
  color: var(--mk-ink-soft);
  font-weight: 500;
  min-width: 0;
}
.mk-nav__links a { color: var(--mk-ink-soft); }
.mk-nav__links a:hover { color: var(--mk-plum-600); }

.mk-nav__store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mk-plum-600) !important;
  font-weight: 600;
  border: 1px solid var(--mk-hairline-strong);
  background: var(--mk-pink-050);
  padding: 7px 14px;
  border-radius: var(--mk-pill);
  white-space: nowrap;
  transition: background var(--mk-ease), border-color var(--mk-ease);
}
.mk-nav__store:hover {
  background: #F3DEE6;
  border-color: var(--mk-plum-500);
}
.mk-nav__store img { width: 19px; height: 19px; object-fit: contain; }

.mk-nav__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- hero -- */

.mk-hero {
  position: relative;
  padding: 96px 28px 88px;
  background: linear-gradient(160deg, #4E0C22 0%, #6E1230 42%, #8C1D42 78%, #A82F5F 100%);
  color: #fff;
  overflow: hidden;
}

.mk-hero__grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 72%);
  pointer-events: none;
}

.mk-hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 79, 140, 0.45), transparent 70%);
  top: -180px;
  inset-inline-start: -120px;
  filter: blur(20px);
  pointer-events: none;
}

.mk-hero__inner {
  position: relative;
  max-width: var(--mk-shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.mk-hero__copy { animation: mk-rise 0.7s ease both; }

.mk-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 16px;
  border-radius: var(--mk-pill);
  font-size: 13px;
  letter-spacing: 0.2px;
  margin-bottom: 26px;
}
.mk-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mk-pink-300);
  flex-shrink: 0;
}

.mk-hero__title {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -1px;
  text-wrap: balance;
}
.mk-hero__title em {
  font-style: normal;
  color: var(--mk-pink-200);
}

.mk-hero__body {
  font-size: 18.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.mk-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.mk-hero__actions img { width: 21px; height: 21px; object-fit: contain; }

.mk-hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mk-hero__card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  animation: mk-float 7s ease-in-out infinite;
}
.mk-hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 40px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: rotate(-6deg);
}
.mk-hero__card-inner {
  position: absolute;
  inset: 26px;
  background: #fff;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 40px 80px rgba(40, 6, 18, 0.42);
}
.mk-hero__card-inner img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

/* ------------------------------------------------------- client logos -- */

.mk-logos {
  background: #fff;
  border-bottom: 1px solid rgba(110, 18, 48, 0.08);
  padding: 26px 28px;
}
.mk-logos__inner {
  max-width: var(--mk-shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.mk-logos__label {
  font-size: 13px;
  color: var(--mk-ink-ghost);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.mk-logos__row {
  display: flex;
  gap: 14px;
  flex: 1;
  flex-wrap: wrap;
}
.mk-logos__slot {
  flex: 1;
  min-width: 120px;
  height: 44px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #F4EDEF, #F4EDEF 6px, #FBF7F8 6px, #FBF7F8 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10.5px;
  color: var(--mk-ink-trace);
}

/* ---------------------------------------------------------- sections -- */

.mk-section {
  padding: 100px 28px;
  max-width: var(--mk-shell);
  margin-inline: auto;
}

.mk-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-plum-500);
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}

.mk-h2 {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  margin: 0;
  color: var(--mk-ink-strong);
  letter-spacing: -0.6px;
  text-wrap: balance;
}

.mk-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.mk-section__head-copy { max-width: 620px; }
.mk-section__head-note {
  max-width: 340px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mk-ink-muted);
  margin: 0;
}

/* --------------------------------------------------------- services -- */

.mk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.mk-card {
  background: #fff;
  border: 1px solid var(--mk-hairline);
  border-radius: var(--mk-radius);
  padding: 32px 28px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(110, 18, 48, 0.1);
  border-color: rgba(110, 18, 48, 0.2);
}

.mk-card__num {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--mk-plum-600), var(--mk-plum-400));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 18px rgba(110, 18, 48, 0.22);
  font-family: var(--mk-font-display);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}

.mk-card__title {
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--mk-ink-strong);
}
.mk-card__body {
  font-size: 14.8px;
  line-height: 1.85;
  color: var(--mk-ink-muted);
  margin: 0 0 18px;
}

.mk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mk-tags li {
  font-size: 12px;
  color: var(--mk-plum-500);
  background: var(--mk-pink-050);
  border: 1px solid rgba(110, 18, 48, 0.1);
  padding: 5px 11px;
  border-radius: var(--mk-pill);
}

/* -------------------------------------------------------------- work -- */

.mk-work {
  padding: 96px 28px;
  background: #fff;
  border-top: 1px solid rgba(110, 18, 48, 0.08);
  border-bottom: 1px solid rgba(110, 18, 48, 0.08);
}
.mk-work__inner { max-width: var(--mk-shell); margin-inline: auto; }
.mk-work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.mk-work__link {
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(110, 18, 48, 0.3);
  padding-bottom: 3px;
}

.mk-placeholder {
  border: 1px dashed rgba(110, 18, 48, 0.24);
  border-radius: 24px;
  background: var(--mk-bg);
  padding: 72px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.mk-placeholder__icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--mk-plum-600), var(--mk-plum-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 22px rgba(110, 18, 48, 0.22);
}
.mk-placeholder__title {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--mk-ink-strong);
}
.mk-placeholder__body {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mk-ink-muted);
  margin: 0;
  max-width: 460px;
}
.mk-placeholder__cta { margin-top: 8px; }

/* ----------------------------------------------------------- process -- */

.mk-process__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.mk-process__aside {
  position: sticky;
  top: 110px;
}
.mk-process__lede {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--mk-ink-muted);
  margin: 18px 0 26px;
}

.mk-stat {
  background: var(--mk-pink-050);
  border: 1px solid rgba(110, 18, 48, 0.12);
  border-radius: 16px;
  padding: 22px;
}
.mk-stat__label {
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--mk-plum-600);
  margin-bottom: 6px;
}
.mk-stat__value {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--mk-plum-600);
  line-height: 1;
}
.mk-stat__note {
  font-size: 13.5px;
  color: var(--mk-ink-muted);
  margin-top: 8px;
}

.mk-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mk-step {
  display: flex;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--mk-hairline);
  border-radius: 18px;
  padding: 28px 26px;
}
.mk-step__n {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--mk-pink-100);
  line-height: 1;
  flex-shrink: 0;
  width: 46px;
}
.mk-step__title {
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--mk-ink-strong);
}
.mk-step__body {
  font-size: 14.8px;
  line-height: 1.85;
  color: var(--mk-ink-muted);
  margin: 0 0 12px;
}
.mk-step__out {
  font-size: 12.5px;
  color: var(--mk-plum-500);
  font-weight: 600;
}

/* ------------------------------------------------------------- about -- */

.mk-about {
  padding: 92px 28px;
  background: linear-gradient(150deg, #3A0D1E, #6E1230 60%, #8C1D42);
  color: #fff;
}
.mk-about__inner {
  max-width: var(--mk-shell);
  margin-inline: auto;
}

/* Title against its own prose, mirroring the Services section head — then the
   values run full width beneath, so the section reads as one block instead of
   leaving a column empty. */
.mk-about__head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.mk-about__body { padding-top: 6px; }
.mk-about .mk-kicker { color: var(--mk-pink-300); }
.mk-about__title {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  margin: 0 0 20px;
  letter-spacing: -0.6px;
  text-wrap: balance;
}
.mk-about__p {
  font-size: 16.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
}
.mk-about__p:last-of-type { margin-bottom: 0; }

.mk-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mk-value {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 22px 22px 24px;
  transition: background var(--mk-ease), border-color var(--mk-ease);
}
.mk-value:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.32);
}
.mk-value__t {
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 16.5px;
  margin-bottom: 5px;
}
.mk-value__d {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ----------------------------------------------------------- contact -- */

.mk-contact {
  padding: 0 28px 96px;
  max-width: var(--mk-shell);
  margin-inline: auto;
}
.mk-contact__card {
  background: #fff;
  border: 1px solid rgba(110, 18, 48, 0.12);
  border-radius: var(--mk-radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  box-shadow: 0 30px 70px rgba(110, 18, 48, 0.08);
}
.mk-contact__lede {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--mk-ink-muted);
  margin: 16px 0 30px;
}

.mk-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mk-channel {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mk-channel__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--mk-pink-050);
  border: 1px solid rgba(110, 18, 48, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--mk-plum-500);
  font-weight: 700;
  flex-shrink: 0;
}
.mk-channel__label {
  font-size: 12.5px;
  color: var(--mk-ink-faint);
}
.mk-channel__value {
  font-size: 15.5px;
  color: var(--mk-ink-strong);
  font-weight: 600;
  direction: ltr;
  unicode-bidi: isolate;
}
.mk-channel__value--rtl { direction: rtl; }
.mk-channel__value:hover { color: var(--mk-plum-500); }

/* -------------------------------------------------------------- form -- */

.mk-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mk-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mk-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mk-field__label {
  font-size: 13px;
  color: var(--mk-ink-muted);
  font-weight: 600;
}
.mk-field__label .mk-req { color: var(--mk-plum-500); }

.mk-input {
  font-family: inherit;
  /* Must stay ≥16px: iOS Safari zooms the whole page when a focused field is
     smaller, and the visitor is left panned sideways mid-form. */
  font-size: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(110, 18, 48, 0.16);
  border-radius: 12px;
  background: var(--mk-bg);
  color: var(--mk-ink-strong);
  outline: none;
  width: 100%;
  transition: border-color var(--mk-ease), background var(--mk-ease);
}
.mk-input:focus {
  border-color: var(--mk-plum-500);
  background: #fff;
}
.mk-input--ltr { direction: ltr; }
textarea.mk-input { resize: vertical; min-height: 108px; }

select.mk-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238C1D42' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 12px;
  padding-inline-end: 15px;
  padding-inline-start: 38px;
}
[dir="ltr"] select.mk-input {
  background-position: right 15px center;
  padding-inline-start: 15px;
  padding-inline-end: 38px;
}

/* Honeypot — hidden from humans, tempting to bots.
   Clipped in place rather than pushed off-canvas: an offset like
   `left: -9999px` extends the scrollable area in RTL and shunts the whole
   document sideways. Clipping hides it without touching layout, and reads
   as a real field to bots (more tempting than display:none). */
.mk-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0;
  pointer-events: none;
}

.mk-submit {
  margin-top: 4px;
  background: var(--mk-plum-600);
  color: #fff;
  border: none;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: var(--mk-pill);
  cursor: pointer;
  transition: background var(--mk-ease), opacity var(--mk-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mk-submit:hover:not(:disabled) { background: var(--mk-plum-500); }
.mk-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.mk-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mk-spin 0.7s linear infinite;
}

.mk-form__status {
  font-size: 14px;
  line-height: 1.7;
  padding: 13px 16px;
  border-radius: 12px;
  margin: 0;
}
.mk-form__status[data-state="ok"] {
  background: #E9F7EF;
  border: 1px solid #A9DCC0;
  color: #1B6B42;
}
.mk-form__status[data-state="error"] {
  background: #FDECEF;
  border: 1px solid #F2B8C3;
  color: #9B1B36;
}

/* ---------------------------------------------------------- whatsapp -- */

.mk-wa {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--mk-ease), box-shadow var(--mk-ease);
}
.mk-wa:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}
.mk-wa svg { width: 30px; height: 30px; fill: #fff; }

/* ------------------------------------------------------------ footer -- */

.mk-footer {
  background: var(--mk-plum-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 54px 28px 30px;
}
.mk-footer__inner { max-width: var(--mk-shell); margin-inline: auto; }
.mk-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mk-footer__brand { max-width: 320px; }
.mk-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.mk-footer__brand-row img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}
.mk-footer__brand-name {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.mk-footer__body {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.mk-footer__cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.mk-footer__col-title {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
}
.mk-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mk-footer__list a { color: rgba(255, 255, 255, 0.7); }
.mk-footer__list a:hover { color: var(--mk-pink-300); }
.mk-footer__list--ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .mk-footer__list--ltr { text-align: right; }

.mk-footer__bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------- store page -- */

.mk-store-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.mk-store-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 28px 120px;
  background: linear-gradient(160deg, #4E0C22 0%, #6E1230 44%, #8C1D42 80%, #A82F5F 100%);
  color: #fff;
  overflow: hidden;
}
.mk-store-main .mk-hero__grid-overlay {
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%);
}
.mk-store-main .mk-hero__glow {
  width: 560px;
  height: 560px;
  top: -200px;
  inset-inline-start: -140px;
  animation: mk-pulse 9s ease-in-out infinite;
}
.mk-store__inner {
  position: relative;
  max-width: 720px;
  text-align: center;
  animation: mk-rise 0.7s ease both;
}
.mk-store__mark {
  width: 128px;
  height: 128px;
  margin: 0 auto 32px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 26px 56px rgba(40, 6, 18, 0.34);
  animation: mk-float 7s ease-in-out infinite;
}
.mk-store__title {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -2px;
}
.mk-store__body {
  font-size: 18.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 auto 40px;
  max-width: 560px;
  text-wrap: pretty;
}
.mk-store__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.mk-store-footer {
  background: var(--mk-plum-900);
  color: rgba(255, 255, 255, 0.5);
  padding: 24px 28px;
  font-size: 12.5px;
}
.mk-store-footer > div {
  max-width: var(--mk-shell);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .mk-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .mk-hero__art { order: -1; }
  .mk-hero__card { max-width: 260px; }
  .mk-process__grid { grid-template-columns: 1fr; gap: 40px; }
  .mk-process__aside { position: static; }
  .mk-about__head { grid-template-columns: 1fr; gap: 24px; }
  .mk-values { grid-template-columns: repeat(2, 1fr); }
  .mk-contact__card { grid-template-columns: 1fr; gap: 40px; padding: 40px 32px; }
}

/* ---------------------------------------------- collapsed navigation -- */
/* 900px, not 760: at tablet-portrait width the full row still fits but is
   uncomfortably tight, and a drop-down reads better than a squeezed line. */
@media (max-width: 900px) {
  .mk-burger { display: flex; }

  .mk-nav__panel {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: rgba(251, 247, 248, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(110, 18, 48, 0.12);
    box-shadow: 0 18px 36px rgba(110, 18, 48, 0.12);
    padding: 8px 20px 20px;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
  }
  .mk-nav__panel.is-open { display: flex; }

  .mk-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 16px;
    width: 100%;
  }
  /* 52px tall: comfortably above the 44px minimum touch target. */
  .mk-nav__links > a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(110, 18, 48, 0.08);
  }
  .mk-nav__store {
    justify-content: flex-start;
    border: 0 !important;
    background: transparent !important;
    padding: 0 4px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(110, 18, 48, 0.08) !important;
    font-weight: 500;
  }

  .mk-nav__panel > .mk-btn,
  .mk-nav__actions {
    width: 100%;
    margin-inline-start: 0;
  }
  .mk-nav__panel > .mk-btn {
    min-height: 50px;
    margin-top: 12px;
    font-size: 15.5px;
  }
  .mk-nav__panel > .mk-btn--outline { margin-top: 16px; }

  /* Store pages keep their two buttons side by side inside the sheet. */
  .mk-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
  }
  .mk-nav__actions .mk-btn { width: 100%; min-height: 50px; }
}

@media (max-width: 900px) {
  /* Everything tappable gets a finger-sized box. Padding rather than height
     so the visual rhythm of each block is left alone. */
  .mk-footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .mk-channel__value {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .mk-channel { align-items: flex-start; }
  .mk-channel__icon { margin-top: 6px; }
  .mk-work__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .mk-work__head { gap: 12px; }
}

@media (max-width: 760px) {
  .mk-nav { gap: 12px; padding: 12px 18px; }
  .mk-hero { padding: 64px 22px 66px; }
  .mk-section { padding: 72px 22px; }
  .mk-work { padding: 72px 22px; }
  .mk-about { padding: 68px 22px; }
  .mk-contact { padding: 0 22px 72px; }
  .mk-section__head { margin-bottom: 36px; }
  .mk-values { grid-template-columns: 1fr; }
  .mk-form__row { grid-template-columns: 1fr; }
  .mk-contact__card { padding: 32px 24px; }
  .mk-footer__cols { gap: 36px; }
  .mk-store-main { padding: 76px 22px 88px; }
  .mk-store__mark { width: 104px; height: 104px; }
  .mk-placeholder { padding: 52px 24px; }
  .mk-step { gap: 14px; padding: 22px 20px; }
  .mk-step__n { font-size: 24px; width: 34px; }
}

@media (max-width: 520px) {
  /* Stacked full-width buttons beat two cramped pills on a phone. */
  .mk-hero__actions,
  .mk-store__actions { flex-direction: column; align-items: stretch; }
  .mk-hero__actions .mk-btn,
  .mk-store__actions .mk-btn,
  .mk-placeholder .mk-btn { width: 100%; min-height: 50px; }

  .mk-hero__card { max-width: 200px; }
  .mk-hero { padding: 48px 20px 56px; }
  .mk-section { padding: 60px 20px; }
  .mk-work { padding: 60px 20px; }
  .mk-about { padding: 56px 20px; }
  .mk-contact { padding: 0 20px 60px; }
  .mk-contact__card { padding: 26px 20px; border-radius: 22px; }
  .mk-card { padding: 26px 22px 24px; }
  .mk-hero__body { font-size: 17px; }
  .mk-footer { padding: 44px 20px 26px; }
  .mk-footer__top { gap: 28px; }
  .mk-footer__cols { gap: 32px; width: 100%; }
  .mk-footer__bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .mk-brand__logo { width: 40px; height: 40px; }
  .mk-brand__name { font-size: 17px; }
  .mk-brand__sub { font-size: 10px; }
  .mk-wa { width: 52px; height: 52px; inset-block-end: 16px; inset-inline-end: 16px; }
  .mk-wa svg { width: 27px; height: 27px; }
  .mk-store__title { letter-spacing: -1px; }
}

/* Phones in landscape: the sticky header would otherwise eat the viewport. */
@media (max-height: 480px) and (orientation: landscape) {
  .mk-header { position: static; }
  .mk-hero { padding-block: 44px; }
}

/* ------------------------------------------------------ a11y / print -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .mk-header, .mk-wa, .mk-form, .mk-hero__glow, .mk-hero__grid-overlay { display: none !important; }
  body { background: #fff; }
}
