/* =====================================================================
   M-CSC · pages.css - service subpages (ai, security, m365, websites)
   Requires base.css. Light editorial: hero, feature-tile gallery, a dark
   terminal/status band as the tech accent, and a closing CTA.
   ===================================================================== */

.sub-main { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }

/* ----------------------------------------------------------------- Sub hero */
.sub-hero { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sub-hero .kicker { display: inline-block; color: var(--brand-strong); font-weight: 600; font-size: 0.96rem; margin-bottom: 14px; }
.sub-hero h1 { margin-bottom: 18px; }
.sub-hero .lead { font-size: clamp(1.04rem, 0.98rem + 0.4vw, 1.18rem); }

/* ----------------------------------------------------------------- Gallery */
.gallery-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 18px;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.tile-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--brand);
  background: var(--brand-tint);
}
.tile-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 0.96rem; }

@media (max-width: 940px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- Terminal/status band (decorative tech accent) */
.term-band { margin-top: clamp(40px, 5vw, 64px); max-width: 720px; margin-inline: auto; }
.term-band .console-body { display: flex; flex-direction: column; gap: 10px; }
.term-band .term-line { color: #c8d0e0; font-family: var(--font-mono); font-size: 0.82rem; opacity: 0; }
.term-band.in .term-line { animation: term-in 0.45s var(--ease) forwards; }
.term-band .term-line .prompt { color: #93a4ff; }
.term-band .term-line .ok { color: #46e0a0; }
.term-band .term-line .dim { color: rgba(255, 255, 255, 0.45); }
.term-band .term-line.d1 { animation-delay: 0.1s; }
.term-band .term-line.d2 { animation-delay: 0.45s; }
.term-band .term-line.d3 { animation-delay: 0.8s; }
.term-band .term-line.d4 { animation-delay: 1.15s; }
@keyframes term-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { .term-band { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- Page CTA */
.page-cta {
  margin-top: clamp(44px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--surface), var(--brand-tint) 130%);
  box-shadow: var(--shadow-md);
}
.page-cta-copy { max-width: 58ch; }
.page-cta-copy strong { display: block; font-size: 1.18rem; font-weight: 680; letter-spacing: -0.01em; }
.page-cta-copy span { display: block; color: var(--muted); margin-top: 6px; }
.page-cta .btn { flex-shrink: 0; }
@media (max-width: 560px) { .page-cta .btn { width: 100%; } }
