/* Bizspaces home refresh: explicit structural fixes
   - hero title now centers as a block (margin-inline:auto)
   - hero CTAs always sit above the fold
   - section headers standardized across the page
   - portfolio card click target repaired
   - section dividers reused as a single token rule
*/
:root {
  --bz-rule: rgba(139, 92, 246, 0.28);
  --bz-rule-soft: rgba(139, 92, 246, 0.18);
  --bz-rule-strong: rgba(139, 92, 246, 0.5);
  --bz-eyebrow: rgba(167, 139, 250, 0.95);
}

/* === HERO ============================================================ */
#hero {
  position: relative;
  min-height: clamp(640px, 100svh, 880px);
  padding-top: clamp(120px, 14vh, 168px);
  padding-bottom: clamp(72px, 10vh, 120px);
  border-bottom: 1px solid var(--bz-rule);
}
#hero .hero__inner {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
  padding-inline: var(--container-pad, 1.5rem);
}
#hero .hero__eyebrow {
  border: 1px solid var(--bz-rule-strong);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: rgba(11, 12, 13, 0.55);
  color: var(--bz-eyebrow);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-inline: auto;
}

/* Title: center the constrained block, then wrap the lines cleanly */
#hero .hero__title {
  display: block;
  width: max-content;
  max-width: min(92vw, 18ch);
  margin: var(--space-6) auto var(--space-5);
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
  text-align: left;
}
#hero .hero__title-line { display: block; }
#hero .hero__title-line:last-child { color: var(--c-fg-soft); font-style: italic; }

/* Lead paragraph and TLDR follow the same center column */
#hero .hero__lead,
#hero .tldr,
#hero .hero__cta,
#hero .hero__meta {
  margin-inline: auto;
  text-align: center;
}
#hero .hero__lead { max-width: 60ch; }
#hero .tldr { max-width: 64ch; padding: 1rem 1.25rem; border-left: 2px solid var(--bz-rule-strong); text-align: left; }
#hero .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-5);
}
#hero .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  justify-content: center;
  margin-top: var(--space-6);
}

/* Buttons in the hero always sit above the trust band */
#hero .btn--primary { border: 1px solid #A78BFA; box-shadow: 0 15px 34px rgba(139, 92, 246, 0.18); }

/* === TRUST BAND ====================================================== */
#trust {
  border-block: 1px solid var(--bz-rule);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.13), rgba(255, 255, 255, 0.025) 30%, rgba(255, 255, 255, 0.025) 70%, rgba(139, 92, 246, 0.10));
}
#trust .trust__item { position: relative; }
#trust .trust__item + .trust__item::before {
  content: "";
  position: absolute;
  top: 14%;
  bottom: 14%;
  left: 0;
  width: 1px;
  background: var(--bz-rule);
}
#trust .trust__number { color: #A78BFA; letter-spacing: -0.04em; }

/* === SECTION HEADERS ================================================= */
#services,
#sectors,
#portfolio,
#testimonials,
#faq,
#contact,
#project-fit-home,
#process,
#zones {
  position: relative;
}
#services,
#portfolio,
#contact { background: linear-gradient(135deg, rgba(139, 92, 246, 0.045), transparent 42%); }
#sectors,
#process { background: linear-gradient(120deg, #0b0c0d, #16120b 55%, #0b0c0d); }

#services::before,
#sectors::before,
#portfolio::before,
#testimonials::before,
#contact::before,
#process::before,
#zones::before,
#faq::before,
#project-fit-home::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: clamp(1rem, 6vw, 6rem);
  right: clamp(1rem, 6vw, 6rem);
  height: 1px;
  background: linear-gradient(90deg, #8B5CF6, rgba(139, 92, 246, 0.14) 44%, transparent 76%);
}

/* Section header layout: eyebrow + title (with em) + lead, all left-aligned */
.section-header {
  max-width: 72rem;
  margin-inline: auto;
  text-align: left;
}
.section-header > .eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--bz-eyebrow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.section-header h2 {
  max-width: 18ch;
  margin: 0 0 1rem;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}
.section-header h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #8B5CF6, transparent);
}
.section-header h2 em {
  display: block;
  margin-top: 0.4rem;
  color: var(--c-fg-soft);
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  letter-spacing: -0.02em;
}
.section-header > p,
.section-header > .section-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--c-fg-soft);
  text-wrap: pretty;
  line-height: 1.65;
}

/* === SERVICE / SECTOR / PORTFOLIO CARDS ============================= */
#services .service-card,
#sectors .sector,
#portfolio .portfolio-card {
  border-color: var(--bz-rule);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
#services .service-card::after,
#sectors .sector::after,
#portfolio .portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
#services .service-card > *,
#sectors .sector > *,
#portfolio .portfolio-card > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  #services .service-card:hover,
  #sectors .sector:hover,
  #portfolio .portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(167, 139, 250, 0.78);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.30);
  }
  #services .service-card:hover::after,
  #sectors .sector:hover::after,
  #portfolio .portfolio-card:hover::after { opacity: 1; }
}

/* === PORTFOLIO ======================================================= */
#portfolio .portfolio-card__media {
  border-bottom: 1px solid var(--bz-rule);
  position: relative;
  overflow: hidden;
}
#portfolio .portfolio-card__badge {
  border: 1px solid var(--bz-rule-strong);
  background: rgba(139, 92, 246, 0.10);
  color: #A78BFA;
}
#portfolio .portfolio-card__cta,
#portfolio .portfolio-card__cta-arrow {
  pointer-events: none;
}
#portfolio .portfolio-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}
#portfolio .portfolio-card__live-btn {
  position: relative;
  z-index: 4;
}

/* === TESTIMONIALS =================================================== */
#testimonials .testimonial {
  border-color: var(--bz-rule);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}
#testimonials .testimonial--featured {
  border-color: rgba(167, 139, 250, 0.55);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.13), rgba(255, 255, 255, 0.035));
}

/* === CONTACT ========================================================= */
#contact .contact {
  border-color: var(--bz-rule-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

/* === PROJECT FIT HOME ================================================ */
#project-fit-home {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent 60%);
  border-block: 1px solid var(--bz-rule);
}

/* === MOBILE ========================================================== */
@media (max-width: 760px) {
  #trust .trust__item + .trust__item::before {
    top: 0;
    bottom: auto;
    left: 12%;
    right: 12%;
    width: auto;
    height: 1px;
  }
  #hero .hero__title { max-width: min(94vw, 14ch); }
  .section-header h2 { max-width: 100%; }
  #hero .hero__cta { width: 100%; }
  #hero .hero__cta .btn { flex: 1 1 auto; }
}

/* === HERO LAYOUT TIGHTENING ===
/* Bring CTAs above the fold on first paint */
#hero .hero__inner > .hero__divider { margin: var(--space-3) auto; }
#hero .hero__inner > .tldr { margin: 0 auto var(--space-4); padding: 0.85rem 1rem; font-size: 0.92rem; line-height: 1.5; }
#hero .hero__inner > .hero__lead { font-size: 0.95rem; margin: 0 auto var(--space-4); line-height: 1.5; }
#hero .hero__inner > .hero__cta { margin-top: var(--space-3); }
#hero .hero__inner > .hero__meta { margin-top: var(--space-4); font-size: 0.85rem; }

