/* Manrope — self-hosted, variable font (weights 400-800) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   UTEC Industrial — Design System
   utec.co · Static HTML/CSS/JS

   Brand values from: constitution/utec-brand.md
   Aligned with: docusaurus/src/css/custom.css (resources.utec.co)
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  /* Colors */
  --utec-orange: #FC5220;
  --utec-orange-dark: #e8451a;
  --utec-orange-accessible: #C94200; /* 4.71:1 contrast with white — for buttons */
  --utec-orange-accessible-hover: #A83500;
  --utec-black: #191817;
  --utec-true-black: #000000;
  --utec-off-white: #F7F7F7;
  --utec-dark-grey: #2B2B2B;
  --utec-body-text: rgba(0, 0, 0, 0.8);
  --utec-border-grey: #E6E9EB;
  --utec-white: #FFFFFF;
  --utec-footer-link: rgba(255, 255, 255, 0.75);
  --utec-footer-copyright: rgba(255, 255, 255, 0.6);
  --utec-footer-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-family: 'Manrope', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;
  --font-size-h1: 2.25rem;
  --font-size-h2: 1.6rem;
  --font-size-h3: 1.2rem;
  --font-size-h4: 1rem;
  --font-size-nav: 14px;
  --font-size-cta: 13px;
  --font-size-small: 13px;
  --font-size-footer-title: 12px;
  --letter-spacing-nav: 2px;
  --letter-spacing-cta: 2px;
  --letter-spacing-footer-title: 1.5px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
  --border-radius: 0;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  /* Focus */
  --focus-outline: 3px solid #2680EB;
  --focus-offset: 2px;
}

/* ==========================================================================
   2. CSS Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--utec-body-text);
  background-color: var(--utec-off-white);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--utec-true-black);
  line-height: 1.2;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  line-height: 1.4;
}

h4, h5, h6 {
  font-size: var(--font-size-h4);
  font-weight: 600;
}

p + p {
  margin-top: var(--space-sm);
}

/* Content links — use the AA-accessible orange (#C94200, 4.71:1 on white).
   Was --utec-orange (#FC5220, ~3.4:1) which failed WCAG AA for body text. */
.content a,
main a:not(.btn):not(.site-nav__link):not(.site-footer__link) {
  color: var(--utec-orange-accessible);
  transition: color var(--transition-fast);
}

.content a:hover,
main a:not(.btn):not(.site-nav__link):not(.site-footer__link):hover {
  color: var(--utec-orange-accessible-hover);
}

strong {
  font-weight: 700;
}

/* ==========================================================================
   4. Layout Primitives
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--tight {
  padding: var(--space-2xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2col { grid-template-columns: repeat(2, 1fr); }
.grid--3col { grid-template-columns: repeat(3, 1fr); }
.grid--4col { grid-template-columns: repeat(4, 1fr); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 200;
  padding: var(--space-xs) var(--space-sm);
  background: var(--utec-true-black);
  color: var(--utec-white);
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-nav);
}

.skip-link:focus {
  top: var(--space-xs);
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Screen reader only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   5. Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--utec-white);
  border-bottom: 1px solid var(--utec-border-grey);
  transition: box-shadow var(--transition-normal);
}

.site-header--scrolled {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo img {
  height: 44px; /* stacked "UTEC Industrial" lockup — matches shop/configure */
  width: auto;
}

/* Desktop nav */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__link {
  font-size: var(--font-size-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-nav);
  color: var(--utec-true-black);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
}

.site-nav__link:hover {
  color: var(--utec-orange);
}

.site-nav__link[aria-current="page"] {
  color: var(--utec-true-black); /* keep black — underline below is the active indicator */
}

/* Nav underline animation */
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--utec-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* CTA button in nav */
.site-nav__cta {
  padding: 10px 24px;
  font-size: var(--font-size-cta);
}

.site-nav__cta::after {
  display: none;
}

/* Dropdown */
.site-nav__item--has-children {
  position: relative;
}

.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--utec-white);
  border: 1px solid var(--utec-border-grey);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: var(--space-xs) 0;
  display: none;
}

.site-nav__item--has-children.is-open .site-nav__dropdown {
  display: block;
  animation: navDropIn var(--transition-fast) ease;
}

