/*
Theme Name: Vehicle Master
Theme URI: https://www.sdvehiclemaster.com
Author: Shandong Haoyue Vehicle Co., Ltd
Author URI: https://www.sdvehiclemaster.com
Description: B2B semi-trailer manufacturer/exporter theme. Includes a trailer custom post type with filterable product archive, built-in inquiry form with email notification and admin inbox, one-click Elementor starter templates, and a fully responsive layout. Works with or without Elementor.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trailerpro
Tags: business, e-commerce, custom-menu, rtl-language-support, elementor
*/

/* =====================================================================
 * Vehicle Master · Shared Styles
 * Brand mark: two pillars + forward chevron (assets/images/logo-mark.svg),
 * modernized from the legacy Vehicle Master identity. Pillars inherit
 * currentColor; the chevron always follows --cta-orange.
 * Brand tokens are referenced from :root and never hard-coded twice.
 * ===================================================================== */

:root {
  /* ---- Dark industrial tokens (website-color-scheme.md) ---- */
  --bg-primary: #0B0B0D;
  --bg-secondary: #141416;
  --bg-card: #1C1A18;
  --bg-card-hover: #262220;
  --border-subtle: #2E2A27;
  --brand-orange: #F26522;
  --brand-orange-hover: #FF7A33;
  --cta-blue: #1E5AA8;
  --cta-blue-hover: #2563EB;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #6B7280;
  --surface-light: #F5F3F0;
  --surface-light-text: #1A1A1A;
  /* legacy aliases mapped onto the dark scheme */
  --brand-navy: #141416;
  --industrial-blue: #1E5AA8;
  --cta-orange: #F26522;
  --cta-orange-hover: #FF7A33;
  --steel-gray: #A1A1AA;
  --steel-gray-light: #6B7280;
  --surface-mid: #2E2A27;
  --text-dark: #D4D4D8;
  --border-color: #2E2A27;
  --white: #FFFFFF;
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
               'Microsoft YaHei', sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

/* Anchored sections clear the sticky header on smooth-scroll jumps */
[id] { scroll-margin-top: calc(var(--header-height) + 12px); }
@media (max-width: 640px) {
  [id] { scroll-margin-top: 72px; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color 0.15s var(--ease-out); }
a:hover { color: var(--brand-orange); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.18;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand-word em {
  font-style: normal;
  color: var(--cta-orange);
}
.nav-main { display: flex; gap: 1.75rem; }
.nav-main a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
}
.nav-main a:hover { color: var(--brand-orange-hover); }
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a {
  color: var(--white);
  background: var(--cta-blue);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}
.header-tools { display: flex; align-items: center; }
.nav-cta {
  background: var(--cta-blue);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-left: 0.75rem;
}
.nav-cta:hover { background: var(--cta-blue-hover); }
.lang-switch {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.lang-switch a { color: rgba(255,255,255,0.85); }

/* ---------- Buttons — precise, uppercase, no glow ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
  text-align: center;
  justify-content: center;
}
.btn-primary {
  background: var(--cta-blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--cta-blue-hover); color: var(--white); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-large { padding: 1.05rem 2.2rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 90px),
    linear-gradient(160deg, #0B0B0D 0%, #141416 100%);
  color: var(--white);
  padding: 6.5rem 0 5.5rem;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 700;
  max-width: 820px;
  margin-bottom: 1.35rem;
}
.hero h1 span { color: var(--cta-orange); }
.hero-lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.12rem;
  max-width: 600px;
  margin-bottom: 2.2rem;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-bg-shape {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(242,101,34,0.2);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Section ---------- */
.section { padding: 5rem 0; }
.section-light { background: var(--bg-secondary); }
.section-surface { background: var(--surface-light); }
.section-surface h1, .section-surface h2, .section-surface h3, .section-surface h4 { color: var(--surface-light-text); }
.section-surface p { color: #3F3F46; }
.section-surface .section-lead { color: #52525B; }
.section-surface .cert-badge { background: var(--white); border-color: #E4E0DA; }
.section-surface .cert-badge-name { color: var(--surface-light-text); }
.section-dark { background: var(--bg-secondary); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  display: inline-block;
  color: var(--brand-orange);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-surface .section-eyebrow { color: #C2410C; }
.section-lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ---------- Product Category Cards (homepage) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-card-image {
  background: var(--surface-light);
  height: 200px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border-color);
}
.category-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.category-card-body h3 { margin-bottom: 0.6rem; }
.category-card-body p { font-size: 0.92rem; margin-bottom: 1.2rem; flex: 1; }
.category-card-link {
  color: var(--cta-orange);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.category-card-link::after {
  content: '→';
  transition: transform 0.15s var(--ease-out);
}
.category-card-link:hover::after { transform: translateX(4px); }

/* ---------- Featured Products (shortcode) ---------- */
.tp-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.tp-featured-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.tp-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tp-featured-card-img {
  display: block;
  background: var(--surface-light);
}
.tp-featured-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.tp-featured-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tp-featured-card-model {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cta-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.tp-featured-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.tp-featured-card-title a {
  color: var(--text-primary);
}
.tp-featured-card-title a:hover {
  color: var(--cta-orange);
}
.tp-featured-card-body p {
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  flex: 1;
}
.tp-featured-card-link {
  color: var(--cta-orange);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tp-featured-card-link::after {
  content: '→';
  transition: transform 0.15s var(--ease-out);
}
.tp-featured-card-link:hover::after { transform: translateX(4px); }

/* CTA-style fixed cards (e.g. "200+ Models" and "Custom Build")
   Unified brand look: both cards share the same navy→industrial-blue
   gradient as the hero, keeping white text readable in both schemes.
   Never use --bg-secondary here (redefined to a light tint by the
   light-scheme restoration block). */
.tp-featured-card--cta,
.tp-featured-card--cta.alt {
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--industrial-blue) 100%);
  color: var(--white);
}
.tp-featured-card--cta .tp-featured-card-body {
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.tp-featured-card--cta .tp-featured-card-title {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.tp-featured-card--cta p {
  color: rgba(255,255,255,0.82);
  flex: none;
}
.tp-featured-card--cta .tp-featured-card-link {
  color: var(--cta-orange);
  justify-content: center;
}

@media (max-width: 1024px) {
  .tp-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tp-featured-grid { grid-template-columns: 1fr; }
  .tp-featured-card-img img { height: 180px; }
}

/* First-paint: skip rendering far below-the-fold sections until the user
   scrolls near them. contain-intrinsic-size keeps the scrollbar stable
   while a section is skipped. */
#testimonials,
#faq,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ---------- Factory Strip ---------- */
.factory-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.factory-stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--cta-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.factory-stat .label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Manufacturing Flow ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.flow-step {
  text-align: center;
  position: relative;
}
.flow-step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--brand-orange);
  border: 2px solid var(--industrial-blue);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.flow-step h4 { color: var(--text-primary); }
.flow-step p { font-size: 0.9rem; }

/* ---------- Cert Badges ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.cert-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.15s var(--ease-out);
}
.cert-badge:hover { border-color: var(--cta-orange); transform: translateY(-2px); }
.cert-badge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  background: var(--surface-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.9rem;
}
.cert-badge-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* ---------- Feature Grid (why buy from factory) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: all 0.15s var(--ease-out);
}
.feature-item:hover { border-color: var(--cta-orange); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.feature-item h4 { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-item h4::before { content: "✓ "; color: var(--cta-orange); font-weight: 800; }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--cta-orange);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.75rem 1.5rem;
  margin: 0;
}
.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
}
.testimonial-card blockquote::before { content: "\201C"; font-size: 2rem; color: var(--cta-orange); line-height: 0; vertical-align: -0.4em; margin-right: 2px; }
.testimonial-card figcaption { display: flex; flex-direction: column; }
.testimonial-card figcaption strong { color: var(--text-primary); }
.testimonial-card figcaption span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s var(--ease-out);
}
.faq-item[open] { border-color: var(--cta-orange); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  padding: 1rem 0.5rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cta-orange);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 0.5rem 1rem; margin: 0; color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }

/* ---------- About page ---------- */
.tp-about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.tp-about-grid h3 { color: var(--text-primary); margin-top: 1.25rem; }
.tp-about-grid h2 { color: var(--text-primary); margin: 0.25rem 0 1rem; }
.tp-timeline { position: relative; padding-left: 1.5rem; border-left: 2px solid var(--border-color); }
.tp-timeline-item { position: relative; margin-bottom: 1.75rem; }
.tp-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cta-orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--cta-orange);
}
.tp-timeline-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cta-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tp-timeline-item h4 { color: var(--text-primary); margin: 0.15rem 0 0.35rem; }
.tp-timeline-item p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--cta-orange) 0%, #e86a0d 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-strip h2 { color: var(--white); margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,0.92); margin-bottom: 2rem; font-size: 1.1rem; }

/* =====================================================================
 * v1.2 — Photographic, high-fidelity B2B upgrade
 * ===================================================================== */

/* ---------- Photographic hero ---------- */
.hero--photo {
  position: relative;
  padding: 0;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 32%;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11,31,58,0.92) 0%, rgba(11,31,58,0.72) 42%, rgba(18,61,106,0.35) 72%, rgba(18,61,106,0.15) 100%),
    linear-gradient(0deg, rgba(11,31,58,0.55), rgba(11,31,58,0.15));
}
.hero-inner { padding-top: 6rem; padding-bottom: 6rem; position: relative; }
.hero--photo h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  max-width: 760px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero--photo .hero-lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.18rem;
  max-width: 600px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
/* trust strip under hero CTA — hairline top, quiet labels */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  list-style: none;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--cta-orange);
  display: inline-block;
}

/* ---------- Consistent photo tone layer ------------------------------ */
/* Every product/factory photo gets the same subtle navy vignette and a
   gentle desaturation; hover restores full colour. */
.category-card-image,
.product-card-image,
.tp-cat-product-img,
.cat-section-media,
.about-split-media {
  position: relative;
}
.category-card-image::after,
.product-card-image::after,
.tp-cat-product-img::after,
.cat-section-media::after,
.about-split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11,31,58,0.05) 0%, rgba(11,31,58,0) 45%, rgba(11,31,58,0.12) 100%);
  transition: opacity 0.2s var(--ease-out);
}
.category-card-image img,
.product-card-image img,
.tp-cat-product-img img,
.cat-section-media img,
.about-split-media img {
  filter: saturate(0.94);
  transition: transform 0.45s var(--ease-out), filter 0.2s var(--ease-out);
}
.category-card:hover .category-card-image img,
.product-card:hover .product-card-image img,
.tp-cat-product:hover .tp-cat-product-img img {
  filter: saturate(1.04);
}
.category-card:hover .category-card-image::after,
.product-card:hover .product-card-image::after,
.tp-cat-product:hover .tp-cat-product-img::after {
  opacity: 0.55;
}

