/* ============================================================
   FORVIS MAZARS DESIGN SYSTEM — BOB RESEARCH PREVIEW
   Colors, typography, layout, shapes — exact FM patterns
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

/* ── Forvis Mazars proprietary font ───────────────────────── */
@font-face {
  font-family: "halyard-text";
  src: url("./assets/fonts/halyard-text-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --fm-navy: #171c8e;
  --fm-blue: #0072ce;
  --fm-teal: #00b0c8; /* FM section label / accent teal */
  --fm-blue-light: #e8f2fb;
  --fm-white: #ffffff;
  --fm-gray-50: #f5f5f5;
  --fm-gray-100: #ebebeb;
  --fm-gray-300: #bbbbbb;
  --fm-gray-500: #777777;
  --fm-gray-700: #444444;
  --fm-gray-900: #1a1a1a;
  --fm-dark-footer: #2b2b2b;

  --fm-font:
    "halyard-text", "Inter", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", sans-serif;

  --nav-height: 82px;
  --max-w: 1280px;
  --section-pad: 120px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--fm-font);
  color: var(--fm-gray-900);
  background: var(--fm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR — exact FM style: white bg, logo left, links right
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--fm-white);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 var(--fm-gray-100);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 6px;
  padding-bottom: 6px;
}
.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.navbar-brand img {
  height: 48px;
  width: auto;
  display: block;
}

/* Research preview chip in nav */
.nav-research-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fm-blue);
  background: var(--fm-blue-light);
  border: 1px solid rgba(0, 114, 206, 0.2);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-nav a:not(.nav-cta),
.Nav-item:not(.nav-cta) {
  color: #464b4b;
  display: block;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1;
  padding: 1rem 0.5rem;
  position: relative;
  transition: color 0.3s linear;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-nav a:not(.nav-cta):visited,
.Nav-item:not(.nav-cta):visited {
  color: #464b4b;
}
.navbar-nav a:not(.nav-cta):hover,
.Nav-item:not(.nav-cta):hover {
  color: var(--fm-navy);
}
.navbar-nav .nav-cta {
  display: inline-block;
  color: var(--fm-white) !important;
  font-weight: 500;
  flex-shrink: 0;
  background: var(--fm-navy);
  padding: 13px 32px;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: 0;
  text-decoration: none !important;
  transition:
    background 0.2s,
    transform 0.15s;
}
.navbar-nav .nav-cta:hover,
.navbar-nav .nav-cta:focus,
.navbar-nav .nav-cta:active,
.navbar-nav .nav-cta:visited {
  color: var(--fm-white) !important;
  background: #0e1172 !important;
  text-decoration: none !important;
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fm-gray-700);
  border-radius: 1px;
  transition: 0.3s;
}
@media (max-width: 768px) {
  .navbar-hamburger {
    display: flex;
  }
  .navbar-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--fm-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--fm-gray-100);
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .navbar-nav.open {
    display: flex;
  }
  .navbar-nav a {
    padding: 14px 32px;
    width: 100%;
    font-size: 1rem;
  }
  .navbar-nav .nav-cta {
    margin: 10px 24px;
    width: calc(100% - 48px);
    text-align: center;
    padding: 12px 16px;
  }
  .nav-research-chip {
    margin: 12px 32px 0;
  }
}

/* ════════════════════════════════════════════════════════════
   HERO — exact FM style: image full-bleed, text bottom-left,
   dark gradient left side, article strip at very bottom
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 8, 40, 0.78) 0%,
    rgba(5, 8, 40, 0.5) 38%,
    rgba(5, 8, 40, 0.12) 65%,
    transparent 100%
  );
}

/* hero-body: flex column, fills remaining height, pushes content up + strip down */
.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  flex: 1;
  padding-top: var(--nav-height);
}
.hero-body > .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
}
.hero-content {
  padding: 0;
  max-width: 580px;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

/* FM exact class — opacity overridden to 1 (FM animates from 0, we skip that) */
.HeroSlider-content {
  max-width: 960px;
  opacity: 1;
  position: relative;
  width: 100%;
  z-index: 2;
  margin: 0;
}
.hero-research-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fm-white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 300;
  color: var(--fm-white);
  line-height: 1.08;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.hero-title strong {
  font-weight: 300;
  display: inline;
}
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 31px;
  }
}
.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  max-width: 760px;
  margin-bottom: 24px;
}

