/* ============================================
   ABC METALS - PREMIUM DESIGN SYSTEM
   ============================================ */

/* Google Fonts now loaded in HTML <head> for better performance */

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
  /* Colors - Metallic Palette inspired by ABC Metals Logo */
  --color-primary: #0a0a0a;
  --color-secondary: #1a1a1a;
  --color-accent: #c0c0c0;
  --color-accent-light: #e5e5e5;
  --color-accent-dark: #8a8a8a;

  /* Gradient Metallics */
  --gradient-silver: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
  --gradient-metal: linear-gradient(145deg, #e6e9f0 0%, #eef1f5 100%);
  --gradient-dark: linear-gradient(135deg, #0f0f0f 0%, #2a2a2a 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(42, 42, 42, 0.85) 100%);

  /* Text Colors */
  --color-text-primary: #0a0a0a;
  --color-text-secondary: #4a4a4a;
  --color-text-light: #ffffff;
  --color-text-muted: #6a6a6a;

  /* Background Colors */
  --color-bg-light: #ffffff;
  --color-bg-subtle: #f8f9fa;
  --color-bg-dark: #1a1a1a;
  --color-bg-darker: #0a0a0a;

  /* UI Colors */
  --color-border: #e0e0e0;
  --color-border-dark: #2a2a2a;
  --color-success: #28a745;
  --color-error: #dc3545;
  --color-warning: #ffc107;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Roboto', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 110px;
  --nav-height: 60px;

  /* Effects */
  --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 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-light);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.text-large {
  font-size: var(--text-lg);
}

.text-small {
  font-size: var(--text-sm);
}

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

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

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-light {
  background: var(--color-bg-light);
}

.section-subtle {
  background: var(--color-bg-subtle);
}

.section-dark {
  background: var(--gradient-dark);
  color: var(--color-text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-text-light);
}

.section-dark p {
  color: var(--color-accent-light);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

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

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-xl);
  padding: var(--space-sm) 0;
}

.logo-container {
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 100px;
  width: auto;
  max-width: 250px;
  transition: var(--transition-base);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.company-name {
  flex-shrink: 0;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  margin: 0 var(--space-md);
}

.tagline {
  flex: 1;
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.cta-button-header {
  flex-shrink: 0;
}

.btn-quote-header {
  padding: var(--space-sm) var(--space-xl);
  background: var(--gradient-dark);
  color: var(--color-text-light);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-quote-header:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Main Navigation */
.main-nav {
  position: sticky;
  top: var(--header-height);
  background: var(--gradient-metal);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--nav-height);
  position: relative;
  flex-wrap: wrap;
}

.nav-menu {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  transition: var(--transition-base);
  border-radius: var(--radius-md);
}

.nav-link:hover {
  color: var(--color-accent-dark);
  background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.08);
}

.dropdown-arrow {
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--space-md);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.dropdown-link:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  transform: translateX(4px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: var(--space-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-menu.active {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-link {
    padding: var(--space-md) 0;
    width: 100%;
    justify-content: space-between;
  }

  /* Mobile dropdown styling with solid background */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .nav-item.active .dropdown-menu {
    max-height: 500px;
    padding: var(--space-sm);
    margin-top: var(--space-sm);
  }

  .dropdown-link {
    background: white;
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-sm);
  }

  .dropdown-link:last-child {
    margin-bottom: 0;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 600px;
  margin-top: calc(var(--header-height) + var(--nav-height));
  overflow: hidden;
  background: var(--color-bg-darker);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
  font-size: var(--text-6xl);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-text p {
  font-size: var(--text-xl);
  color: var(--color-accent-light);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-dark);
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.btn-secondary:hover {
  background: var(--color-text-light);
  color: var(--color-text-primary);
}

.btn-light {
  background: white;
  color: #0a0a0a !important;
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: #0a0a0a !important;
}

.btn-large {
  padding: var(--space-lg) var(--space-3xl);
  font-size: var(--text-lg);
}

/* ============================================
   CARDS & GRID
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-2xl);
}

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

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

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

.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--color-bg-subtle);
}

.card-content {
  padding: var(--space-xl);
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.card-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.card-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* Product Cards */
.product-card {
  cursor: pointer;
}

.product-card .card-image {
  height: 300px;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-dark);
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   FEATURES & BENEFITS
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.feature-item {
  text-align: center;
  padding: var(--space-2xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.feature-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  color: var(--color-accent-dark);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.feature-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.process-step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  color: white;
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: var(--radius-full);
}

.step-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.step-content p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

/* ============================================
   PRODUCT PAGE SPECIFIC
   ============================================ */
.product-detail-hero {
  background: var(--gradient-metal);
  padding: var(--space-4xl) 0;
  margin-top: calc(var(--header-height) + var(--nav-height));
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + var(--space-xl));
}

.product-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-lg);
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-md);
}

.product-thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition-base);
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--color-accent-dark);
  transform: scale(1.05);
}

