/* =====================================================================
   Computer Xperts — Methodology page styles (css/methodology.css)
   Loaded on methodology.html after css/site.css (colours, header, footer, page hero,
   3D tiles, Company side menu and free quote card live there).

   Contents
    0. Page hero picture size
    1. Our Simple Process (four 3D tiles on a line)
    2. Layout: method + side menu
    3. Key points
    4. Stages timeline
    5. Responsive: 1023px, 640px
   ===================================================================== */


/* 0. Page hero picture: kept close to the height of the text beside it --- */
.methodology .page-hero__media img { width: auto; max-width: 100%; max-height: 420px; margin: 0 auto; }


/* 1. Our Simple Process ------------------------------------------------- */
.simple-process { padding: var(--section-y) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.simple-process .block-head { margin-bottom: 20px; }
.sp-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sp-steps::before {   /* dashed line joining the tiles */
  content: ""; position: absolute; left: 36px; right: 12%; top: 36px; z-index: 0;
  border-top: 2px dashed rgba(207, 11, 11, .35);
}
.sp-step { position: relative; z-index: 1; }
.sp-step h4 { margin-top: 16px; color: var(--ink); font-size: 20px; font-weight: 800; }
.sp-step p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.6; }


/* 2. Layout (the two columns come from .with-side in css/site.css) ------- */
.method { padding: var(--section-y) 0; background: var(--paper); }


/* 3. Key points --------------------------------------------------------- */
.method-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.method-points li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  color: var(--text); font-size: 15.5px; line-height: 1.55;
}
.method-points__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--white); }
.method-points__icon .ic { width: 16px; height: 16px; stroke-width: 3; }


/* 4. Stages timeline ---------------------------------------------------- */
.stages { position: relative; display: grid; gap: 12px; }
.stages::before {   /* red line down the left, behind the tiles */
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: linear-gradient(var(--red), rgba(207, 11, 11, .15));
}
.stage { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; align-items: start; }
.stage .tile3d { position: relative; z-index: 1; margin-top: 14px; }
.stage__body {
  padding: 18px 22px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.stage:hover .stage__body { border-color: var(--red); box-shadow: 0 20px 36px -26px rgba(0, 0, 0, .35); }
.stage__title { color: var(--ink); font-size: clamp(20px, 1.9vw, 24px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.stage__body p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.stage__body .stage__note { padding: 10px 14px; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; background: var(--red-tint); color: var(--ink); font-weight: 700; }
.stage__list { display: grid; gap: 6px; margin-top: 10px; }
.stage__list li { position: relative; padding-left: 22px; color: var(--text); font-size: 15.5px; line-height: 1.6; }
.stage__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }


/* 5. Responsive --------------------------------------------------------- */
@media (max-width: 1023px) {
  .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .sp-steps::before { display: none; }
}

@media (max-width: 640px) {
  .methodology .page-hero__media img { max-height: 300px; }
  .sp-steps { grid-template-columns: 1fr; gap: 18px; }
  .sp-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; }
  .sp-step .tile3d { grid-row: span 2; }
  .sp-step h4 { margin-top: 4px; }
  .method-points { grid-template-columns: 1fr; }
  .stages::before { left: 21px; }
  .stage { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .stage .tile3d--sm { width: 44px; height: 44px; border-radius: 12px; }
  .stage .tile3d--sm .ic { width: 22px; height: 22px; }
  .stage__body { padding: 16px 16px 18px; }
}
