/**
 * ==============================================================================
 * AXCELLENT PUBLIC SITE - CORE DESIGN SYSTEM & BASE STYLES
 * ==============================================================================
 */

@import url('theme-tokens.css');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--fw-normal);
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.035) 0%, transparent 45%),
    linear-gradient(180deg, #090B0E 0%, #0D1015 100%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* ==============================================================================
   2. TYPOGRAPHY
   ============================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

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

p {
  color: var(--text-muted);
  max-width: var(--max-line-length);
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--accent-hover);
}

strong, b {
  color: var(--text);
  font-weight: var(--fw-semibold);
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

/* ==============================================================================
   3. LAYOUT & CONTAINERS
   ============================================================================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

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

.main-content {
  flex: 1 0 auto;
  padding-top: 108px;
}

@media (max-width: 900px) {
  .main-content {
    padding-top: 72px;
  }
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
}

.section-elevated {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-ambient {
  position: relative;
  overflow: hidden;
}

.section-ambient::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 12-Column Grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

/* ==============================================================================
   4. SECTION HEADINGS & BADGES
   ============================================================================== */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #CBD5E1;
  margin-bottom: var(--space-sm);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

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

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.badge-accent {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.22);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ==============================================================================
   5. BUTTONS & CTAS
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-standard);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-steel);
  color: var(--accent-contrast);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  color: var(--accent-contrast);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border-bright);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  color: var(--text);
  border-color: var(--steel-400);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-surface);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ==============================================================================
   6. INDUSTRIAL CARDS
   ============================================================================== */
.card-industrial {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-standard),
              border-color var(--duration-normal) var(--ease-standard),
              box-shadow var(--duration-normal) var(--ease-standard);
}

.card-industrial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.card-industrial:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-card-hover);
}

.card-industrial.interactive {
  cursor: pointer;
}

/* Equipment / Product Card */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card-hover);
}



.product-card-media {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0E131A;
    border-bottom: 1px solid var(--border);
}

    /* Same image as background */
    .product-card-media img.product-card-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        filter: blur(12px) brightness(0.8);
        transform: scale(1.1);
        z-index: 0;
    }

    /* Original complete image */
    .product-card-media img.product-card-main {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        transition: transform 0.4s ease;
    }

.product-card:hover .product-card-media img.product-card-main {
    transform: scale(1.03);
}


.product-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
}

.product-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.product-card-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xs);
}

.product-card-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-snug);
}

.product-card-title a {
  color: var(--text);
}

.product-card-title a:hover {
  color: var(--accent);
}

.product-card-snippet {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-card-footer {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==============================================================================
   7. TRUST BAR & STATS
   ============================================================================== */
.trust-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

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

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

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-glow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, #FFFFFF 30%, var(--steel-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}

/* ==============================================================================
   8. MATERIALS & SERVICES STRIPS
   ============================================================================== */
.materials-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.material-chip {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--steel-200);
  font-weight: var(--fw-semibold);
  transition: all var(--duration-fast) var(--ease-standard);
}

.material-chip:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: #FFFFFF;
}

/* ==============================================================================
   9. CALL TO ACTION BANNER
   ============================================================================== */
.cta-banner {
  background: var(--gradient-metallic);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==============================================================================
   10. SCROLL PROGRESS & UTILITIES
   ============================================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-steel);
  z-index: calc(var(--z-header) + 10);
  width: 0%;
  transition: width 50ms linear;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.w-100 { width: 100%; }
.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-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); }


/* =====================================
   ABOUT US DROPDOWN
===================================== */

.about-nav-dropdown {
    position: relative;
}

.about-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    padding: 8px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: #151b25;
    border: 1px solid #303b4d;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 9999;
}

.about-nav-dropdown:hover .about-dropdown-menu,
.about-nav-dropdown:focus-within .about-dropdown-menu {
    display: block;
}

.about-dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .about-dropdown-menu li a {
        display: block;
        padding: 12px 18px;
        color: #dce4ef;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.25s ease;
        white-space: nowrap;
    }

        .about-dropdown-menu li a:hover {
            background: rgba(37, 99, 235, 0.15);
            color: #60a5fa;
            padding-left: 23px;
        }

/* Keep dropdown above other navigation elements */
.about-nav-dropdown {
    z-index: 1000;
}

    .about-nav-dropdown:hover {
        z-index: 1001;
    }
