/* =====================================================================
   BernardFrank : shared site stylesheet
   One source of truth for: theme tokens, text visibility, header, footer.
   Loaded LAST on every page so it wins over page-level styles.
   Palette: ink #211B1D · blue #6F97AC · red #C4161C · yellow #F9BA08 · white
   ===================================================================== */

:root {
  --ink: #211B1D;
  --blue: #6F97AC;
  --blue-deep: #3D6A82;      /* accent blue for small text on white (readable) */
  --red: #C4161C;
  --yellow: #F9BA08;

  /* Every "muted / grey / light" text token is now solid ink */
  --muted: #000;
  --text: #000;
  --text-light: #000;
  --text-muted: #000;
  --text-body: #000;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --off-white: #F6F6F7;
  --offwhite: #ffffff;
  --btn-red: #F9BA08;
  --btn-red-hover: #F9BA08;
}

/* ---------- Base typography: dark, bold enough to read ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: #000;
  font-weight: 500;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
p, li, td, th, label, address, small, blockquote, figcaption, dd, dt { font-weight: 500; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
p, li, td, th, label, address, h1, h2, h3, h4, h5, h6 { color: #000; }
a { text-decoration: none; }

/* Small accent labels on light backgrounds: darker blue, bold */
.eyebrow, .mv-label, .hero-label, .section-label {
  font-weight: 700 !important;
}
.section .eyebrow, .section-head .eyebrow, .section-title .eyebrow,
.mv-label, .about-text .eyebrow, .contact-section .eyebrow {
  color: #000;
}

/* Accent-blue text sitting on white/light areas -> darker blue so it is readable */
.eyebrow, .mv-label, .section-label, .team-role, .leader-role, .ext-role, .case-cat,
.principle .num, .why .section-title .eyebrow,
.culture-section .eyebrow, .clients-label span, .section-head .eyebrow { color: #000 !important; }
.eyebrow, .team-role, .leader-role, .ext-role, .case-cat, .section-label { font-weight: 700; }

/* On dark sections: pure white text, never translucent */
.footer h1,.footer h2,.footer h3,.footer p,.footer li,.hero h1,.hero h2,.hero p,.subhero h1,.subhero p,.cta-banner h2,.cta-banner p,.service-nav a { color:#fff; }
.footer h4 { color: var(--yellow); }
.hero p, .hero .lead, .subhero p, .hero-content p, .hero-inner p,
.crumbs, .hero-stat .lbl, .badge-text span, .hero-badge-item .bs,
.footer p {
  color: #fff !important;
  font-weight: 500;
}
.crumbs { font-weight: 700; }

/* Labels inside dark heroes keep the lighter accent blue */
.hero .eyebrow, .subhero .eyebrow, .hero-label, .subhero .hero-label,
.subhero h1 em, .hero h1 span, .hero-label, .subhero .hero-label, .crumbs a { color: var(--blue) !important; }

/* ---------- Minimal sub-page heroes (match the home hero) ---------- */
.subhero-overlay {
  background: linear-gradient(100deg,
    rgba(33,27,29,.88) 0%, rgba(33,27,29,.70) 45%, rgba(33,27,29,.55) 100%) !important;
}
.subhero-bg { filter: brightness(.55) saturate(.8) !important; }
.hero::before { background-image: none !important; }   /* remove dot-grid texture */
.gold-line, .hero-divider, .divider { background: var(--blue) !important; }

/* =====================================================================
   HEADER (identical on every page)
   ===================================================================== */
.container { max-width: 100%; width: 100%; margin: 0; padding: 0 28px; }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1300;
  height: 70px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.navbar.scrolled { background: #fff; border-bottom-color: rgba(33,27,29,.14); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-head); font-size: 1.25rem; font-weight: 700; color: #fff;
}
.logo-mark { width: 128px; height: 128px; object-fit: contain; display: block; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links li a {
  position: relative;
  color: #fff;
  font-size: .97rem; font-weight: 600;
  letter-spacing: .3px; text-transform: uppercase;
  padding: 8px 14px;
  transition: color .2s;
}
.nav-links li a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }
.nav-links li a:hover, .nav-links li a.active { color: #fff; background: transparent; }

.navbar.scrolled .nav-links li a { color: #000; }
.navbar.scrolled .nav-links li a::after { background: var(--blue); }
.navbar.scrolled .nav-links li a:hover,
.navbar.scrolled .nav-links li a.active { color: #000; background: transparent; }

/* CTA button: same yellow everywhere */
.nav-cta a,
.nav-cta a.btn, .nav-cta a.btn-primary {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: #000 !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}
.navbar.scrolled .nav-links .nav-cta a,
.nav-links .nav-cta a:hover { color: #000 !important; background: var(--yellow) !important; }
.nav-cta a::after { display: none; }

/* Yellow buttons site-wide, dark bold text */
.btn-primary, a.btn-primary, button.btn-primary,
.btn-dark, a.btn-dark, button.btn-dark,
.btn-solid, .btn-gold, .btn-submit, button.btn-submit {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: #000 !important;
  font-weight: 700 !important;
}
.btn-outline { color: #fff !important; border-color: #fff !important; font-weight: 700 !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 1201;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: #fff;
  transform-origin: center; transition: transform .25s ease, opacity .25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-scrim { display: none; }

@media (max-width: 640px) {
  body.menu-open { overflow: hidden; }
  #main-nav {
    display: block; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 24px 26px;
    max-height: calc(100vh - 70px); overflow-y: auto;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
    z-index: 1200;
  }
  #main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .menu-scrim {
    position: fixed; inset: 70px 0 0; background: rgba(10,6,8,.52);
    opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 1100;
  }
  body.menu-open .menu-scrim { display: block; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-links li a,
  .navbar.scrolled .nav-links li a { display: block; color: #fff; padding: 12px 14px; }
  .navbar.scrolled .nav-links li a:hover,
  .navbar.scrolled .nav-links li a.active { color: #fff; }
  .nav-cta a { margin-top: 6px; text-align: center; }
  .navbar.scrolled .nav-links .nav-cta a { color: #000 !important; }
  .hamburger { display: flex; }
  .navbar.scrolled .hamburger span { background: var(--ink); }
  body.menu-open .navbar .hamburger span { background: #fff; }
}

/* =====================================================================
   FOOTER (identical on every page)
   ===================================================================== */
.footer { background: var(--ink); padding: 72px 0 0; color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.18);
}
.footer .brand-block .logo { margin-bottom: 14px; display: inline-flex; }
.footer .brand-block p { font-size: 1rem; line-height: 1.75; max-width: 280px; color: #fff; font-weight: 500; }
.footer h4 {
  font-size: .87rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 1rem; line-height: 1.6; color: #fff; font-weight: 500; }
.footer ul li a { color: #fff; font-weight: 500; transition: color .18s; }
.footer ul li a:hover { color: var(--yellow); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
  color: #fff; font-size: .95rem; font-weight: 700; transition: all .2s;
}
.socials a:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: .93rem; color: #fff; font-weight: 500;
}
.footer-bottom div { color: #fff; font-size: .93rem; }
.footer-bottom .powered-by { font-weight: 700; color: var(--yellow); }
.footer-bottom .powered-by a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom .powered-by a:hover { color: #fff; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) { .container { padding: 0 18px; } }
