/* ============================================================
   IMAGINiT CTA Banner
   Flexbox only, 767px breakpoint, brand custom properties.
   ============================================================ */

.imgt-cta {
  --navy: #09476E;
  --blue: #0096D6;
  --gold: #C5960C;
  --lgray: #c5c5c5;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  font-family: "Galano Grotesque", Sans-Serif;
}

.imgt-module--outer-section {
  padding: 30px 0 45px;
}

.imgt-module--outer-section a:not(.imgt-cta__btn),
.imgt-module--outer-section a:not(.imgt-cta__btn) > span {
  font-family: "Galano Grotesque Bold", Sans-Serif;
  color: #0096d6 !important;
}

/* decorative brand squares */
.imgt-cta .imgt-cta__squares {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
}
.imgt-cta .imgt-cta__squares--blue {
  top: -18px;
  left: -18px;
  width: 120px !important;
  transform: rotate(-30deg);
}
.imgt-cta .imgt-cta__squares--gold {
  bottom: -18px;
  right: -18px;
  width: 160px !important;
    transform: rotate(45deg);

}

.imgt-cta .imgt-cta__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container,
  .imgt-cta__inner {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container,
  .imgt-cta__inner {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container,
  .imgt-cta__inner {
    width: 1107px;
  }
}

/* ---------- copy ---------- */
.imgt-cta .imgt-cta__copy {
  flex: 1 1 480px;
  min-width: 300px;
}

.imgt-cta .imgt-cta__eyebrow {
  font-family: "Galano Grotesque Bold", Sans-Serif !important;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.imgt-cta .imgt-cta__title {
  font-family: "Galano Grotesque Bold", Sans-Serif !important;
  font-size: 34px;
  line-height: 40px;
  color: #ffffff;
  margin: 0 0 28px;
}
.imgt-cta .imgt-cta__title em {
  font-family: "Galano Grotesque Bold", Sans-Serif !important;
  font-size: 34px;
  line-height: 40px;
  font-style: normal;
  color: var(--gold);
}

.imgt-cta.imgt-module--outer-section .imgt-cta__copy .imgt-cta__btn {
  display: inline-block;
  font-family: "Galano Grotesque Bold", Sans-Serif;
  font-size: 16px;
  line-height: 1;
  color: #ffffff !important;;
  background: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
  padding: 15px 34px 17px;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.imgt-cta .imgt-cta__btn:hover,
.imgt-cta .imgt-cta__btn:focus-visible {
  background: #fff;
  color: var(--navy) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.imgt-cta .imgt-cta__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- animated icon ---------- */
.imgt-cta .imgt-cta__draw {
  flex: 1 1 280px;
  min-width: 280px;
  display: flex;
  justify-content: center;
}
.imgt-cta .imgt-cta__draw svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* every animated line uses pathLength="1" so one rule covers all */
.imgt-cta svg [data-draw] {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.imgt-cta.is-drawn svg [data-draw] {
  animation: imgt-draw 1.6s ease forwards;
  animation-delay: calc(var(--d, 0) * 1s);
}
@keyframes imgt-draw {
  to { stroke-dashoffset: 0; }
}

/* dimension text + crosshair dots fade in after their lines */
.imgt-cta svg .imgt-fade {
  opacity: 0;
}
.imgt-cta.is-drawn svg .imgt-fade {
  animation: imgt-fade .8s ease forwards;
  animation-delay: calc(var(--d, 0) * 1s);
}
@keyframes imgt-fade {
  to { opacity: 1; }
}

/* icon elements pop in with a slight overshoot */
.imgt-cta svg .imgt-pop { opacity: 0; }
.imgt-cta.is-drawn svg .imgt-pop {
  animation: imgt-pop .55s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-delay: calc(var(--d, 0) * 1s);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes imgt-pop {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* hidden cube edges: dashed, fade in, then dashes march like a CAD marquee */
.imgt-cta svg .imgt-dash {
  fill: none;
  stroke-dasharray: 0.06 0.05;
  opacity: 0;
}
.imgt-cta.is-drawn svg .imgt-dash {
  animation: imgt-fade .8s ease forwards, imgt-march 1.8s linear infinite;
  animation-delay: calc(var(--d, 0) * 1s), calc(var(--d, 0) * 1s);
}
@keyframes imgt-march {
  to { stroke-dashoffset: -0.11; }
}
/* dotted variant for process connector lines */
.imgt-cta svg .imgt-dash.imgt-dots {
  stroke-dasharray: 0.01 0.1;
  stroke-linecap: round;
}

/* circulating arrows keep cycling after they draw in */
.imgt-cta.is-drawn svg .imgt-spin {
  animation: imgt-spin 20s linear infinite;
  animation-delay: 4s;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes imgt-spin {
  to { transform: rotate(-360deg); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .imgt-cta svg [data-draw] { stroke-dashoffset: 0; }
  .imgt-cta svg .imgt-fade { opacity: 1; }
  .imgt-cta svg .imgt-pop { opacity: 1; }
  .imgt-cta svg .imgt-dash { opacity: 1; }
  .imgt-cta.is-drawn svg [data-draw],
  .imgt-cta.is-drawn svg .imgt-fade,
  .imgt-cta.is-drawn svg .imgt-pop,
  .imgt-cta.is-drawn svg .imgt-dash,
  .imgt-cta.is-drawn svg .imgt-spin { animation: none; }
  .imgt-cta .imgt-cta__btn { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .imgt-cta .imgt-cta__copy {
    flex: 1 1 100%;
    margin-bottom: 36px;
  }
  .imgt-cta .imgt-cta__title {
    font-size: 27px;
    line-height: 33px;
  }
  .imgt-cta__squares { opacity: 0.7; }
  .imgt-cta .imgt-cta__squares--blue { width: 80px; 
  transform:rotate(-30deg);}
  .imgt-cta .imgt-cta__squares--gold { width: 100px;  transform:rotate(-36deg);}
}
