/* HABCO Buyer's Guide – complementary styles */

.habco-red{color:#e21b23}

/* ── Landing intro ── */
.bg-landing-intro {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 12px;
}

.bg-landing-intro .about-premium-label {
  margin-bottom: 10px;
}

.bg-landing-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: #171717;
}

.bg-landing-intro p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #444;
  max-width: 68ch;
}

/* ── Article cards on landing ── */
.bg-articles {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 48px;
  display: grid;
  gap: 14px;
}

.bg-article-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px 20px;
  align-items: center;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.bg-article-card:hover,
.bg-article-card:focus-visible {
  border-color: #e21b23;
  box-shadow: 0 12px 32px rgba(0,0,0,.07);
  transform: translateY(-2px);
  outline: none;
}

.bg-article-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background .2s ease;
}

.bg-article-card:hover .bg-article-num,
.bg-article-card:focus-visible .bg-article-num {
  background: #e21b23;
}

.bg-article-body h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 650;
  color: #171717;
}

.bg-article-body p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: #555;
}

.bg-article-arrow {
  align-self: center;
  color: #e21b23;
  font-weight: 700;
  font-size: 1.15rem;
  opacity: .9;
}

/* ═══════════════════════════════════════════
   PREMIUM JOURNEY NAV (shared across BG pages)
   ═══════════════════════════════════════════ */
.bg-journey-nav {
  position: sticky;
  top: 0;
  z-index: 45;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}

.bg-journey-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
}

.bg-journey-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.bg-journey-track::-webkit-scrollbar {
  display: none;
}

.bg-journey-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px 16px;
  text-decoration: none;
  color: rgba(255,255,255,.55);
  position: relative;
  scroll-snap-align: start;
  transition: color .2s ease, background .2s ease;
}

.bg-journey-step:hover,
.bg-journey-step:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.04);
  outline: none;
}

.bg-journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(255,255,255,.08);
}

.bg-step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1.5px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.7);
  background: transparent;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.bg-step-text {
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bg-journey-step.is-active {
  color: #fff;
}

.bg-journey-step.is-active .bg-step-num {
  background: #e21b23;
  border-color: #e21b23;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(226,27,35,.28);
}

.bg-journey-step.is-active .bg-step-text {
  color: #fff;
}

.bg-journey-step.is-active::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 3px;
  background: #e21b23;
  border-radius: 3px 3px 0 0;
}

.bg-journey-step:not(.is-active):hover .bg-step-num {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* ── Article page layout ── */
.bg-article-page {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.bg-article-page .bg-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .22em;
  font-weight: 600;
  color: #e21b23;
  text-transform: uppercase;
}

.bg-article-page h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: #171717;
}

.bg-article-lede {
  margin: 0 0 28px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #444;
  border-left: 3px solid #e21b23;
  padding-left: 16px;
}

.bg-article-page h2 {
  margin: 2em 0 .65em;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 650;
  color: #171717;
}

.bg-article-page h3 {
  margin: 1.5em 0 .5em;
  font-size: 1.08rem;
  font-weight: 650;
  color: #222;
}

.bg-article-page p {
  margin: 0 0 1em;
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
}

.bg-article-page ul,
.bg-article-page ol {
  margin: 0 0 1.25em;
  padding-left: 1.35rem;
  color: #333;
  line-height: 1.6;
}

.bg-article-page li {
  margin: .4em 0;
}

.bg-article-page ul li::marker {
  color: #e21b23;
}

.bg-article-page a {
  color: #e21b23;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Prev / next */
.bg-article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e8e8e8;
}

.bg-article-nav a {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none !important;
  color: #222;
  background: #f6f6f6;
  border-radius: 5px;
  transition: background .18s ease, color .18s ease;
  max-width: 48%;
  border: 1px solid transparent;
}

.bg-article-nav a:hover,
.bg-article-nav a:focus-visible {
  background: #fff;
  color: #e21b23;
  border-color: #e8e8e8;
  outline: none;
}

.bg-article-nav .bg-nav-label {
  display: block;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  font-weight: 650;
}

.bg-article-nav .bg-nav-title {
  display: block;
  line-height: 1.3;
  color: inherit;
}

.bg-article-nav .bg-nav-home {
  max-width: none;
  background: #171717;
  color: #fff;
}

.bg-article-nav .bg-nav-home .bg-nav-label {
  color: rgba(255,255,255,.55);
}

.bg-article-nav .bg-nav-home:hover,
.bg-article-nav .bg-nav-home:focus-visible {
  background: #e21b23;
  color: #fff;
  border-color: transparent;
}

.bg-cta-band {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bg-article-card { transition: none; }
  .bg-article-card:hover { transform: none; }
  .bg-journey-step, .bg-step-num { transition: none; }
}

@media (max-width: 900px) {
  .bg-journey-step {
    flex: 0 0 auto;
    min-width: 108px;
    padding: 12px 14px 14px;
  }
  .bg-step-text { font-size: .64rem; }
}

@media (max-width: 768px) {
  .bg-landing-intro,
  .bg-articles,
  .bg-article-page {
    width: min(100% - 34px, 680px);
  }
  .bg-journey-wrap { width: min(100% - 16px, 100%); }
  .bg-article-card {
    grid-template-columns: 44px 1fr;
    gap: 12px 14px;
    padding: 16px 14px;
  }
  .bg-article-num {
    width: 40px;
    height: 40px;
    font-size: .95rem;
  }
  .bg-article-arrow { display: none; }
  .bg-article-nav a {
    max-width: 100%;
    width: 100%;
  }
  .bg-journey-step { min-width: 100px; }
}

