/* InsightiC Hero CTA — "See more" trigger + expanding box of four buttons.
   Trigger and buttons match the contact form Send button (blocks/contact-right.html:
   13px vertical padding, 8px radius, Lexend 15px/600). One layout on every screen:
   2x2 grid of fixed-width buttons, box hugs its content. Button tones are the
   how-we-work phase accents.
   Scoped + !important where Astra's global button/link styles would win. */

.ic-hcta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Trigger — white outline, like the native Elementor button it replaces */
.ic-hcta .ic-hcta-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 24px !important; /* + 2px border = Send button height */
  background: transparent !important;
  border: 2px solid #fff !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: var(--ic-font-lexend, 'Lexend', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.2s ease;
}

.ic-hcta .ic-hcta-btn:hover,
.ic-hcta .ic-hcta-btn:focus-visible {
  background: rgba(240, 245, 250, 0.08) !important;
  color: #fff !important;
}

.ic-hcta .ic-hcta-btn:focus-visible {
  outline: 2px solid var(--ic-cyan, #22D3EE);
  outline-offset: 3px;
}

.ic-hcta-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.ic-hcta.is-open .ic-hcta-arrow {
  transform: rotate(90deg);
}

/* Panel — collapses to zero height; opens in place and pushes content down */
.ic-hcta-panel {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 100%;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}

.ic-hcta.is-open .ic-hcta-panel {
  grid-template-rows: 1fr;
  margin-top: 18px;
  opacity: 1;
}

.ic-hcta-inner {
  min-height: 0;
  overflow: hidden;
}

.ic-hcta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 140px));
  gap: 20px;
  width: fit-content;
  max-width: 100%;
  padding: 20px;
  background: var(--ic-card, #334155);
  border: 1px solid var(--ic-glass-border, rgba(240, 245, 250, 0.15));
  border-radius: 5px;
  box-sizing: border-box;
}

/* Buttons — solid phase tones, Send-button height and rounding, fixed width */
.ic-hcta .ic-hcta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  box-sizing: border-box;
  color: #fff !important;
  font-family: var(--ic-font-lexend, 'Lexend', sans-serif) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ic-hcta .ic-hcta-link:hover,
.ic-hcta .ic-hcta-link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff !important;
}

.ic-hcta .ic-hcta-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ic-hcta--blue   { background: var(--ic-blue, #3B82F6); }
.ic-hcta--violet { background: var(--ic-violet, #7B5EFB); }
.ic-hcta--cyan   { background: var(--ic-cyan, #22D3EE); }
.ic-hcta--pink   { background: var(--ic-pink, #FF66C4); }

/* Phone: stack the four buttons in one column so a longer label (Contact Us)
   never wraps inside the fixed desktop width. The box still hugs its content
   (width: fit-content above) — a single 1fr track resolves to the widest
   button's max-content width, so it just gets taller, not full-width. */
@media (max-width: 767px) {
  .ic-hcta-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ic-hcta-panel,
  .ic-hcta-arrow,
  .ic-hcta .ic-hcta-link {
    transition: none;
  }
}
