/* ─────────────────────────────────────────────────────────────
   TruFlow launch styles
   - "New: TruFlow" primary-nav button (all pages)
   - TruFlow promo pop-up (home page)
   ───────────────────────────────────────────────────────────── */
:root {
  --tf-amber: #F5A623;
  --tf-amber-hot: #FFB938;
  --tf-amber-ink: #1a1204;
}

/* ─── NAV BUTTON ─── */
.nav-links > li > a.nav-truflow {
  color: #fff;
  border: 1px solid rgba(245,166,35,.55);
  background: rgba(245,166,35,.08);
  padding: 6px 13px 6px 6px;
  margin: 0 6px;
  gap: 8px;
  white-space: nowrap;
}
.nav-links > li > a.nav-truflow:hover,
.nav-links > li > a.nav-truflow:focus-visible,
.nav-links > li > a.nav-truflow.active {
  color: #fff;
  background: rgba(245,166,35,.18);
  border-color: var(--tf-amber);
}
.nav-new-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--tf-amber-ink);
  background: var(--tf-amber);
  padding: 4px 6px 3px;
  border-radius: 2px;
  animation: tf-badge-pulse 2.6s ease-out infinite;
}
@keyframes tf-badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,166,35,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}
/* Tighten the desktop nav a little so the extra item fits before the mobile breakpoint */
@media (min-width: 1025px) and (max-width: 1240px) {
  .nav-links > li > a { padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .nav-links > li > a.nav-truflow { padding: 6px 10px 6px 6px; margin: 0 4px; }
}
@media (max-width: 1024px) {
  /* Mobile menu: every row full-width and left-aligned (was centered at content width) */
  .nav-links.mobile-open { align-items: stretch; }
  .nav-links.mobile-open > li { width: 100%; }
  .nav-links.mobile-open > li > a.nav-truflow {
    margin: 0;
    border: none;
    border-left: 3px solid var(--tf-amber);
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
    padding: 14px 24px 14px 21px;
    background: rgba(245,166,35,.08);
  }
}


/* ─── HOME HERO: TRUFLOW CARD ─── */
/* Two-column hero: headline block left, TruFlow card centered in the space to its right.
   Card top aligns with the headline, bottom with the buttons; pops in ~0.5s after load. */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  /* text column sized to the headline; card centered in the space to its right */
  grid-template-columns: minmax(0, 700px) minmax(428px, 1fr);
  align-items: stretch;
  column-gap: 0;
  padding: 0 0 80px 80px;
}
.hero-inner .hero-content { padding: 0; max-width: none; }
.tf-hero-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 380px;
  justify-self: center;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  background: rgba(8,15,24,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-top: 3px solid var(--tf-amber);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  font-family: 'Barlow', sans-serif;
  opacity: 0;
  transform: translateY(16px) scale(.94);
  animation: tf-card-pop .6s cubic-bezier(.2,1.3,.4,1) .45s forwards;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
@keyframes tf-card-pop {
  to { opacity: 1; transform: none; }
}
.tf-hero-card:hover, .tf-hero-card:focus-visible {
  border-color: rgba(255,255,255,.28);
  border-top-color: var(--tf-amber-hot);
  box-shadow: 0 28px 70px rgba(0,0,0,.6);
  outline: none;
}
.tf-hero-card-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 100px;
  background: #0b1520 url('../images/truflow-field-sm.jpg') center 42% / cover no-repeat;
}
.tf-hero-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,15,24,0) 40%, rgba(8,15,24,.9) 100%);
}
.tf-hero-card-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.tf-hero-card-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fd08c;
  box-shadow: 0 0 0 3px rgba(111,208,140,.25);
}
.tf-hero-card-body { padding: 20px 24px 22px; }
.tf-hero-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tf-hero-card-top .nav-new-badge { animation: none; }
.tf-hero-card-logo { display: block; height: 28px; width: auto; }
.tf-hero-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  color: rgba(255,255,255,.88);
  margin: 0 0 10px;
}
.tf-hero-card-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .005em;
  color: var(--tf-amber);
  margin: 0 0 22px;
}
.tf-hero-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tf-amber);
  background: transparent;
  border: 1.5px solid var(--tf-amber);
  padding: 10px 18px;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.tf-hero-card:hover .tf-hero-card-cta,
.tf-hero-card:focus-visible .tf-hero-card-cta { background: var(--tf-amber); color: var(--tf-amber-ink); }
.tf-hero-card-cta span { transition: transform .2s; }
.tf-hero-card:hover .tf-hero-card-cta span { transform: translateX(3px); }

/* Narrower screens: card drops below the hero text */
@media (max-width: 1100px) {
  .hero:has(.hero-inner) { padding-top: 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding: 0 80px 56px; }
  .tf-hero-card { justify-self: start; width: 100%; max-width: 520px; }
  .tf-hero-card-media { flex: none; height: 130px; }
}
@media (max-width: 1024px) {
  .hero-inner { padding: 0 40px 48px; }
}
@media (max-width: 640px) {
  .hero:has(.hero-inner) { padding-top: 40px; }
  .hero-inner { padding: 0 40px 40px; }
  .tf-hero-card { max-width: none; }
  .tf-hero-card-media { height: 110px; }
  .tf-hero-card h2 { font-size: 24px; }
  .tf-hero-card-kicker { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-hero-card { animation: none; opacity: 1; transform: none; }
}

/* ─── DCS360 CLIENT LOGIN (utility bar, all pages) ─── */
.utility-bar a.util-dcs360 {
  color: #fff;
  background: var(--dcs-blue, #176088);
  padding: 4px 11px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.utility-bar a.util-dcs360:hover,
.utility-bar a.util-dcs360:focus-visible { background: var(--dcs-blue-light, #006EB2); color: #fff; }
.util-dcs360 .util-dcs360-short { display: none; }
@media (max-width: 480px) {
  .util-dcs360 .util-dcs360-long { display: none; }
  .util-dcs360 .util-dcs360-short { display: inline; }
}

/* ─── BROCHURE DOWNLOAD LINK (TruFlow + DCS360 pages) ─── */
.dl-link{display:inline-flex;align-items:center;gap:8px;font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.82);text-decoration:none;padding:6px 2px;border-bottom:1px solid rgba(255,255,255,.3);transition:color .2s,border-color .2s}
.dl-link:hover,.dl-link:focus-visible{color:#fff;border-color:#fff}
.dl-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dl-link small{font-size:11px;font-weight:600;opacity:.6;letter-spacing:.06em}
.dl-link-dark{color:var(--dcs-blue,#176088);border-color:rgba(23,96,136,.35)}
.dl-link-dark:hover,.dl-link-dark:focus-visible{color:var(--dcs-blue-dark,#0d3f59);border-color:var(--dcs-blue-dark,#0d3f59)}
