/* ==========================================================================
   Stalsky Engineering & Fabrication - Stylesheet
   Theme: Dark Metallic Steel, Aerospace Precision & Technical Blue Accents
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
  /* Color Palette */
  --bg-dark: #07090c;
  --bg-primary: #0c0f14;
  --bg-secondary: #131720;
  --bg-card: #171c26;
  --bg-card-hover: #1f2533;
  --bg-glass: rgba(19, 23, 32, 0.85);

  --accent-blue: #0a84ff;
  --accent-cyan: #00f2fe;
  --accent-glow: rgba(10, 132, 255, 0.25);
  --accent-steel: #8e9aaf;
  --steel-light: #d1d7e0;
  
  --text-main: #f3f5f8;
  --text-muted: #9da8b9;
  --text-dark: #626c7a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(10, 132, 255, 0.5);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(10, 132, 255, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(10, 132, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-cyan);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Reusable Components --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-blue);
  background: rgba(10, 132, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(10, 132, 255, 0.2);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--steel-light) 60%, var(--accent-steel) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0066cc 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1a8cff 0%, var(--accent-blue) 100%);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  color: var(--text-main);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-steel);
}

/* --- Top Info Bar --- */
.top-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 0.4rem 0;
  position: relative;
  z-index: 1001;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-label {
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-bar-val {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.top-bar-link {
  color: var(--steel-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.top-bar-link:hover {
  color: var(--accent-blue);
}

.top-bar-sep {
  color: var(--text-dark);
  user-select: none;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: background var(--transition-normal), box-shadow var(--transition-normal), border var(--transition-normal);
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* The logo files ship on a solid black background; `screen` blending drops that
   black out against the dark header/footer so the mark reads as transparent. */
.brand-wordmark,
.brand-lockup {
  display: block;
  width: auto;
  mix-blend-mode: screen;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover .brand-wordmark,
.brand-logo:hover .brand-lockup {
  opacity: 0.85;
}

/* Header wordmark */
.brand-wordmark {
  height: 44px;
  max-width: 220px;
  object-fit: contain;
}

/* Footer full lockup (icon + wordmark) */
.brand-logo-footer {
  margin-bottom: 1.25rem;
}

.brand-lockup {
  height: 96px;
  max-width: 100%;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-blueprint {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
  /* The dark theme's own backdrop (new_bg-dark.jpeg) is no longer on disk,
     and the dark variant was retired anyway. style-light.css overrides this
     line, so nothing on the live page changes - but pointing it at a file
     that exists keeps style.css correct when loaded on its own. */
  background-image: url('../images/bg_new2.webp');
  background-size: cover;
  background-position: center right;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.hero-tagline::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent-blue);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Columns size to their content rather than three equal thirds: the hotline
   stat is much wider than "4" or "100%", and an equal-thirds track forces the
   number to wrap mid-value, which drops its label out of line with the others. */
/* Flex-wrap rather than three fixed grid tracks: `repeat(3, auto)` cannot go
   below the three items' combined min-content (~313px), which overflowed the
   content box on 320-336px phones and was then clipped by body's
   overflow-x:hidden. Wrapping drops the third stat to its own row instead,
   and needs no breakpoint to do it. */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 3rem;
  row-gap: 1.5rem;
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  background: var(--bg-card);
}

.hero-img-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-img-wrapper:hover img {
  transform: scale(1.03);
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
}

.hero-badge-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-badge-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- About Section --- */
.about-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.about-img-frame img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.about-overlay-tech {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100px;
  height: 100px;
  border-top: 2px solid var(--accent-blue);
  border-right: 2px solid var(--accent-blue);
  pointer-events: none;
}

.about-content-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-box {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.feature-box:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.feature-box-icon {
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.feature-box-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-box-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Core Capabilities Section --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.capability-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background var(--transition-normal);
}

.capability-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.capability-card:hover::before {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}

.capability-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.capability-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.capability-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.capability-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-top: 1.5rem;
  font-family: var(--font-mono);
}

.capability-link svg {
  transition: transform var(--transition-fast);
}

.capability-link:hover svg {
  transform: translateX(4px);
}

/* --- Products & Solutions Section --- */
.products-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.products-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-info-col h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.product-info-col p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;

}

.product-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.product-item-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.product-item-icon {
  color: var(--accent-blue);
  flex-shrink: 0;
}

.product-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--steel-light);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.gallery-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-card-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-light);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

/* --- Stainless Steel Fabrication Highlight --- */
.ss-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ss-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.ss-card:hover {
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ss-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.ss-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ss-card:hover .ss-card-img-wrap img {
  transform: scale(1.05);
}

.ss-card-body {
  padding: 1.5rem;
}

.ss-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ss-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Industries Section --- */
.industries-section {
  background-color: var(--bg-dark);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 1.25rem;
  border-radius: 10px;
  text-align: center;
  transition: all var(--transition-fast);
}

.industry-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.industry-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem auto;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.industry-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --- Why Stalsky Section --- */
.why-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.why-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}

.why-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.why-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Contact Section --- */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-panel h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info-panel p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-card-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-blue);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-text label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-dark);
  text-transform: uppercase;
}

/* Flex children default to min-width:auto, so this box refuses to shrink below
   the widest thing inside it. The email is a single unbreakable 20-character
   token; in the mono face at 1.25rem that is ~240px, which becomes the
   min-content width of the whole contact column and pushes it ~60px past a
   360px viewport - where body's overflow-x:hidden clips it out of sight
   instead of showing a scrollbar. min-width:0 lets it shrink. */
.contact-card-text {
  min-width: 0;
}

.contact-card-text a, .contact-card-text span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
  /* Backstop for the narrowest phones: break inside the address rather than
     let it overflow. The 480px rule below should mean this never fires. */
  overflow-wrap: anywhere;
}

.contact-form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-light);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
}

/* Keyboard users land on this before the nav; it stays clipped out of the
   layout until focused, so it costs sighted users nothing. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent-blue);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* --- Animations & Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border: 1px solid var(--accent-blue);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .product-display-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* A `1fr` track is minmax(auto, 1fr), so it still cannot go below its items'
     min-content width. Once the grid is a single column there is nothing to
     distribute, so let the items shrink to the track. */
  .contact-grid > *, .about-grid > *, .product-display-grid > * {
    min-width: 0;
  }

  .capabilities-grid, .ss-highlight-grid, .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .brand-wordmark {
    height: 34px;
    max-width: 170px;
  }

  .brand-lockup {
    height: 80px;
  }

  /* Three nowrap columns no longer fit a phone; the hotline drops to its own row. */
  .hero-stats {
    grid-template-columns: repeat(2, auto);
    column-gap: 2.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .capabilities-grid, .industries-grid, .ss-highlight-grid, .why-grid, .product-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Small phones -------------------------------------------------------- */
@media (max-width: 480px) {
  /* At 360px the contact card has ~194px of room beside its 48px icon. The
     email needs 20 mono characters to fit in that, so it drops a step rather
     than wrapping mid-address. */
  .contact-card-text a, .contact-card-text span {
    font-size: 1rem;
  }

  .contact-info-panel h3 {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}
