/* ============================================================
   Build & Comply Consulting Group — design system
   Navy = authority, Blue = clarity/trust, Gold = seal/earned accent
   Type: Spectral (headlines) + Public Sans (body/UI — USWDS typeface,
   chosen deliberately to echo the federal/regulatory subject matter)
   ============================================================ */

:root {
  --navy: #0e2a47;
  --navy-deep: #081a2e;
  --navy-soft: #163758;
  --blue: #3f719c;
  --blue-pale: #eaf2f8;
  --gold: #ad8a3f;
  --gold-light: #dcc07e;
  --paper: #faf9f6;
  --white: #ffffff;
  --ink: #1b2430;
  --ink-soft: #4a5568;
  --line: #dde3ea;

  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --radius: 3px;
  --shadow: 0 18px 40px -22px rgba(8, 26, 46, 0.35);

  color-scheme: light;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.5rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; max-width: 62ch; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink); max-width: 56ch; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

ul { padding: 0; margin: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

section { padding: 100px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.rule-gold {
  width: 46px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 0 0 22px;
}

.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--blue);
  font-size: 1.05rem;
  margin: 0 0 10px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); transform: translateY(-1px); }

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

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo-text {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.2;
}
.nav-logo-text strong { display: block; font-weight: 600; }
.nav-logo-text span { display: block; font-size: 0.72rem; color: var(--gold-light); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--white);
  cursor: pointer;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 32px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-cta { margin-left: 0; margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.hero::before {
  /* subtle fluted-column texture, referencing the crest */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 34px
  );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 92px 32px 110px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 { color: var(--white); }
.hero .kicker { color: var(--gold-light); }
.hero p.lede { color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
}
.hero-stats div strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--white);
  font-weight: 500;
}
.hero-stats div span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); }

.hero-art { position: relative; }
.hero-logo {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 0 auto;
}

.hero-badge {
  position: relative;
  z-index: 2;
  background: var(--white);
  color: var(--navy);
  max-width: 250px;
  padding: 20px 22px;
  margin-top: -80px;
  margin-left: 6%;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}
.hero-badge p { color: var(--ink); font-size: 0.92rem; margin: 0; font-style: italic; font-family: var(--serif); }
.hero-badge span { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--blue); font-style: normal; font-family: var(--sans); font-weight: 600; }
.hero-badge-below { margin-top: 24px; max-width: 300px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art { order: -1; max-width: 420px; }
  .hero-badge { margin-left: 0; }
}

