/* ============================================================
   Shenghui Auto Industrial Co., Ltd. - Used Car Export B2B
   Main Stylesheet
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #0A2540;
  --color-primary-light: #13345C;
  --color-primary-dark: #061829;
  --color-accent: #C9A961;
  --color-accent-light: #D9BE7A;
  --color-accent-dark: #A88B44;
  --color-whatsapp: #25D366;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F9FB;
  --color-bg-dark: #0A2540;
  --color-text: #1A1A2E;
  --color-text-muted: #4A5568;
  --color-text-light: #718096;
  --color-border: #E2E8F0;
  --color-border-light: #EDF2F7;
  --color-success: #2F855A;
  --color-warning: #B7791F;
  --color-error: #C53030;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 8px 24px rgba(10, 37, 64, 0.12);
  --transition: all 0.25s ease;
  --header-height: 72px;
  --top-bar-height: 36px;
}

/* ---------- Typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
h5 { font-size: 1.05rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }
a { color: var(--color-primary); transition: var(--transition); }
a:hover { color: var(--color-accent-dark); }
strong { color: var(--color-text); font-weight: 600; }
small { font-size: 0.85rem; }
.lead { font-size: 1.15rem; color: var(--color-text-muted); line-height: 1.7; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-primary);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { max-width: 640px; margin: 0 auto; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar a {
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-bar a:hover { color: var(--color-accent); }
.top-bar svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.top-bar .wa-link:hover { color: var(--color-whatsapp); }
.lang-switcher { position: relative; display: inline-block; }
.lang-switcher-btn {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.lang-switcher-btn:hover { color: var(--color-accent); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  z-index: 1000;
  padding: 6px 0;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-dropdown a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  font-size: 0.85rem;
}
.lang-dropdown a:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.site-logo .logo-mark {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.site-logo span.logo-text { line-height: 1.1; }
.site-logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--color-text-light);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--color-accent-dark);
  background: var(--color-bg-alt);
}
.main-nav .has-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  z-index: 950;
}
.main-nav > ul > li:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.nav-dropdown a:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; flex-direction: column; text-align: right; }
.header-phone span { font-size: 0.72rem; color: var(--color-text-light); }
.header-phone a { font-size: 0.88rem; font-weight: 600; color: var(--color-primary); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  padding: 14px 0;
  font-size: 0.85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-light);
}
.breadcrumb li::after {
  content: '/';
  margin-left: 6px;
  color: var(--color-border);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--color-primary); font-weight: 500; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(10,37,64,0.75) 100%);
  z-index: 1;
}
.hero.has-image::before {
  background: linear-gradient(135deg, rgba(10,37,64,0.94) 0%, rgba(10,37,64,0.70) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 720px; }
.hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
}
.btn-whatsapp:hover {
  background: #1DA851;
  border-color: #1DA851;
  color: #fff;
}
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card-body p { font-size: 0.88rem; margin-bottom: 0; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- Feature / Icon Cards ---------- */
.feature-card { text-align: center; padding: 32px 24px; }
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.88rem; }

