/* ==========================================================================
   home-hero.css — Hero v2 homepage hero
   Extracted from main.css 2026-05-12 css-master refactor. Conditionally
   enqueued via inc/setup.php on is_front_page(). All rules are body.home-scoped.
   ========================================================================== */

/* ==========================================================================
   Hero v2 — design review fixes (2026-04-29)
   Stacked hero, portrait, dominant CTA, eyebrow brand-name protection.
   ========================================================================== */

/* Hero v2 layout: copy left, portrait right (asymmetric), stack on mobile */
body.home .hero.hero--stacked {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

@media (max-width: 760px) {
  body.home .hero.hero--stacked {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem 0 2.5rem;
  }
}

body.home .hero.hero--stacked .hero-copy {
  max-width: 36rem;
  gap: 1.4rem;
}

/* #175: Strengthen H1 so it wins eye-track over gold CTA at desktop.
   Increases minimum size (2.4→2.8rem) and weight (700→800) to give the
   headline more visual mass than the warm-fill button at first paint.
   The shimmer animation from body.home .hero-copy h1 still applies;
   this rule only overrides font-size and font-weight for this context. */
body.home .hero.hero--stacked .hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.8rem, 1.6rem + 4.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

body.home .hero.hero--stacked .hero-lede {
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--color-text-medium, var(--color-muted));
  max-width: 56ch;
  line-height: 1.55;
  margin: 0;
}

/* Hero actions: dominant gold primary, plain text secondary */
body.home .hero.hero--stacked .hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
body.home .hero.hero--stacked .hero-secondary-link {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  /* Block padding for a 44px tap target without disturbing the hero-actions
     layout — negative margin reclaims the layout space. */
  display: inline-flex;
  align-items: center;
  padding-block: 0.75rem;
  margin-block: -0.75rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

body.home .hero.hero--stacked .hero-secondary-link:hover,
body.home .hero.hero--stacked .hero-secondary-link:focus-visible {
  color: var(--color-text);
  border-bottom-color: var(--color-border-strong);
}

/* Portrait: square corners (matches no-radius theme), subtle frame, caption below */
body.home .hero-portrait {
  margin: 0;
  display: grid;
  gap: 1rem;
  justify-self: end;
  max-width: 320px;
}

body.home .hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
}

body.home .hero-portrait__caption {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-medium, var(--color-muted));
  display: grid;
  gap: 0.2rem;
}

body.home .hero-portrait__caption strong {
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  body.home .hero-portrait {
    justify-self: start;
    max-width: 220px;
  }
  body.home .hero-portrait__caption {
    font-size: 0.82rem;
  }
}

/* #176: 375px collision — H1 wraps too many lines; portrait competes for
   weight in the same scroll region.
   Fix: tighter H1 clamp (≤3 lines at 375px) + portrait shrinks to thumbnail
   so it reads as supporting identity element, not co-equal to headline.
   CTA must be visible without scrolling on a 667px min-height viewport. */
@media (max-width: 480px) {
  body.home .hero.hero--stacked .hero-copy h1 {
    font-size: clamp(1.65rem, 7vw, 1.9rem);
    max-width: none;
    letter-spacing: -0.03em;
  }

  body.home .hero-portrait {
    max-width: 128px;
  }

  body.home .hero-portrait__caption {
    font-size: 0.78rem;
  }
}

/* The discovery call: relocated to its own band, narrower, centered */
.home-discovery-card {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.home-discovery-card__inner {
  /* Full-width inside the site-shell container (live-review 2026-05-11:
     "The discovery call should be full width"). The previous max-width: 56rem
     made the card float as a narrow column in the middle of the page; the
     surrounding context already constrains via .site-shell so removing the
     inner cap lets the card command its row. */
  max-width: none;
  margin: 0;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 1rem;
}

.home-discovery-card__inner h2 {
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--color-text);
}

.home-discovery-card__inner p {
  margin: 0;
  color: var(--color-text-medium, var(--color-text));
  line-height: 1.6;
}

.home-discovery-card__inner ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--color-text-medium, var(--color-text));
  line-height: 1.55;
}

.home-discovery-card__actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.home-discovery-card__email {
  color: var(--color-muted);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.home-discovery-card__email:hover,
.home-discovery-card__email:focus-visible {
  color: var(--color-text);
  border-bottom-color: var(--color-border-strong);
}


/* P0 mobile nav fix: at narrow viewports the brand-wrap was taking 100% width
   and pushing the menu-toggle + header-actions off screen. Allow the brand to
   shrink, truncate the tagline, and keep the hamburger reachable. */
@media (max-width: 540px) {
  .site-header .header-shell {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .site-header .brand-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-header .site-brand-text {
    min-width: 0;
    overflow: hidden;
  }
  .site-header .site-brand-tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
  /* Phone label is already hidden ≤480px; on the tightest widths keep only
     the hamburger and the search/phone icons to guarantee nav is reachable. */
  .site-header .header-cta {
    display: none;
  }
}

/* Sticky-header anchor offset: prevents headings from landing under the
   navy header bar when scrolled to via #anchor or the page-toc dots. */
:root {
  --site-header-offset: 96px;
}
@media (max-width: 860px) {
  :root { --site-header-offset: 72px; }
}
h1[id], h2[id], h3[id], h4[id], [id]:target {
  scroll-margin-top: var(--site-header-offset);
}
html {
  scroll-padding-top: var(--site-header-offset);
}

