/* ===== Integrity Advisory — corporate stylesheet ===== */

:root {
  --navy: #0B2E59;
  --navy-2: #123A5E;
  --navy-deep: #082140;
  --steel: #0F6A4B;
  --steel-light: #E6F0EB;
  --gold: #C8A24A;
  --ink: #2F343B;
  --gray: #5B6673;
  --gray-light: #8593A1;
  --line: #E2E7ED;
  --mist: #F6F8FA;
  --white: #FFFFFF;

  --font: 'Inter', Arial, Helvetica, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
h1 { font-size: clamp(32px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 2.8vw, 32px); }
h3 { font-size: 18px; }
h4 { font-size: 14px; letter-spacing: .5px; }

p { margin: 0 0 14px; color: var(--gray); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); display: inline-block; }

.lede { font-size: 18px; color: var(--gray); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 3px;
  font-weight: 700; font-size: 14px; letter-spacing: .3px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #a3813f; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 32px; max-width: var(--maxw); margin: 0 auto;
}
header.site .logo-mark { height: 112px; width: auto; }
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a { font-size: 14px; font-weight: 600; color: var(--ink); position: relative; padding: 4px 0; }
nav.main a.active, nav.main a:hover { color: var(--steel); }
nav.main a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.menu-toggle { display: none; }

/* Utility bar (Withum-style top strip) */
.utility-bar { background: var(--navy-deep); color: #9FB0C0; font-size: 12.5px; }
.utility-bar .wrap { display: flex; justify-content: flex-end; gap: 22px; padding: 8px 32px; max-width: var(--maxw); }
.utility-bar a { color: #9FB0C0; font-weight: 600; }
.utility-bar a:hover { color: var(--gold); }

/* Mega menu */
nav.main { position: relative; }
.has-mega { position: relative; }
.mega-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(10,37,64,0.12);
  border-radius: 6px; padding: 26px 28px; display: none; z-index: 60;
  width: max-content; max-width: 640px;
}
.has-mega:hover .mega-panel { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 36px; }
.mega-grid .mega-col h5 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--steel); margin: 0 0 10px; font-weight: 700; }
.mega-grid .mega-col a { display: block; font-size: 14px; font-weight: 500; color: var(--ink); padding: 5px 0; }
.mega-grid .mega-col a:hover { color: var(--steel); }
@media (max-width: 900px) { .mega-panel { position: static; transform: none; box-shadow: none; border: none; padding: 6px 0 6px 14px; width: auto; display: block !important; } .mega-grid { grid-template-columns: 1fr; gap: 4px; } }

/* Hero stats strip (directly under hero, Withum-style) */
.hero-stats { background: var(--navy); padding: 40px 0; }
.hero-stats .stats .num { color: var(--white); font-size: 34px; }
.hero-stats .stats .label { color: #8FA5BC; }

/* Industry pills (Withum "Industries We Work With" style) */
.industry-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.industry-pills a { background: var(--white); border: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 3px; transition: all .15s ease; }
.industry-pills a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Brand statement section (our equivalent of a signature brand device) */
.brand-statement { text-align: center; padding: 90px 0; }
.brand-statement .mark { width: 46px; height: 46px; margin: 0 auto 24px; }
.brand-statement h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 780px; margin: 0 auto 18px; }
.brand-statement p { max-width: 640px; margin: 0 auto; font-size: 16px; }

/* Footer newsletter */
.footer-newsletter { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.footer-newsletter input { flex: 1; min-width: 180px; padding: 11px 14px; border-radius: 3px; border: 1.5px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); color: var(--white); font-family: var(--font); font-size: 13.5px; }
.footer-newsletter input::placeholder { color: #7086A0; }
.footer-newsletter button { background: var(--gold); color: var(--navy-deep); border: none; padding: 11px 20px; border-radius: 3px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }

@media (max-width: 900px) {
  nav.main { position: fixed; inset: 64px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 26px 32px; gap: 20px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  nav.main.open { transform: translateX(0); }
  .menu-toggle { display: block; background: none; border: none; cursor: pointer; }
  .nav-cta .btn { display: none; }
}

/* Hero */
.hero { padding: 76px 0 60px; background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.hero .grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-divisions { font-size: 13.5px; font-weight: 600; color: var(--gray-light); letter-spacing: .3px; margin-top: 6px; }

/* Practice area diagram (signature visual) */
.diagram-card { background: var(--navy); border-radius: 6px; padding: 32px; color: var(--white); }
.diagram-card .diagram-title { font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 18px; }
.diagram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diagram-cell { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 16px 14px; }
.diagram-cell .n { font-family: var(--font); font-size: 22px; font-weight: 800; color: var(--white); }
.diagram-cell .l { font-size: 12px; color: #B7C4D1; margin-top: 4px; line-height: 1.4; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #B7C4D1; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Practice pillars grid (home) */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar-card { border: 1px solid var(--line); background: var(--white); padding: 28px 24px; border-radius: 4px; transition: transform .2s ease, box-shadow .2s ease; }
.pillar-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(10,37,64,0.08); }
.pillar-card .num-badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--steel); background: var(--steel-light); padding: 3px 9px; border-radius: 20px; margin-bottom: 14px; }
.pillar-card h3 { margin-bottom: 8px; font-size: 19px; }
.pillar-card p { font-size: 14.5px; margin-bottom: 14px; }
.pillar-card a { font-size: 13px; font-weight: 700; color: var(--navy); }
@media (max-width: 980px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } .hero .grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pillars-grid { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 38px; font-weight: 800; color: var(--gold); }
.stat .label { font-size: 13px; letter-spacing: .5px; color: #B7C4D1; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

/* Methodology */
.methodology { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.method-step { position: relative; padding: 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.method-step .step-num { font-size: 34px; font-weight: 800; color: var(--steel-light); position: absolute; top: 12px; right: 16px; }
.method-step h3 { margin-bottom: 8px; font-size: 17px; }
.method-step p { font-size: 13.5px; margin-bottom: 0; }
@media (max-width: 900px) { .methodology { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .methodology { grid-template-columns: 1fr; } }

/* Service category blocks (services page) */
.division-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 46px 0 22px; border-bottom: 2px solid var(--navy); margin-bottom: 8px; flex-wrap: wrap; }
.division-header h2 { margin: 0; }
.division-count { font-size: 13px; font-weight: 700; color: var(--steel); letter-spacing: .3px; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 28px 0 8px; }
.category-block h4 { color: var(--navy); font-size: 14.5px; letter-spacing: .3px; text-transform: uppercase; margin-bottom: 4px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.category-block .count { display: block; font-size: 12px; color: var(--gray-light); font-weight: 600; margin-bottom: 12px; }
.category-block ul { list-style: none; margin: 0; padding: 0; }
.category-block li { font-size: 13.5px; color: var(--gray); padding: 5px 0; border-bottom: 1px dotted var(--line); }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }

/* Sub-service cards with description (CFO/consulting style) */
.subservice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 24px 0; }
.subservice-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 24px 22px; }
.subservice-card .icon-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--steel-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--steel); font-weight: 800; font-size: 14px; }
.subservice-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.subservice-card p { font-size: 13.5px; margin: 0; }
@media (max-width: 900px) { .subservice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .subservice-grid { grid-template-columns: 1fr; } }

