/* =========================================================
   M&C Systems and Advisory — Design System
   Colors sampled directly from the brand logo:
   Navy #0A1B38, Gold #CA9438, White #FFFFFF
   ========================================================= */

:root {
  /* Core brand colors (from logo) */
  --navy: #0a1b38;
  --gold: #ca9438;
  --white: #ffffff;

  /* Navy hue ramp */
  --navy-900: #060f21;
  --navy-800: #0a1b38;
  --navy-700: #10254a;
  --navy-600: #16315e;
  --navy-500: #1f4079;
  --navy-100: #e7eaf1;
  --navy-050: #f3f5f9;

  /* Gold hue ramp */
  --gold-700: #a97a2a;
  --gold-600: #b8862f;
  --gold-500: #ca9438;
  --gold-400: #daa957;
  --gold-300: #e6c07f;
  --gold-100: #f7ead1;
  --gold-050: #fbf4e6;

  /* Neutrals (warm, to sit alongside gold) */
  --cream: #f8f6f2;
  --ink: #101a2c;
  --gray-700: #495261;
  --gray-500: #6b7280;
  --gray-300: #d7dbe2;
  --gray-100: #eef0f3;

  /* Semantic tokens */
  --bg-light: var(--white);
  --bg-alt: var(--cream);
  --bg-dark: var(--navy-800);
  --bg-dark-alt: var(--navy-700);
  --text-on-light: var(--navy-800);
  --text-on-light-muted: var(--gray-700);
  --text-on-dark: var(--white);
  --text-on-dark-muted: #c7cede;
  --accent: var(--gold-500);
  --accent-strong: var(--gold-700);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(10, 27, 56, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 27, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 27, 56, 0.18);

  --container: 1180px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
body {
  font-family: var(--font);
  color: var(--text-on-light);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

section { position: relative; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-on-light-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }

.btn-ghost-navy {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-ghost-navy:hover { background: var(--navy-800); color: var(--white); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 27, 56, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--text-on-dark-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  border-color: var(--gold-500);
}

.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-600) 100%);
  color: var(--white);
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lede {
  color: var(--text-on-dark-muted);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-tag {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold-300);
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,27,56,0) 40%, rgba(10,27,56,0.55) 100%);
}

.page-hero {
  padding: 76px 0 64px;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: var(--text-on-dark-muted); max-width: 640px; font-size: 1.08rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gold-300);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--navy-800);
  color: var(--text-on-dark);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--text-on-dark-muted); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { color: var(--navy-800); margin-bottom: 16px; }
.section--dark .section-head h2 { color: var(--white); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--navy-800);
  padding: 44px 32px;
  text-align: center;
}
.stat-item .num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold-400);
  display: block;
  margin-bottom: 8px;
}
.stat-item .label {
  color: var(--text-on-dark-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16/10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--navy-800); margin-bottom: 10px; }
.card-body p { flex: 1; margin-bottom: 16px; }
.card-link {
  font-weight: 700;
  color: var(--gold-600);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link::after { content: "→"; transition: transform 0.2s ease; }
.card-link:hover::after { transform: translateX(4px); }

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gold-050);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.pillar-icon svg { width: 26px; height: 26px; }

/* Service list rows (full catalogue) */
.catalogue {
  display: grid;
  gap: 20px;
}
.catalogue-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  align-items: flex-start;
}
.catalogue-item .pillar-icon { margin-bottom: 0; }
.catalogue-item h4 { color: var(--navy-800); font-size: 1.05rem; margin-bottom: 6px; }
.catalogue-item p { margin: 0; font-size: 0.96rem; }

.catalogue-block { margin-bottom: 72px; }
.catalogue-block:last-child { margin-bottom: 0; }
.catalogue-block-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
}
.catalogue-block-head img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.catalogue-block-head h3 { color: var(--navy-800); font-size: 1.5rem; }

/* ---------- Who we serve grid ---------- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.serve-grid .card:first-child,
.serve-card--wide { grid-column: span 1; }
.serve-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease;
}
.serve-card:hover { transform: translateY(-4px); }
.serve-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-900));
  z-index: 0;
}
.serve-card > * { position: relative; z-index: 1; }
.serve-card .num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.serve-card h3 { color: var(--white); margin-bottom: 10px; }
.serve-card p { color: var(--text-on-dark-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Approach steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  position: relative;
}
.step .step-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold-100);
  -webkit-text-stroke: 1.5px var(--gold-500);
  color: transparent;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.step h3 { color: var(--navy-800); margin-bottom: 10px; }

/* ---------- Split section (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.4;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { color: var(--navy-800); margin-bottom: 20px; }
.split-copy p { margin-bottom: 18px; font-size: 1.02rem; }
.split-copy p:last-child { margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: var(--text-on-dark-muted); margin: 0; }
.cta-banner-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(202,148,56,0.16);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
  margin-bottom: 4px;
  font-weight: 700;
}
.contact-row .value { font-weight: 600; }
.contact-row .value a:hover { color: var(--gold-400); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text-on-light);
  background: var(--white);
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 12px; }
.form-success {
  display: none;
  background: var(--gold-050);
  border: 1px solid var(--gold-300);
  color: var(--gold-700);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.form-success.show { display: block; }
.form-success.error {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #b3261e;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  height: 340px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 36px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.93rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .made-by { color: var(--text-on-dark-muted); }

/* ---------- Utilities ---------- */
.text-gold { color: var(--gold-500); }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 480px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--navy-800);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-header.is-open .nav-links a { width: 100%; padding: 12px 0; }
  .site-header.is-open .header-actions .btn { display: inline-flex; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .section { padding: 64px 0; }
  .catalogue-item { grid-template-columns: 1fr; }
  .catalogue-block-head { flex-direction: column; align-items: flex-start; }
}