@keyframes navDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.site-nav__dropdown a {
  display: block;
  padding: 10px var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--utec-dark-grey);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-transform: none;
  letter-spacing: 0;
}

.site-nav__dropdown a:hover {
  color: var(--utec-orange);
  background-color: var(--utec-off-white);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--utec-true-black);
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background: var(--utec-white);
  border-left: 1px solid var(--utec-border-grey);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  z-index: 99;
}

.mobile-nav--open {
  transform: translateX(0);
}

.mobile-nav__list {
  padding: var(--space-md);
}

.mobile-nav__list > li + li {
  border-top: 1px solid var(--utec-border-grey);
}

.mobile-nav__list a,
.mobile-nav__toggle {
  display: block;
  width: 100%;
  padding: var(--space-sm) 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--utec-true-black);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 48px;
  line-height: 48px;
  padding: 0;
}

.mobile-nav__toggle {
  position: relative;
  padding-right: 48px;
}

.mobile-nav__toggle::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--transition-fast);
}

.mobile-nav__toggle[aria-expanded="true"]::after {
  content: '\2212'; /* minus sign */
}

.mobile-nav__submenu {
  padding-left: var(--space-md);
}

.mobile-nav__submenu[aria-hidden="true"] {
  display: none;
}

.mobile-nav__submenu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--utec-dark-grey);
  min-height: 44px;
  line-height: 44px;
}

.mobile-nav__submenu a:hover {
  color: var(--utec-orange);
}

.mobile-nav .btn--primary {
  margin-top: var(--space-md);
  text-align: center;
  display: block;
}

/* Mobile nav backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(0, 0, 0, 0.3);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-backdrop--visible {
  opacity: 1;
  visibility: visible;
}

/* Header sentinel for sticky detection */
.header-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 100%;
  pointer-events: none;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */

.site-footer {
  background-color: var(--utec-black);
  color: var(--utec-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.site-footer__tagline {
  margin-top: var(--space-sm);
  font-size: 14px;
  color: var(--utec-footer-link);
  line-height: 1.6;
}

.site-footer__social {
  margin-top: var(--space-sm);
}

.site-footer__social a {
  color: var(--utec-footer-link);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.site-footer__social a:hover {
  color: var(--utec-orange);
}

.site-footer__title {
  font-size: var(--font-size-footer-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-footer-title);
  color: var(--utec-white);
  margin-bottom: var(--space-sm);
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer a {
  font-size: 14px;
  color: var(--utec-footer-link);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--utec-orange);
}

.site-footer address {
  font-style: normal;
  font-size: 14px;
  color: var(--utec-footer-link);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.site-footer .btn--white {
  margin-top: var(--space-xs);
}

.site-footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--utec-footer-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-small);
  color: var(--utec-footer-copyright);
}

.site-footer__disclaimer {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.5;
  color: var(--utec-footer-copyright);
  margin-top: var(--space-xs);
}

.site-footer__bottom nav {
  display: flex;
  gap: var(--space-md);
}

.site-footer__bottom nav a {
  font-size: var(--font-size-small);
  color: var(--utec-footer-copyright);
}

.site-footer__bottom nav a:hover {
  color: var(--utec-orange);
}

/* ==========================================================================
   7. Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: var(--font-size-cta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-cta);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast);
}

.btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.btn--primary {
  background-color: var(--utec-orange-accessible);
  color: var(--utec-white);
  border: 2px solid var(--utec-orange-accessible);
}

.btn--primary:hover {
  background-color: var(--utec-orange-accessible-hover);
  border-color: var(--utec-orange-accessible-hover);
}

.btn--secondary {
  background-color: transparent;
  color: var(--utec-true-black);
  border: 2px solid var(--utec-true-black);
}

.btn--secondary:hover {
  color: var(--utec-orange);
  border-color: var(--utec-orange);
}

.btn--white {
  background-color: transparent;
  color: var(--utec-white);
  border: 2px solid var(--utec-white);
}

.btn--white:hover {
  background-color: var(--utec-white);
  color: var(--utec-true-black);
}

/* ==========================================================================
   8. Cards & Grid Layouts
   ========================================================================== */

.card {
  background: var(--utec-white);
  border: 1px solid var(--utec-border-grey);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--utec-true-black);
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: 15px;
  color: var(--utec-dark-grey);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.card__link {
  display: inline-block;
  font-size: var(--font-size-cta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-cta);
  color: var(--utec-orange-accessible); /* AA on white — was --utec-orange (#FC5220, ~3.4:1) */
  transition: color var(--transition-fast);
}

.card__link:hover {
  color: var(--utec-orange-accessible-hover);
}

/* Solution card variant */
.card--solution .card__title {
  transition: color var(--transition-fast);
}

.card--solution:hover .card__title {
  color: var(--utec-orange);
}

/* Project card variant */
.card--project {
  position: relative;
}

.card--project .card__img {
  aspect-ratio: 4 / 3;
}

/* ==========================================================================
   9. Hero Sections
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background-color: var(--utec-black);
  color: var(--utec-white);
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) 0;
  max-width: 600px;
  margin-left: auto;
}

.hero__img-wrapper {
  position: relative;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--utec-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Capabilities grid — 2x2 with image-text pairs */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.capability {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.capability__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.capability__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--utec-true-black);
  margin-bottom: var(--space-xs);
}

.capability__text {
  font-size: 15px;
  color: var(--utec-dark-grey);
  line-height: 1.6;
}

/* Client logos bar */
.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding: var(--space-lg) 0;
}

