/* ==========================================================================
   AxsTrack Corporate Website - Main Stylesheet
   Version: 1.0
   Last Updated: 2024
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Theme Configuration)
   Change these variables to rebrand/recolor the entire site
   ========================================================================== */
:root {
   /* Primary Colors */
   --color-primary: #0a1628;        /* Deep navy */
   --color-primary-light: #1a2d4a;  /* Lighter navy */
   --color-secondary: #1e3a5f;      /* Steel blue */
   --color-charcoal: #2c3e50;       /* Charcoal */
   --color-steel: #4a5568;          /* Steel gray */
   --color-silver: #94a3b8;         /* Silver */
   
   /* Accent Colors */
   --color-accent: #dc2626;         /* Controlled red (CTAs) */
   --color-accent-hover: #b91c1c;   /* Darker red */
   --color-accent-alt: #f59e0b;     /* Amber for highlights */
   
   /* Neutrals */
   --color-white: #ffffff;
   --color-off-white: #f8fafc;
   --color-light-gray: #e2e8f0;
   --color-gray: #cbd5e1;
   --color-dark-gray: #64748b;
   --color-text: #1e293b;
   --color-text-light: #64748b;
   
   /* Typography */
   --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
   --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
   
   /* Font Sizes - Fluid Typography */
   --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
   --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.875rem);
   --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
   --text-lg: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
   --text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
   --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
   --text-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
   --text-4xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
   --text-5xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem);
   
   /* Spacing */
   --space-xs: 0.25rem;
   --space-sm: 0.5rem;
   --space-md: 1rem;
   --space-lg: 1.5rem;
   --space-xl: 2rem;
   --space-2xl: 3rem;
   --space-3xl: 4rem;
   --space-4xl: 6rem;
   
   /* Layout */
   --container-max: 1280px;
   --container-wide: 1440px;
   --header-height: 80px;
   --header-height-scrolled: 64px;
   
   /* Borders */
   --border-thin: 1px solid var(--color-light-gray);
   --border-dark: 1px solid var(--color-secondary);
   --border-radius-sm: 2px;
   --border-radius-md: 4px;
   
   /* Transitions */
   --transition-fast: 150ms ease;
   --transition-base: 250ms ease;
   --transition-slow: 400ms ease;
   
   /* Shadows - Minimal, industrial style */
   --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
   --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
   --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

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

