/*
Theme Name: STier Communications
Theme URI: https://stiercomm.com
Author: STier Communications
Description: Modern dark-only block theme for STier Communications.
Version: 2.0
*/

/* ---------------------------------------------------------
   DESIGN TOKENS — COLORS, SPACING, TYPOGRAPHY
--------------------------------------------------------- */

:root {
  /* Colors */
  --stier-bg: #05060a;
  --stier-bg-card: #0d0f16;
  --stier-bg-soft: #11131b;

  --stier-text-main: #ffffff;
  --stier-text-muted: #a0a4b3;

  --stier-border-subtle: #1c1f2a;

  --stier-accent: #1f8bff;
  --stier-accent-soft: #4aa3ff;

  /* Shadows */
  --stier-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --stier-shadow-card: 0 14px 35px rgba(0, 0, 0, 0.35);

  /* Radii */
  --stier-radius-lg: 18px;
  --stier-radius-md: 12px;
  --stier-radius-sm: 8px;

  /* Spacing Scale */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --space-80: 80px;

  /* Layout */
  --stier-max-width: 1120px;
}

/* ---------------------------------------------------------
   GLOBAL RESET + BASE
--------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #151827 0, var(--stier-bg) 55%, #000 100%);
  color: var(--stier-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stier-shell {
  width: 100%;
  max-width: var(--stier-max-width);
  margin: 0 auto;
  padding: 0 var(--space-20);
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.stier-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 6, 10, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stier-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16) 0;
  gap: var(--space-28);
}

.stier-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* ---------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */

.stier-nav {
  display: flex;
  align-items: center;
  gap: var(--space-28);
  font-size: 0.9rem;
}

.stier-nav a {
  color: var(--stier-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.stier-nav a:hover,
.stier-nav .current-menu-item > a {
  color: var(--stier-text-main);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.stier-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: var(--space-40);
  font-size: 0.78rem;
  color: #7f8495;
}

.stier-footer-inner {
  display: flex;
  justify-content: space-between;
  padding: var(--space-20) 0 var(--space-32);
  flex-wrap: wrap;
  gap: var(--space-16);
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.hero {
  padding: var(--space-80) 0 var(--space-40);
}

.hero-title {
  font-size: 2.6rem;
  margin-bottom: var(--space-16);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--stier-text-muted);
  max-width: 420px;
  margin: 0 auto var(--space-24);
}

/* ---------------------------------------------------------
   GRID + SECTIONS
--------------------------------------------------------- */

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-20);
}

.section-title {
  font-size: 1.2rem;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--stier-text-muted);
  max-width: 360px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-14);
}

.product-card {
  background: var(--stier-bg-card);
  border: 1px solid var(--stier-border-subtle);
  border-radius: var(--stier-radius-md);
  padding: var(--space-16);
  box-shadow: var(--stier-shadow-card);
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.btn,
.btn-primary {
  display: inline-block;
  padding: var(--space-12) var(--space-24);
  border-radius: 999px;
  background: var(--stier-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn:hover,
.btn-primary:hover {
  background: var(--stier-accent-soft);
}

/* ---------------------------------------------------------
   SCROLL-SPY (OPTION A)
--------------------------------------------------------- */

.stier-3cx-nav {
  margin-top: var(--space-40);
  padding-top: var(--space-20);
  border-top: 1px solid var(--stier-border-subtle);
}

.stier-3cx-nav a {
  display: block;
  padding: var(--space-12) var(--space-16);
  border-radius: var(--stier-radius-sm);
  color: var(--stier-text-muted);
  text-decoration: none;
  transition: background 0.2s ease;
}

.stier-3cx-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--stier-text-main);
}

.stier-3cx-nav a.active {
  background: rgba(31,139,255,0.14);
  color: var(--stier-accent-soft);
  font-weight: 600;
}

/* ---------------------------------------------------------
   LEFT SCROLL PROGRESS BAR
--------------------------------------------------------- */

#scroll-progress-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background: var(--stier-accent);
  z-index: 9999;
  transition: height 0.15s ease-out;
  border-radius: 0 4px 4px 0;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

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

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