/* ==========================================================================
   Vinxey — Global visual system 2026
   Swiss editorial grid, restrained motion, official brand palette.
   Loaded after Astra and page-level styles.
   ========================================================================== */

:root {
  --vx-primary: #DC0000;
  --vx-primary-dark: #B30000;
  --vx-primary-light: #FF1A1A;
  --vx-primary-on-dark: #FF6B6B;
  --vx-dark: #171717;
  --vx-dark-soft: #222222;
  --vx-gray-dark: #5F5F5C;
  --vx-gray-light: #F1F1EE;
  --vx-gray-lighter: #F8F8F6;
  --vx-white: #FFFFFF;
  --vx-container: 1240px;
  --vx-container-wide: 1360px;
  --vx-radius-sm: 4px;
  --vx-radius-md: 7px;
  --vx-radius-lg: 10px;
  --vx-radius-xl: 14px;
  --vx-radius-2xl: 18px;
  --vx-shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --vx-shadow-md: 0 12px 35px rgba(17, 17, 17, 0.07);
  --vx-shadow-lg: 0 22px 60px rgba(17, 17, 17, 0.09);
  --vx-transition-fast: 180ms ease-out;
  --vx-transition-base: 220ms ease-out;
  --vx-transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-padding-top: 6rem;
}

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--vx-dark);
  font-family: var(--vx-font-body) !important;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--vx-font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--vx-font-body) !important;
  text-wrap: balance;
}

p { text-wrap: pretty; }

img,
svg { max-width: 100%; }

a,
button,
summary { touch-action: manipulation; }

::selection {
  background: var(--vx-primary);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--vx-primary) !important;
  outline-offset: 3px !important;
}

