/* ===================================
   NW Fab — Northwest Welding & Fabrication
   Color Palette: Black / Blue / White
   =================================== */

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --dark-surface: #1b1b1b;
  --dark-card: #1e1e1e;
  --dark-border: #2a2a2a;
  --blue: #0077ff;
  --blue-light: #339dff;
  --blue-glow: rgba(0, 119, 255, 0.4);
  --blue-glow-strong: rgba(0, 119, 255, 0.6);
  --white: #ffffff;
  --gray-100: #f0f2f5;
  --gray-300: #c4cad4;
  --gray-500: #8d95a3;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --transition: 0.3s ease;
  --glow-sm: 0 0 8px var(--blue-glow);
  --glow-md: 0 0 16px var(--blue-glow), 0 0 32px rgba(0, 119, 255, 0.15);
  --glow-lg: 0 0 20px var(--blue-glow-strong), 0 0 40px var(--blue-glow), 0 0 60px rgba(0, 119, 255, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-100);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
  color: var(--white);
  text-shadow: var(--glow-sm);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   Header
   =================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 0 var(--dark-border);
}

/* Logo and nav sit above sparks canvas */
.header-inner {
  position: relative;
  z-index: 1002;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
  transition: filter var(--transition);
}

.logo:hover img {
  filter: drop-shadow(var(--glow-sm));
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-300);
  padding: 8px 16px;
  border-radius: 4px;
  transition: color var(--transition), text-shadow var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--white);
  text-shadow: var(--glow-sm);
}

.main-nav a.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 4px;
  text-shadow: none;
  box-shadow: var(--glow-sm);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.main-nav a.nav-cta:hover {
  background: var(--blue-light);
  box-shadow: var(--glow-lg);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 36px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(180deg, #0088ff 0%, #0055cc 100%);
  color: var(--white);
  border-color: #0066dd;
  box-shadow: var(--glow-md), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #33a0ff 0%, #0066dd 100%);
  border-color: #3399ff;
  box-shadow: var(--glow-lg), 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  color: var(--white);
  text-shadow: none;
}

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

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
  text-shadow: none;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ===================================
   Hero
   =================================== */

.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.6) 0%,
    rgba(10, 10, 10, 0.3) 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 24px 60px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(0, 119, 255, 0.2);
}

.hero p {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.hero-tagline {
  display: inline-block;
  background-image: linear-gradient(
    90deg,
    var(--gray-300) 0%,
    var(--gray-300) 40%,
    #e0e0e0 44%,
    #ffffff 50%,
    #e0e0e0 56%,
    var(--gray-300) 60%,
    var(--gray-300) 100%
  );
  background-size: 400% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 8s ease-in-out infinite;
}

@keyframes textShine {
  0%   { background-position: 100% 0; }
  40%  { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   Noise Texture Overlay (global)
   =================================== */

/* global texture removed */

/* ===================================
   Sparks Canvas
   =================================== */

#sparksCanvas {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

/* ===================================
   Section Dividers
   =================================== */

.section-divider {
  position: relative;
  height: 2px;
  overflow: visible;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: var(--glow-md);
  transition: width 1s ease;
}

.section-divider.visible::before {
  width: 80%;
}

/* ===================================
   Sections
   =================================== */

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(even) {
  background-color: var(--dark);
}

/* Brushed metal horizontal grain */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.015) 1px,
      rgba(255, 255, 255, 0.015) 2px
    );
}

/* Alternating sections get a crosshatch pattern instead */
.section:nth-child(even)::before {
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.025) 8px,
      rgba(255, 255, 255, 0.025) 9px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.025) 8px,
      rgba(255, 255, 255, 0.025) 9px
    );
}

/* Darken sections with banner backgrounds — override generic pattern */
section.services::before,
section.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  background-image: none;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Prevent even-child crosshatch from overriding banner overlays */
section.services.section:nth-child(even)::before,
section.contact.section:nth-child(even)::before {
  background-image: none;
  background: rgba(10, 10, 10, 0.7);
  opacity: 1;
}

/* Ambient blue gradient that drifts */
.section::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: ambientDrift 20s ease-in-out infinite alternate;
}

.about::after {
  top: -200px;
  right: -200px;
}

.services::after {
  bottom: -200px;
  left: -200px;
  animation-delay: -5s;
}

.projects::after {
  top: -100px;
  right: -300px;
  animation-delay: -10s;
}

