/* Small, framework-independent helpers that Tailwind's CDN runtime doesn't cover.
   Kept deliberately minimal so this file survives a straight lift into WordPress. */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::selection { background: #2952E3; color: #ffffff; }

/* Video testimonial cards: hover (desktop) or tap (touch) plays the clip
   inline. The thumbnail/scrim/play-button fade out and an iframe fades in. */
.video-card { cursor: pointer; }
.video-card-thumb,
.video-card-scrim,
.video-card-play {
  transition: opacity 0.2s ease;
}
.video-card.is-playing .video-card-thumb,
.video-card.is-playing .video-card-scrim,
.video-card.is-playing .video-card-play {
  opacity: 0;
  pointer-events: none;
}
.video-card-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Default outline-icon styling: every icon reference svg */
svg:has(use) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header: transparent + white text/logo over the hero, solid white + dark text/logo once scrolled */
#site-header { background-color: transparent; }
#site-header .header-text { color: #ffffff; transition: color 0.3s ease; }
#site-header:not(.is-scrolled) .nav-link:hover { color: #A9BEF8; }
#site-header:not(.is-scrolled) [data-mobile-toggle] { border-color: rgba(255,255,255,0.35); }
#site-header .logo-on-scrolled { display: none; }
#site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(16, 19, 28, 0.07);
}
#site-header.is-scrolled .header-text { color: #10131C; }
#site-header.is-scrolled .nav-link:hover { color: #2952E3; }
#site-header.is-scrolled [data-mobile-toggle] { border-color: #D3D9E5; }
#site-header.is-scrolled .logo-on-transparent { display: none; }
#site-header.is-scrolled .logo-on-scrolled { display: block; }
[data-menu-trigger][aria-expanded="true"] svg { transform: rotate(180deg); }

/* AGYOM (parent company) logo only has one file - it's colored (black
   wordmark, red "O"), so it's flipped to solid white with a CSS filter
   over the transparent/dark hero instead of needing a second asset. */
#site-header:not(.is-scrolled) .agyom-divider { background-color: rgba(255,255,255,0.35); }
#site-header.is-scrolled .agyom-divider { background-color: #D3D9E5; }
#site-header:not(.is-scrolled) .agyom-logo { filter: brightness(0) invert(1); }

/* Connector diagrams (hero / transformation / differentiator) */
.connector-track { background-color: #D3D9E5; }
.connector-pulse {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #2952E3;
  box-shadow: 0 0 0 5px rgba(41, 82, 227, 0.16);
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
}
.connector-track[data-axis="y"] .connector-pulse { transform: translate(-50%, -50%); }

.connector-icon {
  transition: border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, background-color 0.35s ease;
}
.connector-node.is-active .connector-icon {
  border-color: #2952E3;
  color: #2952E3;
  background-color: #EEF2FE;
  box-shadow: 0 0 0 5px rgba(41, 82, 227, 0.12);
}
.connector-node.is-active .connector-label { opacity: 1; font-weight: 600; }
.connector-node .connector-label { opacity: 0.85; transition: opacity 0.35s ease, font-weight 0.35s ease; }

@keyframes hubGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(41, 82, 227, 0.16); }
  50% { box-shadow: 0 0 0 14px rgba(41, 82, 227, 0); }
}
.hub-glow { animation: hubGlow 2.6s ease-in-out infinite; }

/* "Our core combination" section: a soft highlight sweeps left-to-right
   through the pills (Customer Experience -> Business Operations -> Result),
   plus a gentle pulse on the +/= operators. Pure CSS, no JS needed. */
@keyframes comboPulseLight {
  0%, 8%, 100% { background-color: #F5F7FB; border-color: #E3E7EF; color: #10131C; }
  3% { background-color: #EEF2FE; border-color: #2952E3; color: #2952E3; }
}
.combo-pill {
  animation: comboPulseLight 7s ease-in-out infinite;
}

@keyframes comboPulseDark {
  0%, 8%, 100% { background-color: transparent; border-color: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.85); }
  3% { background-color: rgba(41, 82, 227, 0.35); border-color: #2952E3; color: #ffffff; }
}
.combo-pill-dark {
  animation: comboPulseDark 7s ease-in-out infinite;
}

@keyframes comboOperator {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.18); opacity: 1; }
}
.combo-operator {
  display: inline-block;
  animation: comboOperator 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .combo-pill, .combo-pill-dark, .combo-operator { animation: none !important; }
}