/* ---------- Polished product / category image cards ---------- */
.category-card,
.product-card {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s;
  background: var(--bg-card);
}
.category-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(11,31,58,0.16);
  border-color: transparent;
}
.category-card-image {
  height: 220px;
  overflow: hidden;
  padding: 0;
  border-bottom: none;
  background: #141416;
}
.category-card-image img,
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
}
.category-card:hover .category-card-image img,
.product-card:hover .product-card-image img { transform: scale(1.07); }
.product-card-image {
  display: block;
  height: 220px;
  overflow: hidden;
  position: relative;
}
/* model badge chip — quiet ink tone */
.product-card-model,
.product-model {
  display: inline-block;
  background: rgba(18,61,106,0.08);
  color: var(--brand-orange);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

/* ---------- Split feature row with scene photo ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-split-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-split-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}
.about-split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  pointer-events: none;
}
.about-split .feature-grid {
  margin-top: 1.5rem;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  grid-auto-rows: 1fr;
}
.about-split .feature-item {
  padding: 1.1rem 1.15rem;
  background: var(--surface-light);
  border-color: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
  .about-split-media img { min-height: 260px; }
  .about-split .feature-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
}
@media (max-width: 640px) {
  .about-split .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- About page: markets, philosophy, equipment ---------- */
.market-bars {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.market-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.market-bar-name { color: var(--text-primary); font-weight: 600; }
.market-bar-val { color: var(--text-secondary); font-weight: 700; font-variant-numeric: tabular-nums; }
.market-bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-mid);
  overflow: hidden;
}
.market-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--industrial-blue);
}
.about-equip-note {
  margin: 2.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.about-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.about-value-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.about-value-chip strong {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .about-values { gap: 0.5rem; }
  .about-value-chip { padding: 0.4rem 0.9rem; font-size: 0.84rem; }
}

/* ---------- Factory stats over photo ---------- */
.factory--photo { position: relative; isolation: isolate; }
.factory--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.80), rgba(20,20,22,0.82)),
    var(--factory-img) center/cover no-repeat;
}
.factory-stat {
  padding: 0.4rem 1.4rem;
  text-align: center;
}
.factory-stat + .factory-stat { border-left: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 1025px) {
  .factory-stat:nth-child(4n+1) { border-left: none; }
}
@media (max-width: 1024px) {
  .factory-stat:nth-child(4n+1) { border-left: 1px solid rgba(255,255,255,0.12); }
  .factory-stat:nth-child(2n+1) { border-left: none; }
}
@media (max-width: 640px) {
  .factory-strip .factory-stat + .factory-stat {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .factory-strip .factory-stat:nth-child(2n+1) {
    border-left: none;
    border-top: none;
  }
}
.factory-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.factory-stat:hover { background: rgba(255,255,255,0.05); }

/* ---------- Buttons: clearer hierarchy & focus ---------- */
.btn { border-radius: 4px; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary:hover { background: rgba(255,255,255,0.16); }
/* Navy button on orange CTA strips (kept as a class so hover still works) */
.btn-on-accent {
  background: var(--bg-secondary);
  color: var(--white);
}
.btn-on-accent:hover {
  background: #123055;
  color: var(--white);
  transform: translateY(-1px);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid rgba(242,101,34,0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Equal-height Elementor card rows (home starter) ---------- */
/* Elementor 4 only applies flex-wrap to legacy section containers at
   <=1024px; on desktop a multi-row grid inside one section squeezes into
   a single line. Force wrap at every breakpoint — harmless for rows that
   already fit within 100%. */
.elementor-section .elementor-container {
  flex-wrap: wrap;
}
/* Elementor columns otherwise size to their own content, leaving cards in
   the same visual row with ragged heights. Stretch every card-like grid. */
.elementor-element-tpcards1 > .elementor-container,
.elementor-element-tpfeat1 > .elementor-container,
.elementor-element-tpfeatsec > .elementor-container,
.elementor-element-tpproc1 > .elementor-container,
.elementor-element-tpfact1 > .elementor-container,
.elementor-element-tpcert1 > .elementor-container {
  align-items: stretch;
}
.elementor-element-tpcards1 .elementor-column,
.elementor-element-tpfeat1 .elementor-column,
.elementor-element-tpfeatsec .elementor-column,
.elementor-element-tpproc1 .elementor-column,
.elementor-element-tpfact1 .elementor-column,
.elementor-element-tpcert1 .elementor-column {
  display: flex;
}
.elementor-element-tpcards1 .elementor-column > .elementor-widget-wrap,
.elementor-element-tpfeat1 .elementor-column > .elementor-widget-wrap,
.elementor-element-tpfeatsec .elementor-column > .elementor-widget-wrap,
.elementor-element-tpproc1 .elementor-column > .elementor-widget-wrap,
.elementor-element-tpfact1 .elementor-column > .elementor-widget-wrap,
.elementor-element-tpcert1 .elementor-column > .elementor-widget-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}
/* keep "View Models" links pinned to the card bottom */
.elementor-element-tpcards1 .elementor-widget-text-editor:last-child { margin-top: auto; }

/* ---------- Duplicate-id leak guard ("Built to Work. Built to Last.") ----------
   In the imported starter template the feature SECTION and the first feature
   COLUMN share the id `tpfeat1`. Elementor generates the section padding rule
   as `.elementor-element-tpfeat1{padding:80px 0 60px}`, which also matches the
   first card column and shoves its white box ~80px down (the "first card is
   smaller / misaligned" bug). The .elementor-column qualifier matches the card
   column only; the section is a <section>, so this never touches it. The inner
   .elementor-element-populated keeps its own 26/24 card padding. */
.elementor-section .elementor-column.elementor-element-tpfeat1 {
  padding: 0 !important;
}

/* Vertical rhythm when the stat / cert / step rows wrap on tablet & mobile
   (Elementor columns only carry horizontal gap, so wrapped rows otherwise
   touch). */
.elementor-element-tpfact1 .elementor-col-25,
.elementor-element-tpcert1 .elementor-col-16 {
  margin-bottom: 24px;
}
@media (min-width: 1025px) {
  .elementor-element-tpfact1 .elementor-col-25 { margin-bottom: 0; }
  .elementor-element-tpcert1 .elementor-col-16 { margin-bottom: 0; }
}

/* ---------- CTA filler tiles (full-width row under the category grid) ---------- */
.category-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.category-card--cta {
  background: var(--bg-secondary);
  border: none;
  color: var(--white);
  margin: 0;
  display: flex;
}
.category-card--cta h3 { color: var(--white); }
.category-card--cta p { color: rgba(255,255,255,0.85); }
.category-card--cta .category-card-body {
  justify-content: center;
  text-align: center;
  flex: 1;
}
.category-card--cta.alt { background: var(--industrial-blue); }
.category-card--cta .category-card-link { color: var(--cta-orange); }
@media (max-width: 640px) {
  .category-cta-row { grid-template-columns: 1fr; }
}

/* ---------- Elementor section eyebrows: orange accent lines ---------- */
/* Applied via the _css_classes "tp-eyebrow" on heading widgets so the
   Elementor home matches the PHP fallback section headers. */
.tp-eyebrow .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tp-eyebrow .elementor-heading-title::before,
.tp-eyebrow .elementor-heading-title::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cta-orange);
  flex: none;
}

/* Display font cascade into Elementor-rendered headings & numerals
   (theme stylesheet loads after the Elementor frontend CSS). */
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}
#factory .elementor-heading-title {
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
 * Catalogue page — "All Products by Category" (strict reference layout)
 * One compact card per type: "Type (count)" + "View All »" header row,
 * then the models as a multi-column text-link list.
 * ===================================================================== */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.cat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  padding: 1.35rem 1.5rem 1.4rem;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cta-orange), rgba(242,101,34,0.2));
  opacity: 0;
  transition: opacity 0.25s;
}
.cat-card:hover {
  box-shadow: 0 16px 34px rgba(11,31,58,0.13);
  border-color: rgba(242,101,34,0.5);
  transform: translateY(-3px);
}
.cat-card:hover::before { opacity: 1; }
.cat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--surface-mid);
}
.cat-card-title { margin: 0; font-size: 1.12rem; }
.cat-card-title a { color: var(--text-primary); }
.cat-card-title a:hover { color: var(--cta-orange); }
.cat-card-count {
  display: inline-block;
  background: rgba(242,101,34,0.14);
  color: var(--cta-orange-hover);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border-radius: 100px;
  margin-left: 0.4rem;
  vertical-align: 2px;
}
.cat-card-viewall {
  flex: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cta-orange);
  padding: 0.38rem 0.95rem;
  border: 1px solid rgba(242,101,34,0.5);
  border-radius: 100px;
  transition: all 0.15s var(--ease-out);
}
.cat-card-viewall:hover {
  background: var(--cta-orange);
  border-color: var(--cta-orange);
  color: var(--white);
  
}
.cat-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.75rem;
}
.cat-card-list li {
  break-inside: avoid;
  padding: 0;
}
.cat-card-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.42rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.cat-card-list a::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--cta-orange);
  flex: none;
  transition: transform 0.15s var(--ease-out);
}
.cat-card-list a:hover {
  background: var(--surface-light);
  color: var(--cta-orange);
}
.cat-card-list a:hover::before { transform: translateX(3px); }
.cat-card-empty { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 1024px) {
  .cat-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-card-list { columns: 1; }
}

/* ---------- Single-type view ( ?ftype= ) : sidebar + photo cards ----- */
.cat-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.cat-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  padding: 1.25rem 1rem 1rem;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.cat-side-title {
  font-size: 1.02rem;
  color: var(--text-primary);
  border-left: 4px solid var(--cta-orange);
  padding-left: 0.6rem;
  margin-bottom: 0.75rem;
}
.cat-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-side-list li + li { margin-top: 2px; }
.cat-side-list a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, padding-left 0.15s, color 0.15s;
}
.cat-side-list a:hover {
  background: var(--surface-light);
  color: var(--text-primary);
  padding-left: 0.95rem;
}
.cat-side-list a.current {
  background: rgba(244,123,32,0.09);
  color: var(--cta-orange-hover);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--cta-orange);
}
.tp-cat-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.tp-cat-product { margin: 0; }
.tp-cat-product-img {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--surface-light);
  aspect-ratio: 4 / 3;
}
.tp-cat-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}
.tp-cat-product:hover .tp-cat-product-img img { transform: scale(1.05); }
.tp-cat-product-title {
  margin: 0.85rem 0 0;
  font-size: 1.08rem;
}
.tp-cat-product-title a { color: var(--text-primary); }
.tp-cat-product-title a:hover { color: var(--cta-orange); }
@media (max-width: 1024px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; order: 2; }
  .cat-main { order: 1; }
}
@media (max-width: 640px) {
  .tp-cat-products { grid-template-columns: 1fr; }
}

/* ---------- Catalogue guide (factory stats block on About) ---------- */
.catalogue-guide {
  background: linear-gradient(160deg, #141416 0%, #1C1A18 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 3rem 2rem 2rem;
  margin: 3rem 0;
}
.catalogue-guide h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2.25rem;
}
.catalogue-guide .factory-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.catalogue-guide .factory-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--brand-orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.catalogue-guide .factory-stat .label,
.factory-strip .factory-stat .label {
  font-size: 0.85rem !important;
  color: #FFFFFF !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.catalogue-guide .factory-stat {
  padding: 1rem 0.5rem;
}
.catalogue-guide .factory-stat + .factory-stat {
  border-left: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 1025px) {
  .catalogue-guide .factory-stat:nth-child(4n+1) { border-left: none; }
}
@media (max-width: 1024px) {
  .catalogue-guide .factory-strip { grid-template-columns: repeat(2, 1fr); }
  .catalogue-guide .factory-stat + .factory-stat { border-left: 1px solid rgba(255,255,255,0.08); }
  .catalogue-guide .factory-stat:nth-child(2n+1) { border-left: none; }
}
@media (max-width: 640px) {
  .catalogue-guide .factory-strip { grid-template-columns: 1fr; }
  .catalogue-guide .factory-stat { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.08); }
  .catalogue-guide .factory-stat:first-child { border-top: none; }
}
/* Source citation — class is "catalogue-source" (matches PHP output) */
.catalogue-guide .catalogue-source,
.catalogue-source,
.tp-catalogue-source {
  font-size: 0.82rem !important;
  color: #D4D4D8 !important;
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  line-height: 1.7;
}

