/* ===================================================================
   Grambl "How To Get Your Order" module
   Scoped under .ghb-howto only. Reuses the Grambl PvP theme's design
   tokens via var(--gp-*, fallback) so it inherits the live theme
   automatically, but still renders correctly (fallback hex) even if
   the theme stylesheet isn't loaded on a given page.
=================================================================== */

.ghb-howto{
  --ghb-void:      var(--gp-void, #0a0a0c);
  --ghb-surface:   var(--gp-surface, #141416);
  --ghb-surface-2: var(--gp-surface-2, #1b1b1e);
  --ghb-steel:     var(--gp-steel, #302f33);
  --ghb-steel-lt:  var(--gp-steel-lt, #48474c);
  --ghb-crimson:   var(--gp-crimson, #c8102e);
  --ghb-crimson-d: var(--gp-crimson-d, #7a0819);
  --ghb-text:      var(--gp-text, #f2efe9);
  --ghb-text-dim:  var(--gp-text-dim, #a29fa5);
  --ghb-text-faint:var(--gp-text-faint, #6f6d72);

  background: var(--ghb-surface);
  border: 1px solid var(--ghb-steel);
  margin: 0 0 24px 0;
  padding: 24px 24px 20px;
  position: relative;
  overflow: hidden;
}

/* Same diagonal crimson slash motif used on the homepage carousel, kept
   faint here so it reads as part of the same visual language without
   competing with the step content. */
.ghb-howto::before{
  content:'';
  position:absolute; top:-30%; right:-6%; width:38%; height:170%;
  background: linear-gradient(100deg, transparent 46%, var(--ghb-crimson-d) 48%, var(--ghb-crimson) 49%, var(--ghb-crimson-d) 50%, transparent 52%);
  opacity: .12;
  pointer-events: none;
}

.ghb-howto__head{ position: relative; margin-bottom: 18px; }
.ghb-howto__title{
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ghb-text);
  margin: 0 0 8px 0;
  padding-bottom: 12px;
  position: relative;
}
.ghb-howto__title::after{
  content:'';
  position:absolute; left:0; bottom:0; width:40px; height:3px;
  background: var(--ghb-crimson);
}
.ghb-howto__sub{
  color: var(--ghb-text-dim);
  font-size: 14px;
  margin: 0;
  max-width: 640px;
}

.ghb-howto__steps{
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ghb-howto__step{
  position: relative;
  background: var(--ghb-surface-2);
  border: 1px solid var(--ghb-steel);
  padding: 18px 16px 16px;
  transition: border-color .2s, transform .2s;
}
.ghb-howto__step:hover{
  border-color: var(--ghb-crimson-d);
  transform: translateY(-3px);
}

/* Connecting line between step cards on desktop */
.ghb-howto__step:not(:last-child)::after{
  content: '';
  position: absolute;
  top: 34px;
  right: -18px;
  width: 18px;
  height: 2px;
  background: var(--ghb-steel-lt);
  z-index: 1;
}

.ghb-howto__icon{
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ghb-void);
  border: 1px solid var(--ghb-crimson-d);
  color: var(--ghb-crimson);
  font-size: 18px;
  margin-bottom: 12px;
  position: relative;
}
.ghb-howto__num{
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ghb-crimson);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ghb-howto__step-title{
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 15px;
  color: var(--ghb-text);
  margin: 0 0 6px 0;
}
.ghb-howto__step-text{
  color: var(--ghb-text-dim);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.ghb-howto__cta{
  position: relative;
  margin-top: 20px;
  text-align: center;
}
.ghb-howto__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ghb-crimson);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 11px 26px;
  border: 1px solid var(--ghb-crimson);
  transition: background .15s, border-color .15s;
}
.ghb-howto__btn:hover{
  background: var(--ghb-crimson-d);
  border-color: var(--ghb-crimson-d);
  color: #fff;
}

/* ---------- Responsive: stack vertically with a left-side connector ---------- */
@media (max-width: 991px){
  .ghb-howto__steps{ grid-template-columns: 1fr 1fr; }
  .ghb-howto__step:nth-child(2)::after{ display: none; }
  .ghb-howto__step:last-child::after{ display: none; }
}

@media (max-width: 575px){
  .ghb-howto{ padding: 20px 16px 16px; }
  .ghb-howto__steps{ grid-template-columns: 1fr; gap: 12px; }
  .ghb-howto__step{ display: flex; align-items: flex-start; gap: 14px; padding: 14px; }
  .ghb-howto__step::after{ display: none; }
  .ghb-howto__icon{ margin-bottom: 0; flex: 0 0 auto; }
}
