/* 
* PowerStroke Drive - Main Stylesheet
* Theme: Red & Black Professional
* Author: GitHub Copilot
* Date: August 2025
*/

/* ---------- GLOBAL STYLES ---------- */
:root {
  --primary-color: #e60000;  /* Brand Red */
  --secondary-color: #1a1a1a; /* Brand Black */
  --accent-color: #f8f8f8;   /* Light Gray/White */
  --text-color: #333333;
  --light-text: #ffffff;
  --border-radius: 4px;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f5f5;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.btn:hover {
  background-color: #cc0000;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

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

.btn-secondary:hover {
  background-color: #333;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  color: var(--secondary-color);
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #666;
}

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

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

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

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

/* ---------- HEADER & NAVIGATION ---------- */
.header {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  margin-left: 10px;
  color: var(--light-text);
}

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

.nav-menu {
  display: flex;
}

.nav-item {
  margin-left: 1.5rem;
  position: relative;
}

.nav-link {
  color: var(--light-text);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.active-link::after {
  width: 100%;
}

.active-link {
  color: var(--primary-color);
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.phone-header {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
}

.phone-header i {
  margin-right: 6px;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  height: 600px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  display: flex;
  align-items: center;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-form {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: var(--border-radius);
  max-width: 500px;
}

.hero-form-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light-text);
}

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

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ---------- FEATURES SECTION ---------- */
.features {
  padding: 80px 0;
  background-color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-item {
  padding: 30px;
  background-color: #fff;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease;
}

.feature-item:hover {
  transform: translateY(-10px);
}

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

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-text {
  color: #666;
}

/* ---------- ENGINES/TRANSMISSIONS SECTIONS ---------- */
.parts-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.filter-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.part-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease;
}

.part-card:hover {
  transform: translateY(-5px);
}

.part-img {
  height: 200px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.part-info {
  padding: 20px;
}

.part-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.part-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.part-meta span {
  margin-right: 15px;
}

.part-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.part-actions {
  display: flex;
  justify-content: space-between;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.testimonials .section-title {
  color: var(--light-text);
  text-align: center;
}

.testimonials .section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--border-radius);
  position: relative;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  overflow: hidden;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-location {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---------- ABOUT US SECTION ---------- */
.about {
  padding: 80px 0;
  background-color: #fff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text {
  max-width: 600px;
}

.about-image {
  position: relative;
  height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.about-features {
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.about-feature i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* ---------- CALL TO ACTION SECTION ---------- */
.cta {
  padding: 80px 0;
  background-image: linear-gradient(rgba(230, 0, 0, 0.9), rgba(230, 0, 0, 0.9)), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ---------- CONTACT FORM SECTION ---------- */
.contact {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  padding-right: 30px;
}

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

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  min-width: 30px;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p {
  color: #666;
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form-title {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

/* ---------- BLOG SECTION ---------- */
.blog {
  padding: 80px 0;
  background-color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-img {
  height: 200px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.blog-content {
  padding: 20px;
}

.blog-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-excerpt {
  color: #666;
  margin-bottom: 15px;
}

.blog-link {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-block;
}

.blog-link:hover {
  text-decoration: underline;
}

/* ---------- FOOTER ---------- */
.footer {
  background-color: var(--secondary-color);
  color: #bbb;
  padding: 60px 0 30px;
}

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

.footer-col h4 {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-links a {
  color: #bbb;
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text);
  transition: all var(--transition-speed) ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- CALL POPUP ---------- */
.call-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: white;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.call-popup.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.call-popup-content {
  padding: 20px;
}

.call-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.call-popup-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.call-popup-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #777;
  padding: 0 5px;
  transition: all 0.2s ease;
}

.call-popup-close:hover {
  color: var(--primary-color);
}

.call-popup-body {
  text-align: center;
}

.call-popup-body p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
}

.call-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
}

.call-btn i {
  margin-right: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ---------- FLOATING CALL BUTTON ---------- */
.floating-call {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--light-text);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 99;
  transition: all var(--transition-speed) ease;
}

.floating-call:hover {
  background-color: #cc0000;
  transform: scale(1.1);
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 1024px) {
  .hero {
    height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 80px 0;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-form {
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-item {
    margin: 10px 0;
    margin-left: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .floating-call {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    bottom: 20px;
    right: 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-item,
  .testimonial-item {
    padding: 20px;
  }
}
