/*
 * JDA Visibility Grader — Site-wide CTA Styles
 * v1.1.3
 * Branded blue gradient matching the grader page (#0c1b3a → #1a3a8a).
 */

/* ------------------------------------------------------------------ */
/* Base wrapper                                                         */
/* ------------------------------------------------------------------ */
.jda-cta-wrap {
  background: linear-gradient(135deg, #0c1b3a 0%, #1a3a8a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  margin: 32px auto;
  text-align: center;
  max-width: 1100px;
  box-shadow: 0 10px 40px rgba(12, 27, 58, 0.15);
  box-sizing: border-box;
}

.jda-cta-wrap * { color: #fff !important; }

.jda-cta-inner { max-width: 720px; margin: 0 auto; }

/* ------------------------------------------------------------------ */
/* Eyebrow pill                                                         */
/* ------------------------------------------------------------------ */
.jda-cta-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------------ */
/* Headline + sub                                                       */
/* ------------------------------------------------------------------ */
.jda-cta-headline {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff !important;
}

.jda-cta-sub {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 24px;
  opacity: 0.95;
}

/* ------------------------------------------------------------------ */
/* CTA button                                                           */
/* ------------------------------------------------------------------ */
.jda-cta-button {
  display: inline-block;
  background: #fff;
  color: #0c1b3a !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
}

.jda-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: #0c1b3a !important;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Variant: hero ribbon — fixed announcement bar at top of viewport.   */
/* JS adds .jda-vg-has-ribbon to <body> and sets --jda-vg-ribbon-h CSS  */
/* variable so fixed theme headers can be offset by exact ribbon height.*/
/* ------------------------------------------------------------------ */
.jda-cta-ribbon {
  padding: 12px 24px !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100000 !important;
  box-sizing: border-box !important;
}

/* Push body content + fixed theme headers down by ribbon height. */
body.jda-vg-has-ribbon {
  padding-top: var(--jda-vg-ribbon-h, 52px) !important;
}

/* Salient theme — #header-outer is fixed at top:0. Offset it down. */
body.jda-vg-has-ribbon #header-outer {
  top: var(--jda-vg-ribbon-h, 52px) !important;
}

/* Generic sticky/fixed theme headers (Astra, Elementor sticky, etc.). */
body.jda-vg-has-ribbon .ast-header-break-point,
body.jda-vg-has-ribbon .elementor-sticky--active {
  top: var(--jda-vg-ribbon-h, 52px) !important;
}

.jda-cta-ribbon .jda-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.jda-cta-ribbon .jda-cta-eyebrow  { margin: 0; font-size: 11px; padding: 3px 10px; }
.jda-cta-ribbon .jda-cta-headline { font-size: 16px; margin: 0; text-align: left; font-weight: 600; }
.jda-cta-ribbon .jda-cta-sub      { display: none; }
.jda-cta-ribbon .jda-cta-button   { font-size: 14px; padding: 8px 18px; }

/* ------------------------------------------------------------------ */
/* "MENU" label injected next to the hamburger icon in the theme nav   */
/* ------------------------------------------------------------------ */
.jda-vg-menu-label {
  display: inline-flex !important;
  align-items: center;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 10px;
  vertical-align: middle;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  z-index: 1;
}
/* If the hamburger's parent is a flex container, ensure the label stays on the LEFT of the icon. */
.jda-vg-menu-label + .elementor-menu-toggle,
.jda-vg-menu-label + .menu-toggle,
.jda-vg-menu-label + [class*="hamburger"] {
  order: 2;
}
.jda-vg-menu-label { order: 1; }

@media (max-width: 640px) {
  .jda-vg-menu-label { font-size: 11px; margin-right: 6px; letter-spacing: 0.06em; }
}
@media (max-width: 380px) {
  .jda-vg-menu-label { display: none !important; }
}

/* ------------------------------------------------------------------ */
/* Push the theme header/hero down to give breathing room from the    */
/* announcement ribbon. Applies site-wide.                             */
/* ------------------------------------------------------------------ */
.jda-cta-ribbon + header,
.jda-cta-ribbon + .elementor-location-header {
  margin-top: 10px;
}

/* ------------------------------------------------------------------ */
/* Variant: footer strip — full-width edge-to-edge                     */
/* ------------------------------------------------------------------ */
.jda-cta-footer-strip {
  border-radius: 0;
  max-width: 100%;
  margin: 0;
  padding: 32px 24px;
}

.jda-cta-footer-strip .jda-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.jda-cta-footer-strip .jda-cta-headline {
  font-size: 22px;
  margin: 0;
  text-align: left;
  max-width: 600px;
}

.jda-cta-footer-strip .jda-cta-sub    { font-size: 14px; margin: 0; opacity: 0.85; }
.jda-cta-footer-strip .jda-cta-button { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Mobile                                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .jda-cta-wrap     { padding: 28px 20px; margin: 20px auto; }
  .jda-cta-headline { font-size: 22px; }
  .jda-cta-sub      { font-size: 15px; }
  .jda-cta-button   { width: 100%; padding: 14px 20px; }

  /* Compact single-line ribbon on mobile — keeps total height ~44px. */
  .jda-cta-ribbon                   { padding: 8px 12px; }
  .jda-cta-ribbon .jda-cta-inner    { flex-direction: row; gap: 10px; flex-wrap: nowrap; }
  .jda-cta-ribbon .jda-cta-eyebrow  { display: none; }
  .jda-cta-ribbon .jda-cta-headline {
    text-align: left;
    font-size: 13px;
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .jda-cta-ribbon .jda-cta-button   {
    width: auto;
    padding: 7px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .jda-cta-footer-strip .jda-cta-inner    { flex-direction: column; gap: 12px; text-align: center; }
  .jda-cta-footer-strip .jda-cta-headline { text-align: center; }
}

/* ---------------------------------------------------------------
 * v1.1.5 — Homepage spotlight h2 color fix
 * Salient theme overrides .jda-hp-spotlight-content's inherited
 * white. Force white on the spotlight headline.
 * --------------------------------------------------------------- */
.jda-hp-spotlight-content h2,
.jda-hp-section .jda-hp-spotlight-content h2,
body .jda-hp-spotlight-content h2 {
  color: #ffffff !important;
}

/* ---------------------------------------------------------------
 * v1.1.5 — Hero buttons mobile stacking
 * Salient .nectar-button pair sits flush on narrow viewports.
 * Add a vertical gap so the two hero CTAs don't touch.
 * --------------------------------------------------------------- */
@media (max-width: 690px) {
  a.nectar-button + a.nectar-button {
    margin-left: 0 !important;
    margin-top: 14px !important;
    display: inline-block;
  }
}
