/*!
 * Concept B — Site Report — Homepage Hero
 * Module 03. Scoped to .hero-b so it coexists with the existing Concept A
 * (component-library.css) styling the rest of this page and every other page.
 * Tokens below are exactly the values locked in Module 02 — nothing new.
 */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero-b {
  --hb-ink: #17181A;
  --hb-paper: #F5F5F0;
  --hb-concrete-light: #A8A69C;
  --hb-accent: #E2571C;
  --hb-accent-dark: #B8420F;
  --hb-accent-light: #F0855A;

  --hb-font-display: 'Oswald', 'Bahnschrift', 'Arial Narrow', sans-serif;
  --hb-font-body: 'Public Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --hb-font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --hb-radius-sm: 4px;
  --hb-radius: 6px;
  --hb-shadow-sm: 0 1px 2px rgba(23,24,26,0.08);
  --hb-shadow-lg: 0 8px 32px rgba(23,24,26,0.18);

  background:
    linear-gradient(100deg, rgba(23,24,26,0.94) 0%, rgba(23,24,26,0.82) 45%, rgba(23,24,26,0.6) 100%),
    var(--hb-ink) url("../wp-content/uploads/2026/07/epoxy-garage-floor-hero-ipswich.jpg") center/cover no-repeat;
  color: var(--hb-paper);
  padding-block: 2rem;
}

.hero-b__container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* ---- left column: headline / copy / CTAs / trust chips ---- */
.hero-b__eyebrow {
  display: block;
  font-family: var(--hb-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hb-accent-light);
  margin-bottom: 0.5rem;
}
.hero-b__title {
  font-family: var(--hb-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--hb-paper);
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  text-wrap: balance;
  max-width: 16ch;
}
.hero-b__lede {
  font-family: var(--hb-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hb-concrete-light);
  max-width: 42ch;
  margin: 0 0 1.5rem;
}

.hero-b__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-b__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--hb-font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.95em 1.4em;
  min-height: 44px;
  border-radius: var(--hb-radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}
.hero-b__btn:hover { transform: translateY(-2px); }
.hero-b__btn--accent {
  background: var(--hb-accent);
  color: var(--hb-ink);
}
.hero-b__btn--accent:hover { background: var(--hb-accent-light); }
.hero-b__btn--outline {
  background: transparent;
  color: var(--hb-paper);
  border-color: rgba(245,245,240,0.4);
}
.hero-b__btn--outline:hover { border-color: var(--hb-paper); background: rgba(245,245,240,0.08); }

.hero-b__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.hero-b__chips li {
  font-family: var(--hb-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hb-paper);
  background: rgba(245,245,240,0.08);
  border: 1px solid rgba(245,245,240,0.18);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}

/* ---- right column: quote-form box ---- */
.hero-b__formbox, .hero-b__ctabox {
  background: var(--hb-paper);
  color: var(--hb-ink);
  border-radius: var(--hb-radius);
  box-shadow: var(--hb-shadow-lg);
  padding: 1.5rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 1rem;
}
.hero-b__form-embed {
  width: 100%;
}
.hero-b__form-embed iframe {
  display: block;
  width: 100%;
  min-height: 360px;
}
.hero-b__form-heading {
  font-family: var(--hb-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  color: var(--hb-ink);
  margin: 0 0 0.6rem;
}
.hero-b__form-note {
  font-family: var(--hb-font-body);
  font-size: 0.92rem;
  color: #6B6A63;
  margin: 0 0 1.25rem;
  max-width: 34ch;
}
.hero-b__form-phone.hero-b__btn--accent {
  color: var(--hb-ink);
  align-self: flex-start;
}

/* Tablet (768–1023px): the real GHL form (multi-step, checkbox-heavy) is too tall to
   fit above the fold at this width in a narrow side-by-side column — it needs full
   container width to avoid excess label-wrapping. So at this tier only, the hero stays
   single-column but the form is reordered ABOVE the content (CSS `order`, no HTML
   change) so it's still the first thing visible, full-width, no scrolling required. */
@media (min-width: 768px) {
  .hero-b { padding-block: 2.5rem; }
  .hero-b__container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-b__form-col { order: -1; }
  .hero-b__title { font-size: clamp(2.1rem, 1.5rem + 2vw, 2.9rem); max-width: none; }
  .hero-b__formbox, .hero-b__ctabox { min-height: 300px; padding: 2rem; }
}

/* Desktop (1024px+): restore the side-by-side two-column layout — verified the real
   form fits fully above the fold at this width, so the split layout is safe here. */
@media (min-width: 1024px) {
  .hero-b { padding-block: 3rem; }
  .hero-b__container {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
  }
  .hero-b__form-col { order: 0; }
  .hero-b__title { max-width: 14ch; }
  .hero-b__formbox, .hero-b__ctabox { min-height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-b__btn { transition: none; }
  .hero-b__btn:hover { transform: none; }
}
