/* Heavy Diesel Parts S.A. - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary-color: #005B97;
  --primary-dark: #003F6A;
  --secondary-color: #898989;
  --background-light: #F4F7F6;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Mulish', sans-serif;
}

body {
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--text-light);
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}
.logo .heavy { color: var(--secondary-color); }
.logo .diesel { color: var(--primary-color); }

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

/* Hero Section */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 600px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #DDD;
}

/* Section Shared */
.section {
  padding: 80px 10%;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.product-card {
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 20px;
  background: #FFF;
}

.product-info {
  padding: 25px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: auto;
}

.product-card .btn {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* Shop Layout */
.shop-container {
  display: flex;
  gap: 40px;
  padding: 40px 10%;
}

.shop-sidebar {
  width: 25%;
  min-width: 250px;
}

.shop-main {
  width: 75%;
}

.shop-banner {
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 40px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px;
}

.shop-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 91, 151, 0.8); /* Primary color overlay */
  border-radius: 12px;
  z-index: 1;
}

.shop-banner-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.brand-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.brand-btn {
  padding: 10px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.brand-btn.active, .brand-btn:hover {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

/* Services */
.services {
  background: var(--text-light);
}

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

.service-card {
  text-align: center;
  padding: 40px;
  background: var(--background-light);
  border-radius: 8px;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.service-card:hover h3, .service-card:hover p {
  color: var(--text-light);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card:hover .service-icon {
  color: var(--text-light);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--secondary-color);
}

/* Footer */
footer {
  background: #111;
  color: #FFF;
  padding: 60px 10% 20px;
  text-align: center;
}