.clients::after {
  bottom: -300px;
  left: -100px;
  animation-delay: -15s;
}

.contact::after {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -8s;
}

@keyframes ambientDrift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(30px, -10px) scale(1.05); }
}

/* Edge vignette on sections for depth */
.about,
.services,
.projects,
.clients,
.contact {
  box-shadow: inset 0 40px 60px -30px rgba(0, 0, 0, 0.4),
              inset 0 -40px 60px -30px rgba(0, 0, 0, 0.4);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 20px;
  color: var(--gray-300);
  max-width: 640px;
  margin: 16px auto 0;
}

.accent-line {
  width: 60px;
  height: 3px;
  background: var(--blue);
  margin: 0 auto;
  box-shadow: var(--glow-sm);
  position: relative;
}

.accent-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: var(--glow-md);
  animation: accentPulse 2s ease-in-out infinite;
}

@keyframes accentPulse {
  0%, 100% { box-shadow: var(--glow-sm); transform: translate(-50%, -50%) scale(1); }
  50% { box-shadow: var(--glow-lg); transform: translate(-50%, -50%) scale(1.3); }
}

/* ===================================
   About
   =================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--blue-light);
  margin-bottom: 16px;
  text-shadow: var(--glow-sm);
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.about-accent {
  margin: 0 0 28px;
}

.about-text .lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text p {
  color: var(--gray-300);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.about-highlights li:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.highlight-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--blue);
  filter: drop-shadow(0 0 4px rgba(0, 119, 255, 0.3));
  margin-top: 2px;
}

.highlight-icon svg {
  width: 100%;
  height: 100%;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.highlight-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}

.highlight-text span {
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.6;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
}

/* Decorative border frame offset behind the image */
.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--glow-sm);
  z-index: -1;
  transition: all 0.5s ease;
}

.about-image:hover::before {
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  box-shadow: var(--glow-md);
}

/* ===================================
   Services
   =================================== */

.services {
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card .service-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card .service-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.95) 100%);
}

.service-card:hover .service-bg {
  opacity: 1;
}

.service-icon,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--blue);
  transition: filter var(--transition);
}

.service-card:hover .service-icon {
  filter: drop-shadow(var(--glow-sm));
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ===================================
   Projects
   =================================== */

.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 24px;
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--glow-sm);
}

.filter-btn.active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--glow-sm);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-md);
}

.project-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
}

.project-overlay p {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-light);
  text-shadow: var(--glow-sm);
}

/* ===================================
   Clients
   =================================== */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.client-logo:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-sm);
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-sm);
}

.stars {
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 16px;
  text-shadow: var(--glow-sm);
}

.testimonial-card blockquote {
  font-size: 16px;
  color: var(--gray-300);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-card cite {
  font-size: 14px;
  color: var(--gray-500);
  font-style: normal;
}

/* ===================================
   Contact
   =================================== */

.contact {
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-info .accent-line {
  margin: 0 0 24px;
}

.contact-info p {
  color: var(--gray-300);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-300);
}

.contact-item a,
.contact-item span {
  font-size: 20px;
  color: var(--white);
}

.contact-item a:hover {
  color: var(--blue-light);
  text-shadow: var(--glow-sm);
}

/* Form */
.contact-form-wrap {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-300);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--glow-sm);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23707070' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
  background: url('../assets/images/banner-diamond.jpg') center / cover no-repeat;
  position: relative;
  border-top: 1px solid var(--dark-border);
  padding-top: 60px;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  pointer-events: none;
  z-index: 0;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--gray-300);
  font-size: 16px;
  line-height: 1.7;
  max-width: 300px;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer ul a {
  font-size: 16px;
  color: var(--gray-300);
  transition: color var(--transition), text-shadow var(--transition), padding-left var(--transition);
}

.site-footer ul a:hover {
  color: var(--blue-light);
  text-shadow: var(--glow-sm);
  padding-left: 4px;
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--gray-300);
  font-size: 17px;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 15px;
  color: var(--gray-300);
}

.footer-legal {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
}

.footer-legal a {
  color: var(--gray-500);
}

.footer-legal a:hover {
  color: var(--blue-light);
}

.footer-legal span {
  color: var(--dark-border);
}

/* ===================================
   Placeholders (remove when real images added)
   =================================== */