/* Division intro row */
.division-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-top: 40px; }
.division-intro .badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.division-intro .badge { background: var(--steel-light); color: var(--steel); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 20px; }
@media (max-width: 900px) { .division-intro { grid-template-columns: 1fr; } }

/* Heritage timeline */
.journey { }
.journey::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px);
}
.heritage-stop { position: relative; text-align: center; flex: 1; z-index: 1; }
.heritage-stop .hdot { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); margin: 0 auto 12px; position: relative; z-index: 2; }
.heritage-stop.end .hdot { background: var(--gold); border-color: var(--gold); }
.heritage-stop span { font-size: 15px; font-weight: 800; color: var(--navy); display: block; }
.heritage-stop .hcap { font-size: 11.5px; color: var(--gray-light); margin-top: 4px; }
@media (max-width: 760px) {
  .journey { flex-wrap: wrap; gap: 24px 0; }
  .journey::before { display: none; }
  .heritage-stop { flex: 0 0 33%; }
}
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.data-table th { text-align: left; background: var(--navy); color: var(--white); padding: 12px 16px; font-weight: 700; font-size: 13px; letter-spacing: .3px; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--gray); }
.data-table tr:nth-child(even) td { background: var(--mist); }
.data-table td:first-child { font-weight: 700; color: var(--navy); }

/* Industries tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span { background: var(--white); border: 1px solid var(--line); color: var(--navy); font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 20px; }

/* Values / structure grid */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 24px 20px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.value-card.steel { border-top-color: var(--steel); }
.value-card.gold { border-top-color: var(--gold); }
.value-card.ink { border-top-color: var(--ink); }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--white); }

/* Footer */
footer.site { background: var(--navy-deep); color: #9FB0C0; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { display: block; font-size: 14px; color: #9FB0C0; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--gold); }
.footer-logo { height: 88px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* Page hero (inner pages) */
.page-hero { padding: 50px 0 44px; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero .breadcrumb { font-size: 12.5px; color: var(--steel); font-weight: 700; letter-spacing: .5px; margin-bottom: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-card .ico { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.contact-card h4 { margin: 0 0 4px; font-size: 14px; color: var(--navy); text-transform: none; letter-spacing: 0; }
.contact-card p { margin: 0; font-size: 14px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 3px; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--white); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--steel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Services hub cards (services/index.html) */
.service-hub-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.service-hub-card .shc-info { padding: 34px 32px; }
.service-hub-card .shc-visual { background: var(--navy); display: flex; flex-direction: column; justify-content: center; padding: 34px 32px; color: var(--white); }
.service-hub-card .shc-visual .big-num { font-size: 46px; font-weight: 800; color: var(--gold); }
.service-hub-card .shc-visual .big-label { font-size: 13px; color: #B7C4D1; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.service-hub-card h3 { font-size: 22px; margin-bottom: 10px; }
.service-hub-card .cat-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.service-hub-card .cat-list span { background: var(--steel-light); color: var(--steel); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
@media (max-width: 800px) { .service-hub-card { grid-template-columns: 1fr; } }

/* Breadcrumb trail for sub-pages */
.crumb-trail { font-size: 13px; color: var(--gray-light); margin-bottom: 8px; }
.crumb-trail a { color: var(--steel); font-weight: 600; }
.crumb-trail a:hover { text-decoration: underline; }

/* Industry detail page grid */
.industry-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.industry-group h4 { color: var(--navy); font-size: 15px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.industry-group ul { list-style: none; margin: 0; padding: 0; }
.industry-group li { padding: 6px 0; font-size: 14px; color: var(--gray); border-bottom: 1px dotted var(--line); }
@media (max-width: 900px) { .industry-groups { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .industry-groups { grid-template-columns: 1fr; } }
