/* ============================================
   KC METAL COMPOSITION - PROFESSIONAL STYLESHEET
   ============================================ */

/* Root Variables */
:root {
  --primary: #D40000;
  --primary-dark: #A00000;
  --primary-light: rgba(212, 0, 0, 0.1);
  --accent: #E63333;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --white: #ffffff;
  --dark: #1a1a2e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Section Label */
.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-arrow svg {
  transition: transform 0.3s ease;
}

.btn-arrow:hover svg {
  transform: translateX(4px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  flex-shrink: 0;
  width: auto;
  height: 50px;
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-logo svg {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 2rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px; /* JS overrides this dynamically */
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  flex-direction: column;
  gap: 0;
  padding: 1rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-nav.active {
  display: flex !important;
}

.mobile-nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a:active {
  background-color: var(--gray-100);
}

.mobile-nav .btn {
  margin: 0.75rem 1.5rem;
  text-align: center;
  justify-content: center;
}

.mobile-nav .btn-primary {
  color: #ffffff !important;
  background-color: var(--primary);
  border-bottom: none;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero .btn {
  animation: fadeInUp 0.8s ease 0.5s both;
}

.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-top: 70px;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.page-hero-content h1 {
  color: var(--white);
  font-size: 2.75rem;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

.stats-bar {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 2rem;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.nexteel-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.nexteel-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.nexteel-banner p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.dealer-section {
  padding: 4rem 2rem;
  background-color: var(--gray-100);
}

.dealer-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.dealer-content h2 {
  margin-bottom: 1.5rem;
}

.dealer-content p {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.dealer-list {
  list-style: none;
  margin: 2rem 0;
}

.dealer-list li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dealer-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
}

.features-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.feature-card h4 {
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* Products Preview */
.products-preview {
  padding: 4rem 2rem;
  background-color: var(--gray-100);
}

.products-preview h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 1;
  background-color: var(--gray-300);
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
}

.product-card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: var(--white);
  z-index: 3;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-text {
  transform: translateY(0);
}

.product-card-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

/* Industry Grid Section */
.industry-grid-section {
  padding: 4rem 2rem;
}

.industry-grid-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.industry-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 1;
  background-color: var(--gray-300);
  cursor: pointer;
}

.industry-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.industry-mini-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
}

.industry-mini-card:hover img {
  transform: scale(1.05);
}

.industry-mini-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: var(--white);
  z-index: 3;
}

.industry-mini-text h4 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */

.product-section {
  padding: 3rem 2rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.product-detail-grid.reverse {
  grid-template-columns: 1fr 1fr;
}

.product-detail-grid.reverse .product-image {
  order: 2;
}

.product-detail-grid.reverse .product-content {
  order: 1;
}

.product-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

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

.product-content h2 {
  margin-bottom: 1rem;
}

.product-content p {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.spec-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================
   INDUSTRIES PAGE
   ============================================ */

.industry-detail {
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.industry-detail:last-child {
  border-bottom: none;
}

.industry-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.industry-detail-grid.reverse {
  grid-template-columns: 1fr 1fr;
}

.industry-detail-grid.reverse .industry-visual {
  order: 2;
}

.industry-detail-grid.reverse .industry-content {
  order: 1;
}

.industry-visual {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.industry-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.industry-visual:hover img {
  transform: scale(1.05);
}

.industry-content h2 {
  margin-bottom: 1rem;
}

.industry-content p {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.industry-capabilities {
  margin: 2rem 0;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.capability-item::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: -0.125rem;
}

.capability-item span {
  flex: 1;
}

/* ============================================
   CONTACT & QUOTE PAGES
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  padding: 3rem 2rem;
}

.contact-info {
  background-color: var(--dark);
  color: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
  font-size: 1.5rem;
}

.contact-item-text {
  flex: 1;
}

.contact-item-text p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-info h3,
.contact-info h4,
.contact-item h4 {
  color: #ffffff !important;
  margin-bottom: 0.25rem;
}

.contact-info p,
.contact-item p {
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-info a,
.contact-item a,
.contact-item p a {
  color: #ffffff !important;
  text-decoration: none;
}

.contact-info a:hover,
.contact-item a:hover,
.contact-item p a:hover {
  text-decoration: underline;
}

.contact-item-icon svg {
  stroke: var(--accent);
}

.form-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-800);
}

.required {
  color: #dc3545;
  margin-left: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background-color: var(--gray-100);
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Quote Page */
.quote-form-section {
  padding: 3rem 2rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  margin-bottom: 3rem;
}

.quote-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote-benefit {
  background-color: var(--gray-100);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary);
}

.quote-benefit h4 {
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.quote-benefit p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.quote-benefit-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-inner p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
}

.footer .container {
  margin-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: #ffffff;
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: #ffffff;
  font-size: 0.9375rem;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-partners {
  display: flex;
  gap: 2rem;
}

.footer-partner-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-partner-link:hover {
  color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s ease forwards;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-links {
    gap: 2rem;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

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

  .product-detail-grid,
  .industry-detail-grid,
  .dealer-section .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-detail-grid.reverse .product-image,
  .product-detail-grid.reverse .product-content,
  .industry-detail-grid.reverse .industry-visual,
  .industry-detail-grid.reverse .industry-content {
    order: unset;
  }

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

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

  .contact-info {
    position: static;
  }

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    gap: 0;
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav {
    padding: 0.5rem 0;
  }

  .hero {
    margin-top: 60px;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .page-hero {
    min-height: 300px;
  }

  .page-hero-content h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
  }

  .stats-bar .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid,
  .products-grid,
  .industry-mini-grid {
    grid-template-columns: 1fr;
  }

  .dealer-section .container {
    grid-template-columns: 1fr;
  }

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

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

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  h4 {
    font-size: 1rem;
  }

  body {
    font-size: 15px;
  }

  .nav {
    padding: 1rem;
  }

  .nav-logo {
    height: 40px;
  }

  .hero {
    margin-top: 50px;
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .page-hero {
    min-height: 250px;
  }

  .page-hero-content h1 {
    font-size: 1.375rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
  }

  .stat-number {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

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

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .cta-section {
    padding: 2rem 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

/* ============================================
   PARTNERSHIP BANNER
   ============================================ */

.partnership-banner {
  padding: 4rem 2rem;
  background: var(--gray-100);
}

.partnership-inner {
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .partnership-banner {
    padding: 3rem 1.5rem;
  }
  .partnership-banner h2 {
    font-size: 1.4rem !important;
  }
  .partnership-banner p {
    font-size: 0.95rem !important;
  }
  .partnership-banner img {
    height: 80px !important;
  }
}

@media (max-width: 480px) {
  .partnership-banner {
    padding: 2.5rem 1rem;
  }
  .partnership-banner h2 {
    font-size: 1.2rem !important;
  }
  .partnership-banner img {
    height: 60px !important;
  }
}

/* ============================================
   FOOTER MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .footer-partners {
    flex-wrap: wrap;
  }
  .footer-partners img {
    height: 35px !important;
  }
  .footer-brand img {
    height: 35px !important;
  }
}

@media (max-width: 480px) {
  .footer-partners img {
    height: 30px !important;
  }
  .footer-brand img {
    height: 30px !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pt-4 { padding-top: 4rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }
.pb-4 { padding-bottom: 4rem; }

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.rounded {
  border-radius: 0.5rem;
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.bg-primary {
  background-color: var(--primary);
  color: var(--white);
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

.bg-gray-200 {
  background-color: var(--gray-200);
}

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

.text-gray-600 {
  color: var(--gray-600);
}

.text-white {
  color: var(--white);
}

/* ============================================
   FORM SUBMISSION STATES
   (Contact + Request a Quote)
   ============================================ */

.form-message {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  border: 1px solid transparent;
  animation: formMessageIn 0.25s ease;
}

@keyframes formMessageIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-message--success {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.form-message--error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.form-message--error a {
  color: #991b1b;
  text-decoration: underline;
  font-weight: 600;
}

.form-message--error a:hover {
  text-decoration: none;
}

.field-error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

button[type="submit"]:disabled:hover {
  transform: none;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */

.certifications-section {
  background-color: var(--dark);
  color: var(--white);
  padding: 5rem 2rem 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.certifications-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.certs-header {
  text-align: center;
  margin-bottom: 3.25rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.certs-header .section-label {
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: inline-block;
}

.certs-header h2 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  line-height: 1.15;
}

.certs-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.cert-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.85rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.cert-card:hover {
  border-color: rgba(212, 0, 0, 0.55);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

.cert-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 0, 0, 0.13);
  border: 1.5px solid rgba(212, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.cert-badge svg {
  width: 24px;
  height: 24px;
}

.cert-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cert-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.certs-footnote {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
  text-align: center;
}

.certs-footnote p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 920px;
  margin: 0 auto;
}

.certs-footnote strong {
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 768px) {
  .certifications-section {
    padding: 3.5rem 1.25rem 3rem;
  }
  .certs-header h2 {
    font-size: 1.85rem;
  }
  .certs-header {
    margin-bottom: 2.5rem;
  }
  .certs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .certifications-section {
    padding: 3rem 1rem 2.5rem;
  }
  .certs-header h2 {
    font-size: 1.6rem;
  }
}
