/* ==========================================================================
   SPARK Weld USA - Dark Mode Primary Stylesheet
   Palette: Maroon (#800000), Black (#000000), Dark Gray (#121212 / #1a1a1a)
   ========================================================================== */

:root {
  --brand-primary: #800000;
  --brand-dark: #000000;
  --brand-light: #ffffff;
  --text-main: #cccccc;      
  --text-muted: #888888;
  --bg-main: #121212;        
  --bg-section: #1a1a1a;     
  --card-bg: #222222;        
  --bg-tertiary: #2C2C2C;
  --border-color: #333333;
}

/* Import Custom BR Firma Font */
@font-face {
  font-family: 'BR Firma';
  src: url('../fonts/br-firma/BRFirma-Regular.woff2') format('woff2'),
       url('../fonts/br-firma/BRFirma-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'BR Firma';
  src: url('../fonts/br-firma/BRFirma-Bold.woff2') format('woff2'),
       url('../fonts/br-firma/BRFirma-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
}

body {
  font-family: 'BR Firma', sans-serif;
  color: var(--text-main);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-main);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 2px,
    transparent 2px,
    transparent 8px
  );
  z-index: -999;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'BR Firma', sans-serif;
  font-weight: 800;
  color: var(--brand-light);
  margin-bottom: 1rem;
}

p {
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

/* --- Buttons --- */
.btn-spark {
  background-color: var(--brand-primary);
  color: var(--brand-light);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4);
}

.btn-spark:hover {
  background-color: #a30000;
  color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(128, 0, 0, 0.6);
}

/* --- Navigation --- */
.navbar-custom {
  background-color: rgba(0, 0, 0, 0.98) !important; 
  padding: 8px 0; 
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.nav-logo {
  height: 135px; 
  width: auto;
  display: block;
}

.navbar-custom .nav-link {
  color: #cccccc;
  font-family: 'BR Firma', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  margin: 0 20px; 
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
  color: var(--brand-primary);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.5) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--brand-dark);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(18,18,18,0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-logo-img {
  max-width: 450px;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
}

/* --- Layout Utilities --- */
.section-pad {
  padding: 100px 0;
}

.bg-dark-alt {
  background-color: rgba(0, 0, 0, 0.45); 
}

.text-maroon {
  color: var(--brand-primary);
}

/* --- Modern Video Gallery Containers --- */
.video-showcase-container {
  border-color: #333 !important;
}

.video-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Fixes height collapse */
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block; /* Ensures wrapper behaves predictably */
}

.video-showcase:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--brand-primary);
}

/* Target the anchor tag inside the showcase */
.video-showcase a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative; /* Contain absolutely positioned children */
}

.video-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block; /* Removes inline spacing quirks */
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.play-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(128, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-light);
  font-size: 20px;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(128, 0, 0, 0.4);
}

.video-showcase:hover .video-bg-img {
  transform: scale(1.08);
}

.video-showcase:hover .media-overlay {
  background: linear-gradient(to bottom, rgba(128,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.video-showcase:hover .play-icon-glow {
  background: var(--brand-primary);
  color: var(--brand-light);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(128, 0, 0, 0.8);
  border-color: rgba(255,255,255,0.5);
}

/* --- Feature Images --- */
.feature-img-wrapper {
  padding: 10px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.feature-img-wrapper img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block; /* Fixes stray margin below images */
}

/* --- CTA Quote Section --- */
.cta-section {
  background-color: transparent;
  background-image: radial-gradient(circle at center, rgba(42, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%);
  color: var(--brand-light);
  border-top: 3px solid var(--brand-primary);
  border-bottom: 3px solid var(--brand-primary);
}

.cta-section h2, .cta-section h3, .cta-section h4 {
  color: var(--brand-light);
}

.cta-section p {
  color: #dddddd;
}

/* --- Contact Section --- */
.modern-input {
  background: #111111;
  border: 2px solid #333333;
  border-radius: 6px;
  padding: 16px;
  width: 100%;
  margin-bottom: 24px;
  color: var(--brand-light);
  font-family: 'BR Firma', sans-serif;
  transition: all 0.3s ease;
}

.modern-input::placeholder {
  color: #777777;
}

.modern-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #000000;
  box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.2);
}

.contact-info-card {
  background: var(--card-bg);
  padding: 50px 40px;
  border-radius: 12px;
  height: 100%;
  color: var(--brand-light);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid #333333;
}

.contact-info-card h3 {
  color: var(--brand-light);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 15px;
  display: inline-block;
}

.contact-icon {
  color: var(--brand-primary);
  font-size: 28px;
  width: 40px;
  text-align: center;
  margin-right: 20px;
}

.contact-info-card a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-card a:hover {
  color: var(--brand-primary);
}

/* --- Footer --- */
.footer-custom {
  background-color: #000000;
  padding: 50px 0 30px;
  border-top: 1px solid #222222;
}

.footer-custom p, .footer-custom a, .footer-custom span {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-custom a:hover {
  color: var(--brand-primary);
}