/* 3D ForgeHub custom components (added Oct 2026) */

/* Light engineering linework behind a section */
.fh-eng-bg { position: relative; }
.fh-eng-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("../images/engineering-linework.svg") right center / cover no-repeat;
  opacity: .9;
}
.fh-eng-bg > .container, .fh-eng-bg > .container-fluid, .fh-eng-bg > .position-relative { position: relative; z-index: 1; }
.fh-eng-bg > .mbr-overlay { display: none; }
.fh-eng-bg.fh-eng-light { background-image: none !important; background-color: #f5f5f3 !important; }
/* tall photo sections: tile the drawing down the page, starting below the heading */
.fh-eng-bg.fh-eng-light::before { background-image: url("../images/engineering-linework-gears.svg"); background-size: 1300px auto; background-repeat: repeat-y; background-position: right -260px top 220px; opacity: .75; }
.fh-workflow.fh-eng-bg::before { opacity: .5; }

/* Scrolling library (materials / resins) */
.fh-library { padding-top: 7rem; padding-bottom: 7rem; background-color: #f5f5f3; }
.fh-library .mbr-section-title { color: #232323; }
.fh-library .fh-intro { max-width: 760px; margin: 1rem auto 0; text-align: center; color: #2e3338; line-height: 1.6; }
.fh-scroller { position: relative; margin-top: 3rem; }
.fh-track {
  display: grid; grid-auto-flow: column; gap: 24px;
  grid-auto-columns: calc((100% - 72px) / 4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 1.25rem; scrollbar-width: thin; scrollbar-color: #eb6806 #e4e4e0;
}
.fh-track::-webkit-scrollbar { height: 6px; }
.fh-track::-webkit-scrollbar-track { background: #e4e4e0; border-radius: 3px; }
.fh-track::-webkit-scrollbar-thumb { background: #eb6806; border-radius: 3px; }
.fh-card { scroll-snap-align: start; background: #ffffff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.fh-card img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.fh-card-body { padding: 1.25rem 1.25rem 1.5rem; }
.fh-card h5 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: #232323; margin: 0 0 .5rem; }
.fh-card .fh-best { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: #eb6806; line-height: 1.4; margin: 0 0 .6rem; }
.fh-card p { font-family: 'Inter', sans-serif; font-size: .95rem; line-height: 1.55; color: #2e3338; margin: 0; }
.fh-nav { display: flex; justify-content: center; gap: 12px; margin-top: 1.5rem; }
.fh-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #2e3338; background: transparent; color: #2e3338;
  font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s;
}
.fh-nav button:hover { background: #eb6806; border-color: #eb6806; color: #fff; }
.fh-nav button:disabled { opacity: .3; cursor: default; background: transparent; border-color: #2e3338; color: #2e3338; }
@media (max-width: 991px) { .fh-track { grid-auto-columns: calc((100% - 24px) / 2.2); } }
@media (max-width: 575px) { .fh-track { grid-auto-columns: 80%; } .fh-library { padding-top: 5rem; padding-bottom: 5rem; } }

/* How it works (homepage workflow) */
.fh-workflow { padding-top: 7rem; padding-bottom: 7rem; background: #ffffff; }
.fh-workflow .mbr-section-title { color: #eb6806; }
.fh-workflow .fh-intro { max-width: 720px; margin: 1rem auto 0; text-align: center; color: #2e3338; line-height: 1.6; }
.fh-wf-steps-row { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 3.5rem; gap: 8px; }
.fh-wf-step { flex: 1 1 0; text-align: center; padding: 0 .5rem; }
.fh-wf-step-icon {
  width: 96px; height: 96px; margin: 0 auto 1.25rem; border-radius: 50%; background: #f5f5f3; border: 2px solid #eb6806;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.fh-wf-step-icon svg { width: 44px; height: 44px; stroke: #2e3338; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fh-wf-step-num {
  position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; background: #eb6806; color: #fff;
  font: 700 .85rem/30px 'Space Grotesk', sans-serif; text-align: center;
}
.fh-wf-step h5 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; color: #232323; margin-bottom: .5rem; line-height: 1.3; }
.fh-wf-step p { font-family: 'Inter', sans-serif; font-size: .92rem; color: #2e3338; line-height: 1.55; margin: 0; }
.fh-arrow { flex: 0 0 40px; margin-top: 34px; color: #eb6806; }
.fh-arrow svg { width: 40px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 991px) {
  .fh-wf-steps-row { flex-direction: column; align-items: center; gap: 0; }
  .fh-wf-step { max-width: 420px; }
  .fh-arrow { margin: 1rem 0; transform: rotate(90deg); }
}

/* Case studies: up to three in a row (Oct 2026) */
.cid-vyU0sUQTCO img, .cid-vyU0sUQTCO .item-img { height: 260px; }
.cid-vyU0sUQTCO .item-subtitle { font-size: 1.2rem; line-height: 1.3; }
.cid-vyU0sUQTCO .item-wrapper { margin-bottom: 1.5rem; }

/* Who we are: eyebrow + brand pillars */
.fh-eyebrow-sm { color: #eb6806; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem !important; margin-bottom: .75rem; }
.fh-pillars { margin-top: 3rem; position: relative; z-index: 1; }
.fh-pillar { background: rgba(255,255,255,.92); border-top: 3px solid #eb6806; padding: 1.5rem 1.5rem 1.25rem; height: 100%; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.fh-pillar-num { font: 700 .85rem 'Space Grotesk', sans-serif; color: #eb6806; letter-spacing: .1em; }
.fh-pillar h5 { font: 700 1.3rem/1.3 'Space Grotesk', sans-serif; color: #232323; margin: .35rem 0 .4rem; }
.fh-pillar p { font: 400 .95rem/1.55 'Inter', sans-serif; color: #2e3338; margin: 0; }

/* Robot EOAT capability section */
.fh-eoat { background: #1b1e22; padding: 7rem 0; position: relative; overflow: hidden; }
.fh-eoat::before { content: ""; position: absolute; inset: 0; background: url("../images/engineering-linework-gears.svg") right -200px center / 1100px auto no-repeat; opacity: .35; filter: invert(1); pointer-events: none; }
.fh-eoat .container { position: relative; z-index: 1; }
.fh-eoat-figure { margin: 0 0 2rem; }
.fh-eoat-figure img { width: 100%; border-radius: 6px; display: block; }
.fh-eoat-figure figcaption { font: 400 .8rem 'Inter', sans-serif; color: #9aa0a6; margin-top: .6rem; }
.fh-eoat-copy { padding-left: 1.5rem; }
.fh-eoat-eyebrow { color: #eb6806; font: 700 .8rem 'Space Grotesk', sans-serif; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.fh-eoat-title { color: #ffffff; font: 700 2.4rem/1.2 'Space Grotesk', sans-serif; margin-bottom: 1.25rem; }
.fh-eoat-text { color: #d5d8dc; font: 400 1.05rem/1.65 'Inter', sans-serif; margin-bottom: 1.25rem; }
.fh-eoat-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.fh-eoat-list li { position: relative; padding-left: 1.9rem; color: #d5d8dc; font: 400 1rem/1.6 'Inter', sans-serif; margin-bottom: .7rem; }
.fh-eoat-list li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 14px; height: 8px; border-left: 2.5px solid #eb6806; border-bottom: 2.5px solid #eb6806; transform: rotate(-45deg); }
.fh-eoat-list strong { color: #ffffff; }
.fh-eoat-locale { color: #9aa0a6; font: 400 .9rem 'Inter', sans-serif; margin-top: .75rem; }
@media (max-width: 991px) { .fh-eoat { padding: 5rem 0; } .fh-eoat-copy { padding-left: 0; } .fh-eoat-title { font-size: 1.9rem; } }

/* Embedded YouTube video */
.fh-video-section { padding: 6rem 0; background: #ffffff; }
.fh-video-section .mbr-section-title { color: #232323; }
.fh-video-section .fh-intro { max-width: 700px; margin: 1rem auto 2.5rem; text-align: center; color: #2e3338; line-height: 1.6; }
.fh-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #121212; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.fh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
