/* ===== MSMS — Mark Software & Marketing Solutions =====
   Single stylesheet for all pages. Pure CSS, no build step. */

:root {
  --brand-700: #8e1418;
  --brand-600: #b8181d;
  --brand-500: #de1b22;
  --brand-400: #ef3a40;
  --accent: #1a1f2e;
  --accent-dark: #0c1424;
  --ink: #0c1424;
  --ink-2: #2b3550;
  --muted: #62708a;
  --line: #e9ebf0;
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --bg-dark: #0c1424;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(20, 20, 30, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 20, 30, 0.10);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { color: var(--brand-700); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(13, 30, 70, 0.04);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  line-height: 0;
}
.brand:hover { color: var(--ink); }
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .brand-logo { height: 36px; }
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { color: var(--brand-600); }
.nav a.btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 8px 22px rgba(222, 27, 34, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(222, 27, 34, 0.36); }
.btn-secondary {
  background: var(--ink);
  color: #fff;
}
.btn-secondary:hover { background: var(--brand-700); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background:
    radial-gradient(1200px 400px at 90% -10%, rgba(222,27,34,0.10), transparent 60%),
    radial-gradient(700px 300px at -10% 0%, rgba(12,20,36,0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-500);
  background: rgba(222, 27, 34, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 10px; }
p { margin: 0 0 14px; color: var(--ink-2); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 640px; }

.hero-cta { margin: 28px 0 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 18px; font-weight: 700; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-art {
  position: relative;
  height: 420px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0c1424 0%, #2b1014 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .7; }
.orb-1 { width: 280px; height: 280px; background: #de1b22; top: -60px; left: -60px; }
.orb-2 { width: 220px; height: 220px; background: #ef3a40; bottom: -40px; right: -40px; }
.orb-3 { width: 160px; height: 160px; background: #ff8a8e; top: 40%; left: 40%; opacity: .55; }
.grid-card {
  position: absolute;
  inset: 32px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.grid-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.25); margin-bottom: 10px; max-width: 70%; }
.grid-line.short { max-width: 40%; }
.bar-row { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #ef3a40, #8e1418); opacity: .9; }
.bar.h1 { height: 35%; }
.bar.h2 { height: 60%; }
.bar.h3 { height: 45%; }
.bar.h4 { height: 80%; }
.bar.h5 { height: 95%; }

/* ===== Page hero (sub-pages) ===== */
.page-hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(900px 300px at 90% -20%, rgba(222,27,34,0.10), transparent 60%),
    radial-gradient(600px 200px at -10% 0%, rgba(12,20,36,0.05), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 800px; }
.page-hero .lede { max-width: 720px; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-cta { text-align: center; margin-top: 36px; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(222,27,34,0.25); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(222,27,34,0.10), rgba(239,58,64,0.10));
  color: var(--brand-600);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0; }

/* ===== Two-col ===== */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.check-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ink-2);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(222,27,34,0.10);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-size: 28px; color: var(--brand-700); font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

/* ===== CTA Band ===== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 18px;
  background:
    radial-gradient(600px 200px at 90% 100%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(135deg, #0c1424 0%, #b8181d 100%);
  color: #fff;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-700);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.cta-band .btn-primary:hover { color: var(--brand-700); }

/* ===== Team grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  transition: transform .15s, box-shadow .15s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-500), #0c1424);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.team-card h3 { margin: 0 0 4px; }
.role { font-size: 13px; font-weight: 600; color: var(--brand-500); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.team-card p { font-size: 14.5px; margin: 0; }

/* ===== Service rows ===== */
.service-list { display: flex; flex-direction: column; gap: 16px; }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s, box-shadow .15s;
}
.service-row:hover { border-color: rgba(222,27,34,0.25); box-shadow: var(--shadow-sm); }
.service-num {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-500);
  background: linear-gradient(135deg, var(--brand-500), #0c1424);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-body h2 { font-size: 22px; margin-bottom: 8px; }
.tag-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-size: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink-2);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { font-size: 24px; }
.info-block { margin: 22px 0; }
.info-block p { margin: 0; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form h2 { font-size: 24px; margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(222,27,34,0.18);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.form-note { font-size: 12.5px; margin: 0; }
.form-status { margin-top: 14px; font-size: 14px; }
.form-status.success { color: #137a3a; }
.form-status.error { color: #b22b2b; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  color: #c8d0e2;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.site-footer h4 { color: #fff; }
.site-footer a { color: #c8d0e2; }
.site-footer a:hover { color: #fff; }
.brand-footer {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.brand-footer .brand-logo { height: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 4px 0; font-size: 14.5px; line-height: 1.6; }
.muted { color: #8e9bb6; font-size: 14px; }
.footer-bottom {
  margin-top: 20px;
  font-size: 13px;
  color: #8e9bb6;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { padding: 60px 0 70px; }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: 320px; }
  .cards, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 64px 1fr; }
  .service-num { font-size: 28px; }
  .cta-band { padding: 28px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px; }
  .nav a.btn { margin: 8px 0 0; justify-content: center; }
  .brand-name { display: none; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cards, .team-grid { grid-template-columns: 1fr; }
}