/* ── Hero strip — 4-col article links at bottom of hero ── */
.hero-strip {
  background: transparent;
  backdrop-filter: none;
  margin-top: 0;
}
/* strip uses full viewport width — no container max-width cap */
.hero-strip > .container {
  max-width: 100%;
  padding: 0 40px;
}
.hero-strip-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5rem;
  padding: 0.25rem 0 1.5rem;
}
.hero-strip-item {
  width: 209px;
  border-top: 1px solid #fff;
  cursor: pointer;
  padding-top: 1.5rem;
  margin-right: 0;
  display: block;
  outline: none;
  transition-duration: 0.3s;
  transition-property: border, font-weight, background;
}
.hero-strip-item:hover {
  background: transparent;
}
.hero-strip-title {
  display: block;
  font-size: 18px;
  font-weight: 300;
  color: var(--fm-white);
  line-height: 1.2;
}
@media (max-width: 768px) {
  .hero-strip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0.25rem 0 1.25rem;
  }
  .hero-strip-item {
    width: auto;
    min-width: 0;
    padding-top: 0.875rem;
  }
  .hero-strip-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  .hero-strip > .container {
    padding: 0 20px;
  }
}
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.15s;
  border-radius: 0;
}
.btn-primary {
  background: var(--fm-navy);
  color: var(--fm-white);
}
.btn-primary:hover {
  background: #0e1172;
  color: var(--fm-white);
}
.btn-outline {
  background: transparent;
  color: var(--fm-navy);
  border: 1.5px solid var(--fm-navy);
}
.btn-outline:hover {
  background: var(--fm-navy);
  color: var(--fm-white);
}

/* Slide indicators — exact FM pattern */
.hero-indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.hero-indicator {
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-indicator.active {
  background: var(--fm-white);
}

/* ════════════════════════════════════════════════════════════
   SPLIT SECTIONS — FM two distinct patterns:

   Pattern A (default, no modifier):
     text LEFT in container, image RIGHT as floating parallelogram.
     Both left and right edges of the image are diagonal at the same
     steep angle — creating a tall rhombus/diamond floating shape.
     Section has normal vertical padding; image is tall and clipped.

   Pattern B (.reverse):
     Image LEFT bleeds full to the page edge as a plain square rectangle.
     Text RIGHT in container.
     Uses a full-bleed two-column grid (no max-width constraint).
   ════════════════════════════════════════════════════════════ */

/* ── Shared ── */
.split-section {
  overflow: hidden;
  position: relative;
}
.split-section.bg-gray {
  background: var(--fm-gray-50);
}

/* ════ Pattern A: text left / parallelogram image right in separate media layer ════ */
.split-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 40px;
}
.split-text {
  padding-right: 60px;
}
.split-diagonal-right {
  min-height: 660px;
}
.split-diagonal-right .split-inner {
  position: relative;
  z-index: 2;
}
.split-diagonal-right .split-text {
  max-width: 66.6667%;
}
.split-diagonal-right .split-media-bleed {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.3333%;
  height: 100%;
}
.Clippath {
  aspect-ratio: 648 / 630;
  display: block;
  overflow: hidden;
  position: relative;
}
.split-diagonal-right .split-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.split-diagonal-right .split-image-wrap.Clippath {
  height: 100%;
}
.split-diagonal-right .split-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
}

