/* ==========================================================================
   Guide promo band — Goji Investments (VERSION 2, 2 Dec 2026)
   v2: bigger image, image sits nearer the text, sizes scale with the band width
   Class prefix: goji-guide-promo
   No JavaScript. The module paints its own background (Background colour
   field, default navy #061328) because the circles are clipped at the
   band's edges.
   ========================================================================== */

/* GTSuper @font-face — only needed for the Design Manager preview
   (child.css already loads it on live pages). Copy the src URL from the
   Testimonial module to enable.
@font-face {
  font-family: "GTSuper";
  src: url("PASTE_GTSUPER_URL_HERE") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

.goji-guide-promo {
  /* Colours (dark scheme = default) */
  --gp-bg: #061328;
  --gp-eyebrow: #ff5456;
  --gp-heading: #ffffff;
  --gp-highlight: #ff5456;
  --gp-text: #c9ccd3;
  --gp-ring-colour: rgba(255, 255, 255, 0.28);
  --gp-line-colour: rgba(208, 32, 48, 0.85);
  --gp-btn: #d02030;
  --gp-btn-hover: #ff5456;
  --gp-btn-text: #ffffff;
  --gp-outline: #ffffff;
  --gp-outline-hover-text: #0a0a23;

  /* Shape */
  --gp-radius: 0px;
  --gp-btn-radius: 6px;
  --gp-pad-x: 56px;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--gp-bg);
  border-radius: var(--gp-radius);
  overflow: hidden;
  font-family: inherit;
  /* Lets the circles size themselves from the band's own width */
  container-type: inline-size;
}

.goji-guide-promo *,
.goji-guide-promo *::before,
.goji-guide-promo *::after {
  box-sizing: border-box;
}

/* Light scheme */
.goji-guide-promo--light {
  --gp-bg: #f2f3f5;
  --gp-eyebrow: #d02030;
  --gp-heading: #0a0a23;
  --gp-highlight: #d02030;
  --gp-text: #4b5262;
  --gp-ring-colour: #c9ccd3;
  --gp-line-colour: rgba(208, 32, 48, 0.45);
  --gp-outline: #d02030;
  --gp-outline-hover-text: #ffffff;
}

.goji-guide-promo--rounded {
  --gp-radius: 16px;
}

/* Width */
.goji-guide-promo--w-contained { max-width: 1200px; }
.goji-guide-promo--w-wide      { max-width: 1440px; }
.goji-guide-promo--w-full      { max-width: none; }
/* --------------------------------------------------------------------------
   Full bleed (field: Stretch background to screen edges)  — VERSION 2.5
   The band breaks out of whatever HubSpot column it sits in and spans the
   whole screen. Its content then sits in the same centred box as the other
   Goji modules: Layout width = 1200 / 1440 / none, no side padding
   (20px at 1000px and below). So the text lines up with a Wide module even
   if this module's own section isn't set to full width.
   -------------------------------------------------------------------------- */
.goji-guide-promo.goji-guide-promo--bleed {
  --gp-radius: 0px;
  --gp-pad-x: 0px;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.goji-guide-promo--bleed .goji-guide-promo__inner {
  margin-left: auto !important;
  margin-right: auto !important;
}

.goji-guide-promo--bleed.goji-guide-promo--w-contained .goji-guide-promo__inner { max-width: 1200px !important; }
.goji-guide-promo--bleed.goji-guide-promo--w-wide .goji-guide-promo__inner      { max-width: 1440px !important; }
.goji-guide-promo--bleed.goji-guide-promo--w-full .goji-guide-promo__inner      { max-width: none !important; }

@media (max-width: 1000px) {
  .goji-guide-promo.goji-guide-promo--bleed {
    --gp-pad-x: 20px;
  }
}

/* 100vw includes the scrollbar on Windows, which would add a few pixels
   of sideways scroll. Clip it on pages that use the full-bleed band. */
html:has(.goji-guide-promo--bleed),
body:has(.goji-guide-promo--bleed) {
  overflow-x: clip;
}
/* Space outside the band */
.goji-guide-promo--mt-none   { margin-top: 0; }
.goji-guide-promo--mt-small  { margin-top: 32px; }
.goji-guide-promo--mt-medium { margin-top: 64px; }
.goji-guide-promo--mt-large  { margin-top: 96px; }
.goji-guide-promo--mb-none   { margin-bottom: 0; }
.goji-guide-promo--mb-small  { margin-bottom: 32px; }
.goji-guide-promo--mb-medium { margin-bottom: 64px; }
.goji-guide-promo--mb-large  { margin-bottom: 96px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.goji-guide-promo__inner {
  /* Circle size: fixed fallback, then 30% of the band width (300–440px) */
  --gp-ring: 360px;
  --gp-ring-offset: calc(var(--gp-ring) * 0.23);  /* second circle sits this far right */
  --gp-image: 0.8;                                /* image width as a share of the circle */

  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  align-items: center;
  column-gap: 40px;
  padding: 18px var(--gp-pad-x);
  min-height: calc(var(--gp-ring) + 36px);
}

.goji-guide-promo--no-visual .goji-guide-promo__inner {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.goji-guide-promo__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 32px 0;
}

@supports (width: 1cqi) {
  .goji-guide-promo__inner {
    --gp-ring: clamp(300px, 30cqi, 440px);
  }
}

/* --------------------------------------------------------------------------
   Text
   -------------------------------------------------------------------------- */
.goji-guide-promo .goji-guide-promo__eyebrow {
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--gp-eyebrow) !important;
}

.goji-guide-promo .goji-guide-promo__heading {
  max-width: 14em;
  margin: 0 0 20px !important;
  padding: 0 !important;
  font-family: "GTSuper", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.5rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--gp-heading) !important;
}