/* Mega-menu panel */
/* translate() composes with Tailwind's -translate-x-1/2 (--tw-translate-x custom
   property) instead of clobbering it, so horizontal centering still applies. */
[data-menu-panel] {
  opacity: 0;
  visibility: hidden;
  transform: translate(var(--tw-translate-x, 0), 6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
[data-menu-panel].is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--tw-translate-x, 0), 0);
}

/* Mobile menu */
[data-mobile-panel] {
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
}
[data-mobile-panel].is-open { transform: translateX(0); }

[data-accordion-content] {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
[data-accordion-content] > div { overflow: hidden; }
[data-accordion-content].is-open { grid-template-rows: 1fr; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .connector-pulse, .hub-glow, .chevron-drop { animation: none !important; }
}

/* Contact page: two-step Contact Form 7 form. The form's own [tags] are
   plain CF7 markup; the step wrapper, sliders and card grid are raw HTML
   embedded directly in the CF7 form template (see wp-admin > Contact),
   styled here to match the site's inputs. */
.contact-form-wrap .cf7-step { display: none; }
.contact-form-wrap .cf7-step.is-active { display: block; }

.contact-form-wrap input.wpcf7-text,
.contact-form-wrap input.wpcf7-tel,
.contact-form-wrap input.wpcf7-email,
.contact-form-wrap textarea.wpcf7-textarea {
  width: 100%;
  border: 1px solid #D3D9E5;
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.contact-form-wrap input.wpcf7-text:focus,
.contact-form-wrap input.wpcf7-tel:focus,
.contact-form-wrap input.wpcf7-email:focus,
.contact-form-wrap textarea.wpcf7-textarea:focus {
  outline: none;
  border-color: #2952E3;
}
.contact-form-wrap textarea.wpcf7-textarea { min-height: 6.5rem; resize: vertical; }
.contact-form-wrap input.wpcf7-not-valid { border-color: #dc2626; }
.contact-form-wrap span.wpcf7-not-valid-tip { display: block; margin-top: 0.375rem; font-size: 0.8125rem; color: #dc2626; }

.contact-form-wrap .wpcf7-response-output {
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #E3E7EF;
  background: #F5F7FB;
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  color: #10131C;
}
.contact-form-wrap form.sent .wpcf7-response-output { border-color: #2952E3; }

/* Services checkbox grid, styled as selectable cards. CF7 nests the
   actual list one level inside [data-name], in a
   .wpcf7-form-control.wpcf7-checkbox span - that's the real grid parent. */
.contact-form-wrap [data-name="services"] .wpcf7-form-control.wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.contact-form-wrap .wpcf7-list-item { margin: 0; }
.contact-form-wrap .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #E3E7EF;
  border-radius: 0.75rem;
  padding: 0.9rem 0.75rem;
  height: 4.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: #10131C;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.contact-form-wrap .wpcf7-list-item label:hover { border-color: #D3D9E5; }
.contact-form-wrap .wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-form-wrap .wpcf7-list-item:has(input:checked) label {
  border-color: #2952E3;
  color: #2952E3;
  background: #EEF2FE;
}

/* Range sliders (company size / budget) */
.contact-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #E3E7EF;
  outline: none;
}
.contact-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #2952E3;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 3px rgba(16, 19, 28, 0.25);
  cursor: pointer;
}
.contact-slider::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #2952E3;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 3px rgba(16, 19, 28, 0.25);
  cursor: pointer;
}

/* Article table of contents: scroll-spy highlight (main.js toggles
   is-active as each heading enters view). */
.toc-link.is-active {
  border-left-color: #2952E3;
  color: #2952E3;
  font-weight: 600;
}

/* Company Life gallery: styles WordPress's native Gallery block (added via
   the Page editor, not hardcoded) to match the site's card aesthetic. */
.company-life-gallery .wp-block-gallery { gap: 1.5rem; }
.company-life-gallery .wp-block-image img,
.company-life-gallery figure.wp-block-image {
  border-radius: 0.75rem;
  overflow: hidden;
}
.company-life-gallery .wp-block-image img {
  transition: transform 0.3s ease;
}
.company-life-gallery .wp-block-image:hover img {
  transform: scale(1.03);
}
.company-life-gallery figcaption {
  color: #5F6B82;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