body {
   font-family: var(--font-primary);
   font-size: var(--text-base);
   line-height: 1.6;
   color: var(--color-text);
   background-color: var(--color-white);
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

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

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

button {
   font-family: inherit;
   cursor: pointer;
   border: none;
   background: none;
}

ul, ol {
   list-style: none;
}

/* Focus States for Accessibility */
:focus-visible {
   outline: 2px solid var(--color-accent);
   outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
   position: absolute;
   top: -100%;
   left: 0;
   background: var(--color-accent);
   color: var(--color-white);
   padding: var(--space-sm) var(--space-md);
   z-index: 10000;
}

.skip-link:focus {
   top: 0;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
   font-weight: 700;
   line-height: 1.2;
   color: var(--color-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Eyebrow Labels - Uppercase tracked text above headings */
.eyebrow {
   font-size: var(--text-xs);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.15em;
   color: var(--color-accent);
   margin-bottom: var(--space-sm);
}

.section-title {
   margin-bottom: var(--space-lg);
}

.section-subtitle {
   font-size: var(--text-lg);
   color: var(--color-text-light);
   max-width: 640px;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
   width: 100%;
   max-width: var(--container-max);
   margin: 0 auto;
   padding: 0 var(--space-lg);
}

.container--wide {
   max-width: var(--container-wide);
}

/* Section Spacing */
.section {
   padding: var(--space-4xl) 0;
}

.section--alt {
   background-color: var(--color-off-white);
}

.section--dark {
   background-color: var(--color-primary);
   color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
   color: var(--color-white);
}

.section--dark .section-subtitle {
   color: var(--color-silver);
}

/* Dividers */
.divider {
   height: 1px;
   background: var(--color-light-gray);
   border: none;
   margin: var(--space-2xl) 0;
}

.divider--dark {
   background: var(--color-secondary);
}

/* Grid Systems */
.grid {
   display: grid;
   gap: var(--space-xl);
}

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

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   background: var(--color-white);
   border-bottom: var(--border-thin);
   z-index: 1000;
   transition: all var(--transition-base);
}

.header.scrolled {
   box-shadow: var(--shadow-md);
}

.header__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: var(--header-height);
   transition: height var(--transition-base);
}

.header.scrolled .header__inner {
   height: var(--header-height-scrolled);
}

/* Logo */
.header__logo {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   font-size: var(--text-xl);
   font-weight: 800;
   color: var(--color-primary);
   letter-spacing: -0.02em;
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header__logo-image {
    width: 220px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.header.scrolled .header__logo {
   font-size: var(--text-lg);
}

.header.scrolled .header__logo-mark {
   width: 28px;
   height: 28px;
   font-size: var(--text-xs);
}

/* Main Navigation */
.nav {
   display: flex;
   align-items: center;
   gap: var(--space-xl);
}

.nav__list {
   display: flex;
   align-items: center;
   gap: var(--space-lg);
}

.nav__link {
   font-size: var(--text-sm);
   font-weight: 500;
   color: var(--color-text);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   padding: var(--space-sm) 0;
   position: relative;
   transition: color var(--transition-fast);
}

.nav__link::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: var(--color-accent);
   transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
   color: var(--color-accent);
}

.nav__link:hover::after,
.nav__link.active::after {
   width: 100%;
}

/* Dropdown Menu */
.nav__item {
   position: relative;
}

.nav__dropdown {
   position: absolute;
   top: 100%;
   left: 50%;
   transform: translateX(-50%);
   min-width: 240px;
   background: var(--color-white);
   border: var(--border-thin);
   box-shadow: var(--shadow-lg);
   opacity: 0;
   visibility: hidden;
   transform: translateX(-50%) translateY(10px);
   transition: all var(--transition-base);
   padding: var(--space-sm) 0;
}

.nav__item:hover .nav__dropdown {
   opacity: 1;
   visibility: visible;
   transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
   display: block;
   padding: var(--space-sm) var(--space-lg);
   font-size: var(--text-sm);
   color: var(--color-text);
   transition: all var(--transition-fast);
}

.nav__dropdown-link:hover {
   background: var(--color-off-white);
   color: var(--color-accent);
}

.nav__dropdown-arrow {
   font-size: 0.6em;
   margin-left: var(--space-xs);
}

/* CTA Button in Header */
.header__cta {
   display: inline-flex;
   align-items: center;
   gap: var(--space-sm);
   padding: var(--space-sm) var(--space-lg);
   background: var(--color-accent);
   color: var(--color-white);
   font-size: var(--text-sm);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   transition: all var(--transition-fast);
}

.header__cta:hover {
   background: var(--color-accent-hover);
}

/* Mobile Menu Toggle */
.nav__toggle {
   display: none;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   width: 44px;
   height: 44px;
   gap: 5px;
}

.nav__toggle-bar {
   width: 24px;
   height: 2px;
   background: var(--color-primary);
   transition: all var(--transition-base);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
   transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
   opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
   transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.nav__mobile {
   display: none;
   position: fixed;
   top: var(--header-height);
   left: 0;
   right: 0;
   bottom: 0;
   background: var(--color-white);
   padding: var(--space-xl);
   overflow-y: auto;
   transform: translateX(100%);
   transition: transform var(--transition-base);
}

.nav__mobile.active {
   transform: translateX(0);
}

.nav__mobile-list {
   display: flex;
   flex-direction: column;
   gap: var(--space-md);
}

.nav__mobile-link {
   display: block;
   padding: var(--space-md) 0;
   font-size: var(--text-xl);
   font-weight: 600;
   color: var(--color-text);
   border-bottom: var(--border-thin);
}

.nav__mobile-sub {
   padding-left: var(--space-lg);
   margin-top: var(--space-sm);
}

.nav__mobile-sub .nav__mobile-link {
   font-size: var(--text-base);
   font-weight: 400;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: var(--space-sm);
   padding: var(--space-md) var(--space-xl);
   font-size: var(--text-sm);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   border: 2px solid transparent;
   transition: all var(--transition-fast);
}

.btn--primary {
   background: var(--color-accent);
   color: var(--color-white);
}

.btn--primary:hover {
   background: var(--color-accent-hover);
}

.btn--secondary {
   background: transparent;
   color: var(--color-primary);
   border-color: var(--color-primary);
}

.btn--secondary:hover {
   background: var(--color-primary);
   color: var(--color-white);
}

.btn--white {
   background: var(--color-white);
   color: var(--color-primary);
}

.btn--white:hover {
   background: var(--color-off-white);
}

.btn--outline-white {
   background: transparent;
   color: var(--color-white);
   border-color: var(--color-white);
}

.btn--outline-white:hover {
   background: var(--color-white);
   color: var(--color-primary);
}

.btn--sm {
   padding: var(--space-sm) var(--space-lg);
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero {
   position: relative;
   min-height: 600px;
   display: flex;
   align-items: center;
   padding-top: var(--header-height);
   background: var(--color-primary);
   overflow: hidden;
}

.hero--home {
   background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.hero__content {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-4xl);
   align-items: center;
}

.hero__text {
   color: var(--color-white);
}

.hero__text .eyebrow {
   color: var(--color-accent);
}

.hero__title {
   color: var(--color-white);
   margin-bottom: var(--space-lg);
}

.hero__description {
   font-size: var(--text-lg);
   color: var(--color-silver);
   margin-bottom: var(--space-xl);
   max-width: 540px;
}

.hero__actions {
   display: flex;
   flex-wrap: wrap;
   gap: var(--space-md);
}

.hero__image {
   position: relative;
}

.hero__image img {
   width: 100%;
   height: auto;
}

.hero__image-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, transparent 50%, rgba(10, 22, 40, 0.3) 100%);
}

/* Hero Pattern/Background */
.hero__pattern {
   position: absolute;
   inset: 0;
   opacity: 0.05;
   background-image: 
     linear-gradient(45deg, currentColor 1px, transparent 1px),
     linear-gradient(-45deg, currentColor 1px, transparent 1px);
   background-size: 40px 40px;
}

/* Page Hero (inner pages) */
.hero--page {
   min-height: 400px;
}

.hero--page .hero__content {
   grid-template-columns: 1fr;
}

/* When a page hero includes an image (hero__image), show two columns side by side on larger screens */
@media (min-width: 1025px) {
   .hero--page:has(.hero__image) .hero__content {
      grid-template-columns: 1fr 1fr;
      gap: var(--space-4xl);
      align-items: center;
   }

   /* Don't constrain text width when there's an image next to it */
   .hero--page:has(.hero__image) .hero__text {
      max-width: none;
   }
}

.hero--page .hero__text {
   max-width: 720px;
}

.hero--page .hero__title {
   font-size: var(--text-4xl);
}

/* ==========================================================================
   TRUST STRIP / LOGO ROW
   ========================================================================== */
.trust-strip {
   padding: var(--space-2xl) 0;
   background: var(--color-off-white);
   border-bottom: var(--border-thin);
}

.trust-strip__label {
   font-size: var(--text-xs);
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--color-text-light);
   margin-bottom: var(--space-lg);
   text-align: center;
}

.trust-strip__logos {
   display: flex;
   align-items: center;
   justify-content: center;
   flex-wrap: wrap;
   gap: var(--space-2xl);
}

.trust-strip__logo {
   height: 48px;
   max-width: 140px;
   width: auto;
   object-fit: contain;
   filter: grayscale(100%);
   opacity: 0.7;
   transition: opacity 0.2s ease, filter 0.2s ease;
}

.trust-strip__logo:hover {
   filter: grayscale(0%);
   opacity: 1;
}

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats-band {
   background: var(--color-primary);
   padding: var(--space-3xl) 0;
}

.stats-band__grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: var(--space-xl);
}