.image-placeholder {
  background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-border) 100%);
  border: 1px dashed var(--dark-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.image-placeholder span {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 2px;
}

.image-placeholder.small {
  min-height: 80px;
}

.image-placeholder.small span {
  font-size: 12px;
}

/* ===================================
   Animations — Scroll Reveals
   =================================== */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }
.fade-in:nth-child(7) { transition-delay: 0.6s; }
.fade-in:nth-child(8) { transition-delay: 0.7s; }
.fade-in:nth-child(9) { transition-delay: 0.8s; }

/* Slide from left */
.fade-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Section background textures — alternating: odd plain, even has image */
.about {
  background: var(--black);
}

.services {
  background-color: var(--dark);
  background-image: url('../assets/images/banner-panels.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.projects {
  background: var(--black);
}

.contact {
  background: url('../assets/images/banner-welding.jpg') center / cover no-repeat;
}

/* Dark overlay so text stays readable */
.services > .container,
.contact > .container {
  position: relative;
  z-index: 1;
}

/* About image tilt on hover */
.about-image {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover {
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg) scale(1.02);
}

.about-image img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 119, 255, 0.08);
}

/* ===================================
   Responsive
   =================================== */

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

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark-surface);
    padding: 80px 32px 32px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    font-size: 24px;
    border-bottom: 1px solid var(--dark-border);
  }

  .main-nav a.nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  .mobile-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .about-image::before {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 80px 16px 48px;
  }

  .btn {
    font-size: 20px;
    padding: 16px 32px;
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .filter-btn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .contact-info h2 {
    font-size: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .project-overlay {
    opacity: 1;
  }

  /* Cookie banner — stack on mobile */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 16px 20px;
  }

  .cookie-banner p {
    font-size: 14px;
  }

  .cookie-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }
}

/* Reduced motion — system preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  #sparksCanvas {
    display: none !important;
  }

  .hero-bg-video {
    display: none;
  }

  .hero-video-wrap {
    background: var(--dark);
  }

  .fade-in, .fade-in-left, .fade-in-right, .fade-in-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-tagline {
    animation: none !important;
    background-image: none !important;
    -webkit-text-fill-color: var(--gray-300) !important;
  }
}

/* Extra small phones */
@media (max-width: 400px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }
}

/* Sticky mobile CTA */
@media (max-width: 768px) {
  .mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--dark-border);
  }

  .mobile-cta .btn {
    margin: 0;
  }

  /* ADA tab — mobile-friendly tap target */
  .ada-widget-btn {
    width: 32px !important;
    height: 56px !important;
    top: 40% !important;
  }

  .ada-widget-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .ada-panel {
    width: min(280px, calc(100vw - 24px)) !important;
    padding: 20px !important;
    top: 50% !important;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  /* Add padding to footer so sticky CTA doesn't cover it */
  .site-footer {
    padding-bottom: 80px;
  }
}

/* Focus states for ADA */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  z-index: 10000;
  border-radius: 4px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 15px;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0;
}

.cookie-banner a {
  color: var(--blue-light);
  text-decoration: underline;
}

.cookie-btn {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-btn-accept {
  background: var(--blue);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--blue-light);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid var(--dark-border);
}

.cookie-btn-decline:hover {
  border-color: var(--gray-500);
  color: var(--white);
}

/* ADA Accessibility Widget */
/* ADA — small edge tab */
.ada-widget-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9997;
  width: 28px;
  height: 64px;
  border-radius: 8px 0 0 8px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-right: none;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

.ada-widget-btn:hover {
  width: 34px;
  color: var(--blue-light);
  background: var(--dark-card);
  border-color: var(--blue);
  box-shadow: -2px 0 12px rgba(0, 119, 255, 0.2);
}

.ada-widget-btn svg {
  width: 16px;
  height: 16px;
}

.ada-panel {
  position: fixed;
  right: -320px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9997;
  width: 280px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px 0 0 12px;
  padding: 24px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.6);
  transition: right 0.3s ease;
}

.ada-panel.open {
  right: 0;
}

.ada-panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.ada-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-border);
}

.ada-option:last-child {
  border-bottom: none;
}

.ada-option span {
  font-size: 16px;
  color: var(--gray-300);
}

.ada-toggle {
  width: 48px;
  height: 26px;
  background: var(--dark-border);
  border: none;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.ada-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--transition);
}

.ada-toggle.active {
  background: var(--blue);
}

.ada-toggle.active::after {
  transform: translateX(22px);
}