/* Catalogue guide — responsive override for inline-styled grid */
@media (max-width: 1024px) {
  .catalogue-guide .factory-strip { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .catalogue-guide .factory-strip { grid-template-columns: 1fr !important; }
  .catalogue-guide { padding: 2rem 1rem 1.5rem !important; }
}

/* ---------- Factory Gallery (工厂实拍) ---------- */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.factory-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
}
.factory-photo.tall { grid-row: span 2; aspect-ratio: auto; }
.factory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 0.45s var(--ease-out), filter 0.2s;
}
.factory-photo:hover img { transform: scale(1.05); filter: saturate(1.05); }
.factory-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(11,11,13,0.85));
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .factory-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .factory-gallery { grid-template-columns: 1fr; }
  .factory-photo.tall { grid-row: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Refined eyebrow accent ---------- */
.section-eyebrow,
.hero-eyebrow {
  position: relative;
}
.section-header .section-eyebrow::before,
.section-header .section-eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--cta-orange);
  vertical-align: middle;
  margin: 0 0.6rem;
}

/* ---------- Testimonial avatars ---------- */
.testimonial-card figcaption { flex-direction: row; align-items: center; gap: 0.85rem; }
.tp-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--industrial-blue), var(--brand-navy));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  flex: none;
}
.testimonial-card figcaption strong { line-height: 1.2; }
.testimonial-card figcaption .testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.testimonial-card figcaption .testimonial-meta span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Footer — dark ink, watermark wordmark, hairline columns --- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0B0B0D 0%, #141416 100%);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
  overflow: hidden;
}
.site-footer::before {
  content: "TRAILERPRO";
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 10.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(255,255,255,0.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.site-footer > .container { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid > div + div {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 2.5rem;
}
.footer-grid h5 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-grid a { transition: color 0.15s var(--ease-out); }
.footer-grid a:hover { color: var(--white); }
.footer-brand-text { font-size: 0.9rem; max-width: 320px; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 1024px) {
  .footer-grid > div + div {
    border-left: none;
    padding-left: 0;
  }
}

/* =====================================================================
 * Products archive
 * ===================================================================== */
.page-header {
  background: linear-gradient(160deg, #0B0B0D 0%, #141416 100%);
  padding: 3.25rem 0 2.5rem;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(244,123,32,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.page-header h1 { margin-bottom: 0.5rem; color: var(--white); }
.page-header > .container { position: relative; }
.page-header p {
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  margin-bottom: 0;
}
.page-header .section-eyebrow { display: inline-block; margin-bottom: 0.5rem; }
.breadcrumb {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--cta-orange); }
.breadcrumb-sep { margin: 0 0.5rem; color: rgba(255,255,255,0.4); }

.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.filter-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
}
.filter-group select:focus {
  outline: none;
  border-color: var(--cta-orange);
}
.filter-reset {
  align-self: end;
  background: transparent;
  color: var(--brand-orange);
  border: 1px solid var(--industrial-blue);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
}
.filter-reset:hover { background: var(--industrial-blue); color: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--cta-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card-image {
  background: var(--surface-light);
  height: 200px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border-color);
}
.product-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-card-model {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cta-orange);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.product-card-title { margin-bottom: 0.6rem; }
.product-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.product-card-specs strong { color: var(--text-primary); font-weight: 600; }
.product-card-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.product-card-actions a {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-card-primary {
  background: var(--cta-blue);
  color: var(--white);
}
.btn-card-primary:hover { background: var(--cta-blue-hover); color: var(--white); }
.btn-card-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.btn-card-secondary:hover { border-color: var(--brand-orange); color: var(--brand-orange-hover); }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--steel-gray);
}
.no-results strong { display: block; font-size: 1.1rem; color: var(--text-primary); margin-bottom: 0.5rem; }

/* =====================================================================
 * Trailer detail
 * ===================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.gallery-main {
  background: var(--surface-light);
  border-radius: var(--radius-md);
  height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}
.product-lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.product-description {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
/* Faithful copy of the reference description block: rich text with inline
 * styled section headings, disc bullet lists and inline product images. */
.product-description img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}
.product-description p { line-height: 1.8; }
.product-description ul { list-style: disc; margin: 1rem 0; }
.product-description li { margin: 0.4rem 0; line-height: 1.7; }
.product-description > p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.product-description ul.tp-features {
  list-style: none;
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}
.product-description ul.tp-features li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.product-description ul.tp-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--cta-orange);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .product-description ul.tp-features { grid-template-columns: 1fr; }
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.gallery-thumb {
  background: var(--surface-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  height: 80px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--cta-orange);
  background: var(--bg-card);
}

.product-info .product-model {
  font-size: 0.85rem;
  color: var(--cta-orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.product-info h1 { margin-bottom: 1rem; }
.product-rating {
  display: flex;
  gap: 0.3rem;
  color: var(--cta-orange);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.product-rating span { color: var(--steel-gray); margin-left: 0.5rem; font-size: 0.85rem; }
.product-highlights {
  list-style: none;
  margin: 1.5rem 0;
}
.product-highlights li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.product-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--cta-orange);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.product-info-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}
.specs-table thead {
  background: var(--bg-secondary);
  color: var(--white);
}
.specs-table th,
.specs-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.92rem;
}
.specs-table tbody tr { border-bottom: 1px solid var(--border-color); }
.specs-table tbody tr:nth-child(even) { background: var(--surface-light); }
.specs-table tbody tr:last-child { border-bottom: none; }
.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 38%;
}

.optional-configs {
  background: var(--surface-light);
  border-left: 4px solid var(--cta-orange);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}
.optional-configs h4 { margin-bottom: 0.75rem; }
.optional-configs ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
}
.optional-configs li {
  font-size: 0.9rem;
  color: var(--text-primary);
  padding-left: 1.25rem;
  position: relative;
}
.optional-configs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cta-orange);
  font-weight: 700;
}

.detail-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.detail-cert {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.detail-cert-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--surface-light);
  display: grid;
  place-items: center;
  color: var(--brand-orange);
  font-weight: 700;
}
.detail-cert-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

.inquiry-form {
  background: var(--surface-light);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.inquiry-form h3 { margin-bottom: 0.5rem; }
.inquiry-form .form-lead {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { display: flex; flex-direction: column; min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-primary);
}
.form-group select option { background: var(--bg-card); color: var(--text-primary); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cta-orange);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* Phone field: one fused control — dial-code segment + number */
.tp-phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  max-width: 100%;
  overflow: hidden;
}
.tp-phone-field:focus-within { border-color: var(--cta-orange); }
.tp-phone-field .tp-dial-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-left: 0.7rem;
  border-right: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
}
.tp-phone-field .tp-dial-plus {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1;
  user-select: none;
}
.tp-phone-field .tp-dial {
  width: 2.7rem;
  min-width: 0;
  padding: 0.65rem 0.35rem 0.65rem 0.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  text-align: left;
}
.tp-phone-field input#contact_phone {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
}
.tp-phone-field input:focus { outline: none; }

/* Country combobox: click-to-open list, type-to-filter, free input */
.tp-combo { position: relative; }
.tp-combo input { display: block; width: 100%; }
.tp-combo .tp-combo-selected-flag {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  display: none;
}
.tp-combo.has-flag input { padding-left: 2.6rem; }
html[dir="rtl"] .tp-combo .tp-combo-selected-flag { left: auto; right: 0.85rem; }
html[dir="rtl"] .tp-combo.has-flag input { padding-left: 0.85rem; padding-right: 2.6rem; }
.tp-combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.tp-combo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.tp-combo-flag {
  flex: 0 0 auto;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tp-combo-item:hover,
.tp-combo-item.active { background: rgba(242, 101, 34, 0.12); color: var(--text-primary); }
.tp-combo-empty { padding: 0.6rem 0.85rem; color: var(--text-muted); font-size: 0.85rem; }
/* The hidden attribute must beat the display rules above. */
.tp-combo-item[hidden],
.tp-combo-empty[hidden] { display: none !important; }
html[dir="rtl"] .tp-combo-item { text-align: right; }
.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* Submit-in-progress: keep the button visible with a spinning loader */
.form-submit.loading {
  pointer-events: none;
  opacity: 0.9;
  gap: 0.7rem;
}
.form-submit.loading::after {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tp-btn-spin 0.7s linear infinite;
}
@keyframes tp-btn-spin {
  to { transform: rotate(360deg); }
}

/* =====================================================================
 * Mobile nav toggle (hamburger)
 * ===================================================================== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  margin-left: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bg-card);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================================
 * WordPress integration additions
 * ===================================================================== */

/* Menus render as ul/li inside .nav-main */
.nav-main ul.nav-menu-list,
.nav-main ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.nav-main li { list-style: none; }

/* WPML menu language switcher — other languages drop down under the current one */
.nav-main li.wpml-ls-menu-item { position: relative; }
.nav-main li.wpml-ls-menu-item > a::after {
  content: '▾';
  font-size: 0.7em;
  margin-left: 0.35em;
  opacity: 0.7;
}
.nav-main li.wpml-ls-menu-item > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.5rem 1.1rem;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 60;
}
@media (min-width: 769px) {
  .nav-main li.wpml-ls-menu-item:hover > .sub-menu,
  .nav-main li.wpml-ls-menu-item:focus-within > .sub-menu { display: flex; }
}
.nav-main li.wpml-ls-menu-item > .sub-menu a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-primary);
}
.nav-main li.wpml-ls-menu-item > .sub-menu a:hover,
.nav-main li.wpml-ls-menu-item > .sub-menu a:focus {
  color: var(--text-orange, var(--brand-orange-hover));
}
.nav-main li.wpml-ls-menu-item > .sub-menu .wpml-ls-flag {
  width: 1.1em;
  height: auto;
  flex: none;
}
html[dir="rtl"] .nav-main li.wpml-ls-menu-item > .sub-menu { left: auto; right: 0; }
html[dir="rtl"] .nav-main li.wpml-ls-menu-item > a::after { margin-left: 0; margin-right: 0.35em; }

@media (max-width: 640px) {
  /* Language switcher: ONE pill (current language) — tap to expand the
     other languages, tap a language to switch. */
  .nav-main li.wpml-ls-menu-item {
    margin-top: 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .nav-main li.wpml-ls-menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.42rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    cursor: pointer;
  }
  .nav-main li.wpml-ls-menu-item > a::after {
    content: "▾";
    font-size: 0.7em;
    opacity: 0.7;
    transition: transform 0.15s ease;
  }
  .nav-main li.wpml-ls-menu-item.tp-ls-open > a::after { transform: rotate(180deg); }
  .nav-main li.wpml-ls-current-language > a {
    color: #fff;
    border-color: rgba(242, 101, 34, 0.65);
    background: rgba(242, 101, 34, 0.16);
  }
  .nav-main li.wpml-ls-menu-item > .sub-menu {
    display: none;              /* collapsed until the pill is tapped */
    position: static;           /* flow inside the navy menu panel */
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }
  .nav-main li.wpml-ls-menu-item.tp-ls-open > .sub-menu { display: flex; }
  .nav-main li.wpml-ls-menu-item .wpml-ls-flag { width: 16px; height: 12px; }
  .nav-main li.wpml-ls-menu-item > .sub-menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.42rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.88);
  }
  .nav-main li.wpml-ls-menu-item > .sub-menu a:hover,
  .nav-main li.wpml-ls-menu-item > .sub-menu a:focus {
    color: #fff;
    border-color: var(--cta-orange);
  }
}

/* Sticky header under the admin bar */
.admin-bar .site-header { top: 32px; }

/* Pagination */
.tp-pagination {
  text-align: center;
  margin-top: 2.5rem;
}
.tp-pagination .page-numbers {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin: 0 0.2rem;
  color: var(--brand-orange);
  background: var(--bg-card);
}
.tp-pagination .page-numbers.current {
  background: var(--cta-orange);
  color: var(--white);
  border-color: var(--cta-orange);
}
.tp-pagination .page-numbers:hover { border-color: var(--cta-orange); }

