/* ============================================================
   BIDDING HERO  —  content-box
   Simple two-box split: white content left | image right
   ============================================================ */

:root {
  --bh-gold:      #c6a87c;
  --bh-gold-dark: #a88a5a;
  --bh-black:     #111111;
}

/* ── Section wrapper ── */
.content-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  margin-top: 0; /* moved to top */
  overflow: hidden;
}

/* ── LEFT: white content box ── */
.content-box__left {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5rem 6rem 6rem;
}

/* Title */
.content-box__title {
  margin: 0 0 2rem;
  font-family: var(--font-display, serif);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.content-box__row {
  display: block;
  overflow: hidden;
  margin-bottom: -0.3em;
  transform: translateZ(0);
}

.content-box__word {
  display: inline-block;
  font-size: clamp(3rem, 5.5vw, 6rem);
  font-weight: 700;
  /* initial state – GSAP reveals upward */
  transform: translateY(105%);
}

.cb-word--black { color: var(--bh-black); }

.cb-word--gold {
  background: linear-gradient(135deg, var(--bh-gold) 0%, var(--bh-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateZ(0);
}

/* Thin gold rule */
.content-box__rule {
  width: 40px;
  height: 1px;
  background: var(--bh-gold);
  margin-bottom: 2rem;
  transform-origin: left center;
  transform: scaleX(0); /* GSAP reveals */
}

/* Description */
.content-box__desc {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #555;
  max-width: 520px;
  /* initial state */
  opacity: 0;
  transform: translateY(16px);
}

/* ── RIGHT: image box ── */
.content-box__right {
  position: relative;
  overflow: hidden;
  background: #111;
}

.content-box__img-clip {
  position: absolute;
  inset: 0;
  /* initial state – GSAP clips from bottom */
  clip-path: inset(100% 0% 0% 0%);
}

.content-box__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* slight initial scale – GSAP settles to 1 */
  transform: scale(1.06);
}

/* ── Fix 11: No-JS Fallback ──
   If GSAP never loads, these elements remain permanently hidden.
   The .js-ready class is added by script.js on DOMContentLoaded —
   so un-initialised state (opacity:0 / translateY) only applies when JS is running.
   Without JS, elements are visible by default.
*/
body:not(.js-ready) .content-box__word {
  transform: translateY(0%) !important;
}
body:not(.js-ready) .content-box__desc {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
body:not(.js-ready) .content-box__rule {
  transform: scaleX(1) !important;
}
body:not(.js-ready) .content-box__img-clip {
  clip-path: inset(0% 0% 0% 0%) !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .content-box__left {
    padding: 4rem 3rem;
  }
}

@media (max-width: 900px) {
  .content-box {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
    margin-top: 0;
  }

  .content-box__right {
    height: 55vw;
    min-height: 260px;
    order: -1; /* image on top on mobile */
  }

  .content-box__img-clip {
    position: relative;
    height: 100%;
  }

  .content-box__left {
    padding: 3.5rem 2rem 4rem;
  }
}

@media (max-width: 480px) {
  .content-box__left { padding: 3rem 1.5rem; }
}


/* ============================================================
   BIDDING SERVICES GRID
   ============================================================ */
.bidding-services {
  padding: 8rem 5%;
  position: relative;
  z-index: 2;
}

.bs-title {
  font-family: var(--font-display, serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 4rem;
  color: #111;
}

.bs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card Styling */
.bs-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.bs-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.bs-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.bs-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.bs-card:hover .bs-card__img {
  transform: scale(1.08);
}

.bs-card__content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bs-card__title {
  font-family: var(--font-display, serif);
  font-size: 1.5rem;
  color: #111;
  margin: 0 0 1.25rem 0;
  line-height: 1.3;
}

.bs-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.bs-card__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.bs-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bh-gold);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .bidding-services {
    padding: 4rem 5%;
  }
  .bs-title {
    margin-bottom: 2.5rem;
  }
  .bs-card__content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .content-box__left {
    padding: 2rem 1.25rem;
  }
  .bidding-services {
    padding: 3rem 4%;
  }
  .bs-card__content {
    padding: 1.25rem;
  }
}
