/* ==========================================================================
   MARKETING.CSS — Additive Styles for Digilent Marketing Pages (Refactored)
   --------------------------------------------------------------------------
   - Namespaced with `mk-*` to stay additive
   - Border radius normalised to 4px to align with core system
   - Tokens prepared as aliases to core tokens (via fallback)
   ========================================================================== */

/* --------------------------------------------------------------------------
   TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Prefer aliasing to core tokens if they exist; fall back to hex */
  --mk-bg-stone: var(--dig-bg-stone, #F4F4F2);
  --mk-bg-panel: var(--dig-bg-panel, #FFFFFF);
  --mk-border-soft: var(--dig-border-soft, #D9D9D5);
  --mk-ink: var(--dig-ink, #0C1117);
  --mk-graphite: var(--dig-graphite, #2C2F33);
  --mk-gold: var(--dig-gold, #C1A872);
  --mk-gold-hover: var(--dig-gold-hover, #A8925F);
  --mk-text-muted: var(--dig-text-muted, #5C5F63);
  /* Aliases to keep mk-* and dig-* systems in sync */
  --mk-accent-gold: var(--mk-gold);

  --dig-border-default: var(--mk-border-soft);
  --dig-gold-surface: var(--mk-bg-soft);
  --dig-text-primary: var(--mk-ink);
  --dig-text-secondary: var(--mk-graphite);
	
  --mk-node-bg: #f4efe7;
  --mk-node-border: #d6d0c7;
}

/* --------------------------------------------------------------------------
   PAGE WRAPPER
   -------------------------------------------------------------------------- */
.mk-page {
  background: var(--mk-bg-stone);
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.mk-hero {
  padding: 96px 24px 64px;
  background: var(--mk-bg-panel);
  border-bottom: 1px solid var(--mk-border-soft);
}

.mk-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mk-hero__overline {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mk-gold);
  margin-bottom: 16px;
}

.mk-hero__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--mk-ink);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .mk-hero__title {
    font-size: 32px;
  }
}

.mk-hero__intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mk-graphite);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.mk-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.mk-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px; /* normalised */
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.mk-btn--primary {
  background: var(--mk-gold);
  color: var(--mk-ink);
}

.mk-btn--primary:hover {
  background: var(--mk-gold-hover);
}

.mk-btn--secondary {
  background: transparent;
  color: var(--mk-ink);
  border: 1px solid var(--mk-border-soft);
}

.mk-btn--secondary:hover {
  background: var(--mk-bg-stone);
  border-color: var(--mk-graphite);
}

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.mk-section {
  padding: 64px 24px;
}

.mk-section--muted {
  background: var(--mk-bg-stone);
}

.mk-section--white {
  background: var(--mk-bg-panel);
}

.mk-section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.mk-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.mk-section__overline {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mk-gold);
  margin-bottom: 12px;
}

.mk-section__title {
  font-size: 32px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 16px;
}

.mk-section__intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--mk-graphite);
  max-width: 640px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   GRIDS
   -------------------------------------------------------------------------- */
.mk-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .mk-grid-2 {
    grid-template-columns: 1fr;
  }
}

.mk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .mk-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mk-grid-3 {
    grid-template-columns: 1fr;
  }
}

.mk-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .mk-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mk-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.mk-card {
  background: var(--mk-bg-panel);
  border: 1px solid var(--mk-border-soft);
  border-radius: 4px; /* normalised */
  padding: 32px;
  transition: box-shadow 0.2s ease;
}

.mk-card:hover {
  box-shadow: 0 4px 16px rgba(12, 17, 23, 0.06);
}

.mk-card__overline {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mk-gold);
  margin-bottom: 8px;
}

.mk-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 12px;
}

.mk-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mk-graphite);
  margin-bottom: 16px;
}

.mk-card__text:last-child {
  margin-bottom: 0;
}

.mk-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mk-card__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mk-graphite);
}

.mk-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--mk-gold);
}

.mk-card__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-gold);
  text-decoration: none;
  margin-top: 16px;
}

.mk-card__link:hover {
  color: var(--mk-gold-hover);
}

/* --------------------------------------------------------------------------
   PERSONA TILES
   -------------------------------------------------------------------------- */
.mk-persona-tile {
  background: var(--mk-bg-panel);
  border: 1px solid var(--mk-border-soft);
  border-radius: 4px; /* normalised */
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mk-persona-tile:hover {
  box-shadow: 0 4px 16px rgba(12, 17, 23, 0.06);
  border-color: var(--mk-gold);
}

.mk-persona-tile__role {
  font-size: 18px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 8px;
}

.mk-persona-tile__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mk-graphite);
  margin-bottom: 12px;
}