/* Inquiry result notices */
.inquiry-notice {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--cta-orange);
  background: rgba(242,101,34,0.12);
  color: var(--text-primary);
  font-size: 0.92rem;
}
.inquiry-notice.success { background: rgba(46,125,50,0.18); border-left-color: #4CAF50; }
.inquiry-notice.error   { background: rgba(198,40,40,0.18); border-left-color: #EF5350; }

/* Centered result dialog (inquiry submit feedback) — bright, friendly */
.tp-toast-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.tp-toast-backdrop.show { opacity: 1; pointer-events: auto; }

.tp-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 99999;
  width: min(92vw, 400px);
  padding: 34px 28px 30px;
  transform: translate(-50%, -50%) scale(0.94);
  background: #FBFAF7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tp-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

/* Soft status accent line */
.tp-toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 14px 14px 0 0;
}
.tp-toast.success::before { background: linear-gradient(90deg, #2E9E5B, #7CCB8F); }
.tp-toast.error::before   { background: linear-gradient(90deg, #D64545, #F0907F); }

/* Solid gradient status medallion */
.tp-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 4px auto 18px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.tp-toast.success .tp-toast-icon {
  background: linear-gradient(135deg, #37AC6B, #227A49);
  box-shadow: 0 12px 26px rgba(46, 158, 91, 0.35);
}
.tp-toast.error .tp-toast-icon {
  background: linear-gradient(135deg, #E15B5B, #B72F2F);
  box-shadow: 0 12px 26px rgba(214, 69, 69, 0.32);
}

.tp-toast-title {
  margin: 0 0 8px;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #191817;
}
.tp-toast-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: #5F5C58;
}

/* Circular close button */
.tp-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.035);
  color: #8A8680;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tp-toast-close:hover,
.tp-toast-close:focus-visible {
  color: #fff;
  background: #F26522;
  border-color: #F26522;
  outline: none;
}

/* Inquiry success page */
.tp-success-page { padding: 90px 0 110px; }
.tp-success-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 40px 48px;
  text-align: center;
  background: #FBFAF7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.tp-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 50%;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #37AC6B, #227A49);
  box-shadow: 0 16px 34px rgba(46, 158, 91, 0.35);
}
.tp-success-title {
  margin: 0 0 14px;
  color: #191817;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}
.tp-success-text {
  margin: 0 0 30px;
  color: #5F5C58;
  font-size: 1rem;
  line-height: 1.7;
}
.tp-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.tp-success-page .btn-secondary {
  color: #191817;
  border-color: rgba(0, 0, 0, 0.28);
  background: transparent;
}
.tp-success-page .btn-secondary:hover {
  color: #191817;
  background: rgba(0, 0, 0, 0.05);
  border-color: #F26522;
}
/* Honeypot field (spam trap, visually hidden) */
.tp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Generic page content spacing (inquiry page, posts) */
.tp-page-content { margin-bottom: 2rem; }
.tp-post-list { display: flex; flex-direction: column; gap: 2rem; }
.tp-post-item h3 { margin-bottom: 0.4rem; }

/* =====================================================================
 * Responsive — Tablet
 * ===================================================================== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-strip { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .product-detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-cert-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cat-cards { grid-template-columns: 1fr; }
}

/* =====================================================================
 * Responsive — Mobile
 * ===================================================================== */
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 640px) {
  .site-header { height: 60px; }
  .site-header .container { padding: 0 1rem; }
  .lang-switch { display: none; }
  /* Mobile: quote CTA lives in the dropdown menu as the last item —
     the header button would crowd the brand + hamburger row. */
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Elementor hero CTA pair — keep both buttons on one row on phones.
     The markup is a plain <p> with &nbsp; separators (no flex wrapper),
     so the inline-flex buttons wrapped. font-size:0 collapses the &nbsp;
     text nodes so they don't become anonymous flex items. */
  .elementor-element-tphero6 p {
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-size: 0;
  }
  .elementor-element-tphero6 .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.8rem 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    justify-content: center;
    white-space: nowrap;
  }
  .nav-main {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    /* Navy panel to match the sticky header. --bg-secondary became near-white
       (#F5F7FA) in the light-scheme restoration, which left the white nav
       links unreadable. */
    background: var(--brand-navy);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .admin-bar .nav-main { top: 106px; }
  .nav-main.is-open { display: block; }
  .nav-main ul.nav-menu-list,
  .nav-main ul {
    flex-direction: column;
    gap: 0;
  }
  .nav-main a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-main li:last-child a { border-bottom: none; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3rem 0; }
  .category-grid,
  .product-grid,
  .factory-strip,
  .flow-grid,
  .cert-grid,
  .feature-grid,
  .detail-cert-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; padding: 1rem; }
  .filter-reset { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .inquiry-form { padding: 1.5rem; }
  .gallery-main { height: 280px; }
  .optional-configs ul { grid-template-columns: 1fr; }
}

/* =====================================================================
 * RTL — Arabic support
 * WP adds dir="rtl" automatically when the site language is Arabic;
 * the Arabic demo page forces it via a language_attributes filter.
 * Only directional elements flip; never flip logos, vehicles, cert badges.
 * ===================================================================== */
html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Tahoma', 'Inter', sans-serif;
}

html[dir="rtl"] .site-header .container { flex-direction: row-reverse; }
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .section-header { text-align: center; }
html[dir="rtl"] .hero-cta-group { justify-content: flex-end; }
html[dir="rtl"] .lang-switch { padding-left: 0; padding-right: 1rem; border-left: none; border-right: 1px solid rgba(255,255,255,0.2); margin-left: 0; margin-right: 1rem; }
html[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 0.75rem; }
html[dir="rtl"] .nav-toggle { margin-left: 0; margin-right: 0.5rem; }
html[dir="rtl"] .product-info-actions { justify-content: flex-end; }
html[dir="rtl"] .product-detail-layout { direction: rtl; }
html[dir="rtl"] .product-gallery { order: 1; }
html[dir="rtl"] .product-info { order: 2; text-align: right; }
html[dir="rtl"] .category-card-link { display: inline-flex; flex-direction: row-reverse; }
html[dir="rtl"] .product-card-specs,
html[dir="rtl"] .product-highlights li,
html[dir="rtl"] .optional-configs li {
  text-align: right;
}
html[dir="rtl"] .product-highlights li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .product-highlights li {
  padding-left: 0;
  padding-right: 1.75rem;
}
html[dir="rtl"] .optional-configs li {
  padding-left: 0;
  padding-right: 1.25rem;
}
html[dir="rtl"] .optional-configs li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .optional-configs {
  border-left: none;
  border-right: 4px solid var(--cta-orange);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
html[dir="rtl"] .category-card-link::after {
  content: '←';
}
html[dir="rtl"] .category-card-link:hover::after {
  transform: translateX(-4px);
}
html[dir="rtl"] .breadcrumb-sep {
  transform: scaleX(-1);
  display: inline-block;
}
html[dir="rtl"] .inquiry-notice {
  border-left: none;
  border-right: 4px solid var(--cta-orange);
}
html[dir="rtl"] .inquiry-notice.success { border-right-color: #2E7D32; }
html[dir="rtl"] .inquiry-notice.error   { border-right-color: #C62828; }
html[dir="rtl"] .tp-toast { direction: rtl; }
html[dir="rtl"] .tp-toast-close { right: auto; left: 12px; }
html[dir="rtl"] .specs-table th,
html[dir="rtl"] .specs-table td { text-align: right; }
/* Number/phone columns stay LTR */
html[dir="rtl"] .specs-table td:nth-child(2),
html[dir="rtl"] .product-card-specs,
html[dir="rtl"] .inquiry-form input[type="tel"],
html[dir="rtl"] .inquiry-form input[type="email"] {
  direction: ltr;
  text-align: left;
}
/* RTL nav-main on mobile — keep the dropdown full-width and anchored top */
html[dir="rtl"] .nav-main {
  text-align: right;
}

/* =====================================================================
 * LIGHT-SCHEME RESTORATION
 * Reverts the experimental dark/industrial palette back to Vehicle Master's
 * original light brand look (navy #0B1F3A + orange #F47B20 on white).
 * This block sits last so it wins over earlier rules and over Elementor's
 * generated per-page CSS (post-NN.css). Remove this section to switch back.
 * ===================================================================== */

/* ---- 1. Global design tokens (light palette) ---- */
:root {
  --brand-navy: #0B1F3A;
  --industrial-blue: #123D6A;
  --cta-orange: #F47B20;
  --cta-orange-hover: #d96510;
  --brand-orange: #F47B20;
  --brand-orange-hover: #d96510;
  --cta-blue: #F47B20;        /* dark mode's blue CTA → original orange */
  --cta-blue-hover: #d96510;
  --steel-gray: #5A6670;
  --steel-gray-light: #8A95A0;
  --surface-light: #F5F7FA;
  --surface-mid: #E5E9EE;
  --text-primary: #1F2937;
  --text-secondary: #4A5568;
  --text-dark: #1F2937;
  --text-muted: #6B7580;
  --border-color: #D5DBE2;
  --border-subtle: #D5DBE2;
  --bg-primary: #FFFFFF;       /* page background */
  --bg-secondary: #F5F7FA;     /* light section background */
  --bg-card: #FFFFFF;          /* card background */
  --bg-card-hover: #FFFFFF;
  --white: #FFFFFF;
}

/* ---- 2. Base page + theme section classes (PHP fallback & non-Elementor) ---- */
body {
  background: var(--white);
  color: var(--text-secondary);
}
.section-light { background: var(--surface-light); }
.section-surface { background: var(--surface-light); }
.section-dark { background: var(--brand-navy); color: var(--white); }

.hero {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 90px),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--industrial-blue) 100%);
}

.cta-strip {
  background: linear-gradient(135deg, var(--cta-orange) 0%, #e86a0d 100%);
  color: var(--white);
}

.btn-primary,
.nav-cta {
  background: var(--cta-orange);
  color: var(--white);
}
.btn-primary:hover,
.nav-cta:hover { background: var(--cta-orange-hover); color: var(--white); }
.btn-on-accent { background: var(--brand-navy); color: var(--white); }
.btn-on-accent:hover { background: #123055; color: var(--white); }

.category-card--cta { background: var(--brand-navy); }
.category-card--cta.alt { background: var(--industrial-blue); }
.category-card--cta .category-card-link { color: var(--cta-orange); }

/* Sticky header: originally navy with white nav text */
.site-header {
  background: var(--brand-navy);
}
.site-header .brand,
.site-header .nav-main a,
.site-header .header-tools .lang-switch,
.site-header .header-tools > * {
  color: var(--white);
}
.site-header .brand-logo {
  display: block;
}
.site-header .nav-main a:hover,
.site-header .nav-main a.current-menu-item,
.site-header .nav-main a.current_page_item { color: var(--cta-orange); }
.site-header .nav-toggle span { background: var(--white); }
.site-header .nav-cta {
  background: var(--cta-orange);
  color: var(--white);
}
.site-header .nav-cta:hover { background: var(--cta-orange-hover); color: var(--white); }

/* Footer returns to the navy gradient */
.site-footer {
  background: linear-gradient(180deg, #0B1F3A 0%, #123D6A 100%);
  color: rgba(255,255,255,0.75);
}
.site-footer h5,
.site-footer .brand { color: var(--white); }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--cta-orange); }
.site-footer .footer-bottom { border-top-color: rgba(255,255,255,0.15); }

.cert-badge {
  background: var(--white);
  border: 1px solid var(--border-color);
}

/* ---- 3. Elementor home page: restore section & card backgrounds ---- */

/* Navy sections: hero + factory strip (white text, unchanged) */
.elementor-element-tphero1,
.elementor-element-tphero1 > .elementor-widget-wrap {
  background-color: var(--brand-navy) !important;
  background-image: linear-gradient(135deg, #0B1F3A 0%, #123D6A 100%) !important;
}
.elementor-element-tpfact1,
.elementor-element-tpfact1 > .elementor-widget-wrap {
  background-color: var(--brand-navy) !important;
}

/* Type catalogue pages (type.json, shared by all /products/<slug>/):
 * the dark page header and inquiry band were near-black in the experimental
 * palette; restore them to the brand-navy band with white text. */
.elementor-element-tptype1,
.elementor-element-tptype1 > .elementor-widget-wrap,
.elementor-element-tptype6,
.elementor-element-tptype6 > .elementor-widget-wrap {
  background-color: var(--brand-navy) !important;
  background-image: linear-gradient(135deg, #0B1F3A 0%, #123D6A 100%) !important;
}
.elementor-element-tptype1 .elementor-heading-title,
.elementor-element-tptype1 h1,
.elementor-element-tptype1 h2,
.elementor-element-tptype1 p,
.elementor-element-tptype6 .elementor-heading-title,
.elementor-element-tptype6 h2,
.elementor-element-tptype6 h3,
.elementor-element-tptype6 p {
  color: var(--white);
}
/* Light-grey content band on type pages (warm grey → neutral surface) */
.elementor-element-tptype9,
.elementor-element-tptype9 > .elementor-widget-wrap {
  background-color: var(--surface-light) !important;
}

/* Light-grey sections: product range, card grid band, process, cert, FAQ */
.elementor-element-tprange1,
.elementor-element-tprange1 > .elementor-widget-wrap,
.elementor-element-tpcards1,
.elementor-element-tpcards1 > .elementor-widget-wrap,
.tp-cta-row,
.tp-cta-row > .elementor-widget-wrap,
.elementor-element-tpproc1,
.elementor-element-tpproc1 > .elementor-widget-wrap,
.elementor-element-tpcert1,
.elementor-element-tpcert1 > .elementor-widget-wrap,
.elementor-element-tpfaq1,
.elementor-element-tpfaq1 > .elementor-widget-wrap {
  background-color: var(--surface-light) !important;
}

/* "Built to Work" feature section sits on white */
section.elementor-element-tpfeat1 {
  background-color: var(--white) !important;
  background-image: none !important;
}

/* Orange final CTA band */
.elementor-element-tpcta1,
.elementor-element-tpcta1 > .elementor-widget-wrap {
  background-color: var(--cta-orange) !important;
  background-image: linear-gradient(135deg, #F47B20 0%, #e86a0d 100%) !important;
}
.elementor-element-tpcta1,
.elementor-element-tpcta1 .elementor-heading-title,
.elementor-element-tpcta1 h2,
.elementor-element-tpcta1 h3,
.elementor-element-tpcta1 p { color: var(--white); }

/* White product / feature cards (home product grid: 6 product cards in a
   2-row x 4-column layout; cells 7-8 are the two promo tiles; + 6 feature
   cards) */
.elementor-element-tpcard1a,
.elementor-element-tpcard2a,
.elementor-element-tpcard3a,
.elementor-element-tpcard4a,
.elementor-element-tpcard5a,
.elementor-element-tpcard6a,
.elementor-column.elementor-element-tpfeat1,
.elementor-element-tpfeat2,
.elementor-element-tpfeat3,
.elementor-element-tpfeat4,
.elementor-element-tpfeat5,
.elementor-element-tpfeat6,
.elementor-element-tpcard1a > .elementor-widget-wrap,
.elementor-element-tpcard2a > .elementor-widget-wrap,
.elementor-element-tpcard3a > .elementor-widget-wrap,
.elementor-element-tpcard4a > .elementor-widget-wrap,
.elementor-element-tpcard5a > .elementor-widget-wrap,
.elementor-element-tpcard6a > .elementor-widget-wrap,
.elementor-column.elementor-element-tpfeat1 > .elementor-widget-wrap,
.elementor-element-tpfeat2 > .elementor-widget-wrap,
.elementor-element-tpfeat3 > .elementor-widget-wrap,
.elementor-element-tpfeat4 > .elementor-widget-wrap,
.elementor-element-tpfeat5 > .elementor-widget-wrap,
.elementor-element-tpfeat6 > .elementor-widget-wrap {
  background-color: var(--white) !important;
  border-color: var(--border-color) !important;
}

/* The two promo tiles closing the product grid: catalogue tile (7) uses the
   brand-orange gradient (main browse action); custom-build tile (8) stays
   industrial blue */
.elementor-element-tpcardcta1,
.elementor-element-tpcardcta1 > .elementor-widget-wrap {
  background-color: var(--cta-orange) !important;
  background-image: linear-gradient(135deg, #F47B20 0%, #e86a0d 100%) !important;
}
.elementor-element-tpcardcta2,
.elementor-element-tpcardcta2 > .elementor-widget-wrap {
  background-color: var(--industrial-blue) !important;
}

/* Process step cards — light-scheme cards. The previous rule painted the
 * whole widget orange ("step-number circles"), leaving the icon at 1.1:1
 * and the #A1A1AA description at 1.07:1 — unreadable. White surface,
 * navy title (≈15:1), #4A5568 body (≈7.6:1), orange icon (≈3.2:1). */
.elementor-element-tpproc1 .elementor-widget-icon-box {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 1px 3px rgba(11, 31, 58, 0.06);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.elementor-element-tpproc1 .elementor-widget-icon-box:hover {
  transform: translateY(-3px);
  border-color: var(--cta-orange) !important;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.10);
}
.elementor-element-tpproc1 .elementor-widget-icon-box .elementor-icon-box-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 22px 20px 18px;
  height: 100%;
  box-sizing: border-box;
}
.elementor-element-tpproc1 .elementor-icon {
  color: var(--cta-orange) !important;
  fill: var(--cta-orange) !important;
}
.elementor-element-tpproc1 .elementor-icon-box-title {
  color: var(--brand-navy) !important;
  font-weight: 600 !important;
  font-size: 1.02rem !important;
  line-height: 1.35;
}
.elementor-element-tpproc1 .elementor-icon-box-description {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* =====================================================================
 * Catalogue page — reference /products layout (sidebar tree + grid)
 * ===================================================================== */
.pc-simple-grid { grid-template-columns: repeat(3, 1fr); }
.pc-simple {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.pc-simple:hover {
  border-color: var(--cta-orange);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.12);
  transform: translateY(-3px);
}
.pc-simple-img { position: relative; background: var(--surface-light); }
.pc-simple-img a { display: block; }
.pc-simple-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.pc-simple-inquiry {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--cta-orange);
  color: var(--white) !important;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s;
}
.pc-simple:hover .pc-simple-inquiry,
.pc-simple-inquiry:focus {
  opacity: 1;
  transform: translateY(0);
}
.pc-simple-box { padding: 0.9rem 1rem 1.1rem; }
.pc-simple-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.98rem;
}
.pc-simple-name:hover { color: var(--cta-orange); }
.pc-simple-line {
  height: 2px;
  width: 2.2rem;
  background: var(--cta-orange);
  margin: 0.7rem 0 0;
  border-radius: 2px;
}

/* Sidebar category tree (nested levels) */
.cat-side-tree { margin-bottom: 1.5rem; }
.cat-side-sub {
  list-style: none;
  margin: 0.25rem 0 0.35rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
}
.cat-side-sub a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.6rem;
}
.cat-side-sub a.current { color: var(--cta-orange); font-weight: 700; }

/* Sidebar inquiry box */
.aside-inquiry {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--brand-navy);
  border-radius: var(--radius-md);
  color: var(--white);
}
.aside-inquiry .aside-tit {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.aside-inquiry .aside-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1rem;
}
.aside-inquiry .btn { width: 100%; }

/* Catalogue pagination (the_posts_pagination output) */
.cat-main .navigation.pagination {
  margin-top: 2.5rem;
  text-align: center;
}
.cat-main .pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cat-main .pagination .page-numbers {
  display: inline-block;
  min-width: 2.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  background: var(--bg-card);
  font-weight: 600;
}
.cat-main .pagination .page-numbers.current {
  background: var(--cta-orange);
  color: var(--white);
  border-color: var(--cta-orange);
}
.cat-main .pagination .page-numbers:hover:not(.current) {
  border-color: var(--cta-orange);
  color: var(--cta-orange);
}
@media (max-width: 900px) {
  .pc-simple-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pc-simple-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
 * Wide catalogue shell — /products/, category and product detail pages
 * (the left tree takes 250px, so the shell itself gets extra width and
 * the main column keeps breathing room on large screens).
 * ===================================================================== */
.container-xwide { max-width: 1560px; }

@media (min-width: 1400px) {
  .cat-layout { gap: 3rem; }
  .gallery-main { height: 480px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery-thumb { height: 92px; }
  .product-info h1 { font-size: 2.1rem; }
  .product-lead { font-size: 1.05rem; }
  .product-description { font-size: 1.02rem; }
  .product-description p { line-height: 1.85; }
}

/* =====================================================================
 * Quick-contact float bar — replicated from the reference site
 * (.sdFloatBar on sdvehiclemaster.com). Desktop: 48px buttons with hover
 * tooltips, SMS hidden (useless on PC). Mobile (<=768px): tighter 42px
 * bar, no tooltips, SMS shown.
 * ===================================================================== */
.sdFloatBar{position:fixed;right:14px;top:50%;transform:translateY(-50%);z-index:99999;display:flex;flex-direction:column;gap:10px;font-family:Arial,Helvetica,sans-serif;}
.sdFloatBar a{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.25);transition:transform .2s ease,box-shadow .2s ease;}
.sdFloatBar a:hover{transform:translateX(-4px) scale(1.06);box-shadow:0 4px 14px rgba(0,0,0,.35);}
.sdFloatBar a svg{width:26px;height:26px;fill:#fff;}
.sdFloatBar .sd-wa{background:#25d366;}
.sdFloatBar .sd-tg{background:#0088cc;}
.sdFloatBar .sd-sms{background:#00bcd4;display:none;} /* SMS has no use on PC; restored on mobile below */
.sdFloatBar .sd-mail{background:#ea4335;}
.sdFloatBar .sd-tel{background:#ff6637;}
.sdFloatBar .sd-ct{background:#105697;}
.sdFloatBar .sd-tip{position:absolute;right:58px;top:50%;transform:translateY(-50%);white-space:nowrap;background:rgba(0,0,0,.78);color:#fff;font-size:13px;line-height:1;padding:8px 12px;border-radius:4px;opacity:0;visibility:hidden;transition:opacity .2s ease;pointer-events:none;}
.sdFloatBar .sd-tip::after{content:"";position:absolute;left:100%;top:50%;margin-top:-5px;border:5px solid transparent;border-left-color:rgba(0,0,0,.78);}
.sdFloatBar a:hover .sd-tip{opacity:1;visibility:visible;}
@media (max-width:768px){
.sdFloatBar{right:10px;gap:8px;}
.sdFloatBar a{width:42px;height:42px;}
.sdFloatBar a svg{width:22px;height:22px;}
.sdFloatBar .sd-tip{display:none;}
.sdFloatBar .sd-sms{display:flex;}
}

/* =====================================================================
 * Category bottom introduction (reference .prolist-bottom block)
 * ===================================================================== */
.cat-bottom-intro {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.cat-bottom-intro .prolist-bottom { font-size: 1rem; }
.cat-bottom-intro img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}
.cat-bottom-intro p { line-height: 1.8; margin-bottom: 0.9rem; }
.cat-bottom-intro ul { list-style: disc; margin: 1rem 0; padding-left: 1.4rem; }
.cat-bottom-intro li { margin: 0.4rem 0; line-height: 1.7; }
.cat-bottom-intro a { color: var(--brand-navy); text-decoration: underline; }
.cat-bottom-intro a:hover { color: var(--cta-orange); }

/* =====================================================================
 * Catalogue keyword filter + custom-build no-results card
 * ===================================================================== */
.cat-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.cat-filter input[type="search"] {
  flex: 1;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-filter input[type="search"]:focus {
  border-color: var(--cta-orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.15);
}
.cat-filter .btn { border-radius: 999px; padding: 0.72rem 1.5rem; }
.cat-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-light);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  flex: none;
}
.cat-filter-clear:hover {
  background: var(--cta-orange);
  color: var(--white);
  border-color: var(--cta-orange);
}
.cat-filter-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1.2rem;
}
.cat-filter-info strong { color: var(--brand-navy); }

.custom-build-card {
  text-align: center;
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  margin-top: 1rem;
}
.custom-build-card h3 {
  font-size: 1.6rem;
  color: var(--brand-navy);
  margin-bottom: 0.6rem;
}
.custom-build-card > p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 1.6rem;
  line-height: 1.7;
}
.custom-build-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-whatsapp svg { width: 20px; height: 20px; fill: var(--white); }
.btn-whatsapp:hover { background: #1fb457; }

/* Filter selects (cascading category filter) */
.cat-filter select {
  flex: none;
  min-width: 150px;
  max-width: 210px;
  padding: 0.75rem 2.1rem 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-card);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%234A5568' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-filter select:focus {
  border-color: var(--cta-orange);
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.15);
}
.cat-filter select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  /* Mobile: search box only — category/facet selects stay desktop-only
     (category navigation remains available via the catalogue sidebar). */
  .cat-filter select { display: none; }
  .cat-filter input[type="search"] { flex: 1 1 auto; min-width: 0; }
}

/* Inquiry inbox source tags (admin) */
.tp-src-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e7ecf3;
  color: #2c3e50;
  font-size: 11px;
  white-space: nowrap;
}
.tp-src-custom {
  background: #fde8d8;
  color: #b34700;
  font-weight: 600;
}

/* Grid blowout guard: let grid children shrink below content min-width and
 * let the filter row wrap instead of forcing the 1fr track wider. */
.cat-layout > .cat-main { min-width: 0; }
.cat-layout > .cat-sidebar { min-width: 0; }
.cat-filter { flex-wrap: wrap; }

/* Geo-detected country hint in the inquiry form */
.tp-geo-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.tp-geo-hint[hidden] { display: none; }

/* Inquiry inbox: UA line under the IP */
.tp-ua-short {
  color: #787c82;
  font-size: 11px;
  line-height: 1.4;
  cursor: help;
}

/* Inquiry form: last-viewed product chip */
.tp-last-product {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface-light);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.tp-last-product strong { color: var(--brand-navy); }
.tp-last-product button {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.tp-last-product button:hover { background: var(--cta-orange); color: var(--white); }

/* =====================================================================
 * News & Insights — blog cards (home.php) + single article (single.php)
 * ===================================================================== */

/* Card grid */
.tp-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tp-news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.tp-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(242, 101, 34, 0.35);
}
.tp-news-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-light);
}
.tp-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.tp-news-card:hover .tp-news-thumb img { transform: scale(1.04); }
.tp-news-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(11, 11, 13, 0.82);
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.tp-news-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tp-news-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.tp-news-meta a { color: var(--brand-orange); }
.tp-news-meta a:hover { color: var(--brand-orange-hover); }
.tp-news-dot { opacity: 0.5; }
.tp-news-title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.tp-news-title a { color: var(--text-primary); }
.tp-news-title a:hover { color: var(--brand-orange); }
.tp-news-excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1rem;
}
.tp-news-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cta-orange);
  font-weight: 600;
  font-size: 0.88rem;
}
.tp-news-more::after { content: '→'; transition: transform 0.15s var(--ease-out); }
.tp-news-more:hover::after { transform: translateX(4px); }

/* Single article */
.tp-single-container { max-width: 880px; }
.tp-single-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.tp-single-hero {
  margin: 0 0 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.tp-single-hero img { width: 100%; height: auto; display: block; }
.tp-single-content { font-size: 1.02rem; line-height: 1.8; color: var(--text-secondary); }
.tp-single-content h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin: 2.2rem 0 0.9rem;
}
.tp-single-content h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 1.8rem 0 0.7rem;
}
.tp-single-content p { margin-bottom: 1.15rem; }
.tp-single-content ul,
.tp-single-content ol {
  margin: 0 0 1.25rem 1.4rem;
  color: var(--text-secondary);
}
.tp-single-content li { margin-bottom: 0.45rem; }
.tp-single-content strong { color: var(--text-primary); }
.tp-single-content a { color: var(--brand-orange); text-decoration: underline; }
.tp-single-content a:hover { color: var(--brand-orange-hover); }
.tp-single-content img { border-radius: 10px; margin: 1rem 0; }
.tp-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}
.tp-single-content th,
.tp-single-content td {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
}
.tp-single-content th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
}
.tp-single-content td { color: var(--text-secondary); }
.tp-single-content blockquote {
  margin: 0 0 1.5rem;
  padding: 1rem 1.4rem;
  border-left: 3px solid var(--brand-orange);
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

/* Single article CTA strip */
.tp-single-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 3rem 0 2rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.tp-single-cta h3 { margin-bottom: 0.4rem; }
.tp-single-cta p { margin: 0; font-size: 0.92rem; max-width: 480px; }

/* Prev / next */
.tp-single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.tp-single-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease-out);
}
.tp-single-nav-item:hover { border-color: var(--brand-orange); }
.tp-single-nav-item.tp-next { text-align: right; }
.tp-single-nav-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tp-single-nav-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .tp-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tp-news-grid { grid-template-columns: 1fr; }
  .tp-single-nav { grid-template-columns: 1fr; }
  .tp-single-cta { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
 * Factory section (#factory) — text legibility over the fleet photo.
 *
 * scene-fleet.webp averages 56% luminance with 45% of pixels above 170
 * (sky-dominated shot). White copy placed directly on it measured
 * ~1.1:1 contrast — far below the 4.5:1 body-text floor. The scrim
 * below is calibrated against the brightest rendered patch (247/255):
 * composed result ≈ 8.5:1 for white body copy and ≈ 3.2:1 for the
 * 36px orange numerals (large-text floor is 3:1).
 * ===================================================================== */
#factory.elementor-section {
  background-image:
    linear-gradient(180deg,
      rgba(11, 11, 13, 0.80) 0%,
      rgba(11, 11, 13, 0.72) 45%,
      rgba(11, 11, 13, 0.88) 100%),
    url("assets/images/photos/scene-fleet.webp");
  background-position: center center, center center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}
#factory.elementor-section .elementor-heading-title {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
#factory.elementor-section h3.elementor-heading-title {
  font-weight: 700; /* Space Grotesk tops out at 700 — 800 was synthesized */
}
#factory.elementor-section p {
  color: rgba(255, 255, 255, 0.92) !important; /* lift inline 0.75/0.78 */
}

