/* ==========================================================================
   Fortune Group — site footer
   ========================================================================== */
.gf-foot {
  --f-ink: #1b1f24;
  --f-soft: #5a636d;
  --f-line: rgba(27, 31, 36, 0.1);
  --f-mist: #eef1f4;
  --f-red: #d90a0a;
  --f-grad: linear-gradient(100deg, #ff3b2f 0%, #d90a0a 45%, #7e0606 100%);
  --f-font: "Archivo", "Manrope", system-ui, sans-serif;
  --f-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  padding: 0 clamp(16px, 3vw, 40px);
  background: linear-gradient(180deg, #fff 0%, var(--f-mist) 100%);
  color: var(--f-ink);
  overflow: hidden;
}
.gf-foot::before { /* faint machinist grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(27, 31, 36, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 31, 36, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
}
.gf-foot__inner { position: relative; max-width: 1340px; margin: 0 auto; padding-top: 40px; }
.gf-foot a { text-decoration: none; }

/* ------------------------------------------------------------- CTA band */
.gf-foot__cta {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 56px);
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 120% at 90% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--f-grad);
  box-shadow: 0 40px 70px -40px rgba(217, 10, 10, 0.65);
}
.gf-foot__beam { /* a laser line that sweeps across the band every few seconds */
  position: absolute; top: 0; bottom: 0; left: -10%;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%, #fff 70%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.55);
  animation: gf-foot-beam 6s cubic-bezier(0.5, 0, 0.4, 1) infinite;
  pointer-events: none;
}
@keyframes gf-foot-beam { 0% { left: -5%; opacity: 0; } 8% { opacity: 1; } 45% { opacity: 1; } 55% { left: 105%; opacity: 0; } 100% { left: 105%; opacity: 0; } }
.gf-foot__cta-copy { max-width: 640px; }
.gf-foot__cta-title {
  margin: 0 0 10px;
  font-family: var(--f-font); font-variation-settings: "wdth" 112; font-weight: 800;
  font-size: clamp(26px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.025em;
  color: #fff;
}
.gf-foot__cta-text { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.gf-foot__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gf-foot__btn {
  display: inline-flex; align-items: center;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 15px/1 var(--f-font);
  transition: transform 0.25s var(--f-ease), background-color 0.25s, color 0.25s;
}
.gf-foot__btn--white { background: #fff; color: var(--f-red); }
.gf-foot__btn--white:hover { color: var(--f-red); transform: translateY(-2px); }
.gf-foot__btn--line { color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.gf-foot__btn--line:hover { color: var(--f-red); background: #fff; }

/* -------------------------------------------------------------- columns */
.gf-foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 6vw, 80px) 4px clamp(36px, 4vw, 56px);
}
.gf-foot__logo img { height: 74px; width: auto; }
.gf-foot .gf-foot__about { margin: 20px 0 24px; max-width: 46ch; font-size: 15px; line-height: 1.75; color: var(--f-soft); }
.gf-foot .gf-foot__about a { color: var(--f-ink); font-weight: 600; background: linear-gradient(var(--f-red), var(--f-red)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s var(--f-ease), color 0.3s; }
.gf-foot .gf-foot__about a:hover { color: var(--f-red); background-size: 100% 2px; }
.gf-foot__social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gf-foot__social span { font: 600 14px/1 var(--f-font); color: var(--f-ink); margin-right: 6px; }
.gf-foot__social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--f-line);
  color: var(--f-ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--f-ease);
}
.gf-foot__social a:hover { background: var(--f-grad); border-color: transparent; color: #fff; transform: translateY(-3px); }

.gf-foot .gf-foot__title {
  position: relative;
  margin: 8px 0 22px; padding-bottom: 14px;
  font: 700 17px/1.2 var(--f-font); letter-spacing: -0.01em;
  color: var(--f-ink);
}
.gf-foot .gf-foot__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--f-grad); }
.gf-foot__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.gf-foot__col li a {
  position: relative;
  display: inline-block;
  font-size: 15px; line-height: 1.45; color: var(--f-soft);
  transition: color 0.25s, transform 0.3s var(--f-ease);
}
.gf-foot__col li a::before { /* a short red cut mark slides in on hover */
  content: ""; position: absolute; left: -16px; top: 0.7em;
  width: 10px; height: 2px; background: var(--f-red);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.3s var(--f-ease);
}
.gf-foot__col li a:hover { color: var(--f-ink); transform: translateX(14px); }
.gf-foot__col li a:hover::before { transform: scaleX(1); }

.gf-foot__visit address { margin: 0; display: grid; gap: 12px; font-style: normal; }
.gf-foot__addr { font-size: 15px; line-height: 1.6; color: var(--f-soft); }
.gf-foot__addr:hover { color: var(--f-red); }
.gf-foot__tel { font: 700 18px/1.2 var(--f-font); color: var(--f-ink); font-variant-numeric: tabular-nums; }
.gf-foot__tel:hover { color: var(--f-red); }

/* ------------------------------------------------------------ wordmark */
.gf-foot__mark {
  margin: 0 -2px -0.18em;
  font-family: var(--f-font); font-variation-settings: "wdth" 125; font-weight: 800;
  font-size: clamp(56px, 13.6vw, 210px);
  line-height: 0.9; letter-spacing: -0.045em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(27, 31, 36, 0.13);
  background: linear-gradient(180deg, rgba(217, 10, 10, 0.12), rgba(217, 10, 10, 0) 75%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
  text-align: center;
}

/* --------------------------------------------------------- bottom bar */
.gf-foot__bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 4px 26px;
  border-top: 1px solid var(--f-line);
  background: var(--f-mist);
  font-size: 14px; color: var(--f-soft);
}
.gf-foot .main-footer_copyright { color: var(--f-soft); }
.gf-foot .main-footer_copyright a { color: var(--f-ink); font-weight: 600; }
.gf-foot .main-footer_copyright a:hover { color: var(--f-red); }
.gf-foot .glow-text { color: var(--f-ink); font-weight: 700; text-shadow: none; animation: none; }
.gf-foot__top { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--f-font); color: var(--f-ink); }
.gf-foot__top::after {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  background: var(--f-grad) center / 100% no-repeat;
  -webkit-mask: radial-gradient(circle, #000 66%, transparent 67%); mask: radial-gradient(circle, #000 66%, transparent 67%);
  box-shadow: inset 0 0 0 2px #fff;
  transition: transform 0.3s var(--f-ease);
}
.gf-foot__top { position: relative; }
.gf-foot__top::before { /* arrow inside the red circle */
  content: ""; position: absolute; right: 13px; top: 50%;
  width: 8px; height: 8px; margin-top: -2px;
  border-left: 2px solid #fff; border-top: 2px solid #fff;
  transform: rotate(45deg); z-index: 1;
}
.gf-foot__top:hover { color: var(--f-red); }
.gf-foot__top:hover::after { transform: translateY(-3px); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .gf-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .gf-foot__inner { padding-top: 24px; }
  .gf-foot__cta-actions, .gf-foot__btn { width: 100%; }
  .gf-foot__btn { justify-content: center; }
  .gf-foot__grid { grid-template-columns: 1fr; gap: 34px; }
  .gf-foot__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 96px; } /* clear the sticky call bar */
}
@media (prefers-reduced-motion: reduce) { .gf-foot__beam { animation: none; display: none; } }
/* fit the wordmark, keep "Back to top" clear of the WhatsApp bubble, keep copy casing */
.gf-foot__mark { font-size: clamp(48px, 11.2vw, 176px); }
.gf-foot__bottom { padding-right: 96px; }
.gf-foot .main-footer_copyright, .gf-foot .glow-text { text-transform: none; }
@media (max-width: 640px) { .gf-foot__bottom { padding-right: 4px; } }
@media (max-width: 640px) { .gf-foot__mark { font-size: 10.4vw; } }

/* ==========================================================================
   v2 — engineering-drawing background + icons
   ========================================================================== */
/* the drawing sheet: a real-looking CNC part drawing printed faintly behind the footer, with paper grain */
.gf-foot__sheet {
  position: absolute; inset: 0; pointer-events: none;
  background:
    url("../images/cnc-drawing.svg") right -40px top 210px / min(1500px, 120%) auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.12 0 0 0 0 0.14 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.gf-foot::after { /* soft white wash on the left so the copy stays crisp */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0) 70%);
}
.gf-foot__inner { z-index: 1; }

