/* ==========================================================================
   SF & BM Consultants — Homepage Styles Scoping
   ========================================================================== */

/* Hero Section Inline Extractions */
.text-accent-italic {
  font-style: italic;
  color: var(--accent);
}

/* SEO subtitle under H1 */
.hero-subtitle {
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 14px;
  margin-bottom: 4px;
  line-height: 1.5;
}

#geodesic-hero-canvas {
  width: 426px;
  height: 426px;
}

/* Bottom Lead-Generation CTA Layout Context */
.section.home-cta-section {
  border-bottom: none;
}

.home-cta-wrapper {
  padding: 60px 50px;
}

.home-cta-wrapper .home-cta-heading {
  font-size: clamp(32px, 4.5vw, 54px);
  max-width: 20ch;
}

.home-cta-wrapper .home-cta-body {
  max-width: 55ch;
}

/* Highlight Theme Variation for Buttons */
.btn.btn-accent-solid {
  background: var(--accent);
  color: #fff;
}

/* ═══ HERO — TABLET + MOBILE LAYOUT (globe first, centred) ═══ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;   /* override 1.4fr 1fr for this range */
    min-height: 0;                /* kill the 100vh stretch             */
    text-align: center;
    gap: 28px;
  }

  /* Reorder: globe → eyebrow bar → text content */
  .hero .hero-dome   { order: -1; }

  /* Reset explicit column span so `order` can reorder rows freely */
  .hero-topbar {
    grid-column: auto;
    justify-content: center;
  }

  /* Centre text content */
  .hero h1        { margin-left: auto; margin-right: auto; }
  .hero-lead      { margin-left: auto; margin-right: auto; }
  .hero-ctas      { justify-content: center; }

  /* Dome sizing — tablet */
  .hero-dome {
    min-height: 300px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: auto;             /* undo stretch from style.css */
  }

  #geodesic-hero-canvas {
    width: 360px;
    height: 360px;
  }
}

/* ═══ Tablet subtitle refinement ═══ */
@media (max-width: 1024px) {
  .hero-subtitle {
    font-size: clamp(11px, 2.6vw, 14px);
    letter-spacing: 0.05em;
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ═══ Phone refinements ═══ */
@media (max-width: 600px) {
  .hero-dome {
    min-height: 240px;
    max-height: 300px;
  }

  #geodesic-hero-canvas {
    width: 260px;
    height: 260px;
  }

  .hero-subtitle {
    font-size: 11px;
    letter-spacing: 0.04em;
    max-width: 32ch;
  }
}