@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Saira:wght@400;500;600;700;800&display=swap');

/* --- CUSTOM PROPERTIES --- */
:root {
  --bg-primary: #1E2022;
  --bg-secondary: #2B2D30;
  --bg-tertiary: #3A3D40;
  --text-primary: #FFFFFF;
  --text-secondary: #C0C0C0;
  --text-muted: #8A8D90;
  --accent-orange: #FF6B35;
  --accent-yellow: #FFD23F;
  --accent-orange-glow: rgba(255, 107, 53, 0.4);
  --accent-yellow-glow: rgba(255, 210, 63, 0.3);
  --steel-border: #4E5256;
  --font-header: 'Barlow Condensed', 'Saira', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-metallic: 5px 5px 15px rgba(0, 0, 0, 0.45), -5px -5px 15px rgba(255, 255, 255, 0.05);
  --shadow-inset-metal: inset 2px 2px 5px rgba(0, 0, 0, 0.8), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- BASE STYLES --- */
body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-header);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: var(--accent-yellow);
}

.text-muted {
  color: var(--text-muted) !important;
}

::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.8;
}

/* --- NAV BAR --- */
.navbar-custom {
  background-color: rgba(30, 32, 34, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--steel-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 15px 0;
}
.navbar-custom .navbar-brand {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-primary) !important;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-custom .navbar-brand span {
  color: var(--accent-orange);
}
.navbar-custom .nav-link {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-secondary) !important;
  letter-spacing: 0.05em;
  padding: 8px 16px !important;
  transition: var(--transition-smooth);
  position: relative;
  text-transform: uppercase;
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
  color: var(--accent-orange) !important;
}
.navbar-custom .nav-link:hover::after, 
.navbar-custom .nav-link.active::after {
  width: 70%;
}
.navbar-custom .navbar-toggler {
  border: 1px solid var(--steel-border);
  padding: 6px 10px;
}
.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem var(--accent-orange-glow);
}
.navbar-custom .navbar-toggler-icon {
  filter: invert(1);
}

/* --- BUTTONS --- */
.btn-industrial {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  color: var(--text-primary);
  border: 2px solid var(--steel-border);
  font-family: var(--font-header);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-metallic);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn-industrial::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}
.btn-industrial:hover::before {
  left: 100%;
}
.btn-industrial:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange-glow);
  transform: translateY(-2px);
}
.btn-industrial-orange {
  background: linear-gradient(135deg, var(--accent-orange), #d44d18);
  color: #1E2022 !important;
  border: 2px solid var(--accent-orange);
  font-family: var(--font-header);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 30px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: var(--transition-smooth);
}
.btn-industrial-orange:hover {
  background: linear-gradient(135deg, #e05420, var(--accent-orange));
  box-shadow: 0 0 25px rgba(255, 107, 53, 0.7);
  transform: translateY(-2px);
  color: #000000 !important;
  border-color: var(--accent-yellow);
}

.btn-industrial-yellow {
  background: linear-gradient(135deg, var(--accent-yellow), #d6ad20);
  color: #1E2022 !important;
  border: 2px solid var(--accent-yellow);
  font-family: var(--font-header);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 30px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 210, 63, 0.4);
  transition: var(--transition-smooth);
}
.btn-industrial-yellow:hover {
  background: linear-gradient(135deg, #e3bd2f, var(--accent-yellow));
  box-shadow: 0 0 25px rgba(255, 210, 63, 0.7);
  transform: translateY(-2px);
  color: #000000 !important;
  border-color: var(--accent-orange);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-orange);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(20, 21, 23, 0.9) 30%, rgba(20, 21, 23, 0.5) 70%, rgba(20, 21, 23, 0.8));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 60%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title span {
  color: var(--accent-orange);
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  border-left: 4px solid var(--accent-yellow);
  padding-left: 15px;
}

/* --- CARDS & PANELS --- */
.metal-card {
  background: linear-gradient(145deg, #282a2d, #1c1e20);
  border: 1px solid var(--steel-border);
  border-radius: 6px;
  padding: 30px;
  box-shadow: var(--shadow-metallic);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.metal-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, transparent 50%, var(--steel-border) 50%);
  opacity: 0.3;
}
.metal-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}
.card-icon {
  font-size: 2.5rem;
  color: var(--accent-orange);
  margin-bottom: 20px;
}
.card-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- SECTIONS --- */
.section-padding {
  padding: 90px 0;
}
.bg-dark-accent {
  background-color: #17181a;
}
.section-title {
  font-size: 3rem;
  position: relative;
  margin-bottom: 50px;
  font-weight: 800;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--accent-orange);
}
.section-title-center {
  text-align: center;
  display: block;
}
.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- CAPABILITIES & STATS --- */
.stat-box {
  text-align: center;
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--steel-border);
  box-shadow: var(--shadow-inset-metal);
  border-radius: 4px;
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-yellow);
  line-height: 1;
  margin-bottom: 10px;
  font-family: var(--font-header);
}
.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  font-weight: 600;
}

