:root {
  --fourci-red: #d34235;
  --fourci-black: #111;
  --fourci-ink: #1f2a2e;
  --fourci-muted: #6f777b;
  --fourci-paper: #f4f1ec;
  --fourci-card: #243034;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fourci-paper);
  color: var(--fourci-black);
  font-family: Inter, Manrope, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
.site-main { min-height: 60vh; overflow: hidden; }

.site-header {
  min-height: 82px;
  padding: 0 clamp(20px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e8e4df;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img,
.custom-logo {
  width: 104px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 28px);
  flex: 1 1 auto;
  margin: 0;
}

.desktop-nav .menu-item {
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-nav .menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  color: #151515;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
}

.desktop-nav .menu-item > a:hover,
.desktop-nav .menu-item.current-menu-item > a,
.desktop-nav .menu-item.current-menu-ancestor > a {
  color: var(--fourci-red);
}

.desktop-nav .menu-item-has-children > a::after {
  content: "+";
  color: var(--fourci-red);
  margin-left: 7px;
  font-weight: 900;
}

.desktop-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 255px;
  max-width: min(520px, 88vw);
  background: #fff;
  padding: 12px 0;
  margin: 0;
  border-top: 1px solid var(--fourci-red);
  box-shadow: 0 18px 42px rgba(0,0,0,.14);
  z-index: 1001;
}

.desktop-nav .menu-item:hover > .sub-menu,
.desktop-nav .menu-item:focus-within > .sub-menu {
  display: block;
}

.desktop-nav .sub-menu .menu-item {
  display: block;
}

.desktop-nav .sub-menu a {
  min-height: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 18px;
  color: #202020;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .02em;
  white-space: normal;
}

.desktop-nav .sub-menu .sub-menu {
  top: -13px;
  left: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.search-jobs-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--fourci-red);
  color: var(--fourci-red);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.content-page,
.page-hero,
.hero,
.fourci-card-grid,
.legal-footer,
.section-heading {
  padding-left: clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
}

.page-hero,
.hero {
  padding-top: clamp(76px, 10vw, 142px);
  padding-bottom: clamp(58px, 8vw, 104px);
}

.page-hero {
  background: #171717;
  color: #fff;
}

.hero {
  background: #171717;
  color: #fff;
  min-height: min(720px, calc(100vh - 82px));
  display: grid;
  align-content: center;
}

.page-hero h1,
.hero h1 {
  max-width: 1120px;
  line-height: .96;
  letter-spacing: -.06em;
  margin: 0;
  font-size: clamp(46px, 6.5vw, 96px);
}

.hero-copy {
  max-width: 980px;
}

.hero-copy,
.hero-copy p,
.entry-content p {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.72;
}

.hero-copy p {
  color: rgba(255,255,255,.78);
  max-width: 820px;
}

.entry-content {
  max-width: 1120px;
  margin: 0 auto 96px;
  padding-top: clamp(42px, 5vw, 78px);
}

.entry-content > * + * { margin-top: 1.15rem; }
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0.2em 0 .7em;
}
.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child { margin-top: 0; }
.entry-content h1 { font-size: clamp(42px, 5.5vw, 78px); }
.entry-content h2 { font-size: clamp(32px, 4vw, 56px); }
.entry-content h3 { font-size: clamp(22px, 2.2vw, 32px); }
.entry-content p { margin: 0 0 1.1em; color: #666; }
.entry-content ul,
.entry-content ol { margin: 1em 0 1.6em; padding-left: 1.35em; }
.entry-content li { margin: .45em 0; line-height: 1.6; }
.entry-content .wp-block-group {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.home-entry-content {
  max-width: none;
  margin-bottom: 0;
}

.home-entry-content > .wp-block-group.alignwide {
  max-width: none;
}

.home-entry-content > .wp-block-group.alignwide > h1:first-child,
.home-entry-content > .wp-block-group.alignwide > h1:first-child + p {
  display: none;
}

.section-heading {
  padding-top: clamp(54px, 7vw, 96px);
  padding-bottom: 8px;
}
.section-heading h2 {
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: 0;
}

.fourci-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  padding-top: 48px;
  padding-bottom: 72px;
}
.fourci-card {
  border: 1px solid rgba(255,255,255,.18);
  background: var(--fourci-card);
  color: #fff;
  padding: clamp(28px, 4vw, 52px);
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fourci-card.has-red-line { border-top: 1px solid var(--fourci-red); }
.fourci-card h2 { margin: 0 0 1em; letter-spacing: -.04em; }
.fourci-card p { color: rgba(255,255,255,.72); line-height: 1.6; }
.card-number, .eyebrow { color: var(--fourci-red); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; }
.fourci-link { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1.2rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.fourci-link span { color: var(--fourci-red); }

.wp-block-buttons,
.wp-block-button,
.wp-block-button__link {
  font-family: inherit;
}

.wp-block-button__link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  padding: 0 0 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.wp-block-button__link::after {
  content: " +";
  color: var(--fourci-red);
}

.fourci-table-wrap { overflow-x: auto; }
.fourci-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.fourci-table th,
.fourci-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #ded9cf;
  vertical-align: top;
}
.fourci-table th {
  color: var(--fourci-red);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
}

.legal-footer { background: #fff; color: #111; padding-top: 48px; padding-bottom: 36px; border-top: 1px solid #e6e2da; }
.legal-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.legal-footer-grid h3 { font-weight: 800; margin-bottom: .75rem; }
.legal-footer-grid p { color: #666; line-height: 1.55; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 34px 0 22px; padding-top: 22px; border-top: 1px solid #e6e2da; }
.legal-footer-links a { color: #111; text-decoration: none; font-weight: 700; }
.legal-disclaimer { color: #666; font-size: .92rem; line-height: 1.55; max-width: 1320px; }

.site-footer {
  background: #111;
  color: #fff;
  padding: clamp(52px, 6vw, 86px) clamp(24px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(160px, 1fr));
  gap: clamp(30px, 5vw, 76px);
}
.site-footer h3 {
  color: #777;
  font-size: 12px;
  margin: 0 0 18px;
}
.site-footer a,
.site-footer span {
  display: block;
  color: #f3f3f3;
  font-size: 14px;
  line-height: 1.9;
  text-decoration: none;
}
.site-footer a:hover { color: var(--fourci-red); }
.footer-brand .logo img { filter: brightness(1.15); }

@media (max-width: 900px) {
  .desktop-nav, .nav-actions { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .mobile-menu div {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    box-shadow: 0 18px 42px rgba(0,0,0,.14);
  }
  .mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #111;
    text-decoration: none;
    font-weight: 800;
  }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { min-height: 72px; }
  .logo img, .custom-logo { width: 86px; }
  .page-hero, .hero { padding-top: 88px; padding-bottom: 64px; }
  .page-hero h1, .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .fourci-card { min-height: 210px; }
  .site-footer { grid-template-columns: 1fr; }
}

/* WordPress staging hardening: keep imported shortcode cards from inheriting
   oversized article/entry heading styles. */
.home .hero,
body.home .hero,
.front-page .hero {
  min-height: min(760px, calc(100vh - 82px));
  padding: clamp(72px, 9vw, 132px) clamp(42px, 7vw, 96px);
  display: grid;
  align-items: center;
  justify-content: start;
}

.home .hero .hero-copy,
body.home .hero .hero-copy {
  width: min(860px, 100%);
  max-width: 860px;
}

.home .hero h1,
body.home .hero h1,
.front-page .hero h1 {
  width: min(1040px, 100%);
  max-width: 1040px;
  font-size: clamp(54px, 6.8vw, 112px);
  line-height: .94;
  letter-spacing: -.07em;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.home .hero p,
body.home .hero p {
  max-width: 760px;
}

.section-heading {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.fourci-card-grid {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

@media (min-width: 1120px) {
  .home .fourci-card-grid,
  body.home .fourci-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fourci-card {
  min-width: 0;
  overflow: hidden;
  padding: clamp(30px, 3.1vw, 46px);
  min-height: 420px;
}

.fourci-card h1,
.fourci-card h2,
.fourci-card h3,
.entry-content .fourci-card h1,
.entry-content .fourci-card h2,
.entry-content .fourci-card h3 {
  font-size: clamp(28px, 2.25vw, 42px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 1.1rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.fourci-card p,
.entry-content .fourci-card p {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.62;
  margin: 0;
  max-width: 100%;
}

.fourci-card .fourci-link {
  width: 100%;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 1.4rem;
}

.home-content-page .entry-content {
  padding-top: clamp(54px, 6vw, 84px);
}

@media (max-width: 900px) {
  .home .fourci-card-grid,
  body.home .fourci-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home .fourci-card-grid,
  body.home .fourci-card-grid {
    grid-template-columns: 1fr;
  }

  .home .hero h1,
  body.home .hero h1,
  .front-page .hero h1 {
    font-size: clamp(42px, 12vw, 68px);
  }

  .fourci-card {
    min-height: 300px;
  }
}
