/* =========================================
   1. GOOGLE FONTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Roboto:wght@300;400;500&display=swap');

:root {
  /* Corporate Palette */
  --primary-color: #0B2447;   /* Deep Navy */
  --secondary-color: #19376D; /* Lighter Navy */
  --accent-color: #D5A021;    /* Metallic Gold */
  --text-dark: #1e1e1e;
  --text-light: #666666;
  --bg-light: #F8F9FA;
  --white: #ffffff;
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --section-padding: 100px 0;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* =========================================
   2. GLOBAL RESET
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size */
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 2px;
}

.section-tag.center {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn.primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 2px solid var(--accent-color);
}
.btn.primary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn.secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn.secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.header {
  background: rgba(255, 255, 255, 0.98);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
}

.header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: -1px;
}

/* Logo image styling */
.logo-link{display:flex;align-items:center;gap:12px}
.logo-img{
  height:72px; /* big and visible */
  width:auto;
  display:block;
}
.logo-text{font-size:1.75rem;color:var(--primary-color);font-weight:800}

@media(max-width:900px){
  .logo-img{height:56px}
}
@media(max-width:520px){
  .logo-img{height:44px}
  .logo-text{display:none}
}

.header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
}

.header nav a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}
.header nav a:not(.btn):hover::after { width: 100%; }

.header .btn {
  padding: 10px 24px;
  font-size: 0.8rem;
  background-color: var(--primary-color);
  color: var(--white);
}
.header .btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: url('motorfactory.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(11, 36, 71, 0.9), rgba(11, 36, 71, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 900px;
  padding-top: 60px; /* Offset for fixed header */
}

.hero-content .tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 90px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-block;
  margin-bottom: 25px;
}

.hero h2 {
  font-size: 4.5rem; /* Adjusted for desktop */
  color: var(--white);
  margin-bottom: 70px;
  line-height: 1.1;
  margin-left: -80px; /* Kept your style, but fixed in mobile below */
}

.hero h2 span { color: var(--accent-color); }

.hero p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: -50px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about {
  padding: var(--section-padding);
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about h3 { font-size: 2.5rem; margin-bottom: 20px; }
.about p { color: var(--text-light); margin-bottom: 30px; font-size: 1.05rem; }
.about ul li {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.stat-box {
  background: var(--bg-light);
  padding: 30px;
  border-left: 4px solid var(--accent-color);
  transition: var(--transition);
}
.stat-box:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat-box h4 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 5px; }
.stat-box p { margin: 0; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   6. PRODUCTS SECTION
   ========================================= */
.products {
  padding: var(--section-padding);
  background-color: var(--bg-light);
}
.products h3 { font-size: 2.5rem; margin-bottom: 60px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.product-card {
  background: var(--white);
  padding: 30px;
  border: 1px solid #eee;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  filter: grayscale(10%);
  transition: var(--transition);
}
.product-card:hover img { filter: grayscale(0%); }
.product-card h4 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary-color); }
.product-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.product-card a {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
}
.product-card a:hover { color: var(--primary-color); }

/* =========================================
   7. WHY CHOOSE US
   ========================================= */
.why {
  padding: var(--section-padding);
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}
.why h3 { color: var(--white); margin-bottom: 60px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}
.why-card:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
}

/* =========================================
   8. CONTACT & FORM
   ========================================= */
.contact {
  padding: var(--section-padding);
  background-color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}
.contact h3 { margin-bottom: 25px; font-size: 2rem; }
.contact p { font-size: 1.1rem; margin-bottom: 15px; color: var(--text-light); display: flex; align-items: center; gap: 10px; }

form { display: grid; gap: 20px; }

input, textarea, select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  background: var(--bg-light);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(11, 36, 71, 0.1);
}
textarea { height: 150px; resize: vertical; }

/* Form Classes */
.quote-form { display: flex; flex-direction: column; gap: 14px; }
.phone-row { display: flex; gap: 10px; }
.phone-row select { width: 30%; min-width: 80px; }
.phone-row input { flex: 1; }

/* =========================================
   9. FOOTER
   ========================================= */
footer {
  background-color: #051326;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   10. FLOATING ELEMENTS (WhatsApp & Toast)
   ========================================= */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transition: all 0.3s ease;
  animation: wa-pulse 2s infinite;
}
.whatsapp-float-btn svg { fill: #ffffff; width: 32px; height: 32px; }
.whatsapp-float-btn:hover {
  background-color: #128C7E;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #0b1d3a;
  color: #fff;
  padding: 14px 26px;
  border-radius: 30px;
  opacity: 0;
  transition: .4s ease;
  z-index: 9999;
  font-size: 14px;
  width: max-content;
  max-width: 90%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================
   11. MOBILE RESPONSIVENESS
   ========================================= */
/* Tablet & Small Laptop (1024px and below) */
@media (max-width: 1024px) {
  :root { --section-padding: 80px 0; }
  .hero h2 { font-size: 3.5rem; margin-left: 0; }
  .hero p { margin-left: 0; font-size: 1.2rem; }
  .container { padding: 0 30px; }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }

  /* Header */
  .header { padding: 10px 0; }
  .header .nav {
    flex-wrap: wrap; 
    gap: 15px; 
    justify-content: center;
  }
  .logo { margin-bottom: 5px; }
  
  /* Note: For a true mobile menu, you usually need JS. 
     This CSS attempts to stack items cleanly for now */
  .header nav {
    display: none; /* In a real scenario, use JS to toggle this */
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
  }
  
  /* Hero */
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-content { 
    text-align: center; 
    padding-top: 0; 
  }
  .hero h2 { 
    font-size: 2.5rem; 
    margin-left: 0; 
  }
  .hero p { 
    font-size: 1rem; 
    margin-left: 0; 
    margin-bottom: 40px; 
  }
  .hero-btns { 
    justify-content: center; 
    flex-direction: column;
  }
  .hero-content .tag { margin-left: 0; }

  /* Grids */
  .about-grid, .contact-grid { 
    grid-template-columns: 1fr; 
    gap: 40px; 
  }
  
  /* Products */
  .product-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  /* Form */
  .contact-grid { gap: 40px; }
  
  /* Floating Button */
  .whatsapp-float-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float-btn svg { width: 26px; height: 26px; }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
  .hero h2 { font-size: 2rem; }
  .stats { grid-template-columns: 1fr; } /* Stack stats */
  .btn { width: 100%; } /* Full width buttons */
}
/* Toast Notification Style */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px); /* Start hidden below */
  background: #0b1d3a;
  color: #fff;
  padding: 14px 26px;
  border-radius: 30px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* Slide up */
}