/* ---------- Trust / credibility strip ---------- */
.trust {
  background: var(--navy-deep);
  color: var(--white);
  padding: 56px 0;
}
.trust-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.trust-head h2 { color: var(--white); font-size: 1.4rem; margin: 0; }
.trust-head p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.95rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.trust-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.trust-card img { width: 100%; height: 260px; object-fit: cover; }
.trust-card figcaption {
  padding: 14px 18px;
  background: rgba(8, 26, 46, 0.85);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.trust-card figcaption strong { color: var(--gold-light); display: block; font-size: 0.78rem; letter-spacing: 0.02em; margin-bottom: 2px; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Section headers ---------- */
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Why it matters — stat cards ---------- */
.matters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.matters-card {
  background: var(--paper);
  padding: 36px 32px;
}
.matters-card .rule-gold { margin-top: 0; }
.matters-card h3 { margin-bottom: 12px; }
.matters-card p { margin: 0; font-size: 0.97rem; }
@media (max-width: 860px) { .matters-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { background: var(--blue-pale); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 28px 28px;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--navy); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; }
@media (max-width: 940px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.services-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  max-width: 720px;
}
.services-note p { margin: 0; font-size: 0.95rem; }

/* ---------- About teaser (home) ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-teaser-photo { position: relative; }
.about-teaser-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}
.credential-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--blue-pale);
  border: 1px solid rgba(63, 113, 156, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
}
.chip svg { width: 13px; height: 13px; color: var(--gold); }
@media (max-width: 860px) { .about-teaser { grid-template-columns: 1fr; gap: 36px; } .about-teaser-photo img { height: 340px; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
  position: relative;
  border-top: 1px solid var(--gold);
}
.cta-band h2 { color: var(--white); max-width: 640px; margin: 0 auto 14px; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 34px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 52px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.93rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 34px);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 720px; }
.page-hero p.lede { color: rgba(255,255,255,0.78); }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }

/* ---------- About page specifics ---------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-hero-photo { position: relative; }
.about-hero-frame {
  position: absolute; inset: 16px -16px auto auto;
  width: 90%; height: 92%;
  border: 1px solid rgba(220,192,126,0.45);
}
.about-hero-photo img {
  position: relative; z-index: 1;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  width: 88%;
  height: 480px;
  object-fit: cover;
  object-position: top;
}
@media (max-width: 860px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-hero-photo { order: -1; max-width: 360px; margin: 0 auto; }
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
}
.bio-copy blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.4;
  margin: 36px 0;
  padding-left: 26px;
  border-left: 3px solid var(--gold);
}
.bio-side {
  background: var(--blue-pale);
  padding: 30px 26px;
  height: fit-content;
  border-top: 3px solid var(--gold);
}
.bio-side h4 { margin-bottom: 16px; }
.bio-side ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--ink);
}
.bio-side ul li svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 3px; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; } }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 14px;
}
.gallery figure { position: relative; margin: 0; overflow: hidden; grid-column: span 3; grid-row: span 2; }
.gallery figure.tall { grid-row: span 3; }
.gallery figure.wide { grid-column: span 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(8,26,46,0.88), transparent);
  color: var(--white);
  font-size: 0.82rem;
  padding: 30px 16px 12px;
}
.gallery figcaption strong { display: block; color: var(--gold-light); font-size: 0.72rem; margin-bottom: 2px; }
@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery figure, .gallery figure.wide { grid-column: span 1; grid-row: span 1; }
  .gallery figure.tall { grid-row: span 1; }
}

/* ---------- Resources page ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.focus-card { background: var(--white); padding: 26px 20px; text-align: left; }
.focus-card h4 { margin-bottom: 6px; font-size: 0.98rem; }
.focus-card p { margin: 0; font-size: 0.85rem; }
@media (max-width: 940px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q .plus { font-size: 1.3rem; color: var(--gold); font-family: var(--sans); transition: transform 0.2s ease; flex: none; }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { padding-bottom: 20px; margin: 0; font-size: 0.96rem; }

.signup-band {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}
.signup-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.signup-grid h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.signup-grid p { color: rgba(255,255,255,0.68); margin: 0; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input {
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--sans);
  min-width: 260px;
  border-radius: var(--radius);
}
.signup-form input::placeholder { color: rgba(255,255,255,0.5); }
.signup-form input:focus { outline: 2px solid var(--gold); }

/* ---------- Services page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.service-block .num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-style: italic; }
.service-block h3 { margin-bottom: 8px; }
.service-block .for-who { font-size: 0.86rem; color: var(--blue); font-weight: 600; margin-top: 10px; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.process-step { position: relative; padding-top: 20px; }
.process-step .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; margin: 0; }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px; right: -14px;
  width: 8px; height: 1px;
  background: var(--line);
}
@media (max-width: 940px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.schedule-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
}
.schedule-info { background: var(--navy); color: var(--white); padding: 44px 38px; align-self: start; }
.schedule-info h3 { color: var(--white); }
.schedule-info p { color: rgba(255,255,255,0.72); }
.schedule-info ul { margin-top: 24px; }
.schedule-info ul li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.schedule-info ul li svg { width: 15px; height: 15px; color: var(--gold-light); margin-top: 3px; flex: none; }

.calendly-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
.form-note a { font-weight: 600; }
@media (max-width: 900px) { .schedule-wrap { grid-template-columns: 1fr; } }

/* Fade-in on load for hero only (single orchestrated moment) */
.hero-grid > * { opacity: 0; animation: rise 0.7s ease forwards; }
.hero-grid .hero-copy { animation-delay: 0.05s; }
.hero-grid .hero-art { animation-delay: 0.2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid > * { opacity: 1; animation: none; }
}