.goji-guide-promo .goji-guide-promo__highlight {
  font-family: inherit !important;
  font-style: italic !important;
  font-weight: inherit !important;
  color: var(--gp-highlight) !important;
}

.goji-guide-promo .goji-guide-promo__description {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 520px;
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--gp-text) !important;
}

/* --------------------------------------------------------------------------
   Button — same shape as New button / CTA band
   -------------------------------------------------------------------------- */
.goji-guide-promo__actions {
  margin-top: 32px;
}

.goji-guide-promo .goji-guide-promo__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 32px !important;
  border: 2px solid var(--gp-btn) !important;
  border-radius: var(--gp-btn-radius) !important;
  background: var(--gp-btn) !important;
  color: var(--gp-btn-text) !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.goji-guide-promo .goji-guide-promo__button::before,
.goji-guide-promo .goji-guide-promo__button::after {
  content: none !important;
  display: none !important;
}

.goji-guide-promo .goji-guide-promo__button--solid:hover,
.goji-guide-promo .goji-guide-promo__button--solid:focus-visible {
  background: var(--gp-btn-hover) !important;
  border-color: var(--gp-btn-hover) !important;
  color: var(--gp-btn-text) !important;
}

.goji-guide-promo .goji-guide-promo__button--outline {
  background: transparent !important;
  border-color: var(--gp-outline) !important;
  color: var(--gp-outline) !important;
}

.goji-guide-promo .goji-guide-promo__button--outline:hover,
.goji-guide-promo .goji-guide-promo__button--outline:focus-visible {
  background: var(--gp-outline) !important;
  border-color: var(--gp-outline) !important;
  color: var(--gp-outline-hover-text) !important;
}

.goji-guide-promo .goji-guide-promo__button:focus-visible {
  outline: 2px solid var(--gp-eyebrow);
  outline-offset: 3px;
}

/* Editor-only reminder */
.goji-guide-promo__notice {
  margin: 16px 0 0 !important;
  padding: 10px 14px !important;
  border: 1px dashed var(--gp-eyebrow);
  border-radius: 6px;
  font-size: 14px !important;
  color: var(--gp-text) !important;
}

/* --------------------------------------------------------------------------
   Visual: two outline circles, red line, guide image
   -------------------------------------------------------------------------- */
.goji-guide-promo__media {
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  display: flex;
  /* Centred in the right-hand column; if there isn't room it runs off the
     right edge (and gets clipped) instead of sliding under the text */
  justify-content: flex-start;
  justify-content: safe center;
}

.goji-guide-promo__visual {
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--gp-ring) + var(--gp-ring-offset));
  height: var(--gp-ring);
}

.goji-guide-promo__ring {
  position: absolute;
  top: 0;
  width: var(--gp-ring);
  height: var(--gp-ring);
  border: 1px solid var(--gp-ring-colour);
  border-radius: 50%;
  pointer-events: none;
}

.goji-guide-promo__ring--a { left: 0; }
.goji-guide-promo__ring--b { left: var(--gp-ring-offset); }

/* Red line: starts behind the guide pages and runs out past the band edge */
.goji-guide-promo__line {
  position: absolute;
  top: 54%;
  left: calc(var(--gp-ring) * 0.5);
  width: 100vw;
  height: 1px;
  background: var(--gp-line-colour);
  pointer-events: none;
}

.goji-guide-promo__image {
  position: absolute;
  top: 50%;
  left: calc(var(--gp-ring) * 0.5);
  z-index: 1;
  display: block;
  max-width: none;
  width: calc(var(--gp-ring) * var(--gp-image));
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: translate(-48%, -50%);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .goji-guide-promo {
    --gp-pad-x: 48px;
  }

  .goji-guide-promo__inner {
    column-gap: 32px;
  }
}

@media (max-width: 991px) {
  .goji-guide-promo {
    --gp-pad-x: 40px;
  }

  .goji-guide-promo__inner {
    --gp-ring: 320px;
  }

  .goji-guide-promo__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .goji-guide-promo__content {
    max-width: 640px;
    padding: 0;
  }

  .goji-guide-promo .goji-guide-promo__heading,
  .goji-guide-promo .goji-guide-promo__description {
    max-width: none;
  }

  /* Visual sits under the text, centred on the first circle */
  .goji-guide-promo__media {
    justify-content: center;
  }

  .goji-guide-promo__visual {
    margin-left: var(--gp-ring-offset);
  }

  .goji-guide-promo--hide-visual-mobile .goji-guide-promo__media {
    display: none;
  }

  .goji-guide-promo--hide-visual-mobile .goji-guide-promo__inner {
    padding-bottom: 48px;
  }
}

@media (max-width: 575px) {
  .goji-guide-promo {
    --gp-pad-x: 24px;
  }

  .goji-guide-promo__inner {
    --gp-ring: 270px;
  }

  .goji-guide-promo__inner {
    padding-top: 40px;
    padding-bottom: 24px;
  }

  .goji-guide-promo--hide-visual-mobile .goji-guide-promo__inner {
    padding-bottom: 40px;
  }

  .goji-guide-promo .goji-guide-promo__eyebrow {
    font-size: 13px !important;
    margin-bottom: 12px !important;
  }

  .goji-guide-promo .goji-guide-promo__description {
    font-size: 16px !important;
  }

  .goji-guide-promo__actions {
    margin-top: 28px;
  }

  .goji-guide-promo .goji-guide-promo__button {
    display: flex !important;
    width: 100%;
  }

  .goji-guide-promo--mt-medium { margin-top: 40px; }
  .goji-guide-promo--mt-large  { margin-top: 56px; }
  .goji-guide-promo--mb-medium { margin-bottom: 40px; }
  .goji-guide-promo--mb-large  { margin-bottom: 56px; }
}