.product-info h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}

.product-specs {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.spec-row {
  display: flex;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  flex: 0 0 200px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.spec-value {
  flex: 1;
  color: var(--color-text-secondary);
}

.product-section {
  margin-bottom: var(--space-2xl);
}

.product-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.product-section ul {
  list-style: disc;
  margin-left: var(--space-xl);
}

.product-section li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-container {
  margin-top: calc(var(--header-height) + var(--nav-height));
  padding: var(--space-4xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  background: var(--gradient-dark);
  color: white;
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
}

.contact-info h2 {
  color: white;
  margin-bottom: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: flex-start;
}

.contact-icon {
  font-size: var(--text-2xl);
  color: var(--color-accent-light);
}

.contact-details h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  color: var(--color-accent-light);
}

.contact-details p {
  color: white;
  margin: 0;
}

.contact-form-container {
  background: white;
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: var(--transition-base);
  background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 3px rgba(138, 138, 138, 0.1);
}

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

.form-error {
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select {
  border-color: var(--color-error);
}

.form-success {
  background: var(--color-success);
  color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--space-xl);
  display: none;
}

.form-success.visible {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gradient-dark);
  color: var(--color-accent-light);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-lg);
  font-size: var(--text-xl);
}

.footer-section p,
.footer-section a {
  color: var(--color-accent-light);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.footer-section a:hover {
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--color-accent-light);
  font-size: var(--text-sm);
}

/* Fix footer button text color */
.footer .btn-light {
  color: #0a0a0a !important;
}

/* ============================================
   RESPONSIVE DESIGN - COMPREHENSIVE
   ============================================ */

/* ===== Large Desktop Screens (1441px+) ===== */
@media (min-width: 1441px) {
  :root {
    --container-max: 1400px;
    --container-wide: 1600px;
    --space-4xl: 8rem;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .hero {
    height: 700px;
  }

  .hero-text h1 {
    font-size: var(--text-6xl);
  }

  .section-title {
    font-size: 3rem;
  }
}

/* ===== Desktop to Large Tablet (1025px - 1440px) ===== */
@media (min-width: 1025px) and (max-width: 1440px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .hero {
    height: 600px;
  }
}

/* ===== Tablet Landscape to Small Desktop (769px - 1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --space-4xl: 5rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Header adjustments */
  .logo {
    height: 60px;
  }

  .tagline {
    font-size: var(--text-lg);
  }

  /* Grid layouts */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Feature grid stays at 3 columns for tablets */
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .product-detail-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .product-gallery {
    position: static;
  }

  .product-main-image {
    height: 400px;
  }

  .hero {
    height: 500px;
  }

  .contact-grid {
    gap: var(--space-2xl);
  }
}

