/* ============ Mase Services — enterprise theme ============ */
:root {
  --navy: #0e2440;
  --navy-deep: #091a30;
  --steel: #33475f;
  --ink: #1f2a37;
  --muted: #5c6b7c;
  --line: #d9e0e8;
  --line-dark: #23374f;
  --bg-soft: #f5f7f9;
  --bg-band: #eef2f5;
  --gold: #b98d2f;
  --link: #14538f;
  --white: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; color: var(--navy); letter-spacing: -0.2px; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--navy-deep); color: #b7c4d4; font-size: 12.5px; padding: 7px 0;
}
.utility .container { display: flex; justify-content: flex-end; gap: 28px; }
.utility a { color: #b7c4d4; text-decoration: none; }
.utility a:hover { color: #fff; }

/* ---------- Header ---------- */
header.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.wordmark { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: 0.2px; }
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--gold); }
nav.menu { display: flex; gap: 34px; align-items: center; }
nav.menu > a { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; padding: 26px 0; border-bottom: 3px solid transparent; }
nav.menu > a:hover, nav.menu > a.active { border-bottom-color: var(--gold); color: var(--navy); }
.btn {
  display: inline-block; padding: 13px 28px; font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.3px; text-decoration: none; border: none; cursor: pointer;
  transition: background .15s ease; font-family: var(--sans);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--steel); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a37b24; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-line { border: 1px solid var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  background-image: linear-gradient(rgba(9,26,48,.55), rgba(9,26,48,.85)),
    repeating-linear-gradient(115deg, transparent 0 120px, rgba(255,255,255,.025) 120px 121px);
  color: #fff; padding: 110px 0 100px; border-bottom: 4px solid var(--gold);
}
.hero .eyebrow, .kicker {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700; color: var(--gold); font-family: var(--sans);
}
.hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.12; max-width: 820px; margin-top: 20px; }
.hero p.lede { margin-top: 24px; font-size: 19px; color: #c2cedd; max-width: 640px; font-weight: 300; }
.hero .cta-row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Page hero (interior pages) */
.page-hero { background: var(--navy); color: #fff; padding: 68px 0 60px; border-bottom: 4px solid var(--gold); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); margin-top: 14px; max-width: 800px; }
.page-hero p { color: #c2cedd; margin-top: 16px; max-width: 680px; font-size: 17.5px; font-weight: 300; }
.breadcrumb { font-size: 13px; color: #8fa3ba; }
.breadcrumb a { color: #b7c4d4; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-band { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section-title { font-size: clamp(28px, 3.2vw, 38px); margin-top: 12px; }
p.section-sub { color: var(--muted); font-size: 17px; max-width: 720px; margin-top: 16px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 48px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy);
  padding: 34px 30px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.card .more::after { content: " →"; }

/* ---------- Insight cards ---------- */
.insight-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.insight-card .thumb { height: 170px; position: relative; }
.thumb-a { background: linear-gradient(135deg, #0e2440 0%, #33475f 70%, #b98d2f 140%); }
.thumb-b { background: linear-gradient(135deg, #14304f 0%, #0e2440 60%), repeating-linear-gradient(45deg, rgba(185,141,47,.25) 0 2px, transparent 2px 26px); }
.thumb-c { background: radial-gradient(circle at 75% 25%, rgba(185,141,47,.5), transparent 55%), linear-gradient(160deg, #33475f, #0e2440); }
.insight-card .thumb .tag {
  position: absolute; left: 0; bottom: 0; background: var(--gold); color: #fff;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; padding: 6px 14px;
}
.insight-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.insight-card h3 { font-size: 19px; line-height: 1.35; }
.insight-card h3 a { color: var(--navy); }
.insight-card p { color: var(--muted); font-size: 14.5px; margin-top: 12px; flex: 1; }
.insight-card .meta { font-size: 12.5px; color: #8895a5; margin-top: 18px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Stats ---------- */
.stat-band { background: var(--navy); color: #fff; padding: 64px 0; }
.stat-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat h3 { font-size: 42px; color: #fff; font-family: var(--serif); }
.stat h3 em { font-style: normal; color: var(--gold); }
.stat p { color: #a9b8ca; font-size: 14px; margin-top: 6px; max-width: 220px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: start; }
.split h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 12px; }
.split p { color: var(--muted); margin-top: 16px; }
.rule-list { list-style: none; margin-top: 28px; }
.rule-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list strong { color: var(--navy); display: block; font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.rule-list span { color: var(--muted); font-size: 14.5px; }

.side-panel { background: var(--bg-soft); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 36px 32px; }
.side-panel h3 { font-size: 20px; margin-bottom: 20px; }
.side-panel ul { list-style: none; }
.side-panel li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.side-panel li:last-child { border-bottom: none; }
.side-panel li span:last-child { color: var(--steel); font-weight: 600; white-space: nowrap; font-size: 13.5px; }

/* ---------- Article ---------- */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 72px; }
.article h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.18; }
.article .byline { color: #8895a5; font-size: 13.5px; text-transform: uppercase; letter-spacing: 1.2px; margin-top: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 26px; margin: 44px 0 14px; }
.article h3 { font-size: 20px; margin: 32px 0 10px; }
.article p { margin: 16px 0; color: #34414f; font-size: 16.5px; }
.article ul, .article ol { margin: 16px 0 16px 24px; color: #34414f; font-size: 16.5px; }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 3px solid var(--gold); padding: 8px 0 8px 24px; margin: 28px 0;
  font-family: var(--serif); font-size: 21px; color: var(--navy); line-height: 1.5;
}
.aside-box { background: var(--bg-soft); border: 1px solid var(--line); padding: 30px 28px; margin-bottom: 26px; }
.aside-box h4 { font-family: var(--serif); color: var(--navy); font-size: 18px; margin-bottom: 14px; }
.aside-box ul { list-style: none; }
.aside-box li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.aside-box li:last-child { border-bottom: none; }

/* ---------- Definition / glossary ---------- */
.definition { background: var(--bg-soft); border-left: 4px solid var(--gold); padding: 34px 38px; margin-top: 40px; }
.definition p { font-family: var(--serif); font-size: 21px; color: var(--navy); line-height: 1.55; }
.term-list { columns: 3; column-gap: 40px; margin-top: 36px; list-style: none; }
.term-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; break-inside: avoid; }

/* ---------- Leadership / values ---------- */
.person { border: 1px solid var(--line); background: var(--white); }
.person .photo { height: 210px; background: linear-gradient(160deg, #33475f, #0e2440); position: relative; }
.person .photo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 34%, rgba(255,255,255,.14) 0 46px, transparent 47px),
              radial-gradient(ellipse 62px 50px at 50% 78%, rgba(255,255,255,.14), transparent 70%);
}
.person .body { padding: 24px; }
.person h3 { font-size: 18px; }
.person .role { color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-top: 4px; }
.person p { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 84px 0; border-top: 4px solid var(--gold); }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); max-width: 560px; }
.cta-band p { color: #b7c4d4; margin-top: 12px; max-width: 520px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; margin-top: 48px; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 40px; }
label { font-size: 13px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; letter-spacing: .3px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); font-family: var(--sans);
  font-size: 15px; margin-bottom: 20px; background: #fbfcfd; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(20,83,143,.3); border-color: var(--link); }
.office { padding: 24px 0; border-bottom: 1px solid var(--line); }
.office h3 { font-size: 17px; }
.office p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #9fb0c3; padding: 72px 0 36px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; }
footer .wordmark { color: #fff; font-size: 22px; }
footer .wordmark span { color: var(--gold); }
footer h4 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-family: var(--sans); font-weight: 700; }
footer ul { list-style: none; }
footer li { margin-bottom: 11px; }
footer a { color: #9fb0c3; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 56px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #6d8098; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom nav a { color: #6d8098; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  nav.menu { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split, .grid-2, .article-wrap, .contact-grid { grid-template-columns: 1fr; }
  .stat-band .container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .term-list { columns: 2; }
}
@media (max-width: 580px) {
  .grid-3, .grid-4, .stat-band .container { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .term-list { columns: 1; }
}
