/* Bids for Business © 2025 | All rights reserved */
/* Digital Fingerprint: b4b-postjob-css-complete-v20-secure */

/* ========= HEADER copied from HIW (sizes/behavior EXACT) ========= */
:root{
  --b4b-blue:#1d4ed8;
}
html{scroll-behavior:smooth}
body{margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* Scroll progress bar (fixed 4px, same as HIW) */
#scroll-progress{
  position:fixed; top:0; left:0; height:4px; width:0; z-index:60;
  background:#2563eb; transition:width .2s;
}

/* Navbar match */
.navbar-scrolled{background:rgba(255,255,255,.95);box-shadow:0 2px 6px rgba(0,0,0,.05);border-bottom:1px solid #e5e7eb}
#main-navbar{transition:padding 200ms ease}
#main-navbar.navbar-shrink{padding-top:.15rem !important;padding-bottom:.15rem !important}
@media (min-width:1024px){
  #main-navbar.navbar-shrink{
    padding-top:0 !important;
    padding-bottom:0 !important;
  }
  /* Physically reduce logo width so bar height really shrinks */
  #main-navbar.navbar-shrink .navbar-logo{
    width:6rem !important; /* 96px, matches homepage */
  }
}.navbar-logo{transition:all .3s ease}
.nav-link{position:relative;padding-bottom:2px}
.nav-link::after{
  content:""; position:absolute; width:0%; height:2px; bottom:0; left:0;
  background:#2563eb; transition:width .3s ease-in-out;
}
.nav-link:hover::after{width:100%}
.hamburger span{display:block;height:2px;background:#2563eb;transition:all .3s ease}
.hamburger.open span:nth-child(1){transform:rotate(45deg) translate(5px, 5px)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(5px, -5px)}
/* === MOBILE: real shrink + tight strapline when scrolled === */
@media (max-width:640px){
  #main-navbar.navbar-shrink{
    padding-top:.05rem !important;
    padding-bottom:.05rem !important;
  }

  /* FORCE the logo to actually be narrower than its base w-28 on phones */
  #main-navbar.navbar-shrink #navbar-logo{
    width:4.6rem !important;   /* adjust 4.4–4.9rem if you like */
    height:auto;
    transform:none !important;
  }

  /* Show + tuck the strapline */
  #main-navbar.navbar-shrink .mobile-strapline{
    display:inline-flex !important;
    align-items:center;
    font-size:.69rem;
    line-height:1.1;
    margin-left:.25rem !important;   /* <— set your desired nudge here (≈4px) */
    white-space:nowrap;
  }

  /* Belt-and-braces: ensure no container gap appears */
  #main-navbar .max-w-7xl.mx-auto > .flex{
    gap:0 !important;
    column-gap:0 !important;
  }
}
/* === Mobile strapline (base) === */
.mobile-strapline{
  display:none;                 /* default hidden (plus .hidden in HTML) */
  font-size:0.72rem;            /* ~11.5px */
  font-weight:600;
  color:#2563eb;
  /* no default margin-left — let mobile rule control it */
  white-space:nowrap;
  line-height:1.1;
}

/* ========= INDUSTRY CARDS (unchanged behavior: scroll + flip) ========= */
.carousel-scroll::-webkit-scrollbar { display: none; }

#carouselContainer {
  display: flex; overflow-x: auto; gap: 1.5rem;
  scroll-snap-type: x mandatory; padding: 0.5rem 0 1rem;
}

.carousel-card {
  flex: 0 0 auto; width: 260px; height: 320px; perspective: 1000px;
  scroll-snap-align: start; border-radius: 0.75rem; position: relative;
  transition: transform 0.2s ease;
}
.carousel-card:hover { transform: translateY(-2px); }

.card-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform 0.75s ease-in-out;
  will-change: transform;
}
.carousel-card:hover .card-inner { transform: rotateY(180deg); backface-visibility: hidden; }

.card-front,
.card-back {
  position: absolute; inset: 0; backface-visibility: hidden; transform-style: preserve-3d;
  border-radius: 0.75rem; overflow: hidden; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.card-front { background-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.card-front img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; border-radius: 0.75rem;
}

.card-back {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  transform: rotateY(180deg); padding: 1.25rem; text-align: center; color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}
.card-back-content h3 {
  font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}
.card-back-content p {
  margin-top: 0.25rem; font-size: 1rem; line-height: 1.6; font-weight: 500; color: #fff;
}

.carousel-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); color: #fff; text-align: center;
  font-size: 1rem; padding: 0.35rem 0; backdrop-filter: saturate(120%) blur(1px);
  border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem;
}

/* Arrow buttons */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  padding: 0.5rem 0.65rem; border-radius: 9999px; box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  z-index: 10; opacity: 0.7; transition: opacity 0.2s ease, transform 0.1s ease;
}
.carousel-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.03); }

/* Prevent layout shift before images load */
.carousel-card, .card-front { min-height: 320px; height: 320px; overflow: hidden; }

/* ========= INFO CARDS ========= */
.info-card {
  background: #fff; padding: 1.25rem; border-radius: 0.75rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.info-card h3 { text-align: center; color: #0f172a; font-weight: 600; font-size: 1.125rem; margin-bottom: 0.35rem; }
.info-card p { color: #4b5563; font-size: 0.95rem; line-height: 1.55; }
.info-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }

/* ========= FORM (structure unchanged; password fields removed by request) ========= */
.form-section { margin-bottom: 1.5rem; }
.form-section label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-section input, .form-section textarea, .form-section select {
  width: 100%; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 0.375rem; font-size: 1rem;
}

/* Address suggestions dropdown */
#address-suggestions {
  max-height: 200px; overflow-y: auto; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 0.375rem; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: absolute; z-index: 30; width: 100%;
}

/* Footer links */
.site-footer .footer-link { color: #1e3a8a; }
.site-footer .footer-link:hover { color: #1d4ed8; text-decoration: underline; }

/* Spinner utility for the SVG spin in JS */
@keyframes spinLoader { to { transform: rotate(360deg);} }
.animate-spin { animation: spinLoader 1s linear infinite; }

/* ========= MOBILE ========= */
@media (max-width: 768px) {
  .carousel-card { width: 200px; height: 240px; }
  .card-back-content p { font-size: 0.825rem; }
  .carousel-label { font-size: 0.875rem; }
}