/* ---------- Content / Article ---------- */
.content-area { max-width: 860px; }
.content-area h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-area h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-area p { margin-bottom: 1.1rem; line-height: 1.8; }
.content-area ul, .content-area ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}
.content-area ul li { list-style: disc; margin-bottom: 0.4rem; color: var(--color-text-muted); }
.content-area ol li { list-style: decimal; margin-bottom: 0.4rem; color: var(--color-text-muted); }
.content-area blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 16px 24px;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.content-area img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}
table.spec-table, table.data-table { width: 100%; font-size: 0.9rem; }
table.spec-table th, table.spec-table td,
table.data-table th, table.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}
table.spec-table th, table.data-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table.spec-table tr:last-child td,
table.data-table tr:last-child td { border-bottom: none; }
table.spec-table tr:nth-child(even),
table.data-table tr:nth-child(even) { background: var(--color-bg-alt); }
table.spec-table td:first-child { font-weight: 600; color: var(--color-primary); width: 35%; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--color-error); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: var(--transition);
  color: var(--color-text);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.form-control::placeholder { color: var(--color-text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--color-error); font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group.has-error .form-control { border-color: var(--color-error); }
.form-group.has-error .form-error { display: block; }
.form-success {
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
  color: var(--color-success);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: none;
}
.form-success.show { display: block; }

/* ---------- Contact Cards ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card .contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card.wa .contact-icon { background: rgba(37,211,102,0.1); color: var(--color-whatsapp); }
.contact-card.em .contact-icon { background: rgba(201,169,97,0.15); color: var(--color-accent-dark); }
.contact-card .contact-icon svg { width: 32px; height: 32px; fill: currentColor; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.contact-card p { font-size: 0.9rem; margin-bottom: 16px; }
.contact-card .btn { width: 100%; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-section h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 28px; }
.cta-section .btn { margin: 0 6px; }

/* ---------- Related Links ---------- */
.related-section { background: var(--color-bg-alt); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.related-card .related-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
.related-card h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 600;
}
.related-card p { font-size: 0.82rem; color: var(--color-text-light); margin-bottom: 0; flex-grow: 1; }
.related-card .related-link {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}
.sidebar ul li { margin-bottom: 8px; }
.sidebar ul li a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar ul li a::before {
  content: '>';
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.sidebar ul li a:hover { color: var(--color-accent-dark); }
.sidebar-contact {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}
.sidebar-contact h4 { color: #fff; border-bottom-color: var(--color-accent); }
.sidebar-contact p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 8px; }
.sidebar-contact a { color: var(--color-accent); }
.sidebar-contact .btn { width: 100%; margin-top: 10px; }

/* ---------- Collapsible Quote Form in Sidebar ---------- */
.quote-toggle {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.quote-toggle:hover { opacity: 0.9; }
.quote-toggle[aria-expanded="true"] {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.quote-form-wrap {
  margin-top: 12px;
  animation: quoteFadeIn 0.25s ease;
}
.quote-form-wrap[hidden] {
  display: none;
}
@keyframes quoteFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quote-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
.quote-input::placeholder {
  color: rgba(255,255,255,0.55);
}
.quote-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.15);
}
.quote-input textarea.quote-input {
  resize: vertical;
  min-height: 60px;
}
.quote-submit {
  cursor: pointer;
  margin-top: 4px;
}

/* ---------- Two Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ---------- Steps / Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 20px 20px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; margin-top: 8px; }
.step p { font-size: 0.85rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  margin-left: 12px;
}
.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-accent);
  transition: var(--transition);
}
.faq-question .faq-icon::before { top: 50%; left: 4px; right: 4px; height: 2px; transform: translateY(-50%); }
.faq-question .faq-icon::after { left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-question .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- Blog ---------- */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ---------- Specs Grid (Car pages) ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.spec-item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.spec-item .spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.spec-item .spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-brand .site-logo { color: #fff; margin-bottom: 14px; }
.footer-brand .site-logo .logo-mark { background: var(--color-accent); color: var(--color-primary-dark); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  align-items: flex-start;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; fill: var(--color-accent); }
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--color-accent); }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 800;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Utility Classes ---------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-100 { width: 100%; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Placeholder Images ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  padding: 10px;
}

/* ---------- RTL Support ---------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .top-bar .container { flex-direction: row-reverse; }
[dir="rtl"] .top-bar-left, [dir="rtl"] .top-bar-right { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .main-nav > ul { flex-direction: row-reverse; }
[dir="rtl"] .main-nav .has-dropdown > a::after { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .nav-dropdown { left: auto; right: 0; }
[dir="rtl"] .header-phone { text-align: left; }
[dir="rtl"] .breadcrumb ol { flex-direction: row-reverse; }
[dir="rtl"] .breadcrumb li::after { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .content-area ul, [dir="rtl"] .content-area ol { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .content-area blockquote { border-left: none; border-right: 4px solid var(--color-accent); border-radius: var(--radius-md) 0 0 var(--radius-md); }
[dir="rtl"] table.spec-table th, [dir="rtl"] table.spec-table td,
[dir="rtl"] table.data-table th, [dir="rtl"] table.data-table td { text-align: right; }
[dir="rtl"] .form-row { direction: rtl; }
[dir="rtl"] select.form-control { background-position: left 14px center; padding-left: 36px; padding-right: 14px; }
[dir="rtl"] .faq-question { flex-direction: row-reverse; }
[dir="rtl"] .faq-question .faq-icon { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .sidebar ul li a { flex-direction: row-reverse; }
[dir="rtl"] .back-to-top { right: auto; left: 30px; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-contact-item { flex-direction: row-reverse; }
[dir="rtl"] .contact-cards { direction: rtl; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stat .number { font-size: 1.5rem; }
  .top-bar { display: none; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 899;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    gap: 0;
  }
  .main-nav > ul > li > a { padding: 14px 24px; border-radius: 0; }
  .main-nav .has-dropdown > a::after { float: right; margin-top: 8px; }
  /* Disable hover dropdown on mobile — rely on JS .open toggle to avoid layout shift ghost clicks */
  .main-nav > ul > li:hover .nav-dropdown { display: none; }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 16px;
    background: var(--color-bg-alt);
  }
  .main-nav > ul > li.open .nav-dropdown { display: block; }
  .header-cta .btn { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media print {
  .top-bar, .site-header, .site-footer, .back-to-top, .hero-actions { display: none; }
  body { font-size: 12pt; }
  .section { padding: 20px 0; }
}

/* Lightbox Image Viewer */
.lightbox-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:9999; display:flex; align-items:center; justify-content:center; cursor:zoom-out; }
.lightbox-img { max-width:90vw; max-height:90vh; object-fit:contain; cursor:grab; transition:transform 0.1s ease; user-select:none; -webkit-user-drag:none; }
.lightbox-img.grabbing { cursor:grabbing; }
.lightbox-close { position:absolute; top:20px; right:30px; color:#fff; font-size:36px; cursor:pointer; z-index:10000; background:none; border:none; line-height:1; }
.lightbox-close:hover { color:#C9A961; }
.lightbox-nav { position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-size:48px; cursor:pointer; z-index:10000; background:none; border:none; padding:20px; opacity:0.7; }
.lightbox-nav:hover { opacity:1; color:#C9A961; }
.lightbox-prev { left:20px; }
.lightbox-next { right:20px; }
.lightbox-counter { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); color:#fff; font-size:14px; z-index:10000; }
main img, .content-area img { cursor:zoom-in; }
