/* 
  Edge Automotive - CSS
*/

:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #111111;
  --bg-card: #111111;
  --bg-service-card: #1a1a1a;
  --bg-footer: #0d0d0d;
  
  --accent-red: #E01010;
  --text-white: #ffffff;
  --text-muted: #999999;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(10, 10, 10, 0.95);
  
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
}

.section-padding {
  padding: 100px 0;
}

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

.section-intro {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  color: var(--accent-red);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: #c00d0d;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.btn-whatsapp:hover {
  background-color: #1ebe58;
  transform: translateY(-2px);
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-red);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--accent-red);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(0,0,0,0.85), rgba(10,10,10,0.6)), url('/images/package.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  font-size: 0.875rem;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1rem;
}

.hero-rule {
  width: 60px;
  height: 3px;
  background-color: var(--accent-red);
  border: none;
  margin: 1.5rem auto;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* About Section */
.about {
  background-color: var(--bg-darker);
  text-align: center;
}

.about-content {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-tagline {
  color: var(--text-white);
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 2.5rem;
}

/* Why Choose Us Section */
.why {
  background-color: var(--bg-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  color: var(--accent-red);
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
}

.why-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.25rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border-left: 3px solid var(--accent-red);
  padding-left: 1.5rem;
  text-align: left;
}

/* Services Section */
.services {
  background-color: var(--bg-darker);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-service-card);
  padding: 32px;
  border-top: 3px solid var(--accent-red);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(224, 16, 16, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Products Section */
.products {
  background-color: var(--bg-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
}

.product-img-container {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #1a1a1a;
}

.product-img-contain .product-img {
  object-fit: contain;
  background-color: #1a1a1a;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.product-subtitle {
  color: var(--accent-red);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.kit-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4caf82;
  margin-bottom: 0.75rem;
}

/* Footer / Contact */
.footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--accent-red);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: var(--text-muted);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.contact-icon {
  font-size: 1.25rem;
}

.contact-item a:hover {
  color: var(--accent-red);
}

.mt-4 {
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
  .section-padding {
    padding: 64px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 99;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    min-height: 100svh;
    padding: 0 20px;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    word-break: break-word;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-img-container {
    aspect-ratio: 16/10;
  }

  .footer {
    padding: 56px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .contact-item {
    word-break: break-word;
    align-items: flex-start;
  }

  .why-quote {
    font-size: 1.0625rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 52px 0;
  }

  .hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 3px;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .service-card {
    padding: 24px 20px;
  }

  .product-content {
    padding: 20px;
  }
}

/* Tablet / mid-size screens (600–900px) */
@media (min-width: 600px) and (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  }

  .hero-subtext {
    font-size: 1.0625rem;
  }
}
