/*
Theme Name: BMPro Diligence
Theme URI: https://bmprocs.com/
Author: Codex
Description: A diligence-focused WordPress catalogue theme for BMPro Consulting Services, built from the supplied company presentation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bmpro-diligence
*/

:root {
  --ink: #15202b;
  --muted: #617084;
  --paper: #fbfcfd;
  --line: #dbe3ea;
  --navy: #102a43;
  --blue: #1769aa;
  --teal: #15847d;
  --gold: #c99a2e;
  --green: #5d8a3c;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(251, 252, 253, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  font-size: 0.86rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 12px;
  color: #33475b;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav a:hover,
.nav a:focus {
  color: var(--navy);
  background: #eaf2f8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  font-weight: 750;
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.94), rgba(16, 42, 67, 0.76), rgba(16, 42, 67, 0.28)),
    url("assets/images/image6.png") center/cover;
}

.hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  min-height: 620px;
  padding: 92px 0 54px;
  gap: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a5d8ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 7vw, 6.1rem);
}

.hero-copy {
  max-width: 720px;
  color: #d9e7f2;
  font-size: clamp(1.04rem, 1.5vw, 1.3rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.2rem;
}

.hero-panel p {
  margin: 0;
  color: #dcebf6;
}

.band {
  padding: 86px 0;
}

.band.alt {
  background: #eef4f8;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.45fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.insight-card,
.person-card,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 260px;
  padding: 24px;
}

.service-card .num {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 18px 0 12px;
  color: var(--navy);
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-card {
  overflow: hidden;
}

.insight-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #dfe8ee;
}

.insight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-card .content,
.person-card .content {
  padding: 20px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.insight-card h3,
.person-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.18rem;
}

.insight-card p,
.person-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.feature-row img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-copy h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.feature-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 11px;
  color: #24465f;
  background: #e8f2f4;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.person-card {
  overflow: hidden;
}

.person-card figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: #e6edf2;
}

.person-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-strip {
  color: var(--white);
  background: var(--navy);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  gap: 42px;
  align-items: center;
}

.contact-wrap h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.contact-wrap p {
  max-width: 720px;
  color: #d8e6ef;
}

.contact-panel {
  padding: 24px;
  color: var(--ink);
}

.contact-panel p {
  margin: 0 0 12px;
  color: var(--muted);
}

.site-footer {
  padding: 32px 0;
  color: #6a7786;
  background: #f5f8fa;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero .section-inner,
  .section-head,
  .feature-row,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

  .service-grid,
  .insight-grid,
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero .section-inner {
    min-height: 650px;
    padding-top: 72px;
  }

  .band {
    padding: 58px 0;
  }

  .service-grid,
  .insight-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }
}