.stat {
   text-align: center;
}

.stat__number {
   font-size: var(--text-4xl);
   font-weight: 800;
   color: var(--color-white);
   line-height: 1;
   margin-bottom: var(--space-sm);
}

.stat__number span {
   color: var(--color-accent);
}

.stat__label {
   font-size: var(--text-sm);
  text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--color-silver);
}

/* ==========================================================================
   SOLUTION CARDS
   ========================================================================== */
.solution-card {
   background: var(--color-white);
   border: var(--border-thin);
   padding: var(--space-2xl);
   transition: all var(--transition-base);
}

.solution-card:hover {
   border-color: var(--color-accent);
}

.solution-card__icon {
   width: 48px;
   height: 48px;
   background: var(--color-off-white);
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: var(--space-lg);
}

.solution-card__title {
   font-size: var(--text-xl);
   margin-bottom: var(--space-sm);
}

.solution-card__description {
   color: var(--color-text-light);
   margin-bottom: var(--space-lg);
}

.solution-card__link {
   font-size: var(--text-sm);
   font-weight: 600;
   color: var(--color-accent);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   display: inline-flex;
   align-items: center;
   gap: var(--space-xs);
}

.solution-card__link:hover {
   gap: var(--space-sm);
}

/* ==========================================================================
   WHY AXSTRACK / DIFFERENTIATORS
   ========================================================================== */
