/* ==========================================================================
   ASTRA round 2 — homepage + header refinements
   Implements ASTRA_REVIEW_ROUND2.md §3, §5, §6.
   Scoped to r2-* / .r2-* so it cannot leak into interior pages.
   ========================================================================== */

/* --- Header: logo + nav genuinely grouped left, CTA pair consumes slack --- */
.r2-header .um-header-row { gap: 12px; }
.r2-header .um-brand { font-weight: 800; }
.r2-mobile-ctas {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px 0 4px; border-top: 1px solid var(--rule);
}
.r2-mobile-ctas .um-btn { flex: 1; white-space: nowrap; padding-inline: 12px; font-size: .875rem; }

@media (min-width: 1200px) {
  /* The point of round 2: no more dead zone between logo and nav.
     The flexible space moves from .um-brand to the CTA group. */
  .r2-header .um-brand { margin-right: 24px; }
  .r2-header .um-desktop-nav { gap: 18px; }
  .r2-header .um-desktop-nav > a { font-size: .8125rem; }
  .r2-header .um-header-ctas { margin-left: auto; gap: 10px; }
  .r2-header .um-header-ctas .um-btn { min-height: 46px; padding-inline: 16px; }
}
@media (max-width: 359px) {
  .r2-header .um-header-row { gap: 8px; }
  .r2-header .um-brand { font-size: 1.1rem; }
}

/* --- Homepage hero: composed split, not a flat navy wall --- */
.r2-hero {
  color: #fff;
  background-color: var(--blue);
  padding-block: 48px;
  background-image: radial-gradient(ellipse at 85% 20%, rgb(37 99 235 / .18), transparent 60%);
}
.r2-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.r2-hero__copy { min-width: 0; }
.r2-hero .um-eyebrow { color: var(--gold3); margin: 0 0 18px; }
.r2-title {
  font: 800 clamp(2.25rem, 3.5vw, 3.125rem) / 1.08 Inter, system-ui, sans-serif;
  letter-spacing: -.04em; margin: 0 0 22px; color: #fff;
}
/* Each business name is its own line, so "Shop." is never orphaned. */
.r2-title span { display: block; white-space: nowrap; }
.r2-slogan { font-size: 1.125rem; font-weight: 650; line-height: 1.5; margin: 0 0 12px; max-width: 36ch; }
.r2-description { font-size: 1rem; line-height: 1.65; color: #cbd5e1; max-width: 45ch; margin: 0; }
.r2-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.r2-hero__actions .um-btn { padding-inline: 16px; font-size: .875rem; }
.r2-text-action {
  display: inline-flex; align-items: center; min-height: 44px; color: #fff;
  font-size: .875rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px;
}
.r2-hero__figure { min-width: 0; margin: 0; }
.r2-hero__photo {
  padding: 12px; background: #fff; border-radius: 20px;
  box-shadow: 0 20px 48px rgb(0 0 0 / .18);
}
.r2-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 10px; }
.r2-hero__figure figcaption { font-size: .75rem; line-height: 1.5; color: #cbd5e1; margin-top: 10px; }

.um-btn--inverse {
  background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .55);
}
.um-btn--inverse:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

