/* ============================================
 * Book — Hero (Figma 849:4311)
 *
 * Light cream hero inside .tlm-page-header (the --on-light navbar
 * overlays it). Mobile: copy stacked above the book mockup. Desktop
 * (≥1024px): copy left at ~540px, mockup right, vertically centred.
 *
 * Also owns the shared `.tlm-book-amazon` outline button used here
 * and in the Get-your-copy CTA module.
 *
 * Horizontal padding + max-width cap come from .tlm-section /
 * .tlm-container in layout.css. Tokens own all colour/type/spacing.
 * ============================================ */

.tlm-book-hero {
  position: relative;
  background-color: var(--color-cream);
  color: var(--color-text-on-light);
  /* Clear the absolute navbar — literal px, NOT a spacing token
     (matches the service/approach hero clearance). */
  padding-top: 130px;
  padding-bottom: var(--space-section-y-mobile);
  overflow: hidden;
}

/* Full-bleed texture overlay (Figma 849:4312 at 30% opacity). Sits
   behind the content; the cream base shows through. */
.tlm-book-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tlm-book-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
}

.tlm-book-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.tlm-book-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: flex-start;
}

.tlm-book-hero__headings {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tlm-book-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-h1-mobile);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
}

.tlm-book-hero__subtitle {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-serif);
  font-size: var(--text-h4-mobile);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
}

.tlm-book-hero__visual {
  margin: 0;
  width: 100%;
  /* Mobile: book cover first, above the title + actions. Desktop keeps
     the DOM order (copy left, book right) via order:0 at 1024. */
  order: -1;
}

.tlm-book-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- Shared Amazon outline button (hero + CTA) ----- */

.tlm-book-amazon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 20px;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius-pill);
  color: var(--color-navy);
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.tlm-book-amazon__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
}

.tlm-book-amazon__logo {
  display: block;
  width: 90px;
  height: auto;
}

.tlm-book-amazon__chevron {
  width: 8px;
  height: 16px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .tlm-book-amazon:hover {
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-1px);
  }
}

/* ----- Action row: Amazon button + "Get Referred" side by side -----
   Shared by the hero (__copy) and the CTA section (__body). Wraps to a
   stack on narrow phones; align-items:stretch matches the shorter
   Amazon outline button to the taller pill button's height. */
.tlm-book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-sm);
}

/* ============================================
 * TABLET (≥768px)
 * ============================================ */

@media (min-width: 768px) {
  .tlm-book-hero__title {
    font-size: var(--text-display);
  }

  .tlm-book-hero__subtitle {
    font-size: var(--text-h4);
  }
}

/* ============================================
 * DESKTOP (≥1024px)
 * ============================================ */

@media (min-width: 1024px) {
  .tlm-book-hero {
    padding-top: 180px;
    padding-bottom: var(--space-4xl);
  }

  .tlm-book-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3xl);
  }

  .tlm-book-hero__copy {
    flex: 0 0 auto;
    width: 540px;
    gap: var(--space-4xl);
  }

  .tlm-book-hero__visual {
    order: 0;                                 /* row layout: book right */
    flex: 1 1 auto;
    /* Let the mockup bleed slightly past the container edge as in
       the Figma (the book sits proud on the right). */
    width: auto;
    min-width: 0;
  }

  .tlm-book-hero__image {
    width: 100%;
    max-width: 720px;
    margin-inline-start: auto;
  }
}
