/* ═══════════════════════════════════════════════════════════════
   INDUS AUTOMATION INC. - Master Stylesheet
   Industrial Automation · Winnipeg, MB
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── DESIGN TOKENS ─── */
:root {
  color-scheme: dark;

  /* Brand Colors */
  --red: #e60000;
  --red-dark: #b30000;
  --red-light: #ff1a1a;
  --red-glow: rgba(230, 0, 0, 0.3);
  --red-subtle: rgba(230, 0, 0, 0.06);
  --red-border: rgba(230, 0, 0, 0.2);

  /* Backgrounds */
  --bg-primary: #2b2b2a;
  --bg-secondary: #1f2020;
  --bg-card: #343433;
  --bg-card-hover: #41413f;
  --bg-input: #ffffff;

  /* Borders */
  --border: #55534f;
  --border-light: #6d6963;
  --border-focus: var(--red);

  /* Text */
  --text-primary: #f4f1ea;
  --text-secondary: #d7d0c5;
  --text-muted: #b8afa3;
  --text-dim: #91897f;

  /* Typography */
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --nav-height: 62px;
  --max-width: 1280px;
  --section-pad: 80px;
  --section-pad-mobile: 56px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease);
  --transition-slow: 0.6s var(--ease);
}

/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol { list-style: none; }

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

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-padding {
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

main > .section-padding:nth-of-type(odd) {
  background: var(--bg-primary);
}

main > .section-padding:nth-of-type(even) {
  background: var(--bg-secondary);
}

/* ─── TYPOGRAPHY ─── */
.section-label {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 8px 20px rgba(230, 0, 0, 0.13);
  margin-bottom: 14px;
  display: block;
  line-height: 1;
  transform-origin: left center;
}

.section-label.attention-bounce {
  animation: sectionLabelBounce 1100ms cubic-bezier(0.17, 0.67, 0.28, 1.28) both;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

@keyframes sectionLabelBounce {
  0% { transform: translateY(26px) scale(0.88) rotate(-1.5deg); opacity: 0.15; }
  34% { transform: translateY(-13px) scale(1.09) rotate(1deg); opacity: 1; }
  54% { transform: translateY(6px) scale(0.98) rotate(-0.6deg); }
  70% { transform: translateY(-5px) scale(1.025) rotate(0.35deg); }
  84% { transform: translateY(2px) scale(0.995); }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .section-label.attention-bounce {
    animation: none;
  }
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 24px 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 30px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

.btn-white {
  background: #fff;
  color: var(--red);
}
.btn-white:hover {
  background: #f3f4f6;
  color: var(--red);
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
  color-scheme: light;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.nav-logo-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
}

.nav-logo-text small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 11px;
  color: #111 !important;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--red);
}

.nav-cta {
  background: var(--red);
  color: #fff !important;
  margin-left: 8px;
  padding: 7px 14px;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--red-dark);
}
.nav-cta.active,
.nav-cta.active:hover {
  color: #fff !important;
  background: var(--red) !important;
}
.nav-cta::after { display: none; }


/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #111;
  transition: var(--transition);
  display: block;
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── NAV SOCIAL ICONS ─── */
.nav-socials { display:flex; align-items:center; gap:5px; margin-left:10px; }
.nav-socials a { width:33px; height:33px; display:flex; align-items:center; justify-content:center; background:var(--red); color:#fff; border:none; transition:background 0.2s; }
.nav-socials a:hover { background:var(--red-dark); }
@media(max-width:768px) {
  .nav-socials { display:none; }
  .nav-links.open .nav-socials {
    display: grid;
    grid-template-columns: repeat(2, 36px);
    gap: 4px;
    justify-content: center;
    width: fit-content;
    margin: 14px auto 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open .nav-socials a { width:36px; height:36px; }
}

/* Sitewide header normalization so page-level inline styles can't drift */
.nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--border) !important;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12) !important;
}

.nav-link {
  color: #1a1a1a !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red) !important;
}

.nav-item > .nav-link::after {
  border-top-color: #111 !important;
}

.nav-item:hover > .nav-link::after,
.nav-item > .nav-link:hover::after,
.nav-item > .nav-link.active::after {
  border-top-color: var(--red) !important;
}

.nav-link.nav-cta,
.nav-link.nav-cta:hover,
.nav-link.nav-cta.active,
.nav-link.nav-cta.active:hover {
  color: #fff !important;
  background: var(--red) !important;
}

.nav-link.nav-cta.active::after {
  display: none !important;
}