@media (max-width: 480px) {
  .bg-landing-intro,
  .bg-articles,
  .bg-article-page {
    width: min(100% - 28px, 680px);
  }
  .bg-journey-step {
    min-width: 92px;
    padding: 11px 10px 13px;
  }
  .bg-step-num {
    width: 24px;
    height: 24px;
    font-size: .65rem;
  }
  .bg-step-text {
    font-size: .6rem;
    letter-spacing: .05em;
  }
}

/* ── EXPLORE HABCO CTA band (match socials.html) ── */
.about-premium{background:#fff}
.about-premium-wrap{
  width:min(1120px,calc(100% - 48px));
  margin:0 auto;
  padding:28px 0 40px;
}
.about-premium-label{
  margin-bottom:10px;
  font-size:11px;
  line-height:1;
  letter-spacing:.22em;
  font-weight:600;
  color:#e21b23;
  text-transform:uppercase;
}
.about-premium-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  margin-top:28px;
  padding:28px 32px;
  background:#171717;
}
.about-premium-cta .about-premium-label{margin-bottom:8px}
.about-premium-cta h3{
  margin:0;
  color:#fff;
  font-size:clamp(22px,2.6vw,30px);
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:650;
}
.about-premium-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.about-premium-actions .cta{white-space:nowrap}

@media(max-width:768px){
  .about-premium-wrap{width:min(100% - 34px,680px);padding:22px 0 32px}
  .about-premium-cta{display:block;margin-top:24px;padding:24px 20px}
  .about-premium-actions{justify-content:flex-start;margin-top:16px}
}
@media(max-width:480px){
  .about-premium-wrap{width:min(100% - 28px,680px);padding:18px 0 28px}
  .about-premium-cta{padding:22px 18px}
  .about-premium-actions{display:flex;flex-direction:column;align-items:stretch}
  .about-premium-actions .cta{text-align:center}
}

/* ═══════════════════════════════════════════
   Buyer's Guide entrance motion (cinematic)
   Matched to site timings: 1.2–1.85s, --smooth ease,
   larger travel distance, staggered delays.
   ═══════════════════════════════════════════ */

.bg-landing-intro{
  opacity:0;
  transform:translateY(40px);
  animation:bgRiseIn 1.45s cubic-bezier(.16,1,.3,1) .35s forwards;
}

.bg-articles .bg-article-card{
  opacity:0;
  transform:translateY(48px);
  animation:bgRiseIn 1.35s cubic-bezier(.16,1,.3,1) forwards;
}
.bg-articles .bg-article-card:nth-child(1){ animation-delay:.55s; }
.bg-articles .bg-article-card:nth-child(2){ animation-delay:.72s; }
.bg-articles .bg-article-card:nth-child(3){ animation-delay:.89s; }
.bg-articles .bg-article-card:nth-child(4){ animation-delay:1.06s; }
.bg-articles .bg-article-card:nth-child(5){ animation-delay:1.23s; }
.bg-articles .bg-article-card:nth-child(6){ animation-delay:1.40s; }

.bg-journey-nav{
  opacity:0;
  transform:translateY(-18px);
  animation:bgNavIn 1.15s cubic-bezier(.16,1,.3,1) .2s forwards;
}

.bg-article-page{
  opacity:0;
  transform:translateY(42px);
  animation:bgRiseIn 1.5s cubic-bezier(.16,1,.3,1) .4s forwards;
}

.bg-article-page .bg-kicker{
  opacity:0;
  transform:translateY(28px);
  animation:bgRiseIn 1.25s cubic-bezier(.16,1,.3,1) .55s forwards;
}

.bg-article-page h1{
  opacity:0;
  transform:translateY(36px);
  animation:bgRiseIn 1.4s cubic-bezier(.16,1,.3,1) .68s forwards;
}

.bg-article-page .bg-article-lede{
  opacity:0;
  transform:translateY(32px);
  animation:bgRiseIn 1.35s cubic-bezier(.16,1,.3,1) .85s forwards;
}

/* Body content settles after the title block */
.bg-article-page h2,
.bg-article-page > p:not(.bg-article-lede):not(.bg-kicker),
.bg-article-page ul,
.bg-article-page ol{
  opacity:0;
  transform:translateY(28px);
  animation:bgRiseIn 1.3s cubic-bezier(.16,1,.3,1) 1.05s forwards;
}

.bg-article-nav{
  opacity:0;
  transform:translateY(30px);
  animation:bgRiseIn 1.25s cubic-bezier(.16,1,.3,1) 1.25s forwards;
}

.about-premium{
  opacity:0;
  transform:translateY(36px);
  animation:bgRiseIn 1.4s cubic-bezier(.16,1,.3,1) .95s forwards;
}

@keyframes bgRiseIn{
  0%{
    opacity:0;
    transform:translateY(48px);
  }
  100%{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes bgNavIn{
  0%{
    opacity:0;
    transform:translateY(-22px);
  }
  100%{
    opacity:1;
    transform:translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .bg-landing-intro,
  .bg-articles .bg-article-card,
  .bg-journey-nav,
  .bg-article-page,
  .bg-article-page .bg-kicker,
  .bg-article-page h1,
  .bg-article-page .bg-article-lede,
  .bg-article-page h2,
  .bg-article-page > p:not(.bg-article-lede):not(.bg-kicker),
  .bg-article-page ul,
  .bg-article-page ol,
  .bg-article-nav,
  .about-premium{
    opacity:1 !important;
    transform:none !important;
    animation:none !important;
  }
}