/* =====================================================================
 * AA CONTRAST HARDENING · 2026-09 审查（ui-ux-pro-max）追加
 *
 * 依据实测：#F47B20 作为浅色表面上的小字仅 2.5–2.7:1，作为白字
 * 按钮底色仅 2.73:1，均低于 WCAG AA 的 4.5:1。
 * 策略：#F47B20 保留在深色表面（藏青/工业蓝，≥6:1）与装饰笔画；
 * 失效场景换用以下角色色：
 *   --text-orange       #B54A0A  浅色表面小字/图标（白底 5.32:1，#F5F7FA 4.96:1）
 *   --btn-orange        #C25510  白字按钮/徽章底（4.56:1）
 *   --btn-orange-hover  #B54A0A  按钮悬停（5.32:1）
 * ===================================================================== */
:root {
  --text-orange: #B54A0A;
  --btn-orange: #C25510;
  --btn-orange-hover: #B54A0A;
}

/* --- 1 · 浅色表面上的橙色小字 → 文字橙 --- */
.section-eyebrow,
.category-card-link,
.tp-featured-card-model,
.tp-featured-card-link,
.tp-featured-card-title a:hover,
.product-card-model,
.product-info .product-model,
.product-rating,
.tp-news-more,
.cat-card-viewall,
.cat-card-list a:hover,
.cat-card-title a:hover,
.cat-bottom-intro a:hover,
.tp-cat-product-title a:hover,
.pc-simple-name:hover,
.cat-side-sub a.current,
.tp-timeline-year,
.breadcrumb a:hover {
  color: var(--text-orange);
}