.nav-toggle span {
  background: #111 !important;
}

.dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

.dropdown a {
  color: #333 !important;
}

.dropdown a:hover {
  color: var(--red) !important;
  background: rgba(230, 0, 0, 0.08) !important;
}

.action-bar a {
  color: #fff !important;
}

/* ─── PAGE HERO ─── */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  padding-top: calc(var(--nav-height) + 80px);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230,0,0,0.06), transparent 70%);
  pointer-events: none;
}

/* ─── HERO (HOME) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #111;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,0,0,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-border);
  padding: 8px 18px;
  margin-bottom: 30px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 760px;
}
.hero h1 .red { color: var(--red); }
.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.hero-stat {
  background: var(--bg-secondary);
  padding: 32px 28px;
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── INTRO SECTION ─── */
.intro {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intro-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.intro-feature:hover { border-color: var(--red); }

.intro-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
}

.intro-feature h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.intro-feature p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── INDUSTRY GRID ─── */
.industries-grid,
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 50px;
}

.industry-card,
.specialty-card {
  background: var(--bg-card);
  padding: 48px 32px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.industry-card::before,
.specialty-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.industry-card:hover,
.specialty-card:hover {
  background: var(--bg-card-hover);
}
.industry-card:hover::before,
.specialty-card:hover::before {
  transform: scaleX(1);
}

.industry-icon,
.specialty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry-icon svg,
.specialty-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.2;
}

.industry-card h4,
.specialty-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.specialty-card {
  padding: 56px 36px;
}
.specialty-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.specialty-card:hover .specialty-icon {
  border-color: var(--red);
}
.specialty-icon svg {
  width: 36px;
  height: 36px;
}
.specialty-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.specialty-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Utility classes moved from inline styles */
.mt-0 { margin-top: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.border-top-none { border-top: none !important; }
.min-height-180 { min-height: 180px !important; }
.sr-only { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.mt-24 { margin-top: 24px !important; }
.mt-2 { margin-top: 2px !important; }
.text-center { text-align: center !important; }
.brand-cell {
  padding: 16px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.grid-2-40 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.grid-2-60 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.grid-2-2px {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card-highlight {
  padding: 48px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.card-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  margin-bottom: 24px;
}
.card-header-siemens { background: rgba(0,157,154,0.06); border: 1px solid rgba(0,157,154,0.2); }
.card-header-schneider { background: rgba(61,174,43,0.06); border: 1px solid rgba(61,174,43,0.2); }
.card-header-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.card-title-sm {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 12px 0;
}
.card-text { color: var(--text-secondary); line-height: 1.8; }
.social-buttons { margin-top: 20px; display: flex; gap: 12px; }
.social-icon { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.link-small-muted { font-size: 13px; margin-top: 4px; }
.link-highlight { color: var(--red); font-weight: 600; }
.link-red { color: var(--red); }
.relative-z2 { position: relative; z-index: 2; }
.bg-secondary-bordered { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mx-auto { margin-left: auto; margin-right: auto; }
.brand-strip-item { padding: 16px 28px; background: var(--bg-card); border: 1px solid var(--border); font-family: var(--font-heading); font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.certs-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.social-buttons { margin-top: 20px; display: flex; gap: 12px; }
.social-icon { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.h4-no-margin { margin: 0; }
.cta-band {
  background: var(--red);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #fff;
}
.cta-band p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 30px;
  color: #fff;
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg-card);
  padding: 40px 28px;
  transition: var(--transition), transform 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(0) scale(1);
  will-change: transform, box-shadow;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height var(--transition);
}
.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08), inset 0 0 0 1px rgba(230, 0, 0, 0.12);
  animation: none;
}
.service-card:hover::after { height: 100%; }
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-card-link,
.service-card:hover .service-card-number {
  color: var(--text-primary);
}
.service-card:hover .service-card-number {
  color: var(--red-dark);
  text-shadow: none;
  border-color: var(--red-dark);
  background: rgba(230, 0, 0, 0.06);
}
.service-card:hover .service-card-link {
  color: var(--red);
  text-shadow: none;
}
.service-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.06) contrast(1.08) saturate(1.05);
}
.service-card:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.08), inset 0 0 0 1px rgba(230, 0, 0, 0.1);
  animation: none;
}

@keyframes cardGlowPulse {
  0%, 100% { box-shadow: 0 16px 30px rgba(255, 60, 60, 0.15), 0 0 0 0 rgba(255, 80, 80, 0.0); }
  50% { box-shadow: 0 20px 36px rgba(255, 90, 90, 0.24), 0 0 0 8px rgba(255, 100, 100, 0.08); }
}

