/* ==========================================================================
   358-0286.com — Cat Yellow + Charcoal Industrial Theme
   Caterpillar Mounting Sandwich / Roller Wedge Specialist
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --primary: #FFCD11;
  --primary-dark: #D4A800;
  --primary-light: #FFF3C4;
  --secondary: #2D2D2D;
  --secondary-mid: #404040;
  --accent: #D32F2F;
  --accent-dark: #B71C1C;
  --bg: #FAFAF7;
  --surface: #F0F0EC;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --success: #2E7D32;
  --border: #D5D5D0;
  --white: #FFFFFF;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow: 0 2px 8px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.15);
  --transition: .25s ease;
  --max-w: 1200px;
  --header-h: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--secondary);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* --- Utility --- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   TOPBAR — dark charcoal strip
   ========================================================================== */
.topbar {
  background: var(--secondary);
  color: #ccc;
  font-size: .82rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--primary); }
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }

/* ==========================================================================
   HEADER — charcoal background, yellow logo accent
   ========================================================================== */
.site-header {
  background: var(--secondary-mid);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--primary); }

/* --- Nav --- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #ddd;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,205,17,.15);
  color: var(--primary);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   HERO — dark bg with yellow accents
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--secondary) 50%, var(--secondary-mid) 100%);
  color: var(--white);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.1rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 em {
  color: var(--primary);
  font-style: normal;
}
.hero p {
  color: #bbb;
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-img {
  border-radius: var(--radius-lg);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211,47,47,.35);
}
.btn-secondary {
  background: var(--primary);
  color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--secondary);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--secondary);
}
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1DA851;
  color: var(--white);
}

/* ==========================================================================
   SECTION DEFAULTS
   ========================================================================== */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--surface);
}
.section-dark {
  background: var(--secondary);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #bbb; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.section-header h2 {
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   QUICK SPECS CARD
   ========================================================================== */
.quick-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.spec-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 18px;
  border-radius: var(--radius);
}
.spec-item .label {
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.spec-item .value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ==========================================================================
   PRODUCT CARDS GRID
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 3px solid var(--primary);
}
.card-body {
  padding: 20px;
}
.card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card-body p { font-size: .92rem; color: var(--text-muted); margin-bottom: 12px; }

/* ==========================================================================
   COMPATIBLE MODELS — pill/tag layout
   ========================================================================== */
.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.model-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--secondary);
  transition: all var(--transition);
}
.model-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}

/* ==========================================================================
   PRODUCT PAGE — LEFT sidebar layout
   ========================================================================== */
.product-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 40px 0;
}
.product-sidebar {
  order: -1; /* sidebar on left */
}
.product-content {
  order: 1;
}

/* Sidebar widgets */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.sidebar-widget ul {
  list-style: none;
  padding: 0;
}
.sidebar-widget li {
  padding: 6px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--surface);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-widget li:last-child { border-bottom: none; }

.quote-widget {
  background: var(--secondary);
  color: var(--white);
  border: none;
}
.quote-widget h3 {
  color: var(--white);
  border-bottom-color: var(--primary);
}
.quote-widget p { color: #bbb; font-size: .9rem; }
.quote-widget .btn { width: 100%; justify-content: center; margin-top: 8px; }

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  margin: 4px 4px 4px 0;
}

/* ==========================================================================
   SPECS TABLE
   ========================================================================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .95rem;
}
.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.spec-table tr:nth-child(even) { background: var(--surface); }
.spec-table tr:hover { background: var(--primary-light); }
.spec-table td:first-child { font-weight: 600; color: var(--secondary); }

/* ==========================================================================
   CROSS-REFERENCE TABLE
   ========================================================================== */
.xref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 20px 0;
}
.xref-table th {
  background: var(--primary);
  color: var(--secondary);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
}
.xref-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.xref-table tr:nth-child(even) { background: var(--surface); }
.xref-table tr:hover { background: var(--primary-light); }

/* ==========================================================================
   FEATURES GRID (4 cards)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 0; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--secondary);
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--secondary-mid);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.cta-band .btn-primary {
  font-size: 1.05rem;
  padding: 14px 34px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 50px 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: var(--font);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--surface); }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-item.open .faq-question {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer-inner {
  padding: 18px 20px;
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  padding: 14px 0;
  font-size: .85rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb li::after { content: '/'; margin-left: 6px; color: var(--text-muted); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb li:last-child { color: var(--secondary); font-weight: 600; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,205,17,.25);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}
.form-status.success {
  display: block;
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid #a5d6a7;
}
.form-status.error {
  display: block;
  background: #ffebee;
  color: var(--accent);
  border: 1px solid #ef9a9a;
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-yellow { background: var(--primary); color: var(--secondary); }
.badge-red { background: var(--accent); color: var(--white); }
.badge-green { background: var(--success); color: var(--white); }
.badge-dark { background: var(--secondary); color: var(--white); }

/* ==========================================================================
   ARTICLE PAGES
   ========================================================================== */
.article-header {
  background: var(--secondary);
  color: var(--white);
  padding: 50px 0;
  border-bottom: 4px solid var(--primary);
}
.article-header h1 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.article-header .meta { color: #999; font-size: .9rem; }
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px;
}
.article-body h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.article-body h3 { margin-top: 28px; margin-bottom: 10px; }
.article-body ul, .article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background: var(--surface);
  margin: 20px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Inline callout */
.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
.callout-danger {
  background: #ffebee;
  border-left-color: var(--accent);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--primary);
  font-size: .95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col p { font-size: .88rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #aaa; font-size: .88rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #333;
  text-align: center;
  font-size: .82rem;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.page-404 {
  text-align: center;
  padding: 100px 20px;
}
.page-404 h1 { font-size: 5rem; color: var(--primary); margin-bottom: 10px; }
.page-404 p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; }

/* ==========================================================================
   WHY CHOOSE GRID
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}
.why-card .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.why-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.why-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-img-wrap { order: -1; max-width: 400px; margin: 0 auto; }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-sidebar { order: 2; }
  .product-content { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 40px 0; }
  .hero { padding: 40px 0 30px; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--secondary-mid);
    flex-direction: column;
    padding: 12px;
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; width: 100%; }
  .menu-toggle { display: block; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
  .quick-specs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .quick-specs { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .topbar, .site-header, .site-footer, .cta-band, .sidebar-widget, .menu-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .product-layout { grid-template-columns: 1fr; }
  a { color: #000; text-decoration: underline; }
}
