/* =========================================================================
   TractorTrailerParts — Mobile-first Responsive Stylesheet
   Breakpoints:
     base   : 0 - 639px  (mobile portrait)
     sm     : >= 640px   (mobile landscape / phablet)
     md     : >= 768px   (tablet portrait)
     lg     : >= 1024px  (tablet landscape / small desktop)
     xl     : >= 1280px  (desktop / wide screen)
   ========================================================================= */

:root {
  --primary: #0f2f4a;
  --secondary: #36454f;
  --accent: #f59e0b;
  --light-bg: #f5f7fa;
  --dark-text: #1f2937;
  --muted-text: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;

  --header-height: 70px;
  --max-w: 1200px;
  --gutter: clamp(16px, 5vw, 40px);

  --transition: all 0.25s ease;

  --fs-base: clamp(15px, 0.95rem + 0.1vw, 17px);
  --fs-h1: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { word-wrap: break-word; overflow-wrap: break-word; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

section { padding: clamp(40px, 6vw, 80px) var(--gutter); }

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

/* ---------- Header & Navigation ---------- */
header {
  min-height: var(--header-height);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  gap: 16px;
}

.logo {
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.4rem);
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 1.5vw, 28px);
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--accent); }

.header-cta {
  background: var(--accent);
  color: var(--primary) !important;
  padding: 10px 18px !important;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--primary);
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 12px;
  margin: -12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(15, 47, 74, 0.65), rgba(15, 47, 74, 0.75)),
    url('../images/hero-trailer-parts.png') center/cover no-repeat;
  color: var(--white);
  padding: clamp(60px, 10vw, 120px) var(--gutter);
}

.hero-content { max-width: 820px; width: 100%; }
.hero h1 { color: var(--white); margin-bottom: 18px; font-size: clamp(1.7rem, 1.1rem + 3vw, 3rem); }
.hero p { font-size: var(--fs-lead); margin-bottom: 26px; opacity: 0.95; }

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus-visible { background: #d97706; border-color: #d97706; color: var(--white); }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--white); color: var(--primary); }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.1);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-block;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 26px;
}

.stat-item h3 {
  color: var(--accent);
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.5rem);
  margin-bottom: 4px;
}

.stat-item p { font-size: 0.85rem; opacity: 0.9; }

/* ---------- Section headers ---------- */
.section-header { text-align: center; margin-bottom: clamp(28px, 4vw, 50px); }
.section-header p { color: var(--muted-text); max-width: 700px; margin: 12px auto 0; }