.client-logos img {
  height: 40px;
  width: auto;
  filter: invert(1);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.client-logos img:hover {
  opacity: 0.8;
}

/* Section intro text */
.section__intro {
  max-width: 720px;
  font-size: 1.125rem;
  color: var(--utec-dark-grey);
  line-height: 1.6;
}

/* Connect CTA — warm invitation section above footer */
.connect-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--utec-white);
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
  max-height: 420px;
}

.connect-cta__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md) var(--space-2xl);
}

.connect-cta__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--utec-true-black);
  margin-bottom: var(--space-xs);
}

.connect-cta__text {
  font-size: 15px;
  color: var(--utec-dark-grey);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.connect-cta__img-wrapper {
  overflow: hidden;
}

.connect-cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (max-width: 768px) {
  .connect-cta {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .connect-cta__content {
    padding: var(--space-lg) var(--space-sm);
    order: 2;
  }

  .connect-cta__img-wrapper {
    order: 1;
    max-height: 200px;
  }
}

/* Standalone image break — visual breathing room, no text overlay */
.section--image-break {
  width: 100%;
  overflow: hidden;
}

.full-width-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

/* ==========================================================================
   10. Forms
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--utec-true-black);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--utec-true-black);
  background: var(--utec-white);
  border: 1px solid var(--utec-border-grey);
  border-radius: var(--border-radius);
  min-height: 48px;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--utec-orange);
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
}

/* Checkbox / consent */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--utec-orange);
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 14px;
  color: var(--utec-dark-grey);
  line-height: 1.5;
}

.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ==========================================================================
   11. Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.bg-white { background-color: var(--utec-white); }
.bg-off-white { background-color: var(--utec-off-white); }
.bg-black { background-color: var(--utec-black); color: var(--utec-white); }

.text-white { color: var(--utec-white); }
.text-orange { color: var(--utec-orange); }
.text-grey { color: var(--utec-dark-grey); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus visible for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Updated date stamp */
.last-updated {
  font-size: var(--font-size-small);
  color: var(--utec-dark-grey);
  margin-top: var(--space-sm);
}

/* ==========================================================================
   12. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  /* Hide desktop nav, show hamburger */
  .site-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Footer: 2 columns */
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  /* Grids collapse */
  .grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Typography scale down */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  /* Capabilities stack */
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  /* Client logos smaller */
  .client-logos {
    gap: var(--space-lg);
  }

  .client-logos img {
    height: 30px;
  }

  /* Container tighter padding */
  .container {
    padding: 0 var(--space-sm);
  }

  /* Sections less vertical space */
  .section,
  .cta-band {
    padding: var(--space-2xl) 0;
  }

  /* All grids single column */
  .grid--2col,
  .grid--3col,
  .grid--4col {
    grid-template-columns: 1fr;
  }

  /* Footer stacks */
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .site-footer__bottom nav {
    flex-direction: column;
    gap: var(--space-xs);
  }

  /* Hero stacks on mobile */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding: var(--space-2xl) var(--space-sm);
    max-width: none;
    margin-left: 0;
    order: 2;
  }

  .hero__img-wrapper {
    order: 1;
    max-height: 280px;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* Mobile nav full width */
  .mobile-nav {
    max-width: 100%;
  }
}

