/* 
  J.M MOTORS - Design System
  Color Palette: Premium Automotive
*/

:root {
  /* Colors */
  --primary: #f59e0b;
  /* Amber 500 */
  --primary-hover: #d97706;
  --secondary: #1e293b;
  /* Slate 800 */
  --accent: #3b82f6;
  /* Blue 500 */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --white: #ffffff;
  --success: #10b981;

  /* Typography */
  --font-header: 'Lexend', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing & Borders */
  --container-max: 1200px;
  --radius: 12px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 60px;
  /* Space for fixed header */
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-header);
  font-weight: 700;
}

/* Layout */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
  padding: 8px 0;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex !important;
  /* Force flex */
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brand {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex !important;
  /* Force flex */
  align-items: center;
  gap: 12px;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  height: 36px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 8px;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1100;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

/* Call Button Compact */
.btn-call-compact {
  background-color: var(--primary);
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 16px;
  height: 36px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-call-compact:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.call-icon {
  font-size: 1.1rem;
}

/* Scroll Behavior States */
header.scrolled .lang-selector {
  display: none;
  /* Hide language on scroll to save space */
  opacity: 0;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* padding-top: 80px;  Removed duplicate padding */
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 40px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-bullets li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 12px;
  font-weight: bold;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Forms */
.form-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Service Info */
.grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

/* FAQ */
.faq-item {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
footer {
  padding: 60px 0 20px;
  background: #070b14;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0;
  }

  header.scrolled .lang-selector {
    display: block;
    /* Keep language visible on desktop */
    opacity: 1;
    pointer-events: auto;
  }

  .brand {
    font-size: 1.5rem;
  }
}