/* 首页 Elementor 眉题标题（组件自带颜色，需组件级覆盖；
   tpfact3 位于深色 Factory 区保持亮橙不覆盖） */
.elementor-element-tprange3 .elementor-heading-title,
.elementor-element-tpproc3 .elementor-heading-title,
.elementor-element-tpcert3 .elementor-heading-title,
.elementor-element-tptest3 .elementor-heading-title,
.elementor-element-tpfaq3 .elementor-heading-title {
  color: var(--text-orange) !important;
}

/* --- 2 · 橙底白字按钮/徽章 → 按钮橙 --- */
.btn-primary,
.nav-cta,
.btn-card-primary,
.tp-news-badge,
.pc-simple-inquiry,
.tp-pagination .page-numbers.current,
.cat-main .pagination .page-numbers.current {
  background: var(--btn-orange);
}
.btn-primary:hover,
.nav-cta:hover,
.btn-card-primary:hover {
  background: var(--btn-orange-hover);
}
.cta-strip {
  background: linear-gradient(135deg, var(--btn-orange) 0%, var(--btn-orange-hover) 100%);
}
/* Elementor 首页底部 CTA 橙色横幅（同白字对比问题） */
.elementor-element-tpcta1,
.elementor-element-tpcta1 > .elementor-widget-wrap {
  background-color: var(--btn-orange) !important;
}
.tp-last-product button:hover,
.cat-filter-clear:hover {
  background: var(--btn-orange);
}

/* --- 3 · 焦点环：实色高对比（原 70% 透明橙合成后仅 ~2.3:1），
          并为表单控件补齐 focus-visible --- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid var(--text-orange);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--text-orange);
  outline-offset: 1px;
}

/* --- 4 · 按压反馈（原全站 0 条 :active）--- */
.btn:active,
.nav-cta:active,
.btn-card-primary:active,
.btn-card-secondary:active,
.btn-outline:active,
.btn-secondary:active,
.btn-on-accent:active,
.filter-reset:active,
.cat-filter-clear:active,
.tp-news-more:active {
  transform: translateY(1px);
}

/* =====================================================================
 * Homepage PRODUCT RANGE — dynamic random category cards
 * [tp_home_category_cards index="n"] lives one per Elementor column
 * (tpcat1..tpcat6). Fixed 4:3 media, clamped copy, equal-height columns
 * so the six random category tiles always align with the two fixed CTA
 * tiles: two rows x four columns.
 * ===================================================================== */