/* ==========================================================================
   13. Crane Wheels Section
   ========================================================================== */

/* Breadcrumb nav */
.breadcrumb {
  padding: var(--space-sm) 0;
  font-size: 13px;
  color: var(--utec-dark-grey);
}

nav.breadcrumb ol,
nav.breadcrumb .breadcrumb__list,
.breadcrumb ol,
.breadcrumb .breadcrumb__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav.breadcrumb li,
nav.breadcrumb .breadcrumb__item,
.breadcrumb li,
.breadcrumb .breadcrumb__item {
  display: inline-flex !important;
  align-items: center;
}

.breadcrumb li + li::before,
.breadcrumb .breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin-right: 0.25rem;
  opacity: 0.4;
}

.breadcrumb a {
  color: var(--utec-dark-grey);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--utec-orange);
}

.breadcrumb [aria-current="page"] {
  color: var(--utec-orange);
  font-weight: 600;
}

/* Section-internal navigation strip */
.crane-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--space-md);
  font-size: 13px;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--utec-border-grey);
}

.crane-section-nav__label {
  font-weight: 700;
  color: var(--utec-dark-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  align-self: center;
  white-space: nowrap;
}

.crane-section-nav a {
  color: var(--utec-dark-grey);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.crane-section-nav a:hover,
.crane-section-nav a[aria-current="page"] {
  color: var(--utec-orange);
}

/* Bordered callout box (orange left border) */
.callout-box {
  border-left: 4px solid var(--utec-orange);
  background: var(--utec-off-white);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}

.callout-box__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--utec-true-black);
  margin-bottom: var(--space-xs);
}

.callout-box p {
  font-size: 15px;
  color: var(--utec-dark-grey);
  line-height: 1.6;
}

.callout-box p + p {
  margin-top: var(--space-xs);
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-lg);
}

.faq-item {
  border-bottom: 1px solid var(--utec-border-grey);
}

.faq-item summary,
.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--utec-true-black);
  cursor: pointer;
  list-style: none;
  gap: var(--space-md);
  min-height: 56px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--utec-orange);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 0 var(--space-md) 0;
  font-size: 15px;
  color: var(--utec-dark-grey);
  line-height: 1.7;
}

.faq-item__answer p + p {
  margin-top: var(--space-xs);
}

.faq-item__answer a {
  color: var(--utec-orange);
}

/* Resource cards grid */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.resource-card {
  border: 1px solid var(--utec-border-grey);
  padding: var(--space-md);
  background: var(--utec-white);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.resource-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  border-color: var(--utec-orange);
}

.resource-card__topic {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--utec-orange);
  margin-bottom: var(--space-xs);
}

.resource-card__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--utec-true-black);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.resource-card__desc {
  font-size: 14px;
  color: var(--utec-dark-grey);
  line-height: 1.5;
}

.resource-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (max-width: 768px) {
  .resource-cards {
    grid-template-columns: 1fr;
  }
}

/* Step timeline (process steps) */
.step-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-lg);
  counter-reset: steps;
}

.step-timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  position: relative;
}

.step-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--utec-border-grey);
}

.step-timeline__number {
  counter-increment: steps;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--utec-orange);
  color: var(--utec-white);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-timeline__content {
  padding-top: 10px;
}

.step-timeline__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--utec-true-black);
  margin-bottom: var(--space-xs);
}

.step-timeline__body {
  font-size: 15px;
  color: var(--utec-dark-grey);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .step-timeline__item {
    grid-template-columns: 40px 1fr;
    gap: var(--space-sm);
  }
  .step-timeline__number {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

/* Crane wheels nested dropdown */
.site-nav__dropdown-group {
  position: relative;
}

.site-nav__dropdown-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--utec-dark-grey);
  cursor: default;
  border-left: 3px solid transparent;
}

.site-nav__dropdown-group-label::after {
  content: '\203A';
  font-size: 16px;
  margin-left: var(--space-sm);
  color: var(--utec-dark-grey);
}