/* ===== Tablet Portrait (768px - 1024px specific) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-menu {
    gap: var(--space-lg);
  }

  .btn-large {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-base);
  }

  .card-image {
    height: 220px;
  }

  .product-card .card-image {
    height: 250px;
  }
}

/* ===== Mobile Landscape to Tablet (481px - 768px) ===== */
@media (max-width: 768px) {
  :root {
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
    --text-2xl: 1.125rem;
    --text-xl: 1rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }

  .container,
  .container-wide {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  /* Header - Mobile optimization */
  .header-content {
    height: auto;
    padding: var(--space-md) 0;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .logo {
    height: 50px;
  }

  .tagline {
    order: 3;
    width: 100%;
    text-align: center;
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
  }

  .btn-quote-header {
    padding: var(--space-xs) var(--space-lg);
    font-size: var(--text-sm);
  }

  /* Mobile Navigation */
  .main-nav {
    position: sticky;
    top: var(--header-height);
  }

  .nav-container {
    justify-content: space-between;
    padding: 0 var(--space-md);
  }

  .mobile-menu-toggle {
    display: flex;
    padding: var(--space-md);
    order: -1;
    z-index: 1000;
  }

  .mobile-menu-toggle span {
    width: 28px;
    height: 3px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: var(--space-lg) var(--space-md);
    gap: 0;
    order: 2;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-md);
    font-size: var(--text-base);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.02);
    margin-top: 0;
    display: none;
    border-radius: 0;
  }

  .nav-item.active .dropdown-menu {
    display: block;
  }

  .dropdown-link {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }

  /* Hero Section */
  .hero {
    height: 400px;
    margin-top: calc(var(--header-height) + 20px);
  }

  .hero-text h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
  }

  .hero-text p {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
  }

  /* Buttons */
  .btn {
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-sm);
  }

  .btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
  }

  /* Grid layouts - all single column */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-item {
    padding: var(--space-lg);
  }

  /* Cards */
  .card {
    margin-bottom: var(--space-md);
  }

  .card-image {
    height: 200px;
  }

  .product-card .card-image {
    height: 220px;
  }

  .card-content {
    padding: var(--space-lg);
  }

  /* Section Headers */
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }

  /* Process Steps */
  .process-step {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .step-number {
    margin: 0 auto;
  }

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-info,
  .contact-form-container {
    padding: var(--space-xl);
  }

  .contact-item {
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  /* Product Detail Pages */
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .product-main-image {
    height: 300px;
  }

  .product-thumbnail {
    height: 80px;
  }

  .spec-label {
    flex: 0 0 120px;
    font-size: var(--text-sm);
  }

  .spec-value {
    font-size: var(--text-sm);
  }

  /* Footer */
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .footer-links {
    align-items: center;
  }

  /* Forms */
  .form-group {
    margin-bottom: var(--space-lg);
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: var(--space-sm);
    font-size: var(--text-base);
  }
}

/* ===== Mobile Portrait (481px - 767px specific) ===== */
@media (min-width: 481px) and (max-width: 767px) {
  .hero {
    height: 450px;
  }

  .hero-text h1 {
    font-size: var(--text-4xl);
  }

  /* Allow 2-column layout for feature items on landscape mobile */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ===== Small Mobile Devices (320px - 480px) ===== */
@media (max-width: 480px) {
  :root {
    --text-6xl: 1.75rem;
    --text-5xl: 1.5rem;
    --text-4xl: 1.375rem;
    --text-3xl: 1.125rem;
    --text-2xl: 1rem;
    --text-xl: 0.9375rem;
    --text-base: 0.875rem;
    --text-sm: 0.8125rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  .container,
  .container-wide {
    padding: 0 var(--space-sm);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  /* Header */
  .header-content {
    padding: var(--space-sm) 0;
  }

  .logo {
    height: 45px;
    max-width: 150px;
  }

  .tagline {
    font-size: 0.75rem;
  }

  .btn-quote-header {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
  }

  /* Navigation */
  .nav-menu {
    padding: var(--space-md) var(--space-sm);
  }

  .nav-link {
    padding: var(--space-sm);
    font-size: var(--text-sm);
  }

  /* Hero */
  .hero {
    height: 350px;
  }

  .hero-text {
    padding: 0 var(--space-sm);
  }

  .hero-text h1 {
    font-size: var(--text-3xl);
    line-height: 1.3;
    margin-bottom: var(--space-sm);
  }

  .hero-text p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
  }

  /* Buttons - Larger touch targets */
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-large {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
  }

  /* Typography */
  h1 {
    font-size: var(--text-4xl);
    line-height: 1.3;
  }

  h2 {
    font-size: var(--text-3xl);
    line-height: 1.3;
  }

  h3 {
    font-size: var(--text-2xl);
  }

  p {
    font-size: var(--text-sm);
    line-height: 1.6;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
  }

  .section-title::after {
    width: 40px;
    height: 3px;
  }

  .section-subtitle {
    font-size: var(--text-sm);
  }

  /* Grids */
  .grid {
    gap: var(--space-md);
  }

  .feature-grid {
    gap: var(--space-md);
  }

  .feature-item {
    padding: var(--space-md);
  }

  .feature-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
  }

  .feature-title {
    font-size: var(--text-lg);
  }

  .feature-description {
    font-size: var(--text-sm);
  }

  /* Cards */
  .card-image {
    height: 180px;
  }

  .product-card .card-image {
    height: 200px;
  }

  .card-content {
    padding: var(--space-md);
  }

  .card-title {
    font-size: var(--text-xl);
  }

  .card-description {
    font-size: var(--text-sm);
  }

  /* Process Steps */
  .process-steps {
    gap: var(--space-lg);
  }

  .process-step {
    padding: var(--space-md);
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }

  .step-content h3 {
    font-size: var(--text-lg);
  }

  .step-content p {
    font-size: var(--text-sm);
  }

  /* Contact */
  .contact-container {
    padding: var(--space-2xl) 0;
  }

  .contact-grid {
    gap: var(--space-lg);
  }

  .contact-info,
  .contact-form-container {
    padding: var(--space-lg);
  }

  .contact-item {
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-icon {
    font-size: var(--text-xl);
  }

  /* Form inputs - better touch targets */
  .form-input,
  .form-textarea,
  .form-select {
    padding: var(--space-md);
    font-size: var(--text-base);
    min-height: 44px;
  }

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

  .form-label {
    font-size: var(--text-sm);
  }

  /* Product Pages */
  .product-detail-hero {
    padding: var(--space-2xl) 0;
  }

  .product-main-image {
    height: 250px;
  }

  .product-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
  }

  .product-thumbnail {
    height: 70px;
  }

  .product-info h1 {
    font-size: var(--text-2xl);
  }

  .product-specs {
    padding: var(--space-md);
  }

  .spec-row {
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
  }

  .spec-label {
    flex: 1;
    font-size: var(--text-sm);
  }

  .spec-value {
    font-size: var(--text-sm);
  }

  /* Footer */
  .footer {
    padding: var(--space-xl) 0 var(--space-md);
  }

  .footer-content {
    gap: var(--space-lg);
  }

  .footer-section h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
  }

  .footer-section p,
  .footer-section a {
    font-size: var(--text-sm);
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding-top: var(--space-md);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .gallery-tabs {
    gap: var(--space-xs);
  }

  .gallery-tab {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
  }

  .gallery-overlay {
    padding: var(--space-md);
  }

  .gallery-info h3 {
    font-size: var(--text-lg);
  }

  .gallery-info p {
    font-size: 0.75rem;
  }
}

/* ===== Extra Small Mobile (320px - 374px) ===== */
@media (max-width: 374px) {
  :root {
    --text-6xl: 1.5rem;
    --text-5xl: 1.375rem;
    --text-4xl: 1.25rem;
    --text-3xl: 1.0625rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .logo {
    height: 40px;
    max-width: 130px;
  }

  .hero {
    height: 300px;
  }

  .hero-text h1 {
    font-size: var(--text-2xl);
  }

  .btn-quote-header {
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
  }

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

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--space-sm);
}

.mt-2 {
  margin-top: var(--space-md);
}

.mt-3 {
  margin-top: var(--space-lg);
}

.mt-4 {
  margin-top: var(--space-xl);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--space-sm);
}

.mb-2 {
  margin-bottom: var(--space-md);
}

.mb-3 {
  margin-bottom: var(--space-lg);
}

.mb-4 {
  margin-bottom: var(--space-xl);
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* ============================================
   GALLERY STYLES
   ============================================ */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.gallery-tab {
  padding: var(--space-md) var(--space-2xl);
  background: white;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-tab:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-accent-dark);
}

.gallery-tab.active {
  background: var(--gradient-dark);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info h3 {
  color: white;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.gallery-info p {
  color: var(--color-accent-light);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* Hide gallery items by default when filtering */
.gallery-item.hidden {
  display: none;
}

/* ============================================
   RESPONSIVE - GALLERY
   ============================================ */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
  }

  .gallery-tabs {
    gap: var(--space-sm);
  }

  .gallery-tab {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}