/* ==========================================================================
   Fortune Group — site header + mega menu
   white / steel mist / graphite / red gradient
   ========================================================================== */
.gf-nav {
  --n-ink: #1b1f24;
  --n-soft: #5a636d;
  --n-line: rgba(27, 31, 36, 0.09);
  --n-mist: #f3f5f7;
  --n-red: #d90a0a;
  --n-grad: linear-gradient(100deg, #ff3b2f 0%, #d90a0a 45%, #7e0606 100%);
  --n-font: "Archivo", "Manrope", system-ui, sans-serif;
  --n-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --n-h: 84px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  font-family: var(--n-font);
  transition: transform 0.45s var(--n-ease);
}
.gf-nav.is-hidden { transform: translateY(-100%); }
.gf-nav.is-open, .gf-nav:focus-within { transform: none; }

.gf-nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--n-h);
  padding: 0 clamp(16px, 3vw, 44px);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--n-line);
  transition: height 0.35s var(--n-ease), box-shadow 0.35s, background-color 0.35s;
}
.gf-nav.is-scrolled .gf-nav__bar {
  --n-h: 68px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px -26px rgba(27, 31, 36, 0.5);
}

/* scroll progress, drawn like a laser line */
.gf-nav__laser {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--n-grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--gf-scroll, 0));
  box-shadow: 0 0 12px rgba(217, 10, 10, 0.55);
  pointer-events: none;
}

.gf-nav__logo { flex: none; display: block; line-height: 0; }
.gf-nav__logo img { height: calc(var(--n-h) - 22px); width: auto; transition: height 0.35s var(--n-ease); }

/* ------------------------------------------------------------ main menu */
.gf-nav__menu { flex: 1; display: flex; justify-content: center; height: 100%; }
.gf-nav__list { display: flex; align-items: stretch; gap: clamp(14px, 1.9vw, 30px); margin: 0; padding: 0; list-style: none; height: 100%; }
.gf-nav__list > li { display: flex; align-items: center; position: static; }
.gf-nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%;
  padding: 0;
  border: 0; background: none;
  font: 600 15px/1 var(--n-font);
  font-variation-settings: "wdth" 100;
  color: var(--n-ink);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s;
}
.gf-nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: calc(50% - 18px);
  height: 2px; border-radius: 2px;
  background: var(--n-grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s var(--n-ease);
}
.gf-nav__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.3s var(--n-ease); }
.gf-nav__link:hover, .gf-nav__link:focus-visible,
.gf-nav__has-panel.is-open > .gf-nav__link,
.gf-nav__link[aria-current="page"] { color: var(--n-red); }
.gf-nav__link:hover::after, .gf-nav__link:focus-visible::after,
.gf-nav__has-panel.is-open > .gf-nav__link::after,
.gf-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.gf-nav__has-panel.is-open > .gf-nav__link svg { transform: rotate(180deg); }
.gf-nav a:focus-visible, .gf-nav button:focus-visible, .gf-nav summary:focus-visible { outline: 3px solid rgba(217, 10, 10, 0.4); outline-offset: 4px; border-radius: 6px; }