.site-nav__dropdown-group.is-open .site-nav__dropdown-group-label {
  color: var(--utec-orange);
  border-left-color: var(--utec-orange);
}

.site-nav__dropdown-sub {
  position: absolute;
  left: 100%;
  top: -4px;
  min-width: 260px;
  background: var(--utec-white);
  border: 1px solid var(--utec-border-grey);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.08);
  padding: var(--space-xs) 0;
  display: none;
}

.site-nav__dropdown-group.is-open .site-nav__dropdown-sub {
  display: block;
  animation: navDropIn var(--transition-fast) ease;
}

.site-nav__dropdown-divider {
  height: 1px;
  background: var(--utec-border-grey);
  margin: 4px 0;
}

/* Capabilities tables migrated to the canonical .spec-table component
   (see "Audit remediation & centralization" section below). */

/* Industries grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.industry-tile {
  padding: var(--space-md);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--utec-dark-grey);
  background: var(--utec-white);
  border: 1px solid var(--utec-border-grey);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.industry-tile:hover {
  border-color: var(--utec-orange);
  color: var(--utec-orange);
}

/* ==========================================================================
   Header Search — Item 8
   Stack audited: resources.utec.co uses @easyops-cn/docusaurus-search-local
   Pattern: persistent inline input + magnifying-glass submit icon (desktop)
   Shortcut: / (plugin default; searchBarShortcutHint:false suppresses hint only)
   Mobile (≤1024px): icon-only button; click expands dropdown input
   Replaced post-launch by Item 16 (Pagefind + Cloudflare Worker)
   ========================================================================== */

.site-header__search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.site-header__search-input {
  font-family: var(--font-family);
  font-size: 16px; /* ≥16px prevents iOS zoom-on-focus */
  line-height: 1;
  height: 36px;
  width: 180px;
  padding: 0 8px;
  border: 0;
  border-bottom: 2px solid var(--utec-border-grey);
  background: transparent;
  color: var(--utec-true-black);
  transition: border-color var(--transition-fast);
}

.site-header__search-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
}

.site-header__search-input:focus {
  outline: none;
  border-bottom-color: #2680EB; /* matches --focus-outline color */
}

.site-header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--utec-true-black);
  transition: color var(--transition-fast);
}

.site-header__search-btn:hover {
  color: var(--utec-orange);
}

.site-header__search-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Mobile: icon only; input appears as dropdown below button when open */
@media (max-width: 1024px) {
  .site-header__search {
    margin-left: auto;
    margin-right: 0;
    position: relative;
  }

  .site-header__search-input {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    width: min(300px, calc(100vw - 2 * var(--space-md)));
    height: 44px;
    padding: 0 var(--space-sm);
    background: var(--utec-white);
    border: 1px solid var(--utec-border-grey);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 99;
  }

  .site-header__search--open .site-header__search-input {
    display: block;
  }
}

@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Audit remediation & centralization — Flawless.is 2026-07-06
   Reusable components consolidating previously inline-styled / divergent markup.
   ========================================================================== */

/* --- Spec / capabilities tables -------------------------------------------
   Canonical table component. Supersedes the old inline-styled tables
   (cnc, heat-treating) and .capabilities-table (crane-wheels). Row labels use
   <th scope="row">; numeric values wrap in <strong> for emphasis; a <caption>
   names the table. Wrap the <table> in .spec-table-wrap for mobile scroll. */
.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-md) 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.spec-table caption {
  text-align: left;
  font-size: var(--font-size-cta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-cta);
  color: var(--utec-dark-grey);
  padding-bottom: var(--space-xs);
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--utec-border-grey);
  vertical-align: top;
}

.spec-table thead th {
  font-weight: 700;
  border-bottom: 2px solid var(--utec-dark-grey);
}

/* Row headers (the left-hand label column) */
.spec-table tbody th {
  font-weight: 700;
  color: var(--utec-true-black);
}

/* Emphasized numeric / spec values */
.spec-table td strong,
.spec-table .spec-val {
  font-weight: 700;
  color: var(--utec-true-black);
}

.spec-table tbody tr:hover {
  background: var(--utec-off-white);
}

/* --- Clickable card --------------------------------------------------------
   Adds a stretched-link overlay so the whole card (image + title + body) is a
   single large tap target with one accessible name, while the visible
   "View …" link remains the affordance. Apply .card--clickable to cards that
   contain exactly ONE link (project/solution cards). Do NOT use on cards with
   multiple links. */