.mk-persona-tile__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-gold);
}

/* --------------------------------------------------------------------------
   PROCESS STEPS
   -------------------------------------------------------------------------- */
.mk-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.mk-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
}

.mk-step__number {
  width: 40px;
  height: 40px;
  background: var(--mk-gold);
  color: var(--mk-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.mk-step__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 8px;
}

.mk-step__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mk-graphite);
}

.mk-step__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-text-muted);
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .mk-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .mk-step {
    min-width: 100%;
    max-width: 320px;
  }
}

/* --------------------------------------------------------------------------
   SERVICE FLOW
   -------------------------------------------------------------------------- */
.mk-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.mk-flow__item {
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}

.mk-flow__label {
  font-size: 18px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 8px;
}

.mk-flow__desc {
  font-size: 14px;
  color: var(--mk-graphite);
  line-height: 1.5;
}

.mk-flow__arrow {
  font-size: 24px;
  color: var(--mk-gold);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mk-flow {
    flex-direction: column;
  }
  
  .mk-flow__arrow {
    transform: rotate(90deg);
  }
}

/* --------------------------------------------------------------------------
   CTA STRIP
   -------------------------------------------------------------------------- */
.mk-cta-strip {
  padding: 64px 24px;
  background: var(--mk-bg-panel);
  border-top: 1px solid var(--mk-border-soft);
  text-align: center;
}

.mk-cta-strip__inner {
  max-width: 640px;
  margin: 0 auto;
}

.mk-cta-strip__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mk-graphite);
  margin-bottom: 24px;
}

.mk-cta-strip__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.mk-form {
  max-width: 560px;
}

.mk-form-row {
  margin-bottom: 24px;
}

.mk-form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mk-form-row-disclaimer {
	font-size: 0.7em;
}

@media (max-width: 640px) {
  .mk-form-row--split {
    grid-template-columns: 1fr;
  }
}

.mk-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 8px;
}

.mk-form-input,
.mk-form-textarea,
.mk-form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--mk-ink);
  background: var(--mk-bg-panel);
  border: 1px solid var(--mk-border-soft);
  border-radius: 4px; /* normalised */
  transition: border-color 0.2s ease;
}

.mk-form-input:focus,
.mk-form-textarea:focus,
.mk-form-select:focus {
  outline: none;
  border-color: var(--mk-gold);
}

.mk-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.mk-form-radio-group,
.mk-form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0px 0px 10px 10px;	
}

.mk-form-radio,
.mk-form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--mk-graphite);
  cursor: pointer;
}

.mk-form-radio input,
.mk-form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--mk-gold);
}

.mk-form-submit {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   MAPPING SECTION
   -------------------------------------------------------------------------- */
.mk-mapping {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .mk-mapping {
    grid-template-columns: 1fr;
  }
}

.mk-mapping__item {
  padding: 24px;
  background: var(--mk-bg-panel);
  border: 1px solid var(--mk-border-soft);
  border-radius: 4px; /* normalised */
}

.mk-mapping__question {
  font-size: 14px;
  color: var(--mk-graphite);
  margin-bottom: 12px;
  font-style: italic;
}

.mk-mapping__answer {
  font-size: 16px;
  font-weight: 600;
  color: var(--mk-gold);
}

/* --------------------------------------------------------------------------
   TWO-COLUMN CONTENT
   -------------------------------------------------------------------------- */
.mk-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .mk-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.mk-two-col__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 16px;
}

.mk-two-col__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mk-two-col__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mk-graphite);
}

.mk-two-col__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mk-gold);
}

/* --------------------------------------------------------------------------
   LEGAL PAGES
   -------------------------------------------------------------------------- */
.mk-legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.mk-legal__title {
  font-size: 36px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 16px;
}

.mk-legal__updated {
  font-size: 14px;
  color: var(--mk-text-muted);
  margin-bottom: 48px;
}

.mk-legal h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.mk-legal h2:first-of-type {
  margin-top: 0;
}

.mk-legal p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mk-graphite);
  margin-bottom: 16px;
}

.mk-legal ul {
  margin: 0 0 16px 24px;
  padding: 0;
}

.mk-legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mk-graphite);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   SECONDARY LINKS
   -------------------------------------------------------------------------- */
.mk-secondary-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.mk-secondary-link {
  font-size: 14px;
  color: var(--mk-graphite);
  text-decoration: none;
}

.mk-secondary-link:hover {
  color: var(--mk-gold);
}