/* column titles with an icon chip */
.gf-foot .gf-foot__title { display: flex; align-items: center; gap: 10px; }
.gf-foot .gf-foot__title i {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 7px; background: var(--f-grad); color: #fff; font-size: 13px;
  box-shadow: 0 8px 16px -8px rgba(217, 10, 10, 0.8);
}

/* link icons */
.gf-foot__ico {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--f-line);
  color: var(--f-red);
  font-size: 13px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--f-ease);
}
.gf-foot__col li a { display: inline-flex; align-items: center; gap: 12px; }
.gf-foot__col li a::before { display: none; }
.gf-foot__col li a:hover { transform: translateX(6px); }
.gf-foot__col li a:hover .gf-foot__ico, .gf-foot__visit a:hover .gf-foot__ico { background: var(--f-grad); border-color: transparent; color: #fff; transform: rotate(-8deg); }
.gf-foot__visit .gf-foot__addr, .gf-foot__visit .gf-foot__tel { display: flex; align-items: flex-start; gap: 12px; }
.gf-foot__visit .gf-foot__tel { align-items: center; }
.gf-foot__visit .gf-foot__addr .gf-foot__ico { margin-top: 2px; }

@media (max-width: 640px) {
  .gf-foot__sheet { background-position: center 520px, 0 0; background-size: 900px auto, auto; }
  .gf-foot::after { background: rgba(255, 255, 255, 0.55); }
}
/* lighter wordmark so the drawing and the name don't compete */
.gf-foot__mark { -webkit-text-stroke-color: rgba(27, 31, 36, 0.08); background: linear-gradient(180deg, rgba(217, 10, 10, 0.07), rgba(217, 10, 10, 0) 75%); -webkit-background-clip: text; background-clip: text; }
.gf-foot__logo img { height: 58px; width: auto; }