/* ----------------------------------------------------------- mega panels */
.gf-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  padding: 0 clamp(16px, 3vw, 44px) 28px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.35s var(--n-ease), visibility 0s linear 0.35s;
  pointer-events: none;
}
.gf-nav__has-panel.is-open .gf-panel {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity 0.25s ease, transform 0.45s var(--n-ease), visibility 0s;
  pointer-events: auto;
}
.gf-panel__inner {
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: 22px;
  box-shadow: 0 40px 80px -36px rgba(27, 31, 36, 0.38), 0 2px 0 0 rgba(217, 10, 10, 0.9) inset;
}
.gf-panel--group .gf-panel__inner { max-width: 980px; }
.gf-panel__inner--split { display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.gf-panel__intro { margin: 0 0 18px; font-size: 14px; color: var(--n-soft); }
.gf-panel__grid { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gf-panel__grid--2 { grid-template-columns: 1fr 1fr; }
.gf-panel__grid--3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* items rise in one after another when a panel opens */
.gf-panel__grid > li { opacity: 0; transform: translateY(8px); }
.gf-nav__has-panel.is-open .gf-panel__grid > li {
  opacity: 1; transform: none;
  transition: opacity 0.4s ease, transform 0.5s var(--n-ease);
}
.gf-nav__has-panel.is-open .gf-panel__grid > li:nth-child(2) { transition-delay: 0.04s; }
.gf-nav__has-panel.is-open .gf-panel__grid > li:nth-child(3) { transition-delay: 0.08s; }
.gf-nav__has-panel.is-open .gf-panel__grid > li:nth-child(4) { transition-delay: 0.12s; }
.gf-nav__has-panel.is-open .gf-panel__grid > li:nth-child(5) { transition-delay: 0.16s; }

.gf-mi {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--n-ink);
  text-decoration: none;
  transition: background-color 0.25s, transform 0.25s var(--n-ease);
}
.gf-mi svg {
  flex: none; width: 40px; height: 40px; padding: 8px;
  border-radius: 12px;
  background: var(--n-mist);
  fill: none; stroke: var(--n-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: background 0.25s, stroke 0.25s;
}
.gf-mi b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.gf-mi small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--n-soft); font-family: "Manrope", system-ui, sans-serif; }
.gf-mi:hover, .gf-mi:focus-visible { background: var(--n-mist); color: var(--n-ink); }
.gf-mi:hover svg, .gf-mi:focus-visible svg { background: var(--n-grad); stroke: #fff; }
.gf-mi:hover b { color: var(--n-red); }

.gf-feature {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 24px;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--n-grad);
  isolation: isolate;
}
.gf-feature::before { /* machinist grid + glow */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 80% 10%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 22px 22px;
}
.gf-feature__title { font-size: 24px; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; line-height: 1.05; }
.gf-feature__text { font-size: 14px; line-height: 1.5; opacity: 0.9; font-family: "Manrope", system-ui, sans-serif; }
.gf-feature__cta {
  align-self: flex-start;
  margin-top: 6px; padding: 10px 18px;
  border-radius: 999px;
  background: #fff; color: var(--n-red);
  font-size: 14px; font-weight: 700;
  transition: transform 0.25s var(--n-ease);
}
.gf-feature:hover { color: #fff; }
.gf-feature:hover .gf-feature__cta { transform: translateX(4px); }

.gf-card {
  display: grid; gap: 6px; align-content: start;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--n-line);
  border-radius: 16px;
  color: var(--n-ink);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--n-ease);
}
.gf-card__mark {
  width: 42px; height: 42px; margin-bottom: 8px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--n-mist);
  font-weight: 800; font-size: 14px; font-variation-settings: "wdth" 115;
  transition: background 0.25s, color 0.25s;
}
.gf-card b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.gf-card > span:last-child { font-size: 13px; line-height: 1.5; color: var(--n-soft); font-family: "Manrope", system-ui, sans-serif; }
.gf-card:hover, .gf-card:focus-visible { color: var(--n-ink); border-color: rgba(217, 10, 10, 0.35); box-shadow: 0 18px 36px -24px rgba(217, 10, 10, 0.45); transform: translateY(-2px); }
.gf-card:hover .gf-card__mark { background: var(--n-grad); color: #fff; }

/* --------------------------------------------------------------- actions */
.gf-nav__actions { flex: none; display: flex; align-items: center; gap: 18px; }
.gf-nav__phone { display: flex; align-items: center; gap: 10px; color: var(--n-ink); text-decoration: none; }
.gf-nav__phone svg { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: var(--n-mist); fill: var(--n-red); transition: background 0.25s, fill 0.25s; }
.gf-nav__phone span { display: grid; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.gf-nav__phone small { font-size: 12px; font-weight: 500; color: var(--n-soft); }
.gf-nav__phone:hover { color: var(--n-red); }
.gf-nav__phone:hover svg { background: var(--n-grad); fill: #fff; }
.gf-nav__cta {
  display: inline-flex; align-items: center;
  height: 46px; padding: 0 24px;
  border-radius: 999px;
  background: var(--n-grad);
  color: #fff;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(217, 10, 10, 0.8);
  transition: transform 0.25s var(--n-ease), box-shadow 0.25s;
}
.gf-nav__cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(217, 10, 10, 0.95); }

.gf-nav__burger {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 1px solid var(--n-line); border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.gf-nav__burger i {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: var(--n-ink);
  transition: transform 0.35s var(--n-ease), top 0.35s var(--n-ease), background 0.25s;
}
.gf-nav__burger i:first-child { top: 18px; }
.gf-nav__burger i:last-child { top: 26px; }
.gf-nav.is-open .gf-nav__burger i { background: var(--n-red); }
.gf-nav.is-open .gf-nav__burger i:first-child { top: 22px; transform: rotate(45deg); }
.gf-nav.is-open .gf-nav__burger i:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- drawer */
.gf-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: var(--n-h);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 18px clamp(16px, 4vw, 40px) calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--n-ease);
}
.gf-drawer[hidden] { display: flex; visibility: hidden; }
.gf-nav.is-open .gf-drawer { visibility: visible; clip-path: inset(0 0 0 0); }
.gf-drawer__nav { display: grid; }
.gf-drawer__nav > a, .gf-drawer__nav summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--n-line);
  font-size: clamp(22px, 6vw, 30px); font-weight: 700; font-variation-settings: "wdth" 110;
  letter-spacing: -0.02em;
  color: var(--n-ink); text-decoration: none;
  list-style: none; cursor: pointer;
}
.gf-drawer__nav summary::-webkit-details-marker { display: none; }
.gf-drawer__nav summary::after { content: "+"; font-weight: 400; color: var(--n-red); transition: transform 0.3s var(--n-ease); }
.gf-drawer__nav details[open] summary::after { transform: rotate(45deg); }
.gf-drawer__nav details a {
  display: block;
  padding: 11px 0 11px 16px;
  border-left: 2px solid var(--n-line);
  font-size: 17px; font-weight: 600; color: var(--n-soft); text-decoration: none;
}
.gf-drawer__nav details a:hover { color: var(--n-red); border-left-color: var(--n-red); }
.gf-drawer__nav details[open] { padding-bottom: 10px; border-bottom: 1px solid var(--n-line); }
.gf-drawer__nav details[open] summary { border-bottom: 0; }
.gf-drawer__nav > a:hover, .gf-drawer__nav summary:hover { color: var(--n-red); }
.gf-drawer__foot { display: grid; gap: 10px; }
.gf-drawer__btn {
  display: flex; justify-content: center; align-items: center;
  height: 54px; border-radius: 999px;
  border: 1px solid rgba(27, 31, 36, 0.16);
  color: var(--n-ink); font-size: 16px; font-weight: 700; text-decoration: none;
}
.gf-drawer__btn--red { background: var(--n-grad); border: 0; color: #fff; }
.gf-drawer__btn--red:hover { color: #fff; }
body.gf-nav-locked { overflow: hidden; }

/* ------------------------------------------------------------ breakpoints */
@media (max-width: 1360px) {
  .gf-nav__phone small { display: none; }
  .gf-nav__bar { gap: 20px; }
  .gf-nav__link { font-size: 14px; }
}
@media (max-width: 1200px) {
  .gf-nav__phone span { display: none; }
}
@media (max-width: 1080px) {
  .gf-nav { --n-h: 72px; }
  .gf-nav__menu { display: none; }
  .gf-nav__actions { margin-left: auto; gap: 10px; }
  .gf-nav__burger { display: block; }
}
@media (max-width: 520px) {
  .gf-nav__cta { display: none; }
  .gf-nav__phone svg { width: 46px; height: 46px; padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .gf-nav, .gf-panel, .gf-drawer, .gf-panel__grid > li { transition: none !important; }
}
/* horizontal Fortune Group logo */
.gf-nav__logo img { height: 46px; width: auto; }
.gf-nav.is-scrolled .gf-nav__logo img { height: 38px; }
@media (max-width: 520px) { .gf-nav__logo img { height: 36px; } }
/* the footer has its own "Back to top"; hide the old template button */
.scroll-to-top, .progress-wrap { display: none !important; }
