/* ============================================================
   M2 Consulting, PLLC — site styles
   Palette sampled from logo: navy #04294b, grey #7f7f7f
   Accent: throwback (1980s) Seahawks green #00694e
   ============================================================ */

:root {
  --navy: #04294b;
  --navy-deep: #021a30;
  --navy-mid: #0d3a63;
  --grey: #7f7f7f;
  --grey-dark: #4f4f4f;
  --grey-light: #a5acaf;
  --grey-bg: #f2f4f6;
  --green: #00694e;
  --green-bright: #007a5a;
  --white: #ffffff;
  --ink: #222a33;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  font-size: 17px;
}

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

a { color: var(--navy-mid); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / masthead ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(2, 26, 48, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { text-decoration: none; display: block; }

.brand img { height: 70px; width: auto; }

.brand .byline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

/* ---------- Nav ---------- */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.site-nav a:hover { border-bottom-color: var(--green); color: var(--green); }
.site-nav a.active { border-bottom-color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 4px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(2, 26, 48, 0.60) 0%, rgba(4, 41, 75, 0.50) 55%, rgba(13, 58, 99, 0.50) 100%),
    url("../assets/volcano-rainier.jpg") center 30% / cover no-repeat;
  background-color: var(--navy-deep);
  color: var(--white);
  padding: 84px 0 118px;
  text-align: center;
}

.hero h1, .hero p { text-shadow: 0 1px 4px rgba(2, 26, 48, 0.85), 0 2px 14px rgba(2, 26, 48, 0.6); }

.hero p { color: #eef2f6; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.2;
  max-width: 850px;
  margin: 0 auto 8px;
}

.hero .hero-rule {
  width: 90px;
  height: 4px;
  background: var(--green-bright);
  margin: 22px auto;
  border: none;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: 19px;
  color: #d8dee6;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 2px solid transparent;
  margin: 0 8px 10px;
}

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-bright); }

.btn-outline { border-color: var(--grey-light); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); }

/* ---------- Page title band (interior pages) ---------- */
.page-title {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 70%);
  background-color: var(--navy);
  background-size: cover;
  background-position: center 28%;
  color: var(--white);
  padding: 90px 0 104px;
  border-bottom: 4px solid var(--green);
  display: flex;
  align-items: flex-end;
}

.page-title > .container { width: 100%; }

.page-title h1, .page-title p { text-shadow: 0 1px 4px rgba(2, 26, 48, 0.85), 0 2px 14px rgba(2, 26, 48, 0.6); }

/* Per-page volcano banners — WA's five active volcanoes, ~50% photo visibility */
.pt-sthelens { background-image: linear-gradient(120deg, rgba(2, 26, 48, 0.68), rgba(4, 41, 75, 0.48)), url("../assets/volcano-sthelens.jpg?v=3"); }
.pt-baker { background-image: linear-gradient(120deg, rgba(2, 26, 48, 0.68), rgba(4, 41, 75, 0.48)), url("../assets/volcano-baker.jpg?v=2"); }
.pt-adams { background-image: linear-gradient(120deg, rgba(2, 26, 48, 0.68), rgba(4, 41, 75, 0.48)), url("../assets/volcano-adams.jpg?v=3"); background-position: center 62%; }
.pt-glacierpeak { background-image: linear-gradient(120deg, rgba(2, 26, 48, 0.68), rgba(4, 41, 75, 0.48)), url("../assets/volcano-glacierpeak.jpg?v=2"); }

.page-title h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 38px);
}

.page-title p {
  color: #c8d2dc;
  max-width: 780px;
  margin-top: 8px;
  font-size: 18px;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--grey-bg); }

.section-heading {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--grey-dark);
  max-width: 800px;
  margin-bottom: 36px;
}

.rule {
  width: 64px;
  height: 4px;
  background: var(--green);
  border: none;
  margin: 14px 0 26px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid #dde2e8;
  border-top: 4px solid var(--navy);
  border-radius: 6px;
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(2, 26, 48, 0.06);
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 21px;
  margin-bottom: 12px;
}

.card p { color: var(--grey-dark); font-size: 15.5px; flex: 1; }

.card .card-link {
  margin-top: 18px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card .card-link:hover { color: var(--navy); }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--navy);
  color: var(--white);
  padding: 42px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat .stat-number {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.stat .stat-number span { color: #7fbfab; }

.stat .stat-label {
  color: var(--grey-light);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid #dde2e8;
}

.service-block > div > p {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.service-block:last-child { border-bottom: none; }

.service-block h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 23px;
  line-height: 1.3;
  position: sticky;
  top: 110px;
}

.service-block h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--green);
  margin-top: 12px;
}

.service-block ul { margin: 8px 0 0 20px; }
.service-block li { margin-bottom: 3px; color: var(--ink); line-height: 1.45; }

/* ---------- Projects ---------- */
.project-list { display: grid; gap: 16px; }