.elementor-element-tpcards1 .elementor-column[class*="elementor-element-tpcat"] > .elementor-element-populated {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 12px 0 rgba(15, 31, 58, 0.10);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.elementor-element-tpcards1 .elementor-column[class*="elementor-element-tpcat"] {
  transition: transform 0.2s var(--ease-out, ease), box-shadow 0.2s var(--ease-out, ease), border-color 0.2s var(--ease-out, ease);
}
.elementor-element-tpcards1 .elementor-column[class*="elementor-element-tpcat"]:hover {
  transform: translateY(-3px);
}
.elementor-element-tpcards1 .elementor-column[class*="elementor-element-tpcat"]:hover > .elementor-element-populated {
  border-color: var(--cta-orange, #f47b20);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.14);
}
.elementor-element-tpcards1 [class*="elementor-element-tpcat"] .elementor-widget-wrap,
.elementor-element-tpcards1 [class*="elementor-element-tpcat"] .elementor-widget-shortcode,
.elementor-element-tpcards1 [class*="elementor-element-tpcat"] .elementor-widget-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin: 0;
}
.tp-home-cat-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: transparent;
}
.tp-home-cat-card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #0b1f3a;
  flex: 0 0 auto;
}
.tp-home-cat-card-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.35s ease;
}
.tp-home-cat-card:hover .tp-home-cat-card-media img {
  transform: scale(1.04);
}
.tp-home-cat-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  min-width: 0;
}
.tp-home-cat-card-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F26522;
  margin-bottom: 4px;
}
.tp-home-cat-card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  min-height: calc(17px * 1.3 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-home-cat-card-title a {
  color: #0b1f3a;
  text-decoration: none;
}
.tp-home-cat-card-desc {
  margin: 6px 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #4a5568;
  min-height: calc(13px * 1.55 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-home-cat-card-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--cta-orange, #f47b20);
  text-decoration: none;
}
.tp-home-cat-card-link:hover {
  color: #d95d10;
}

/* Phone: Elementor stacks columns full width; keep fixed title/desc blocks */
@media (max-width: 767px) {
  .tp-home-cat-card-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F26522;
  margin-bottom: 4px;
}
.tp-home-cat-card-title { min-height: 0; }
  .tp-home-cat-card-desc { min-height: 0; }
}


/* =====================================================================
 * PRODUCT RANGE — 20px gutters + separate CTA row (reference layout)
 *
 * The card columns are 33.333% wide but Elementor's own column gap is
 * neutralised by the card padding reset above, so the cards end up edge to
 * edge. Declare the gutter here: three cards per row, the two CTA tiles in
 * their own 50/50 row underneath (.tp-cta-row is set on that section).
 * ===================================================================== */
.elementor-element-tpcards1 > .elementor-container,
.tp-cta-row > .elementor-container {
  column-gap: 20px;
  row-gap: 20px;
}
.elementor-element-tpcards1 .elementor-column[class*="elementor-element-tpcat"] > .elementor-element-populated {
  margin: 0 !important;
}
@media (min-width: 1025px) {
  .elementor-element-tpcards1 > .elementor-container > .elementor-column[class*="elementor-element-tpcat"] {
    width: calc((100% - 40px) / 3);
  }
  .tp-cta-row > .elementor-container > .elementor-column {
    width: calc((100% - 20px) / 2);
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-element-tpcards1 > .elementor-container > .elementor-column[class*="elementor-element-tpcat"] {
    width: calc((100% - 20px) / 2);
  }
}
/* Orange CTA tile: the link carries an inline orange that matches the tile
   background, so it vanished. White reads on orange; the navy tile keeps its
   orange link untouched. */
#tp-card-cta a,
#tp-card-cta .elementor-heading-title {
  color: #ffffff !important;
}
#tp-card-cta a:hover {
  text-decoration: underline;
}

/* =====================================================================
 * Product gallery: keep the photo inside its box
 *
 * .gallery-main / .gallery-thumb are fixed-height grid containers
 * (place-items: center) with no explicit row track, so `height: 100%` on
 * the <img> resolves against an auto-sized row, is dropped, and the image
 * falls back to its intrinsic ratio height. A square product photo then
 * grows past the box: it gets clipped on desktop and, once the layout
 * stacks on tablet, the overflowing thumbnails bleed into the copy below.
 * Pin every gallery image to its container instead.
 * ===================================================================== */
.product-gallery .gallery-main,
.product-gallery .gallery-thumb {
  position: relative;
  overflow: hidden;
}
.product-gallery .gallery-main img,
.product-gallery .gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.product-gallery .gallery-thumb img {
  object-fit: cover;
}

/* =====================================================================
 * Homepage trust modules: factory bento gallery (03), cases & news
 * article cards (04/05). Sits last so it wins over earlier rules.
 * ===================================================================== */
.tp-factory-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 1rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}
.tp-fg-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
  background: var(--surface-light);
}
.tp-fg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.tp-fg-item:hover img { transform: scale(1.04); }
.tp-fg-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 31, 58, 0.78) 100%);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tp-fg-1 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  .tp-factory-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .tp-fg-1 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .tp-factory-gallery { grid-auto-rows: 150px; gap: 0.7rem; }
  .tp-fg-item figcaption { font-size: 0.78rem; padding: 1.2rem 0.7rem 0.5rem; }
}

/* Cases / news cards */
.tp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding-top: 0.5rem;
}
.tp-article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.tp-article-card:hover {
  border-color: var(--cta-orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11, 31, 58, 0.1);
}
.tp-article-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--surface-light);
  overflow: hidden;
}
.tp-article-media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  display: block;
}
.tp-card-noimg { display: block; width: 100%; height: 100%; background: var(--surface-mid); }
.tp-article-body { padding: 1rem 1.1rem 1.2rem; }
.tp-article-body time {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tp-article-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0.4rem 0 0.5rem;
}
.tp-article-body h3 a { color: var(--brand-navy); }
.tp-article-body h3 a:hover { color: var(--text-orange); }
.tp-article-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 900px) { .tp-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tp-cards-grid { grid-template-columns: 1fr; } }

/* Cases carousel: 3 per page, PC arrow navigation */
.tp-carousel { position: relative; }
.tp-cviewport { overflow: hidden; }
.tp-ctrack {
  display: flex;
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}
.tp-ctrack .tp-cpage {
  flex: 0 0 100%;
  min-width: 0;
}
.tp-cnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--brand-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), opacity 0.2s, transform 0.2s var(--ease-out);
}
.tp-cnav:hover { border-color: var(--cta-orange); color: var(--text-orange); }
.tp-cnav:active { transform: translateY(-50%) scale(0.94); }
.tp-cnav-prev { inset-inline-start: -1.4rem; }
.tp-cnav-next { inset-inline-end: -1.4rem; }
.tp-cnav[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }
@media (max-width: 900px) {
  .tp-cnav { display: none; }
  .tp-ctrack { flex-wrap: wrap; transition: none; }
  .tp-ctrack .tp-cpage:not(:first-child) { display: none; }
}

/* =====================================================================
 * PRODUCT DETAIL — module layout refinement (2026-09)
 * Layout/typography pass over the single-trailer content modules:
 * consistent section rhythm, one shared heading language, a two-column
 * spec sheet, card treatment for the side modules, and normalization of
 * the legacy inline-styled description markup (kche-* / Arial spans).
 * Content markup itself is untouched. Sits last so it wins over the
 * dark-era base rules and remediation.css overlaps (via .cat-main).
 * ===================================================================== */

/* ---- 1. Section rhythm: every content module starts on a hairline ---- */
.cat-main > .product-description,
.cat-main > .specs-table-wrap,
.cat-main > .optional-configs,
.cat-main > .detail-certs,
.cat-main > .related-trailers {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-color);
}
.cat-main > .catalogue-guide,
.cat-main > .inquiry-form {
  margin-top: 2.75rem;
}
.product-detail-layout { margin-bottom: 2.75rem; }

/* ---- 2. One heading language for all module titles ---- */
.specs-table-wrap > h2,
.detail-certs > h2,
.related-trailers > h2,
.optional-configs > h4,
.cat-main .inquiry-form h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.32rem;
  line-height: 1.25;
  color: var(--brand-navy);
  margin-bottom: 1.25rem;
}
.specs-table-wrap > h2::before,
.detail-certs > h2::before,
.related-trailers > h2::before,
.optional-configs > h4::before,
.cat-main .inquiry-form h3::before {
  content: '';
  flex: 0 0 auto;
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--cta-orange);
}
.specs-table-wrap > p,
.detail-certs > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: -0.35rem 0 1.25rem;
}

/* ---- 3. Gallery polish ---- */
.product-gallery .gallery-main { border-radius: 10px; }
.product-gallery .gallery-thumb {
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.product-gallery .gallery-thumb:hover { transform: translateY(-2px); }
.product-gallery .gallery-thumb.active {
  border-color: var(--cta-orange);
  box-shadow: 0 0 0 2px rgba(244, 123, 32, 0.22);
}

/* ---- 4. Info column: quote-style lead, tidy highlights, full-width CTA ---- */
.product-info .product-lead {
  font-size: 1.02rem;
  line-height: 1.75;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--cta-orange);
  margin-bottom: 1.25rem;
}
.product-info .product-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.5rem;
  margin: 1.5rem 0 1.75rem;
}
.product-info .product-highlights li { margin-bottom: 0; }
.product-info-actions { margin-top: 1.75rem; }
.product-info-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ---- 5. Description: normalize the imported inline styling ---- */
.product-description {
  max-width: 940px;
  font-size: 1rem;
}
.product-description p { margin-bottom: 1.15rem; }
/* Normalize the imported inline styling: Arial/black/16px spans, plus the
   leftover paints — the source site styled standalone lines as white text
   on navy (#000066) and phone numbers as green pills. Once color is
   re-pinned to inherit, those backgrounds leave dark-on-dark (and
   gray-on-green) text, so strip them too. */
.product-description span {
  font-family: inherit !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  background-color: transparent !important;
}
/* Pseudo-headings: standalone bold lines (20px+ lead spans in the imported
   markup) get the same section-heading treatment as h3–h5, so removing the
   inline navy band leaves a styled title rather than plain bold text.
   These paragraphs often carry trailing content (numbered items) in a
   sibling span, so keep them block-level with an accent edge and scope
   the heading typography to the first span chain only. */
.product-description p:has(> span[style*="font-size:2"]) {
  margin: 1.7rem 0 0.9rem;
  padding-inline-start: 0.8rem;
  border-inline-start: 4px solid var(--cta-orange);
}
.product-description p:has(> span[style*="font-size:2"]) > span:first-child {
  font-family: var(--font-display) !important;
  font-size: 1.06rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--brand-navy) !important;
}
.product-description p:has(> span[style*="font-size:2"]) strong { color: inherit; }
.product-description a {
  color: #155ca3 !important;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-description a:hover { color: var(--text-orange) !important; }

/* In-content headings: main title on a light navy-tinted band with an
   orange edge (same family as the module titles), subsections as plain
   orange-bar titles. Kept light after user feedback that the solid navy
   band read as too heavy; inline #ffffff spans from the imported markup
   are re-pinned by the span normalization below. */
.product-description h1,
.product-description h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  max-width: 100%;
  font-size: 1.26rem;
  line-height: 1.4;
  color: var(--brand-navy);
  background: linear-gradient(135deg, #EDF1F7 0%, #E2E9F2 100%);
  border-inline-start: 4px solid var(--cta-orange);
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  margin: 1.6rem 0 1.3rem;
}
.product-description h3,
.product-description h4,
.product-description h5 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.06rem;
  line-height: 1.35;
  color: var(--brand-navy);
  margin: 1.7rem 0 0.9rem;
}
.product-description h3::before,
.product-description h4::before,
.product-description h5::before {
  content: '';
  flex: 0 0 auto;
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--cta-orange);
}
/* Legacy decorative span from the imported markup (kchespan is empty) */
.product-description .kchespan { display: none !important; }

/* Lists: two-column feature grids with square accent markers.
   list-style:none must also land on the <li> itself — imported markup
   carries inline list-style-type:disc which otherwise wins over the
   inherited value and stacks a second bullet under the accent square. */