.differentiator {
   display: flex;
   gap: var(--space-lg);
  padding: var(--space-xl) 0;
   border-bottom: var(--border-thin);
}

.differentiator:last-child {
   border-bottom: none;
}

.differentiator__number {
   font-size: var(--text-3xl);
   font-weight: 800;
   color: var(--color-light-gray);
   line-height: 1;
}

.differentiator__content {
   flex: 1;
}

.differentiator__title {
   font-size: var(--text-xl);
   margin-bottom: var(--space-sm);
}

.differentiator__text {
   color: var(--color-text-light);
}

/* Asymmetric Grid for Why Section */
.why-grid {
   display: grid;
   grid-template-columns: 1fr 1.2fr;
   gap: var(--space-4xl);
  align-items: start;
}

/* ==========================================================================
   INDUSTRY TILES
   ========================================================================== */
.industry-tile {
   position: relative;
   overflow: hidden;
   background: var(--color-primary);
   aspect-ratio: 4/3;
   display: flex;
   align-items: flex-end;
   padding: var(--space-xl);
}

.industry-tile__image {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.industry-tile__overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, transparent 60%);
}

.industry-tile__content {
   position: relative;
   z-index: 1;
}

.industry-tile__title {
   color: var(--color-white);
   font-size: var(--text-xl);
   margin-bottom: var(--space-sm);
}

.industry-tile__text {
   color: var(--color-silver);
   font-size: var(--text-sm);
}

/* Horizontal Scroll for Industries */
.industries-scroll {
   display: flex;
   gap: var(--space-lg);
   overflow-x: auto;
   scroll-snap-type: x mandatory;
   padding: var(--space-md) 0;
   scrollbar-width: thin;
}