.card--clickable {
  position: relative;
}

.card--clickable .card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card--clickable:focus-within {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Client / meta line on cards */
.card__meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--utec-dark-grey);
  margin-bottom: var(--space-xs);
}

/* Spec tags / chips surfaced on cards */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0 0 var(--space-sm);
  padding: 0;
  list-style: none;
}

.card__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  color: var(--utec-dark-grey);
  background: var(--utec-off-white);
  border: 1px solid var(--utec-border-grey);
}

/* --- CTA band --------------------------------------------------------------
   Replaces the 28× duplicated <section class="section bg-black text-center">
   conversion band and its inline opacity/color styles. */
.cta-band {
  padding: var(--space-3xl) 0;
  background-color: var(--utec-black);
  color: var(--utec-white);
  text-align: center;
}

/* --- On-dark text/link utilities ------------------------------------------ */
.text-on-dark-muted {
  color: rgba(255, 255, 255, 0.85);
}

.last-updated--on-dark {
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-lg);
  font-size: 12px;
}

/* Bulleted list — replaces inline style="list-style: disc; padding-left: 1.5rem".
   (Global reset sets list-style:none; this restores discs where intended.) */
.list-disc {
  list-style: disc;
  padding-left: 1.5rem;
}

.list-disc li + li {
  margin-top: var(--space-xs);
}

/* Inline accent link on light backgrounds — replaces inline
   style="color: var(--utec-orange)" (AA-safe orange). */
.link-accent {
  color: var(--utec-orange-accessible);
  font-weight: 600;
}

.link-accent:hover {
  color: var(--utec-orange-accessible-hover);
}

/* --- Hero eyebrow ----------------------------------------------------------
   Small brand + category kicker above the hero H1. Surfaces brand association
   (mirrors the <title>) without altering the benefit-driven headline. */
.hero__eyebrow {
  font-size: var(--font-size-cta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-cta);
  color: var(--utec-orange); /* bright orange on the dark hero — high contrast */
  margin-bottom: var(--space-sm);
}

/* Eyebrow on light-background page headers (uses AA orange for contrast) */
.section-eyebrow {
  display: block;
  font-size: var(--font-size-cta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-cta);
  color: var(--utec-orange-accessible);
  margin-bottom: var(--space-xs);
}

/* --- Trust bar (credential strip below hero) ------------------------------
   Surfaces existing credentials ("Since 1983 · Made in USA · Rockwell
   Recognized System Integrator") as a scannable row (findings #185/#188/#189). */
.trust-bar {
  background: var(--utec-off-white);
  border-top: 1px solid var(--utec-border-grey);
  border-bottom: 1px solid var(--utec-border-grey);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
  padding: var(--space-md) var(--space-md);
}

.trust-bar__item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--utec-dark-grey);
}

/* Dot separators between items (hidden before the first) */
.trust-bar__item:not(:first-child)::before {
  content: "·";
  margin-right: var(--space-md);
  color: var(--utec-orange-accessible);
  font-weight: 700;
}

/* External-link affordance — visual "opens off-site" cue on content links
   (excludes buttons, card links, nav, tiles, breadcrumb). */
main a[target="_blank"]:not(.btn):not(.card__link):not(.industry-tile)::after,
.site-footer a[target="_blank"]:not(.btn)::after {
  content: " \2197"; /* ↗ */
  font-size: 0.85em;
  line-height: 0;
  opacity: 0.7;
}

/* Figure + caption */
.figure { margin: 0; }
.figure__caption {
  margin-top: var(--space-xs);
  font-size: 13px;
  color: var(--utec-dark-grey);
  line-height: 1.5;
}

/* Mobile header click-to-call (shown <=1024px; base display handled in critical CSS) */
.site-header__call:hover { color: var(--utec-orange); }
.site-header__call:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }

/* Contextual section CTA — a scannable next-step link at the end of a section */
.section-cta {
  margin-top: var(--space-lg);
}
.section-cta a {
  font-size: var(--font-size-cta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-cta);
  color: var(--utec-orange-accessible);
}
.section-cta a:hover { color: var(--utec-orange-accessible-hover); }