.service-card-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: rgba(230,0,0,0.72);
  line-height: 1;
  margin-bottom: 16px;
  width: fit-content;
  min-width: 68px;
  padding: 7px 10px 8px;
  border: 2px solid rgba(230,0,0,0.28);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.service-card-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.service-card-link:hover { gap: 12px; }

@keyframes bounceIn {
  0%   { opacity: 0; transform: translateY(18px) scale(0.97); }
  55%  { opacity: 1; transform: translateY(-5px) scale(1.02); }
  75%  { transform: translateY(2px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.service-card.visible h3 {
  animation: bounceIn 0.55s cubic-bezier(.22,1.35,.34,1) 0.08s both;
}
.service-card.visible .service-card-link {
  animation: bounceIn 0.55s cubic-bezier(.22,1.35,.34,1) 0.22s both;
}

/* ─── MAPLE LEAF ─── */
.maple-leaf { display:inline-flex; align-items:center; vertical-align:middle; }

/* ─── SERVICE DETAIL ─── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
}

.service-detail-main h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  margin-top: 40px;
}
.service-detail-main h2:first-child { margin-top: 0; }

.service-detail-main > p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.feature-list { margin: 30px 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}
.feature-list li:first-child { border-top: 1px solid var(--border); }
.feature-list .check {
  color: var(--red);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Badges */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--red-border);
}
.cert-badge img,
.cert-badge svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
  background: #fff;
}
.cert-badge svg {
  padding: 5px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
}
.cert-badge span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.cert-badge-csa {
  border: 1px solid var(--red-border);
}
.cert-badge-siemens {
  border: 1px solid var(--red-border);
}

/* Sidebar */
.sidebar-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 28px;
  margin-bottom: 28px;
}
.sidebar-cta h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sidebar-cta p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.sidebar-cta .btn { width: 100%; justify-content: center; }

.sidebar-services {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
}
.sidebar-services h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sidebar-services a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.sidebar-services a:last-child { border-bottom: none; }
.sidebar-services a:hover { color: var(--red); padding-left: 8px; }
.sidebar-services a.current { color: var(--red); font-weight: 600; }

/* ─── CONTACT ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: #111;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-focus);
}

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

.form-group select option {
  background: #fff;
  color: #111;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.contact-info-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.contact-info-card a { color: var(--red); }

.emergency-note {
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 2px;
}
.emergency-note svg {
  width: 24px;
  min-width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
}
.emergency-note p { font-size: 14px; color: var(--text-secondary); }
.emergency-note strong { color: var(--red); }
.emergency-note a { color: var(--red); font-weight: 600; }

.contact-main {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
}

.contact-hero-text p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 16px;
}

.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 2px;
}

.info-block h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.info-block p, .info-block a {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: block;
}

.info-block a:hover { color: var(--red); }

.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.info-row svg {
  width: 18px;
  min-width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  margin-top: 3px;
}

.map-wrapper {
  width: 100%;
  height: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 2px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.file-upload-zone {
  border: 2px dashed var(--border);
  background: var(--bg-card);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  margin-bottom: 20px;
}

.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--red);
  background: rgba(230, 0, 0, 0.03);
}

.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-zone svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1;
  margin-bottom: 12px;
}

.file-upload-zone p {
  font-size: 14px;
  color: var(--text-muted);
}

.file-upload-zone .red-text {
  color: var(--red);
  font-weight: 600;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.file-item button {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 32px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.form-section-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--red);
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.checkbox-group label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

#fmsg {
  min-height: 180px;
}

.attachments-description {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.file-upload-zone p:last-child {
  font-size: 12px;
  margin-top: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

button[type="submit"] {
  margin-top: 24px;
}

.phone-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--red);
}

.fax-text {
  font-size: 13px;
  margin-top: 4px;
}

.email-link {
  color: var(--red);
}

.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-24hour {
  color: var(--red);
}

/* ─── 404 PAGE ─── */
.page-404-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-404-container {
  text-align: center;
}

.page-404-number {
  font-family: var(--font-heading);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  opacity: 0.3;
}

.page-404-title {
  margin-top: 16px;
}

.page-404-desc {
  margin: 0 auto 40px;
}