.product-description ul,
.product-description .pro-ulli1 {
  list-style: none !important;
  padding-left: 0.15rem !important;
  margin: 1.3rem 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 2.25rem;
}
.product-description ul li,
.product-description .pro-ulli1 li {
  list-style: none !important;
  position: relative;
  padding-inline-start: 1.15rem;
  margin: 0 !important;
  line-height: 1.65;
}
.product-description ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cta-orange);
}
.product-description img {
  display: block;
  margin: 1.7rem auto;
  max-width: min(100%, 860px);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.08);
}

/* ---- 6. Spec sheet: label/value rows, split into two columns when wide ---- */
.specs-table-wrap .specs-table {
  display: block;
  border-radius: 10px;
}
.specs-table-wrap .specs-table tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
}
.specs-table-wrap .specs-table tr {
  display: grid;
  grid-template-columns: minmax(110px, 2fr) 3fr;
  align-items: baseline;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.specs-table-wrap .specs-table tbody tr:nth-child(even) { background: transparent; }
.specs-table-wrap .specs-table tbody tr:last-child { border-bottom: none; }
.specs-table-wrap .specs-table tbody tr:hover { background: rgba(244, 123, 32, 0.05); }
.specs-table-wrap .specs-table th,
.specs-table-wrap .specs-table td {
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.specs-table-wrap .specs-table th,
.specs-table-wrap .specs-table td:first-child {
  width: auto;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--brand-navy);
  text-align: start;
}
.specs-table-wrap .specs-table td:last-child { color: var(--text-secondary); }

/* ---- 7. Optional configurations: light card with accent edge ---- */
.optional-configs {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-inline-start: 4px solid var(--cta-orange);
  border-radius: 10px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 3px 12px rgba(11, 31, 58, 0.05);
}
.optional-configs ul { gap: 0.5rem 1.75rem; }

/* ---- 8. Certifications: badges ---- */
.detail-cert {
  border-radius: 10px;
  background: var(--bg-card);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.detail-cert:hover {
  border-color: var(--cta-orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11, 31, 58, 0.1);
}
.detail-cert-icon {
  background: var(--brand-navy);
  color: var(--white);
  font-family: var(--font-display);
}

/* ---- 9. Catalogue guide: accordion + tidy option list ---- */
.cat-main .catalogue-guide { border-radius: 10px; }
.cat-main .catalogue-guide h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.32rem;
  text-align: start;
  margin-bottom: 0.75rem;
}
.cat-main .catalogue-guide h2::before {
  content: '';
  flex: 0 0 auto;
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--cta-orange);
}
.cat-main .catalogue-guide > p { margin-bottom: 1rem; }
.cat-main .catalogue-guide ul {
  list-style: none;
  padding-left: 0.15rem;
  margin: 1.1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.75rem;
}
.cat-main .catalogue-guide ul li {
  position: relative;
  padding-inline-start: 1.05rem;
  margin: 0;
  line-height: 1.6;
}
.cat-main .catalogue-guide ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cta-orange);
}
.cat-main .catalogue-guide details {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  margin: 1.1rem 0;
}
.cat-main .catalogue-guide summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
}
.cat-main .catalogue-guide summary::-webkit-details-marker { display: none; }
.cat-main .catalogue-guide summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  color: var(--cta-orange);
  transition: transform 0.2s var(--ease-out);
}
.cat-main .catalogue-guide details[open] summary::after { content: '−'; }
.cat-main .catalogue-guide details p {
  padding: 0 1.1rem 0.95rem;
  margin: 0;
}
/* Source citation: the dark-era rule pins it to #D4D4D8 for a navy card,
   but remediation.css repaints the card light — light gray on #F5F7FA is
   ~1.4:1 and effectively invisible. Restore a readable muted gray. */
.catalogue-guide .catalogue-source,
.catalogue-source,
.tp-catalogue-source {
  color: #5A6670 !important;
}

/* ---- 10. Inquiry form: white card on the light section ---- */
.cat-main .inquiry-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.07);
  padding: 2.25rem;
}
.cat-main .inquiry-form .form-submit {
  width: 100%;
  margin-top: 0.25rem;
  border-radius: 8px;
}

/* ---- 11. Related models: link cards instead of a bare list ---- */
.cat-main .related-trailers ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cat-main .related-trailers li { margin: 0; }
.cat-main .related-trailers li a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  padding: 1.05rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.cat-main .related-trailers li a::after {
  content: '→';
  align-self: flex-end;
  color: var(--cta-orange);
  font-weight: 700;
  transition: transform 0.2s var(--ease-out);
}
.cat-main .related-trailers li a:hover {
  border-color: var(--cta-orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11, 31, 58, 0.1);
}
.cat-main .related-trailers li a:hover::after { transform: translateX(3px); }
.cat-main .related-trailers > p { margin: 1.1rem 0 0; }
.cat-main .related-trailers > p a {
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cat-main .related-trailers > p a:hover { color: var(--text-orange); }

/* ---- 12. RTL (ar): flip the few physical leftovers above ---- */
html[dir="rtl"] .optional-configs {
  border-left: 1px solid var(--border-color);
  border-right: 4px solid var(--cta-orange);
  border-radius: 10px;
}
html[dir="rtl"] .cat-main .related-trailers li a::after { content: '←'; }
html[dir="rtl"] .cat-main .related-trailers li a:hover::after { transform: translateX(-3px); }
html[dir="rtl"] .product-description ul,
html[dir="rtl"] .product-description .pro-ulli1 { padding-right: 0.15rem !important; }

/* ---- 13. Responsive ---- */
/* The fixed quick-contact rail (physical right edge) overlaps the info
   column's text on laptop widths; give the detail shell clearance. The
   rail is always on the physical right regardless of direction. */
@media (min-width: 769px) and (max-width: 1680px) {
  .single-trailer .container-xwide { padding-right: 84px; }
}
@media (max-width: 1024px) {
  .cat-main .related-trailers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .specs-table-wrap .specs-table tbody { grid-template-columns: 1fr; }
  .cat-main .inquiry-form { padding: 1.6rem 1.25rem; }
}
@media (max-width: 760px) {
  .product-description ul,
  .product-description .pro-ulli1 { grid-template-columns: 1fr; }
  .cat-main .catalogue-guide ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-info .product-highlights { grid-template-columns: 1fr; }
  .cat-main .related-trailers ul { grid-template-columns: 1fr; }
  .detail-cert-grid { grid-template-columns: repeat(2, 1fr); }
}


/* News category tab bar */
.tp-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.5rem 0 1.8rem;
}
.tp-cat-tab {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--brand-navy);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.tp-cat-tab:hover { border-color: var(--cta-orange); color: var(--text-orange); }
.tp-cat-tab.active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: var(--white);
  cursor: default;
}
@media (max-width: 600px) {
  .tp-cat-tabs { gap: 0.45rem; margin: 1.6rem 0 1.2rem; }
  .tp-cat-tab { padding: 0.4rem 0.9rem; font-size: 0.84rem; }
}

/* ===== About 集群：子页导航与集散页卡片 ===== */
.tp-about-subnav-wrap { margin: 1.8rem 0 0.6rem; }
.tp-about-nav-title {
  font-size: 1.5rem;
  color: var(--brand-navy);
  margin: 2.5rem 0 1.4rem;
}
.tp-about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.tp-about-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.tp-about-card:hover {
  border-color: var(--cta-orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11, 31, 58, 0.1);
}
.tp-about-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy);
}
.tp-about-card-desc { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }
.tp-about-card-arrow { margin-top: auto; color: var(--cta-orange); font-weight: 700; }
.tp-about-card:hover .tp-about-card-arrow { transform: translateX(3px); }
@media (max-width: 900px) { .tp-about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tp-about-cards { grid-template-columns: 1fr; } }

/* About 子页正文排版（独立类名，避免与主题 page.php 的 tp-page-content 冲突） */
.tp-about-page { max-width: 860px; margin: 0 auto; }
.tp-about-page h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.4rem;
  color: var(--brand-navy);
  margin: 2.4rem 0 1rem;
}
.tp-about-page h2::before {
  content: '';
  flex: 0 0 auto;
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--cta-orange);
}
.tp-about-page p { line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.1rem; }
.tp-about-page img { border-radius: 10px; }

/* 数据卡 */
.tp-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}
.tp-stat-box {
  padding: 1.1rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  text-align: center;
}
.tp-stat-box b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--brand-navy);
  line-height: 1.2;
}
.tp-stat-box span { font-size: 0.82rem; color: var(--text-muted); }

/* 价值观/优势卡片 */
.tp-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.tp-value-card {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--cta-orange);
  border-radius: 8px;
  background: var(--bg-card);
}
.tp-value-card b { display: block; font-size: 1rem; color: var(--brand-navy); margin-bottom: 0.35rem; }
.tp-value-card span { font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); }

/* 时间线 */
.tp-timeline {
  margin: 1.8rem 0 0.4rem;
  padding-inline-start: 1.8rem;
  border-inline-start: 2px solid var(--border-color);
}
.tp-tl-item { position: relative; padding: 0 0 1.9rem 0; }
.tp-tl-item:last-child { padding-bottom: 0.2rem; }
.tp-tl-item::before {
  content: '';
  position: absolute;
  inset-inline-start: calc(-1.8rem - 7px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cta-orange);
  box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.15);
}
.tp-tl-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-navy);
}
.tp-tl-item p { margin: 0.3rem 0 0; font-size: 0.92rem; }

/* 图片网格 */
.tp-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0;
}
.tp-photo-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
@media (max-width: 900px) {
  .tp-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .tp-value-grid { grid-template-columns: 1fr; } }

/* 主导航通用下拉：含子项的菜单（About 集群等），样式对齐语言切换器 */
.nav-main li.menu-item-has-children { position: relative; }
.nav-main li.menu-item-has-children > a::after {
  content: '▾';
  font-size: 0.7em;
  margin-inline-start: 0.35em;
  opacity: 0.7;
}
.nav-main li.menu-item-has-children > .sub-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  min-width: 210px;
  background: var(--brand-navy);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  padding: 0.5rem 0;
  z-index: 200;
}
@media (min-width: 769px) {
  .nav-main li.menu-item-has-children:hover > .sub-menu,
  .nav-main li.menu-item-has-children:focus-within > .sub-menu { display: flex; }
}
.nav-main li.menu-item-has-children > .sub-menu a {
  padding: 0.55rem 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-main li.menu-item-has-children > .sub-menu a:hover,
.nav-main li.menu-item-has-children > .sub-menu a:focus {
  color: var(--cta-orange);
  background: rgba(255, 255, 255, 0.06);
}
/* 移动端折叠菜单：子项默认收起，点右侧箭头展开（About / Products / 语言切换通用） */
.nav-main .tp-sub-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-main .tp-sub-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
  margin-top: -3px;
}
.nav-main li.tp-sub-open > .tp-sub-toggle .tp-sub-chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}
@media (max-width: 768px) {
  .nav-main li > a { flex: 1 1 auto; min-width: 0; }
  .nav-main li { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
  .nav-main .tp-sub-toggle { display: inline-flex; }
  .nav-main li.menu-item-has-children > .sub-menu,
  .nav-main li.wpml-ls-menu-item > .sub-menu {
    display: none;
    position: static;
    min-width: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0.2rem 0 0.35rem 1rem;
    border-inline-start: 2px solid rgba(255, 255, 255, 0.15);
  }
  .nav-main li.tp-sub-open > .sub-menu { display: flex; }
  .nav-main li.menu-item-has-children > a::after,
  .nav-main li.wpml-ls-menu-item > a::after { content: ''; }
  .nav-main li.menu-item-has-children > .sub-menu a,
  .nav-main li.wpml-ls-menu-item > .sub-menu a { color: rgba(255, 255, 255, 0.75); }
}