/* ════ Pattern B: square image left / text right ════ */
.split-inner.reverse {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}
.split-inner.reverse .split-text {
  padding: var(--section-pad) max(40px, calc((100vw - var(--max-w)) / 2 + 40px))
    var(--section-pad) 60px;
}
.split-inner.reverse .split-image-wrap {
  order: -1; /* image goes first = left column */
  position: relative;
  min-height: 580px;
  overflow: hidden;
}
.split-inner.reverse .split-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  clip-path: none; /* plain square — no diagonal */
}
/* Vision diagram should be fully visible (no crop) */
#about .split-image-wrap {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}
#about .split-image-wrap img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .split-inner,
  .split-inner.reverse {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  .split-text,
  .split-inner.reverse .split-text {
    max-width: 100% !important;
    padding: 48px 24px !important;
    order: 2;
  }
  .split-diagonal-right {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .split-diagonal-right .split-media-bleed {
    position: relative;
    width: 100%;
    height: 280px;
    order: 1;
  }
  .split-diagonal-right .split-image-wrap,
  .split-inner.reverse .split-image-wrap {
    height: 280px !important;
    min-height: 280px !important;
    overflow: hidden;
  }
  .split-diagonal-right .split-image-wrap img,
  .split-inner.reverse .split-image-wrap img {
    clip-path: none !important;
    position: absolute;
    inset: 0;
  }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fm-teal);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(1.875rem, 2.8vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--fm-gray-900);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.section-body {
  font-size: 1rem;
  color: var(--fm-gray-700);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Stats row — FM pattern */
.stats-row {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--fm-navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--fm-gray-500);
}

/* Tags/pills — FM navy filled buttons */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--fm-navy);
  color: var(--fm-white);
  font-size: 0.8125rem;
  font-weight: 400;
  border-radius: 0;
  transition: background 0.2s;
}
.tag:hover {
  background: #0e1172;
}

/* Arrow link — FM style */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fm-gray-700);
  transition: color 0.2s;
}
.arrow-link::before {
  content: "›";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--fm-blue);
}
.arrow-link:hover {
  color: var(--fm-navy);
}

/* ════════════════════════════════════════════════════════════
   TABS SECTION — "What we do" style with tab switcher
   ════════════════════════════════════════════════════════════ */
.tabs-section {
  padding: var(--section-pad) 0;
}
.tabs-header {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 2px solid var(--fm-gray-100);
  margin-bottom: 40px;
}
.tab-btn {
  width: 100%;
  padding: 14px 10px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--fm-gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  min-height: 68px;
  transition:
    color 0.2s,
    border-color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}
.tab-btn.active {
  color: var(--fm-navy);
  border-bottom-color: var(--fm-navy);
  font-weight: 500;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
@media (max-width: 1024px) {
  .tabs-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab-btn {
    min-height: 60px;
    font-size: 0.875rem;
  }
}

/* ════════════════════════════════════════════════════════════
   CONTACT US STRIP — FM white card with 4-column icons
   ════════════════════════════════════════════════════════════ */
.contact-strip {
  padding: var(--section-pad) 0;
  background: var(--fm-white);
}
.contact-strip-inner {
  border: 1px solid var(--fm-gray-100);
  padding: 48px;
}
.contact-strip h2 {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--fm-gray-900);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  color: var(--fm-blue);
}
.contact-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fm-gray-700);
}
.contact-label::before {
  content: "›";
  color: var(--fm-blue);
  font-size: 1rem;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-strip-inner {
    padding: 28px 20px;
  }
}

/* ════════════════════════════════════════════════════════════
   FOLLOW US / SOCIAL BAR
   ════════════════════════════════════════════════════════════ */
.social-bar {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--fm-gray-100);
  border-bottom: 1px solid var(--fm-gray-100);
}
.social-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.social-label {
  font-size: 0.9375rem;
  color: var(--fm-gray-500);
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-links a {
  color: var(--fm-gray-500);
  transition: color 0.2s;
  font-size: 1.1rem;
  line-height: 1;
}
.social-links a:hover {
  color: var(--fm-navy);
}

/* ════════════════════════════════════════════════════════════
   FOOTER — FM exact: light gray top grid + dark bottom legal bar
   ════════════════════════════════════════════════════════════ */
.footer-main {
  background: var(--fm-gray-50);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fm-gray-900);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: var(--fm-gray-500);
  line-height: 1;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--fm-navy);
}

.footer-research-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--fm-gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-research-chip {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fm-blue);
  background: var(--fm-blue-light);
  border: 1px solid rgba(0, 114, 206, 0.25);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.footer-research-text {
  font-size: 0.8125rem;
  color: var(--fm-gray-500);
  line-height: 1.5;
}

.footer-legal {
  background: var(--fm-dark-footer);
  padding: 16px 0;
}
.footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-legal-links a:hover {
  color: var(--fm-white);
}
.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
