/* =========================================================
   MSPCorp Identity Style Alignment (Jan 2025)
   - Colors + Typography from style guide
   ========================================================= */

/* ---------- Brand tokens (from MSPCorp style guide) ---------- */
:root {
  /* Core palette */
  --msp-black: #091217;       /* Primary Black (logo color, headings) */
  --msp-dark-blue: #073B57;   /* Dark Blue (strong banners, headings) */
  --msp-light-blue: #4AAED1;  /* Light Blue (elements, lines, highlights) */
  --msp-light-grey: #DAE5EB;  /* Light Grey (soft backgrounds, lines) */
  --msp-dark-green: #89BD40;  /* Darker Green (alt green) */
  --msp-bright-green: #C7EC52;/* Bright Green (highlights, buttons, callouts) */

  /* Typography */
  --font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --container: 1120px;

  /* Shadows (subtle, corporate) */
  --shadow-1: 0 6px 18px rgba(9, 18, 23, 0.10);
  --shadow-2: 0 10px 28px rgba(9, 18, 23, 0.12);

  /* Borders */
  --border: 1px solid rgba(7, 59, 87, 0.14);

  /* Text */
  --text: rgba(9, 18, 23, 0.92);
  --muted: rgba(9, 18, 23, 0.72);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--msp-light-grey) 100%);
  line-height: 1.6;
}

/* Headings: Montserrat, bold, clean; large headings in ALL CAPS recommended */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 12px 0;
  color: var(--msp-black);
  letter-spacing: -0.2px;
}

h1 {
  font-weight: 800;
  font-size: clamp(30px, 3vw, 44px);
  text-transform: uppercase; /* aligns with guidance for large headings */
  letter-spacing: 0.4px;
}

h2 {
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

h3 {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
}

h4 {
  font-weight: 700;
  font-size: 16px;
}

p { margin: 0 0 14px 0; color: var(--muted); }

a { color: inherit; }

/* Utility container (optional if you add wrappers later) */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================
   HEADER
   ========================================================= */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 44px;
  background: #ffffff;
  border-bottom: 1px solid rgba(7, 59, 87, 0.12);
}

.logo {
  height: 46px;
  width: auto;
  display: block;
}

/* Clean, corporate navigation */
.top-header nav a {
  font-family: var(--font-heading);
  text-decoration: none;
  margin-left: 26px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(9, 18, 23, 0.82);
  padding: 8px 10px;
  border-radius: 10px;
}

.top-header nav a:hover {
  background: rgba(74, 174, 209, 0.12); /* light blue tint */
  color: var(--msp-dark-blue);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: url("images/hero.JPG") center / cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 56px 44px;
  position: relative;
}

/* Overlay ensures contrast (avoid competing background imagery) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 59, 87, 0.78) 0%,
    rgba(7, 59, 87, 0.55) 55%,
    rgba(7, 59, 87, 0.25) 100%
  );
}

.hero-text {
  position: relative;
  max-width: 720px;
  padding: 28px 28px;
  border-left: 6px solid var(--msp-bright-green);
  background: rgba(9, 18, 23, 0.20);
  border-radius: var(--radius-md);
  backdrop-filter: blur(2px);
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.90);
  margin-top: 10px;
  max-width: 640px;
}

.hero h1 {
  color: #ffffff;
}

/* Buttons: Bright Green highlights recommended for callouts */
.btn-primary {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 999px; /* subtle curved shape aligns with brand curves */
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  background: var(--msp-bright-green);
  color: var(--msp-black);
  border: 1px solid rgba(9, 18, 23, 0.12);
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  background: #d3f37a; /* slightly lighter than bright green */
}

/* =========================================================
   CARDS (Who we are / Operations / Technology Enablement)
   ========================================================= */
.card-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--container);
  margin: -72px auto 84px;
  padding: 0 44px;
}

.card {
  background: #ffffff;
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-1);
}

.card img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(7, 59, 87, 0.10);
  margin-bottom: 16px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   OPERATIONAL CAPABILITIES
   ========================================================= */
.expertise {
  background: #ffffff;
  border-top: 1px solid rgba(7, 59, 87, 0.12);
  border-bottom: 1px solid rgba(7, 59, 87, 0.12);
  padding: 86px 44px;
}

.expertise h2 {
  text-align: center;
  margin-bottom: 44px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  max-width: var(--container);
  margin: 0 auto;
}

.expertise-item {
  background: linear-gradient(180deg, #ffffff 0%, rgba(218, 229, 235, 0.55) 100%);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-1);
  position: relative;
}

.expertise-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  border-left: 6px solid var(--msp-light-blue);
  opacity: 0.65;
}

.expertise-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
