/* Excellus Consulting Group - site styles
   Layout idea: navy masthead and hero, white reading surface, ruled sections on a 12-col grid,
   one muted gold accent used for rules, eyebrows and primary actions only. */
:root {
  color-scheme: light;
  --navy: #0b1d38;
  --navy-2: #12294b;
  --ink: #16243a;
  --slate: #56637a;
  --line: #d8dde6;
  --mist: #f3f5f8;
  --paper: #ffffff;
  --gold: #c8a55c;
  --gold-ink: #86661f;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mark: "Playfair Display", Georgia, serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 6px; }
.brand .b1 { font-family: var(--font-mark); font-weight: 700; font-size: 1.3rem; letter-spacing: .08em; color: var(--gold); }
.brand .b2 { font-size: .62rem; letter-spacing: .3em; color: #b9c3d4; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav a, .nav button.sub-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: #e6ebf3; text-decoration: none;
  font: 500 .93rem var(--font-body); background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.sub-toggle:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav button.sub-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 280px; background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 14px 34px rgba(11,29,56,.18); padding: 8px 0; }
.sub a { display: block; color: var(--ink); padding: 9px 18px; font-weight: 400; }
.sub a:hover { background: var(--mist); color: var(--navy); }
.nav > li.open > .sub { display: block; }
@media (min-width: 1041px) { .nav > li:hover > .sub, .nav > li:focus-within > .sub { display: block; } }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; font: 600 .95rem var(--font-body); text-decoration: none; border: 1.5px solid transparent; border-radius: 2px; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d8b972; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.nav a.btn { margin-left: 10px; padding: 10px 16px; color: var(--navy); background: var(--gold); }
.nav a.btn:hover { color: var(--navy); background: #d8b972; }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; padding: 9px 12px; font: 600 .85rem var(--font-body); border-radius: 2px; cursor: pointer; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-header nav { display: contents; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 22px; border-top: 1px solid rgba(255,255,255,.12); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a, .nav button.sub-toggle { width: 100%; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .sub { position: static; box-shadow: none; background: transparent; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .sub a { color: #c9d2e0; border-bottom: 0; padding: 9px 0; }
  .sub a:hover { background: transparent; color: var(--gold); }
  .nav a.btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; width: 100%; }
}

/* Hero */
.hero { background: var(--navy); color: #dfe6f0; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; }
.hero h1 span { display: block; }
.hero .lede { font-size: 1.15rem; max-width: 34em; margin-top: 22px; color: #c9d3e2; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { border: 1px solid rgba(255,255,255,.14); background: var(--navy-2); }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art figcaption { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8e9bb2; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.12); }
.eyebrow { font: 600 .74rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.hero .eyebrow, .band-navy .eyebrow, .page-head .eyebrow { color: var(--gold); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Page head (inner pages) */
.page-head { background: var(--navy); color: #c9d3e2; }
.page-head .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 20em; }
.page-head .lede { font-size: 1.12rem; max-width: 42em; margin-top: 20px; }
.crumbs { font-size: .82rem; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; color: #93a1b8; }
.crumbs a { color: #b9c3d4; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #5f6f8a; }

/* Sections */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.band-mist { background: var(--mist); }
.band-navy { background: var(--navy); color: #c9d3e2; border-top: 0 !important; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a:not(.btn) { color: var(--gold); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(30px, 4vw, 52px); align-items: end; }
.sec-head p.intro { color: var(--slate); max-width: 38em; }
.band-navy .sec-head p.intro { color: #b9c3d4; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.prose { max-width: 42em; display: grid; gap: 18px; }
.prose p { color: var(--ink); }
.statement { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.4; color: var(--navy); max-width: 32em; font-weight: 500; }

/* Grids */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } }

/* Practice panels */
.practice { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.practice .mark { height: 56px; color: var(--navy); }
.practice .mark svg { height: 56px; width: auto; display: block; }
.practice ul { display: grid; gap: 9px; font-size: .97rem; color: var(--ink); }
.practice li { padding-left: 18px; position: relative; }
.practice li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1.5px; background: var(--gold); }
.practice .more { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; color: var(--navy); border-bottom: 1.5px solid var(--gold); align-self: flex-start; }
.practice .more:hover { color: var(--gold-ink); }

/* Ruled list items */
.item { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.item p { color: var(--slate); font-size: .98rem; }
.band-navy .item { border-top-color: rgba(255,255,255,.18); }
.band-navy .item p { color: #b9c3d4; }
.item .n { font: 600 .78rem var(--font-body); letter-spacing: .14em; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.band-navy .item .n { color: var(--gold); }

.linklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(18px, 3vw, 40px); }
.linklist a { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; }
.linklist a::after { content: "\2192"; color: var(--gold-ink); }
.linklist a:hover { color: var(--gold-ink); }
@media (max-width: 640px) { .linklist { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.aside { border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 24px; background: #fff; display: grid; gap: 14px; }
.aside h3 { font-size: 1.02rem; }
.aside ul { display: grid; gap: 8px; font-size: .96rem; }
.aside a { text-decoration: none; border-bottom: 1px solid var(--line); }
.note { font-size: .9rem; color: var(--slate); border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; max-width: 46em; }

/* Insights */
.post { border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; align-content: start; background: #fff; }
.post .meta { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.post p { color: var(--slate); font-size: .97rem; }
.post .by { font-size: .84rem; color: var(--slate); }

/* CTA */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cta .right { display: grid; gap: 14px; justify-items: start; }
.cta .mail { font-family: var(--font-display); font-size: 1.2rem; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Forms */
form.inquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
form.inquiry .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
input, select, textarea { width: 100%; font: 400 1rem var(--font-body); color: var(--ink); background: #fff; border: 1px solid #b8c0cd; border-radius: 2px; padding: 12px 13px; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; padding: 14px 16px; background: var(--mist); border-left: 3px solid var(--gold); font-size: .95rem; }
.form-msg[hidden] { display: none; }
@media (max-width: 640px) { form.inquiry { grid-template-columns: 1fr; } }
.contact-facts { display: grid; gap: 22px; }
.contact-facts dt { font: 600 .74rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.contact-facts dd { margin: 0; }
dl { margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c3d4; font-size: .93rem; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: clamp(24px, 4vw, 48px); padding-top: 56px; padding-bottom: 44px; }
.site-footer h2 { font: 600 .74rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: #dbe2ec; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .about p { margin-top: 16px; max-width: 26em; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 26px; font-size: .84rem; color: #8e9bb2; }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