.project {
  background: var(--white);
  border: 1px solid #dde2e8;
  border-left: 5px solid var(--navy);
  border-radius: 4px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.project:hover { border-left-color: var(--green); }

.project .p-name { font-weight: 700; color: var(--navy); font-size: 17px; }
.project .p-loc { color: var(--grey); font-weight: 400; }
.project .p-desc { color: var(--grey-dark); font-size: 15px; flex-basis: 100%; margin-top: 2px; }
.project .p-year {
  font-family: var(--serif);
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.project div.p-year { margin-top: 5px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border: 1px solid #dde2e8;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(2, 26, 48, 0.06);
  text-align: center;
  padding: 34px 28px 30px;
}

.team-card img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 4px solid var(--navy);
}

.team-card h3 { font-family: var(--serif); color: var(--navy); font-size: 23px; }
.team-card .creds { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.team-card .role { color: var(--grey-dark); margin: 6px 0 14px; font-size: 15.5px; }
.team-card p.blurb { color: var(--grey-dark); font-size: 15px; text-align: left; }

/* ---------- Bio pages ---------- */
.bio-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}

.bio-sidebar {
  background: var(--grey-bg);
  border: 1px solid #dde2e8;
  border-top: 5px solid var(--navy);
  border-radius: 6px;
  padding: 26px 24px;
  position: sticky;
  top: 110px;
}

.bio-sidebar img {
  width: 100%;
  border-radius: 6px;
  border: 3px solid var(--navy);
  margin-bottom: 18px;
}

.bio-sidebar h4 {
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 6px;
}

.bio-sidebar p, .bio-sidebar li { font-size: 14.5px; color: var(--grey-dark); }
.bio-sidebar ul { list-style: none; }
.bio-sidebar li { margin-bottom: 4px; }
.bio-sidebar a { color: var(--navy-mid); word-break: break-all; }

.bio-main h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 22px;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dde2e8;
}

.bio-main h2:first-child { margin-top: 0; }
.bio-main ul { margin: 10px 0 0 20px; }
.bio-main li { margin-bottom: 7px; }
.bio-main .lede { font-size: 18px; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  border-top: 4px solid var(--green);
  color: var(--white);
  text-align: center;
  padding: 32px 0;
}

.cta-band h2 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 6px; }
.cta-band p { color: #c8d2dc; margin-bottom: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-card {
  background: var(--white);
  border: 1px solid #dde2e8;
  border-top: 5px solid var(--navy);
  border-radius: 6px;
  padding: 30px 28px;
  box-shadow: 0 2px 10px rgba(2, 26, 48, 0.06);
}

.contact-card h3 { font-family: var(--serif); color: var(--navy); font-size: 21px; margin-bottom: 4px; }
.contact-card .division { color: var(--green); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.contact-card p { color: var(--grey-dark); font-size: 15.5px; margin-bottom: 8px; }
.contact-card a { color: var(--navy-mid); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--grey-light);
  padding: 32px 0 18px;
  border-top: 4px solid var(--navy);
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 20px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.site-footer .f-byline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--grey-light);
  margin-top: 10px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--grey-light); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.footer-logo { height: 44px; width: auto; margin-bottom: 6px; opacity: 0.92; }

.inline-m2 { height: 1em; width: auto; display: inline-block; vertical-align: -0.14em; }

.footer-bottom {
  border-top: 1px solid rgba(165, 172, 175, 0.25);
  padding-top: 18px;
  text-align: center;
  color: var(--grey);
  font-size: 13.5px;
}

/* ---------- Training ---------- */
.training-list { display: grid; gap: 26px; }

.training-item {
  background: var(--white);
  border: 1px solid #dde2e8;
  border-top: 4px solid var(--navy);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(2, 26, 48, 0.06);
  padding: 30px 30px 26px;
}

.training-item h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.training-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 12px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e4e8ec;
}

.training-meta .meta {
  font-size: 14px;
  color: var(--grey-dark);
}

.training-meta .meta strong {
  display: block;
  color: var(--navy);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1px;
}

.training-item p { color: var(--grey-dark); font-size: 15.5px; margin-bottom: 14px; }
.training-item .t-objectives { margin: 0 0 16px 20px; }
.training-item .t-objectives li { margin-bottom: 6px; color: var(--ink); font-size: 15px; }

.training-item .t-trainers {
  font-size: 14.5px;
  color: var(--grey-dark);
  background: var(--grey-bg);
  border-radius: 5px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.training-item .t-trainers strong { color: var(--navy); }

.pdf-link::before {
  content: "\1F4C4";
  margin-right: 8px;
}

/* ---------- Prose helper ---------- */
.prose { max-width: 820px; }
.prose p { margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 4px solid var(--navy);
    box-shadow: 0 8px 18px rgba(2, 26, 48, 0.18);
  }

  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; padding: 10px 0; }
  .site-nav a { padding: 12px 26px; border-bottom: none; border-left: 4px solid transparent; }
  .site-nav a:hover, .site-nav a.active { border-left-color: var(--green); }

  .service-block { grid-template-columns: 1fr; gap: 10px; }
  .service-block h2 { position: static; }

  .bio-layout { grid-template-columns: 1fr; }
  .bio-sidebar { position: static; max-width: 380px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .brand img { height: 55px; }
  .brand .byline { font-size: 11.5px; }

  .hero { padding: 60px 0 64px; }

  .page-title { padding: 56px 0 64px; }
}
