/* Modern Design System for Metallica Steel Industries */

:root {
  /* Updated color palette to match construction company design brief */
/* Updated color palette to match METALS construction company branding */

/* Primary Colors - Deep Navy for strength and trust */
--primary: #153080;         /* Navy */
--primary-dark: #0f235d;    /* Darker Navy */
--primary-light: #1f3f99;   /* Lighter Navy */
--primary-50: #f5f7fa;
--primary-100: #e4e9f2;
--primary-500: #153080;
--primary-600: #13275c;
--primary-700: #101f4a;
--primary-800: #0d183a;
--primary-900: #0a122c;

/* Accent Colors - Gold for progress and stability */
--accent: #ECBC00;          /* Strong Gold */
--accent-dark: #C9A100;     /* Darker Gold */
--accent-light: #FFD633;    /* Lighter Gold */

/* Neutral Colors - Clean and professional */
--white: #ffffff;
--gray-50: #f9fafb;
--gray-100: #f3f4f6;
--gray-200: #e5e7eb;
--gray-300: #d1d5db;
--gray-400: #9ca3af;
--gray-500: #6b7280;
--gray-600: #4b5563;
--gray-700: #374151;
--gray-800: #1f2937;
--gray-900: #111827;

/* Semantic Colors */
--background: #ffffff;
--foreground: #374151;
--card: #f9fafb;
--card-foreground: #374151;
--secondary: #f3f4f6;
--secondary-foreground: #374151;
--muted: #f9fafb;
--muted-foreground: #4b5563;
--border: #e5e7eb;
--input: #ffffff;
--ring: rgba(21, 48, 128, 0.5); /* Navy glow */

/* Text Colors */
--text-primary: #153080;     /* Navy */
--text-secondary: #ECBC00;   /* Gold */
--text-muted: #6b7280;
--text-light: #9ca3af;

/* Background Colors */
--bg-primary: #ffffff;
--bg-secondary: #f3f4f6;
--bg-tertiary: #f9fafb;

/* Border Colors */
--border-light: #e5e7eb;
--border-medium: #d1d5db;
--border-dark: #9ca3af;

/* Shadow System */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing System */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0rem;
  --radius-md: 0rem;
  --radius-lg: 0rem;
  --radius-xl: 0rem;

  /* Transitions */
  --transition: all 0.2s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

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

/* Navigation Styles */
.nav-link {
  @apply flex items-center px-4 py-2 text-sm font-medium text-neutral-700 hover:text-primary-700 hover:bg-primary-50 rounded-lg transition-all duration-200;
}

.nav-link.active {
  @apply text-primary-700 bg-primary-50 font-semibold;
}

.mobile-nav-link {
  @apply flex items-center w-full px-3 py-3 text-base font-medium text-neutral-700 hover:text-primary-700 hover:bg-primary-50 rounded-lg transition-all duration-200;
}

.mobile-nav-link.active {
  @apply text-primary-700 bg-primary-50 font-semibold;
}

/* Dropdown Navigation */
.group:hover .group-hover\\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\\:visible {
  visibility: visible;
}

.group:hover .group-hover\\:scale-100 {
  transform: scale(1);
}

.group:hover .group-hover\\:rotate-180 {
  transform: rotate(180deg);
}

/* Anchor Points */
.anchor-point {
  position: absolute;
  top: -80px;
  visibility: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  /* Updated font stack for better readability */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Typography System */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* Updated typography for construction company branding */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
}

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

h6 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modern Button System */
.btn {
  /* Enhanced button styles for modern construction company look */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

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

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

.btn-secondary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--bg-secondary);
  color: var(--primary);
}

/* Navigation Styles */
.nav-link {
  /* Modern navigation styling */
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--bg-secondary);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-50);
  font-weight: 600;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin: var(--space-1) 0;
}

.mobile-nav-link:hover {
  color: var(--primary);
  background-color: var(--bg-secondary);
}

.mobile-nav-link.active {
  color: var(--primary);
  background-color: var(--primary-50);
  font-weight: 600;
}

/* Social Links */
.social-link {
  /* Enhanced social media link styling */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--gray-700);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Footer Links */
.footer-link {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 400;
}

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

/* Card Components */
.card {
  /* Modern card design for construction company */
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary-200);
}

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-4) var(--space-6);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-light);
}

/* Form Elements */
.form-control {
  /* Enhanced form styling for better UX */
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

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

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

/* Hero Section Enhancements */
.hero-section {
  /* Modern hero section with construction industry styling */
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--white);
  font-weight: 800;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: var(--space-8);
  max-width: 600px;
}

/* Stats Section */
.stats-grid {
  /* Enhanced statistics display */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-2);
}

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

/* Product Grid */
.product-grid {
  /* Modern product showcase grid */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-content {
  padding: var(--space-6);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.product-category {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

/* Services Section */
.services-grid {
  /* Enhanced services showcase */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.service-card {
  background-color: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Blog/Insights Section */
.blog-grid {
  /* Modern blog post layout */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: var(--space-6);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.blog-category {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.blog-link:hover {
  color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
  /* Enhanced call-to-action styling */
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-800) 100%);
  color: var(--white);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  /* Enhanced mobile responsiveness */
  .hero-section {
    min-height: 80vh;
    padding: var(--space-8) 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .product-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

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

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

  .service-card,
  .product-content,
  .blog-content {
    padding: var(--space-4);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in.visible,
.slide-in.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-in.visible,
.zoom-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

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

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

.text-balance {
  text-wrap: balance;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-2 {
  margin-bottom: var(--space-2) !important;
}
.mb-4 {
  margin-bottom: var(--space-4) !important;
}
.mb-6 {
  margin-bottom: var(--space-6) !important;
}
.mb-8 {
  margin-bottom: var(--space-8) !important;
}
.mb-12 {
  margin-bottom: var(--space-12) !important;
}

.mt-0 {
  margin-top: 0 !important;
}
.mt-2 {
  margin-top: var(--space-2) !important;
}
.mt-4 {
  margin-top: var(--space-4) !important;
}
.mt-6 {
  margin-top: var(--space-6) !important;
}
.mt-8 {
  margin-top: var(--space-8) !important;
}
.mt-12 {
  margin-top: var(--space-12) !important;
}

.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.items-center {
  align-items: center !important;
}
.justify-center {
  justify-content: center !important;
}
.justify-between {
  justify-content: space-between !important;
}
.gap-4 {
  gap: var(--space-4) !important;
}
.gap-6 {
  gap: var(--space-6) !important;
}
.gap-8 {
  gap: var(--space-8) !important;
}

.rounded {
  border-radius: var(--radius-md) !important;
}
.rounded-lg {
  border-radius: var(--radius-lg) !important;
}
.shadow-md {
  box-shadow: var(--shadow-md) !important;
}
.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}
.bg-secondary {
  background-color: var(--bg-secondary) !important;
}
.bg-white {
  background-color: var(--white) !important;
}
.text-white {
  color: var(--white) !important;
}
.text-primary {
  color: var(--primary) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
