/* CSS Variables */
:root {
  --primary-color: #003366;
  /* Deep Industrial Blue */
  --secondary-color: #c90000;
  /* Accent Red */
  --text-color: #333333;
  --light-bg: #f4f6f9;
  --white: #ffffff;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
}

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

ul {
  list-style: none;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
}

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

.btn.primary:hover {
  background: #a10000;
}

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

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

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

.btn-sm {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.9rem;
  border-radius: 4px;
}

.btn-sm:hover {
  background: #002244;
}

/* Top Bar */
.top-bar {
  background: #1a1a1a;
  color: #ccc;
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info span {
  margin-right: 20px;
}

.top-info i {
  color: var(--secondary-color);
  margin-right: 5px;
}

.top-social a {
  color: #ccc;
  margin-left: 15px;
}

.top-social a:hover {
  color: var(--white);
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--primary-color);
}

.logo-icon {
  font-size: 2.5rem;
  margin-right: 10px;
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary-color);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
}

.btn-quote {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 4px;
}

.btn-quote:hover {
  background: var(--secondary-color);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 600px;
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.7)), url('https://placehold.co/1920x800/111/333?text=Industrial+Machine+Background');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.highlight {
  color: #ffcc00;
}

/* Sections */
.section {
  padding: 60px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.line {
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  margin: 0 auto;
}

/* Features */
.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: -50px;
  /* Overlap hero */
  position: relative;
  z-index: 10;
}

.feature-box {
  background: var(--white);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 4px;
  border-bottom: 3px solid var(--secondary-color);
}

.feature-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-box h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.product-card {
  background: var(--white);
  border: 1px solid #eee;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-img {
  height: 220px;
  overflow: hidden;
  background: #ddd;
}

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

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.product-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.mt-2 {
  margin-top: 2rem;
}

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

/* CTA */
.cta {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Page Header (About, Products, Contact) */
.page-header {
  background: #333;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 10px;
}

/* About Page */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text,
.about-image {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.check-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.check-list i {
  color: var(--secondary-color);
  margin-right: 10px;
}

/* Contact Page */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-details {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  flex: 1.5;
  min-width: 300px;
  background: var(--light-bg);
  padding: 40px;
  border-radius: 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 20px;
  margin-top: 5px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

/* Category Title */
.category-title {
  font-family: var(--font-heading);
  color: var(--primary-color);
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
  margin: 40px 0 20px;
}

/* Footer */
footer {
  background: #111;
  color: #aaa;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-list i {
  margin-right: 10px;
  margin-top: 5px;
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    display: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 10px 0;
    width: 100%;
  }
  
  .btn-quote {
    display: inline-block;
  }
  
  .top-bar {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}