/* Mission Digital Apps page content styles.
   The header, footer, typography and colour system come from the site's own
   Astra stylesheets. This file only styles the content sections.

   Palette note: the site's painted palette is #3a3a3a ink, black, white and
   #1f7ee3 blue as the single accent. Astra also defines --ast-global-color-0
   (#57aa6e green) but nothing on the site applies it, so it is deliberately
   NOT used here. */

.md-apps .site-main { padding: 0; }

.md-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- hero ---------- */
.md-hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}

.md-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: #1f7ee3;
  margin-bottom: 14px;
}

.md-apps h1.md-h1 {
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .18em;
}

.md-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #3a3a3a;
  margin-bottom: 1.1rem;
}

.md-lede {
  font-size: 1.12rem;
  max-width: 62ch;
  margin-bottom: 2rem;
}

/* ---------- buttons (match Astra/Elementor CTA styling) ---------- */
.md-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.md-actions-center { justify-content: center; }

.md-apps a.md-btn {
  display: inline-block;
  background: #1f7ee3;
  color: #fff;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.md-apps a.md-btn:hover { background: #1668bd; color: #fff; transform: translateY(-1px); }

.md-apps a.md-btn-ghost {
  background: transparent;
  color: #3a3a3a;
  border: 2px solid #d7dee4;
}
.md-apps a.md-btn-ghost:hover {
  background: #f4f7fa;
  color: #1f7ee3;
  border-color: #1f7ee3;
}

.md-apps a.md-btn-light { background: #fff; color: #1f7ee3; }
.md-apps a.md-btn-light:hover { background: #eaf2fc; color: #1668bd; }

.md-apps a.md-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.md-apps a.md-btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- sections ---------- */
.md-section { padding: 88px 0; }
.md-section-alt { background: #f4f7fa; }

.md-apps h2.md-h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0 0 .3em;
}

.md-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }

/* ---------- cards ---------- */
.md-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f7ee3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.md-ico i { font-size: 24px; line-height: 1; }

.md-apps .md-card h2 { font-size: 1.22rem; margin: 0 0 .4em; }
.md-card p { margin: 0; }

/* ---------- brands ----------
   Product logos for things we have built. The grid auto-fills, so adding a
   brand needs no CSS change. Each brand keeps its OWN colours (a product mark
   is not Mission Digital chrome); set them via a .md-brand-mark-<name> rule. */
.md-apps h2.md-brands-title { margin-bottom: 1.6rem; }

.md-brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.md-apps a.md-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.md-apps a.md-brand:hover {
  border-color: #1f7ee3;
  box-shadow: 0 6px 22px rgba(15, 30, 50, .09);
  transform: translateY(-2px);
  text-decoration: none;
}

.md-brand-logo { display: inline-flex; align-items: center; gap: 10px; }

.md-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  flex: 0 0 34px;
}
.md-brand-mark svg { width: 21px; height: 21px; }

/* per-brand colours */
.md-brand-mark-curbapprove { background: #15803d; }

.md-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0f172a;
}
.md-brand-name-accent { color: #15803d; }

.md-brand-desc { color: #3a3a3a; font-size: .95rem; line-height: 1.55; }

.md-brand-link {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #1f7ee3;
  margin-top: auto;
  margin-top: auto;
}

/* ---------- cta ---------- */
.md-cta {
  padding: 92px 0;
  background: #0d1b26;
  text-align: center;
}
.md-apps .md-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 .4em;
}
.md-cta p {
  color: rgba(255,255,255,.82);
  max-width: 56ch;
  margin: 0 auto 2rem;
}

/* ---------- responsive ---------- */
@media (max-width: 921px) {
  .md-grid-3 { grid-template-columns: 1fr; gap: 36px; }
  .md-brands { grid-template-columns: 1fr; }
  .md-hero { padding: 68px 0 58px; }
  .md-section { padding: 62px 0; }
  .md-wrap { padding: 0 32px; }
}

@media (max-width: 544px) {
  .md-wrap { padding: 0 24px; }
  .md-hero { padding: 52px 0 48px; }
  .md-section { padding: 50px 0; }
  .md-cta { padding: 62px 0; }
  .md-apps a.md-btn { padding: 13px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .md-apps a.md-btn { transition: none; }
  .md-apps a.md-btn:hover { transform: none; }
}