.page-404-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Form Feedback */
.form-status {
  padding: 16px 24px;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(0, 180, 0, 0.1);
  border: 1px solid rgba(0, 180, 0, 0.3);
  color: #00b400;
}
.form-status.error {
  display: block;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  color: var(--red);
}
.btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* ─── VIDEO SECTION ─── */
.video-section {
  position: relative;
  overflow: hidden;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: var(--transition);
  z-index: 2;
}
.video-play-btn:hover { background: var(--red-dark); }
.video-play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--border-light); }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  overflow-x: clip;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-grid > div,
.footer-bottom > * {
  min-width: 0;
}

.footer-brand {
  min-width: 0;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer ul li { margin-bottom: 10px; }
.footer ul li,
.footer ul li span,
.footer ul li a {
  line-height: 1.7;
}

.footer ul li a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  transition: var(--transition);
  text-decoration: none;
}
.footer ul li span {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}
.footer ul li a:hover { color: var(--red); }

.footer-brand > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-brand > div:last-child a {
  flex: 0 0 36px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── SECTION AMBIENT CANVAS ─── */
section.section-padding { position: relative; }
.section-ambient-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
section.section-padding > .container, .cta-band > .container { position: relative; z-index: 1; }

/* ─── PRODUCTS TICKER ─── */
body { padding-bottom: 44px; }
.scroll-cta-bar { position:fixed; bottom:0; left:0; right:0; z-index:997; height:44px; background:#0e0e0e; border-top:2px solid var(--red); display:flex; align-items:center; text-decoration:none; cursor:pointer; transition:background 0.2s; user-select:none; }
.scroll-cta-bar:hover { background:#181818; }
.scroll-cta-label { flex-shrink:0; display:flex; align-items:center; gap:8px; padding:0 18px; height:100%; background:var(--red); font-family:var(--font-heading); font-size:11px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:#fff; white-space:nowrap; }
.scroll-cta-pulse { width:7px; height:7px; background:#fff; border-radius:50%; flex-shrink:0; animation:pulse 1.6s infinite; }
.scroll-cta-overflow { flex:1; overflow:hidden; height:100%; display:flex; align-items:center; -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,0.1) 0,#000 36px,#000 calc(100% - 36px),rgba(0,0,0,0.1) 100%); mask-image:linear-gradient(90deg,rgba(0,0,0,0.1) 0,#000 36px,#000 calc(100% - 36px),rgba(0,0,0,0.1) 100%); }
.scroll-cta-track { display:inline-flex; align-items:center; white-space:nowrap; animation:scrollTicker 26s linear infinite; }
.scroll-cta-bar:hover .scroll-cta-track { animation-play-state:paused; }
@keyframes scrollTicker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.scroll-cta-item { font-family:var(--font-heading); font-size:13px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:rgba(244,241,234,0.75); padding:0 32px; white-space:nowrap; transition:color 0.2s; }
.scroll-cta-item.accent { color:#ff6b6b; font-weight:700; }
.scroll-cta-bar:hover .scroll-cta-item { color:rgba(244,241,234,0.95); }
.scroll-cta-bar:hover .scroll-cta-item.accent { color:#ff4040; }
.scroll-cta-sep { color:rgba(230,0,0,0.45); font-size:11px; flex-shrink:0; }
.scroll-cta-cta { flex-shrink:0; padding:0 22px; height:100%; display:flex; align-items:center; font-family:var(--font-heading); font-size:12px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--red); border-left:1px solid rgba(230,0,0,0.3); background:rgba(230,0,0,0.07); transition:background 0.2s,color 0.2s; white-space:nowrap; }
.scroll-cta-bar:hover .scroll-cta-cta { background:rgba(230,0,0,0.16); color:#ff4040; }
@media(prefers-reduced-motion:reduce){ .scroll-cta-track { animation:none; } }
@media(max-width:560px){ .scroll-cta-label{padding:0 12px;font-size:10px;} .scroll-cta-item{font-size:11px;padding:0 18px;} .scroll-cta-cta{padding:0 14px;font-size:11px;} }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 62px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--red-dark); }
.back-to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ─── SKIP LINK (Accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--red);
  color: #fff;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ─── CORPORATE TONE ADJUSTMENTS ─── */
.hero-canvas-wrap canvas {
  opacity: 0.3 !important;
}

.hero-overlay {
  background: rgba(0,0,0,0.50) !important;
}

.testimonial-card h4 {
  font-style: normal !important;
}

.testimonial-card .stars {
  font-size: 14px !important;
  letter-spacing: 1px !important;
}

.btn-primary {
  letter-spacing: 2px;
  font-weight: 700;
}

.section-desc {
  text-transform: none;
}