/* --------------------------------------------------------------------------
   NARRATIVE BLOCK
   -------------------------------------------------------------------------- */
.mk-narrative {
  max-width: 720px;
  margin: 0 auto;
}

.mk-narrative p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--mk-graphite);
  margin-bottom: 20px;
}

.mk-narrative p:last-child {
  margin-bottom: 0;
}

/* --- Process Rail Improvements --- */
.mk-steps.mk-steps--rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 32px;
}

.mk-step {
  text-align: center;
  padding: 0 16px;
}

.mk-step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mk-accent-gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin: 0 auto 16px auto;
}

.mk-step__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mk-step__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-text-muted);
  margin-bottom: 12px;
}

.mk-step__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mk-text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* Mobile: stack with tighter spacing */
@media (max-width: 767px) {
  .mk-steps.mk-steps--rail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mk-step__text {
    max-width: none;
  }
}

/* ============================================================
   PROCESS RAIL — Premium Consulting Pattern
   ============================================================ */

.mk-steps--rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 32px;
}

/* Horizontal line behind nodes */
.mk-steps--rail::before {
  content: "";
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dig-border-default);
  z-index: 1;
}

/* Node */
.mk-step__node {
  width: 48px;
  height: 48px;
  background: var(--dig-gold-surface);
  border: 2px solid var(--dig-border-default);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px auto;
  position: relative;
  z-index: 2;
}

.mk-step__node span {
  font-size: 18px;
  font-weight: 600;
  color: var(--dig-text-primary);
  transform: translateY(-1px);
}

/* Titles & meta */
.mk-step__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mk-step__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--dig-text-secondary);
  margin-bottom: 12px;
}

/* Body */
.mk-step__text {
  max-width: 256px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
  color: var(--dig-text-secondary);
}

/* ============================
   PROCESS RAIL — FINAL POLISH
   ============================ */

/* 1. More breathing room above the nodes */
.mk-steps--rail {
  padding-top: 64px; /* was 48px */
}

/* 2. Lift nodes slightly above the line */
.mk-step__node {
  margin-top: -6px; /* visually lifts it */
}

/* 3. Reduce max text width for premium consulting rhythm */
.mk-step {
  max-width: 260px;
  margin: 0 auto;
}

/* 4. Add grounding space below the steps */
.mk-steps--rail {
  padding-bottom: 64px; /* increases lower breathing room */
}

/* Optional subtle animation (BCGX attention to detail) */
.mk-step__node {
  transition: transform 0.2s ease;
}
.mk-step:hover .mk-step__node {
  transform: scale(1.04);
}

/* ===========================================
   FINAL PROCESS RAIL POLISH
   =========================================== */

/* 1. Shift the line downward to separate node & text */
.mk-steps--rail::before {
  top: 90px;   /* was ~72px */
}

/* 2. Nodes sit more confidently on the rail */
.mk-step__node {
  margin-top: -8px; /* sink slightly into the rail for balance */
}

/* 3. Increase spacing between node and section titles */
.mk-step__title {
  margin-top: 24px; /* gives breathing room */
}

/* 4. Improve node contrast very slightly */
.mk-step__node {
  background: var(--mk-node-bg);
  border: 2px solid var(--mk-node-border);
}

/* 5. Contain the rail so it does not hit page edges */
.mk-steps--rail {
  max-width: 1180px;   /* matches hero + main content width */
  margin-left: auto;
  margin-right: auto;
}

/* 6. Add grounding space below entire process section */
.mk-steps--rail {
  padding-bottom: 80px;
}

.mk-step:nth-child(4) .mk-step__text {
  margin-top: 2px;
}

/* ============================================
   "How we work with you" — mobile layout
   ============================================ */
@media (max-width: 768px) {
  /* 1. Stack steps in a single column */
  .mk-steps {
    grid-template-columns: 1fr;   /* 4 → 1 column */
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 56px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .mk-step {
    max-width: 360px;
    margin: 0 auto;
  }

  .mk-step__text {
    max-width: none;             /* let text breathe */
  }

  /* 2. Soften the rail on mobile */
  .mk-steps--rail::before {
    left: 15%;                   /* shorter line */
    right: 15%;
    top: 88px;                   /* sits nicely behind the node */
  }
/* Accessible focus outlines */
.mk-btn:focus-visible,
.mk-form-input:focus-visible,
.mk-form-field input:focus-visible,
.mk-form-field textarea:focus-visible {
  outline: 2px solid var(--mk-gold);
  outline-offset: 2px;
}
}