.industries-scroll .industry-tile {
   min-width: 300px;
   scroll-snap-align: start;
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.process {
   background: var(--color-off-white);
}

.process__steps {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: var(--space-lg);
}

.process__step {
   position: relative;
   padding: var(--space-xl);
   background: var(--color-white);
  border-left: 3px solid var(--color-primary);
}

.process__step-number {
   font-size: var(--text-3xl);
   font-weight: 800;
   color: var(--color-light-gray);
   margin-bottom: var(--space-sm);
}

.process__step-title {
   font-size: var(--text-lg);
   margin-bottom: var(--space-sm);
}

.process__step-text {
   font-size: var(--text-sm);
   color: var(--color-text-light);
}

/* Connector Line between steps */
.process__step::after {
   content: '';
   position: absolute;
   top: 50%;
   right: -24px;
   width: 48px;
   height: 2px;
  background: var(--color-light-gray);
}

.process__step:last-child::after {
   display: none;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial {
  padding: var(--space-2xl);
  background: var(--color-off-white);
  border-left: 3px solid var(--color-accent);
}

.testimonial__quote {
   font-size: var(--text-xl);
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

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

.testimonial__avatar {
   width: 48px;
   height: 48px;
  border-radius: 50%;
  background: var(--color-light-gray);
  object-fit: cover;
}

.testimonial__name {
   font-weight: 600;
}

.testimonial__role {
   font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: var(--color-primary);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-band__title {
  color: var(--color-white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

.cta-band__text {
  color: var(--color-silver);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   FEATURE GRID (Solutions Pages)
   ========================================================================== */
.feature-card {
  padding: var(--space-xl);
  border: var(--border-thin);
  transition: border-color var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-accent);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.feature-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ==========================================================================
   HOW IT WORKS (Visual Flow)
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.flow__step {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-white);
  border: var(--border-thin);
}

.flow__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

.flow__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.flow__arrow {
  font-size: var(--text-xl);
  color: var(--color-accent);
}

/* ==========================================================================
   SPECS TABLE
   ========================================================================== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.specs-table th,
.specs-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: var(--border-thin);
}

.specs-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.specs-table tr:hover {
  background: var(--color-off-white);
}

/* ==========================================================================
   INDUSTRY CARDS (Industries Page)
   ========================================================================== */
.industry-card {
  background: var(--color-white);
  border: var(--border-thin);
  overflow: hidden;
}

.industry-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-bottom: var(--border-thin);
}

.industry-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-accent);
  border-radius: 8px;
}

.industry-card__title {
  font-size: var(--text-lg);
}

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

.industry-card__text {
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
}

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

.industry-card__tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SERVICES LIST (What We Do)
   ========================================================================== */
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: var(--border-thin);
}

.service-item__number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-light-gray);
}

.service-item__content {
  max-width: 640px;
}

.service-item__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.service-item__text {
  color: var(--color-text-light);
}

/* ==========================================================================
   ABOUT PAGE COMPONENTS
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.value-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border: var(--border-thin);
}

.value-card__number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.value-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.value-card__text {
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.team-member {
  text-align: center;
}

.team-member__photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-light-gray);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.team-member__role {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-light-gray);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 6px);
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
}

.timeline__year {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.timeline__event {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline__description {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Certifications */
.certifications {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
}

.certification {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.certification__badge {
  width: 80px;
  height: 80px;
  background: var(--color-off-white);
  border: var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: center;
}

.certification__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

/* ==========================================================================
   CONTACT PAGE COMPONENTS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-form {
  background: var(--color-white);
  padding: var(--space-2xl);
  border: var(--border-thin);
}

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

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-family: inherit;
  border: var(--border-thin);
  background: var(--color-off-white);
  transition: border-color var(--transition-fast);
}

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

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

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

.form-group .error-message {
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-top: var(--space-xs);
  display: none;
}

.form-group input.error + .error-message,
.form-group select.error + .error-message,
.form-group textarea.error + .error-message {
  display: block;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__block {
  padding: var(--space-lg);
  background: var(--color-off-white);
}

.contact-info__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.contact-info__value {
  font-weight: 600;
}

.contact-info__value a {
  color: var(--color-accent);
}

/* Map Placeholder */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thin);
}

.map-placeholder__text {
  color: var(--color-text-light);
  text-align: center;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: var(--border-thin);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  text-align: left;
}

.faq-item__icon {
  font-size: var(--text-xl);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-content {
  padding-bottom: var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-4xl) 0 0;
  border-top: 1px solid #29415f;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid #29415f;
}

.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
  text-decoration: none;
}

.footer__logo-image {
  width: 190px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Hide the old AX square if it still exists */
.footer__logo-mark {
  display: none;
}

.footer__blurb {
  color: var(--color-silver);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-white);
  transition: background var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-accent);
}

.footer__heading {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-silver);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-gray);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-gray);
}