.vx-container {
  width: min(100% - clamp(2rem, 5vw, 4rem), var(--vx-container));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.vx-container-wide {
  width: min(100% - clamp(2rem, 4vw, 3rem), var(--vx-container-wide));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.vx-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.vx-section-sm {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.vx-bg-light { background-color: #f4f4f1; }
.vx-bg-white { background-color: #fff; }
.vx-bg-dark { background-color: #151515; }

.vx-grid-bg {
  background-size: clamp(3.5rem, 6vw, 5rem) clamp(3.5rem, 6vw, 5rem);
}

/* Type labels ----------------------------------------------------------- */

:where(
  .vx-section-header__badge,
  .vx-badge,
  .vx-about__kicker,
  .vx-contact__kicker,
  .vx-case-eyebrow,
  .vx-legal__eyebrow,
  .vx-solution-eyebrow,
  .vx-guide-eyebrow,
  .vx-diagnostic-eyebrow
) {
  font-family: var(--vx-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.vx-section-header {
  width: min(100% - clamp(2rem, 5vw, 4rem), var(--vx-container));
  max-width: none;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: left;
}

.vx-section-header__title {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.vx-section-header__subtitle {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: #62625f;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Buttons and text links ------------------------------------------------ */

.ast-button,
.ast-custom-button,
.wp-block-button__link,
.button,
input[type="submit"],
button[type="submit"],
.ast-container .ast-button {
  min-height: 3.15rem;
  border: 1px solid var(--vx-primary) !important;
  border-radius: 7px !important;
  background: var(--vx-primary) !important;
  padding: 0.8rem 1.3rem !important;
  color: #fff !important;
  cursor: pointer !important;
  font-family: var(--vx-font-body) !important;
  font-size: 0.84rem !important;
  font-weight: 750 !important;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out, opacity 180ms ease-out !important;
}

.ast-button:hover,
.ast-button:focus-visible,
.ast-custom-button:hover,
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  border-color: var(--vx-primary-dark) !important;
  background: var(--vx-primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 9px 26px rgba(220, 0, 0, 0.22) !important;
  transform: none !important;
}

.ast-button:active,
button:active { opacity: 0.82; }

:where(
  .vx-about__text-link,
  .vx-about-case__link,
  .vx-case-text-link,
  .vx-solution-text-link,
  .vx-guide-breadcrumbs a
) {
  min-height: 2.75rem;
  align-items: center;
  font-weight: 700;
  text-underline-offset: 0.28rem;
}

/* Surfaces -------------------------------------------------------------- */

:where(
  .vx-service-card,
  .vx-about-principle,
  .vx-services-path-card,
  .vx-case-fact-card,
  .vx-case-capabilities__grid article,
  .vx-solution-guide__card,
  .vx-diagnostic-form-card,
  .vx-legal__card,
  .vx-guide-decision
) {
  border-color: #ddddda;
  border-radius: 12px;
  box-shadow: none;
}

:where(
  .vx-service-card,
  .vx-about-principle,
  .vx-services-path-card,
  .vx-case-capabilities__grid article
) {
  transition: border-color 200ms ease-out, background-color 200ms ease-out, box-shadow 200ms ease-out !important;
}

:where(
  .vx-service-card,
  .vx-about-principle,
  .vx-services-path-card,
  .vx-case-capabilities__grid article
):hover {
  border-color: #bdbdb8;
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.07);
  transform: none;
}

details > summary {
  min-height: 2.75rem;
  cursor: pointer;
}

/* Forms ----------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  min-height: 3.1rem;
  border-color: #d6d6d1 !important;
  border-radius: 7px !important;
  font-size: 1rem !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--vx-primary) !important;
  box-shadow: 0 0 0 3px rgba(220, 0, 0, 0.11) !important;
}

/* Restrained global reveal --------------------------------------------- */

.vx-animate {
  transform: translateY(12px);
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vx-animate-left { transform: translateX(-14px); }
.vx-animate-right { transform: translateX(14px); }
.vx-animate-left,
.vx-animate-right {
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vx-animate-scale {
  transform: translateY(10px) scale(0.99);
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vx-animate-scale.vx-visible { transform: translateY(0) scale(1); }

.vx-stagger > *:nth-child(1) { transition-delay: 0ms; }
.vx-stagger > *:nth-child(2) { transition-delay: 35ms; }
.vx-stagger > *:nth-child(3) { transition-delay: 70ms; }
.vx-stagger > *:nth-child(4) { transition-delay: 105ms; }
.vx-stagger > *:nth-child(5) { transition-delay: 140ms; }
.vx-stagger > *:nth-child(6) { transition-delay: 175ms; }

.vx-pulse { animation: none; }

/* Page-family refinements ---------------------------------------------- */

:where(
  .vx-about,
  .vx-contact-page,
  .vx-solution-page,
  .vx-guide-page,
  .vx-case-study,
  .vx-diagnostic-page,
  .vx-thank-you-page,
  .vx-legal
) {
  overflow-x: clip;
}

:where(
  .vx-about-standard,
  .vx-about-method,
  .vx-about-case,
  .vx-services-paths,
  .vx-case-intro,
  .vx-case-capabilities,
  .vx-case-faq,
  .vx-solution-fit,
  .vx-solution-approach,
  .vx-solution-principles,
  .vx-solution-faq,
  .vx-diagnostic-signals,
  .vx-diagnostic-scope,
  .vx-diagnostic-process,
  .vx-diagnostic-faq
) {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.vx-services-grid {
  width: min(100% - clamp(2rem, 5vw, 4rem), var(--vx-container));
  max-width: none;
  gap: 1rem;
  margin-inline: auto;
  padding: 0;
}

.vx-service-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

/* Header/footer must beat Astra's generic anchor rules ----------------- */

.vx-header a,
.vx-header a:hover,
.vx-header a:focus,
.vx-footer a,
.vx-footer a:hover,
.vx-footer a:focus {
  text-decoration-thickness: 1px;
}

.vx-header .vx-nav__link { color: rgba(255, 255, 255, 0.7) !important; }
.vx-header .vx-nav__link:hover,
.vx-header .vx-nav__link:focus-visible,
.vx-header .vx-nav__link.active { color: #fff !important; }
.vx-header .vx-nav__cta,
.vx-header .vx-mobile-nav__cta { color: #fff !important; }
.vx-header .vx-mobile-nav__link { color: #fff !important; }
.vx-header .vx-mobile-nav__link:hover,
.vx-header .vx-mobile-nav__link:focus-visible,
.vx-header .vx-mobile-nav__link.active { color: var(--vx-primary-on-dark) !important; }

.vx-footer .vx-footer__link { color: rgba(255, 255, 255, 0.62) !important; }
.vx-footer .vx-footer__link:hover,
.vx-footer .vx-footer__link:focus-visible { color: #fff !important; }
.vx-footer .vx-footer__primary,
.vx-footer .vx-footer__secondary,
.vx-footer .vx-footer__email { color: #fff !important; }

@media (max-width: 768px) {
  .vx-container,
  .vx-section-header,
  .vx-services-grid {
    width: min(100% - 2rem, var(--vx-container));
  }

  .vx-section { padding-block: clamp(4rem, 13vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .vx-animate,
  .vx-animate-left,
  .vx-animate-right,
  .vx-animate-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .ast-button,
  .vx-nav__cta,
  .vx-footer__primary {
    border: 1px solid ButtonText !important;
  }
}
