/* ==========================================================================
   Boom Consultancy Group — site design system
   Clean, framework-free CSS. Self-hosted fonts loaded via /fonts/fonts.css.
   ========================================================================== */

:root {
  --navy: #013a51;
  --navy-deep: #012a3b;
  --navy-soft: #0a4a63;
  --gold: #c89969;
  --gold-dark: #b3824f;
  --ink: #2b3338;
  --body: #4a555b;
  --muted: #7c868c;
  --line: #e5e8ea;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --bg-tint: #f2f0eb;            /* warm gold-tinted panel */
  --white: #ffffff;

  --font-head: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Spectral', Georgia, serif;

  --container: 1240px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(1, 58, 81, .04), 0 12px 32px rgba(1, 58, 81, .08);
  --shadow-sm: 0 1px 2px rgba(1, 58, 81, .05), 0 6px 18px rgba(1, 58, 81, .06);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(21px, 2.4vw, 27px); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .86); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-dark); margin: 0 0 14px;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--body); line-height: 1.6; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 4px; }

/* gold underline accent under a heading */
.accent::after {
  content: ""; display: block; width: 54px; height: 3px; background: var(--gold);
  border-radius: 3px; margin: 18px 0 0;
}
.section-head .accent::after { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 14px 30px; border-radius: var(--radius-sm); border: 2px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: rgba(255, 255, 255, .9); color: var(--navy-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 42px; height: 42px; border-radius: 5px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink);
  padding: 8px 11px; border-radius: var(--radius-sm); position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--gold-dark); }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav .btn { margin-left: 8px; padding: 9px 20px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin: -8px -8px -8px 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(1, 30, 43, .92) 0%, rgba(1, 42, 59, .82) 45%, rgba(1, 58, 81, .55) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero--home { min-height: 560px; display: flex; align-items: center; padding: 96px 0; }
.hero--home h1 { color: #fff; max-width: 15ch; }
.hero--home .lead { color: rgba(255, 255, 255, .9); max-width: 52ch; margin: 8px 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
/* compact page hero for interior pages */
.hero--page { padding: 84px 0 76px; }
.hero--page .eyebrow { color: var(--gold); }
.hero--page h1 { color: #fff; margin-bottom: 14px; }
.hero--page .lead { color: rgba(255, 255, 255, .88); max-width: 60ch; }
.hero--page .pi-logo { height: 46px; width: auto; margin-bottom: 22px; filter: brightness(0) invert(1); opacity: .95; }

/* ---------- split media rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 80px; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.split--reverse .split__media { order: 2; }
.split__body h2, .split__body h3 { margin-bottom: .4em; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 21px; }
.card p { color: var(--body); font-size: 16px; }
.card__num { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 15px; letter-spacing: .1em; margin-bottom: 14px; }
.card--link { color: inherit; }
.card--link .card__more { margin-top: auto; padding-top: 16px; color: var(--gold-dark); font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.card--link:hover h3 { color: var(--navy); }

/* service link cards (home) with icon logo */
.card--service img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 18px; }

/* ---------- story / mission-vision ---------- */
.story__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv__card { background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.mv__card img { position: absolute; top: 32px; right: 32px; width: 40px; height: 40px; opacity: .9; }
.mv__card h3 { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto .4em; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.form label .opt { color: var(--muted); font-weight: 400; }
.form .req { color: var(--gold-dark); }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 153, 105, .16); }
.form textarea { resize: vertical; min-height: 150px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: 15px; min-height: 1px; }
.form-status.ok { color: #1f7a4d; font-weight: 700; }
.form-status.err { color: #b3261e; font-weight: 700; }
.contact-aside { background: var(--navy); color: rgba(255,255,255,.85); border-radius: var(--radius); padding: 40px; }
.contact-aside h3 { color: #fff; }
.contact-aside a { color: var(--gold); }
.contact-aside .item { margin-top: 22px; }
.contact-aside .item span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .68); }
.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 64px 0; }
.footer-cta .inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; margin: 0 0 8px; }
.footer-cta p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 46ch; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 60px 0 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 5px; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 18px; }
.footer-main p { font-size: 15px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255, 255, 255, .7); font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .55); }
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; gap: 2px;
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 13px 8px; font-size: 16px; border-bottom: 1px solid var(--bg-alt); }
  .nav a.is-active::after { display: none; }
  .nav .btn { margin: 10px 8px 0; justify-content: center; }
  .nav-toggle { display: block; }
  .split, .contact-grid, .mv { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__media { order: 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-cta .inner { flex-direction: column; align-items: flex-start; }
  .hero--home { min-height: 480px; }
}