.footer__contact-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer__bottom {
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-silver);
}

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

.footer__legal-link {
  color: var(--color-silver);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__text {
    order: 1;
  }
  
  .hero__image {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .stats-band__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process__step:nth-child(2)::after {
    display: none;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .flow {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .flow__arrow {
    display: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .nav__mobile {
    display: block;
  }
  
  .header__cta.desktop-only {
    display: none;
  }
  
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  }
  
  .hero--page {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  }
  
  .stats-band__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .stat__number {
    font-size: var(--text-3xl);
  }
  
  .process__steps {
    grid-template-columns: 1fr;
  }
  
  .process__step::after {
    display: none;
  }
  
  .process__step {
    border-left: 3px solid var(--color-light-gray);
  }
  
  .flow {
    grid-template-columns: 1fr;
  }
  
  .flow__step {
    display: grid;
    grid-template-columns: auto 1fr;
    text-align: left;
    gap: var(--space-md);
  }
  
  .flow__icon {
    margin: 0;
  }
  
  .differentiator {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .differentiator__number {
    font-size: var(--text-2xl);
  }
  
  .service-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__actions .btn {
    width: 100%;
  }
  
  .stats-band__grid {
    grid-template-columns: 1fr;
  }
  
  .industries-scroll {
    gap: var(--space-md);
  }
  
  .industry-tile {
    min-width: 260px;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .header,
  .footer,
  .cta-band {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
  
  .hero {
    background: white;
    color: black;
  }
  
  .hero__title,
  .hero__text {
    color: black;
  }
}


/* ============================================================
   AXSTRACK HOME HERO - FULL BACKGROUND VIDEO
   FINAL OVERRIDE
   ============================================================ */

.hero--home {
    position: relative !important;
    min-height: 680px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    padding-top: var(--header-height) !important;
    background: #0a1628 !important;
}

/* VIDEO FULL BACKGROUND */
.hero--home .hero-background-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;

    display: block !important;
    z-index: 0 !important;
}

/* DARK OVERLAY */
.hero--home .hero-video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    background: rgba(5, 17, 32, 0.62) !important;

    z-index: 1 !important;
}

/* CONTENT ABOVE VIDEO */
.hero--home .hero-content-overlay {
    position: relative !important;
    z-index: 2 !important;

    width: 100% !important;
    min-height: 680px !important;

    display: flex !important;
    align-items: center !important;
}

/* TEXT */
.hero--home .hero__text {
    position: relative !important;
    z-index: 3 !important;

    max-width: 680px !important;

    padding: 60px 0 !important;

    color: #ffffff !important;
}

/* HEADING */
.hero--home .hero__title {
    color: #ffffff !important;
}

/* DESCRIPTION */
.hero--home .hero__description {
    color: #d4dce7 !important;
    max-width: 600px !important;
}

/* BUTTONS */
.hero--home .hero__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: var(--space-md) !important;
}

/* MAKE SURE OLD IMAGE DOES NOT CREATE SPACE */
.hero--home .hero__image {
    display: none !important;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) {

    .hero--home {
        min-height: 650px !important;
    }

    .hero--home .hero-content-overlay {
        min-height: 650px !important;
    }

    .hero--home .hero__text {
        max-width: 650px !important;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .hero--home {
        min-height: 680px !important;
        padding-top: var(--header-height) !important;
    }

    .hero--home .hero-content-overlay {
        min-height: 650px !important;
        align-items: center !important;
    }

    .hero--home .hero__text {
        max-width: 100% !important;
        padding: 40px 0 !important;
        text-align: left !important;
    }

    .hero--home .hero__title {
        font-size: var(--text-4xl) !important;
    }

    .hero--home .hero__description {
        font-size: var(--text-base) !important;
    }

    .hero--home .hero__actions {
        justify-content: flex-start !important;
    }
}

/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .hero--home {
        min-height: 700px !important;
    }

    .hero--home .hero-content-overlay {
        min-height: 670px !important;
    }

    .hero--home .hero__actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero--home .hero__actions .btn {
        width: 100% !important;
    }
}