/* --- Equal business navigator: one coherent system, no mismatched photos --- */
.r2-business { background: #fff; border-bottom: 1px solid var(--rule); }
.r2-business__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.r2-business__grid li { min-width: 0; }
.r2-business__grid li + li { border-left: 1px solid var(--rule); }
.r2-business__grid a {
  display: grid; grid-template-columns: 32px 1fr; column-gap: 14px;
  padding: 26px 24px; height: 100%; color: var(--ink); text-decoration: none;
}
.r2-business__grid a:hover { background: var(--paper); }
.r2-icon { width: 28px; height: 28px; grid-row: 1 / span 4; color: var(--blue2); }
.r2-business h2 { font-size: 1.125rem; font-weight: 750; line-height: 1.3; margin: 0 0 6px; }
.r2-business p { font-size: .9375rem; margin: 0 0 3px; }
.r2-business__detail { font-size: .8125rem; color: #475569; line-height: 1.55; }
.r2-business__link { font-size: .8125rem; font-weight: 700; color: var(--blue2); margin-top: 12px; }

@media (min-width: 900px) and (max-width: 1199px) {
  .r2-hero__grid { gap: 32px; grid-template-columns: 1.12fr 1fr; }
  .r2-title { font-size: clamp(2.25rem, 3.7vw, 2.75rem); }
  .r2-business__grid a { padding-inline: 16px; column-gap: 10px; }
}
@media (max-width: 899px) {
  .r2-hero { padding-block: 32px; }
  .r2-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .r2-title { font-size: clamp(1.75rem, 6.8vw, 3rem); margin-bottom: 16px; }
  .r2-slogan { font-size: 1rem; max-width: none; margin-bottom: 10px; }
  .r2-description { font-size: .9375rem; max-width: 52ch; }
  .r2-hero__actions { margin-top: 20px; gap: 8px 16px; }
  /* One filled primary button; the other two routes become compact links, so
     mobile stops opening with three stacked 48px slabs. */
  .r2-hero__actions .um-btn--gold { flex-basis: 100%; }
  .r2-hero__actions .um-btn--inverse {
    border: 0; padding: 0; min-height: 44px; font-size: .8125rem;
    text-decoration: underline; text-underline-offset: 4px; background: transparent;
  }
  .r2-text-action { font-size: .8125rem; }
  .r2-hero__figure { width: min(100%, 420px); justify-self: center; }
  .r2-hero__photo { padding: 8px; border-radius: 14px; }
  .r2-hero__photo img { max-height: 300px; object-fit: contain; }
  .r2-business__grid { grid-template-columns: 1fr; }
  .r2-business__grid li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .r2-business__grid a { padding: 20px 0; }
}
@media (max-width: 359px) {
  /* Allow wrapping rather than clipping an H1 phrase at 200% zoom. */
  .r2-title { font-size: 1.65rem; }
  .r2-title span { white-space: normal; }
  .r2-hero__actions { column-gap: 12px; }
}

/* --- Print Shop promotion: keep all seven products, sell sooner --- */
.r2-print { padding-block: 64px; }
.r2-print__heading {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 40px; align-items: end; margin-bottom: 28px;
}
.r2-print__heading .um-lead { font-size: 1rem; margin: 0; max-width: 62ch; }
.r2-print__conversion { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.r2-print__conversion p { font-size: .8125rem; color: #475569; margin: 0; }
.r2-print .um-product-grid { gap: 24px; }
.r2-print .um-product-card { border-radius: 16px; box-shadow: 0 4px 18px rgb(11 23 38 / .035); }
.r2-print .um-product-media { aspect-ratio: 1; padding: 0; background: #e5e7eb; }
.r2-print .um-product-media img { object-fit: contain; }
.r2-print .um-product-body { padding: 22px; gap: 12px; }
.r2-print .um-product-body p { font-size: .9375rem; }
.r2-print .um-product-actions .um-btn {
  border: 0; padding: 0; justify-content: flex-start;
  background: transparent; text-decoration: underline; text-underline-offset: 4px;
}
.r2-print__note { font-size: .8125rem; color: #475569; margin-top: 20px; }
.r2-print__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 24px;
}
.r2-print__bottom p { font-weight: 650; margin: 0; }
@media (max-width: 899px) {
  .r2-print { padding-block: 40px; }
  .r2-print__heading { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Cookie consent: in document flow, never over the work --- */
.cookie-banner.r2-cookie {
  position: static; inset: auto; z-index: auto; padding: 12px 0;
  box-shadow: none; border-block: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); display: none;
}
.cookie-banner.r2-cookie.show { display: block; }
.r2-cookie__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; }
.r2-cookie p { font-size: .8125rem; line-height: 1.5; margin: 0; }
.r2-cookie a { color: var(--blue2); text-decoration: underline; }
.r2-cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
.r2-cookie .cookie-btn {
  min-height: 44px; border: 1px solid var(--blue2); background: #fff;
  color: var(--blue2); font-size: .8125rem; padding: 8px 14px;
}
@media (max-width: 639px) {
  .r2-cookie__inner { align-items: flex-start; flex-direction: column; }
}