/* --- RIVET CONTAINER & INDUSTRIAL BORDERS --- */
.rivet-panel {
  border: 2px solid var(--steel-border);
  position: relative;
  background-color: var(--bg-secondary);
  padding: 40px;
  box-shadow: var(--shadow-metallic);
}
.rivet-panel::before,
.rivet-panel::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #8a8d90 20%, #3a3d40 60%, #111111 100%);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), inset 1px 1px 1px rgba(255, 255, 255, 0.4);
}
/* Corner rivet alignments */
.rivet-panel::before { top: 10px; left: 10px; }
.rivet-panel::after { top: 10px; right: 10px; }

/* Hazard striping */
.hazard-stripe {
  height: 12px;
  background: repeating-linear-gradient(
    45deg,
    var(--accent-yellow),
    var(--accent-yellow) 15px,
    #1E2022 15px,
    #1E2022 30px
  );
  border-bottom: 2px solid #1E2022;
}

/* --- PORTFOLIO GALLERY --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--steel-border);
  color: var(--text-secondary);
  padding: 8px 20px;
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-orange);
  color: #1E2022;
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange-glow);
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--steel-border);
  aspect-ratio: 4/3;
  margin-bottom: 30px;
  transition: var(--transition-smooth);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(30, 32, 34, 0.95) 10%, rgba(30, 32, 34, 0.4) 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: var(--transition-smooth);
}
.portfolio-item:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 0 20px var(--accent-orange-glow);
}
.portfolio-item:hover img {
  transform: scale(1.08);
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-cat {
  font-size: 0.8rem;
  color: var(--accent-yellow);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.portfolio-title {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

/* --- QUOTE ESTIMATOR --- */
.estimator-panel {
  background: linear-gradient(145deg, #2b2d30, #202224);
  border: 2px solid var(--steel-border);
  border-radius: 6px;
  padding: 35px;
  box-shadow: var(--shadow-metallic);
}
.calculator-input-group {
  margin-bottom: 25px;
}
.calculator-label {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.form-control-industrial, .form-select-industrial {
  background-color: #17181a !important;
  border: 1px solid var(--steel-border) !important;
  color: var(--text-primary) !important;
  border-radius: 4px !important;
  padding: 12px 15px;
  transition: var(--transition-smooth);
}
.form-control-industrial:focus, .form-select-industrial:focus {
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 10px var(--accent-orange-glow) !important;
  outline: none;
}
.price-display-box {
  background: #141517;
  border: 2px dashed var(--accent-orange);
  border-radius: 4px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-inset-metal);
}
.price-val {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-orange);
  font-family: var(--font-header);
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}
.price-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.drag-drop-zone {
  border: 2px dashed var(--steel-border);
  border-radius: 4px;
  padding: 35px;
  text-align: center;
  background-color: #17181a;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.drag-drop-zone:hover {
  border-color: var(--accent-orange);
  background-color: rgba(255, 107, 53, 0.05);
}
.drag-drop-zone i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* --- CERTIFICATIONS & SAFETY --- */
.cert-badge {
  text-align: center;
  padding: 30px;
  border: 1px solid var(--steel-border);
  border-radius: 6px;
  background-color: var(--bg-secondary);
  transition: var(--transition-smooth);
}
.cert-badge:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 15px var(--accent-yellow-glow);
}
.cert-img {
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: grayscale(1) brightness(1.2);
  transition: var(--transition-smooth);
}
.cert-badge:hover .cert-img {
  filter: grayscale(0) brightness(1);
}

/* --- BLOG CARD --- */
.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--steel-border);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.blog-card img {
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-date {
  font-size: 0.8rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-metallic);
}

/* --- FOOTER --- */
.footer-custom {
  background-color: #141517;
  border-top: 3px solid var(--steel-border);
  padding: 70px 0 0 0;
  color: var(--text-secondary);
}
.footer-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  border-left: 3px solid var(--accent-orange);
  padding-left: 10px;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--accent-orange);
  padding-left: 5px;
}
.footer-hours-table {
  width: 100%;
  font-size: 0.9rem;
}
.footer-hours-table td {
  padding: 5px 0;
}
.footer-hours-table tr {
  border-bottom: 1px solid #202224;
}
.bottom-bar {
  background-color: #0b0c0d;
  padding: 25px 0;
  border-top: 1px solid #1E2022;
  font-size: 0.9rem;
}

/* --- SPARKS ANIMATION EFFECT --- */
.sparks-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px var(--accent-orange), 0 0 12px var(--accent-yellow);
  animation: spark-drift 3s infinite linear;
}

@keyframes spark-drift {
  0% {
    transform: translate(0, 100%) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--drift-x, 100px), -200px) scale(0);
    opacity: 0;
  }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .section-padding {
    padding: 60px 0;
  }
}
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .btn-industrial-orange, .btn-industrial-yellow {
    width: 100%;
    margin-bottom: 15px;
  }
}