/* ---------- Grids (mobile first → single column, expand at breakpoints) ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.card-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.04); }

.card-content { padding: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted-text); margin-bottom: 16px; font-size: 0.95rem; }

.card-link {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
}
.card-link:hover { color: var(--accent); }

/* Feature items */
.feature-item {
  background: var(--white);
  padding: 22px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.feature-item h3 { margin-bottom: 10px; font-size: 1.05rem; }
.feature-item p { font-size: 0.92rem; color: var(--muted-text); }

.process-item { text-align: center; }
.process-item h3 { margin-top: 12px; }

.bg-light { background: var(--light-bg); }

/* ---------- Export support ---------- */
.export-content ul { margin: 18px 0; }
.export-content li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.export-content li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* ---------- Inquiry CTA ---------- */
.inquiry-cta { background: var(--primary); color: var(--white); text-align: center; }
.inquiry-cta h2, .inquiry-cta h3 { color: var(--white); margin-bottom: 16px; }
.inquiry-cta p { max-width: 720px; margin: 0 auto 22px; opacity: 0.95; }

/* ---------- Footer ---------- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: clamp(40px, 5vw, 60px) var(--gutter) 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.footer-col h3 { color: var(--accent); margin-bottom: 16px; font-size: 1.05rem; }
.footer-col p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 12px; line-height: 1.55; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { opacity: 0.85; font-size: 0.9rem; display: inline-block; padding: 4px 0; min-height: 32px; }
.footer-col ul a:hover, .footer-col ul a:focus-visible { opacity: 1; color: var(--accent); }
.footer-col a { color: var(--white); word-break: break-word; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.75;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---------- WhatsApp floating ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #25d366;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 999;
  text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.06); }

/* ---------- Forms ---------- */
.contact-form {
  background: var(--white);
  padding: clamp(22px, 4vw, 40px);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
  color: var(--dark-text);
  min-height: 44px;
}

.form-group textarea { min-height: 110px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ---------- Page banners ---------- */
.page-banner {
  background: var(--primary);
  color: var(--white);
  padding: clamp(40px, 7vw, 80px) var(--gutter);
  text-align: center;
}
.page-banner h1 { color: var(--white); }

/* ---------- Product pages ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 24px;
}

.product-info-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

.product-info-section img { border-radius: 8px; }

.list-styled { padding-left: 20px; list-style: none; }
.list-styled li { margin-bottom: 10px; position: relative; }
.list-styled li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
  font-size: 1rem;
  color: var(--primary);
  outline: none;
  min-height: 28px;
  display: block;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }

.faq-item p { margin-top: 12px; color: var(--muted-text); line-height: 1.65; font-size: 0.95rem; }

/* ---------- Breadcrumb ---------- */
nav[aria-label="Breadcrumb"] {
  color: var(--muted-text);
  word-break: break-word;
  font-size: 0.85rem;
  padding: 14px var(--gutter) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
nav[aria-label="Breadcrumb"] a { color: var(--primary); }
nav[aria-label="Breadcrumb"] a:hover { text-decoration: underline; }

/* =========================================================================
   RESPONSIVE BREAKPOINTS — mobile first
   ========================================================================= */

@media (min-width: 640px) {
  .grid-3, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .whatsapp-btn { width: 58px; height: 58px; bottom: 24px; right: 24px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
  .product-info-section { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (min-width: 1024px) {
  :root { --header-height: 80px; }
  .grid-3, .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
  .product-info-section { gap: 50px; }
}

/* Mobile nav drawer — shows when below desktop breakpoint */
@media (max-width: 1023.98px) {
  .hamburger { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px var(--gutter);
    gap: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1050;
  }

  .nav-links.active { transform: translateX(0); }

  .nav-links a {
    width: 100%;
    padding: 14px 8px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
  }

  .nav-links .header-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: 0;
    padding: 14px 18px !important;
    justify-content: center;
  }
}

/* Very small mobile (< 380px) */
@media (max-width: 379.98px) {
  :root { --gutter: 14px; }
  .hero-stats { gap: 10px; }
  .stat-item h3 { font-size: 1rem; }
  .btn { padding: 11px 18px; font-size: 0.9rem; }
  .hero-btns { gap: 10px; flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; }
  .hero-badges .badge { font-size: 0.78rem; padding: 6px 12px; }
  .card-img { padding: 12px; }
  .card-content { padding: 18px; }
  .contact-form { padding: 20px 16px; }
  .whatsapp-btn { width: 50px; height: 50px; font-size: 22px; bottom: 14px; right: 14px; }
  .page-banner { padding: 30px 14px; }
}

/* Print */
@media print {
  header, .whatsapp-btn, .hero-btns, .hamburger, .inquiry-cta { display: none !important; }
  body { background: white; color: black; }
  a { text-decoration: underline; color: black; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Missing rules: footer-col & export-content (rebuilt) ---------- */
.footer-col h3 { color: var(--accent); margin-bottom: 16px; font-size: 1.05rem; }
.footer-col p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 12px; line-height: 1.55; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { opacity: 0.85; font-size: 0.9rem; display: inline-block; padding: 4px 0; min-height: 32px; color: var(--white); }
.footer-col ul a:hover, .footer-col ul a:focus-visible { opacity: 1; color: var(--accent); }
.footer-col a { color: var(--white); word-break: break-word; }

.export-content ul { margin: 18px 0; }
.export-content li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.export-content li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.75;
  max-width: var(--max-w);
  margin: 0 auto;
}
