/* Hi-Tech Truck Rigging — Stylesheet
   White background, black text, charcoal nav/footer, red accents */

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

:root {
  --red:       #cc0000;
  --red-dk:    #aa0000;
  --nav:       #333333;
  --nav-dk:    #222222;
  --white:     #ffffff;
  --gray-lt:   #f5f5f5;
  --gray-bd:   #dddddd;
  --text:      #333333;
  --text-dk:   #000000;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 0;
}

a                { color: var(--red); text-decoration: none; }
a:hover          { text-decoration: underline; color: var(--red-dk); }
img              { border: 0; display: block; }
p                { margin: 0 0 10px 0; }
ul               { margin: 0 0 10px 0; padding: 0 0 0 18px; }
li               { margin-bottom: 3px; }

/* ── WRAPPER ──────────────────────────────────────── */
#wrapper { width: 960px; margin: 0 auto; background: #fff; }

/* ── HEADER ──────────────────────────────────────── */
#header {
  width: 960px;
  background: #fff;
  padding: 12px 10px;
  border-bottom: 1px solid #cccccc;
  overflow: hidden;
}
#header-logo    { float: left; }
#header-logo img { height: 80px; width: auto; }
#header-contact {
  float: right;
  text-align: right;
  padding-top: 14px;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}
#header-contact .phone {
  font-size: 15px;
  font-weight: bold;
  color: #333;
}
#header-contact .phone a { color: #333; }
#header-contact .phone a:hover { color: var(--red); text-decoration: none; }

/* ── NAV ──────────────────────────────────────────── */
#nav {
  width: 960px;
  background: var(--nav);
  overflow: visible;
  position: relative;
  z-index: 100;
}
#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
#nav ul li {
  position: relative;
}
#nav ul li > a {
  display: block;
  padding: 10px 14px;
  color: #cccccc;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
#nav ul li > a:hover,
#nav ul li > a.active {
  background: var(--red);
  color: #ffffff;
}
/* Dropdown */
#nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-dk);
  min-width: 190px;
  z-index: 200;
  border-top: 2px solid var(--red);
  flex-direction: column;
}
#nav ul li:hover > ul { display: flex; }
#nav ul li ul li > a {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: normal;
  text-transform: none;
  border-bottom: 1px solid #444;
  color: #bbbbbb;
}
#nav ul li ul li > a:hover { background: var(--red); color: #fff; }

/* ── HERO SLIDER ──────────────────────────────────── */
#slider {
  width: 960px;
  height: 420px;
  position: relative;
  overflow: hidden;
  background: #111;
}
.slide {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 960px;
  height: 420px;
  background-size: cover;
  background-position: center top;
}
.slide.active { display: block; }
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 40px 24px 22px;
  color: #fff;
}
.slide-caption h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 6px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  border: none;
  color: #fff;
}
.slide-caption p {
  font-size: 13px;
  color: #ddd;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.slide-caption a.cta-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}
.slide-caption a.cta-btn:hover { background: var(--red-dk); text-decoration: none; }
.slider-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  border: none;
}
.slider-dot.active { background: #fff; }

/* ── PAGE CONTENT AREA ────────────────────────────── */
#content-wrap {
  width: 960px;
  overflow: hidden;
  padding: 16px 10px;
}
#main {
  float: left;
  width: 706px;   /* ~74% of 960 */
}
#sidebar {
  float: right;
  width: 224px;   /* ~23% of 960 */
}

/* ── MAIN HEADINGS ────────────────────────────────── */
#main h1 {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dk);
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
#main h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dk);
  border-bottom: 1px solid var(--gray-bd);
  padding-bottom: 5px;
  margin: 16px 0 10px;
}
#main h3 {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dk);
  margin: 12px 0 6px;
}
#main p  { font-size: 13px; margin-bottom: 10px; line-height: 1.55; }
#main ul { font-size: 13px; }

/* ── HOME PRODUCT CARDS GRID ──────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 20px;
}
.product-grid-card a  { display: block; text-decoration: none; }
.product-grid-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--gray-bd);
}
.product-grid-card h3 {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #333;
  background: var(--gray-lt);
  border-top: 2px solid var(--red);
  padding: 7px 8px;
  margin: 0;
  text-align: center;
}
.product-grid-card a:hover img  { opacity: 0.88; }
.product-grid-card a:hover h3   { color: var(--red); }

/* ── COMPANY PROFILE (homepage) ───────────────────── */
.company-profile { margin-top: 10px; }
.company-profile h2 {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.dealer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-bottom: 12px;
}
.dealer-cols ul { font-size: 12px; }
.badges { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.badges a img { max-height: 55px; max-width: 110px; object-fit: contain; }

/* ── SIDEBAR ──────────────────────────────────────── */
.sidebar-block {
  background: var(--gray-lt);
  border: 1px solid var(--gray-bd);
  margin-bottom: 12px;
  overflow: hidden;
}
.sidebar-block-title {
  background: #555;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 7px 10px;
}
.sidebar-block-body {
  padding: 10px;
  font-size: 12px;
  color: #444;
  line-height: 1.55;
}
.sidebar-block-body img { max-width: 100%; margin-bottom: 8px; }
.sidebar-block-body a img { transition: opacity .18s; }
.sidebar-block-body a:hover img { opacity: .85; }

/* Newsletter form */
.nl-form label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: #555;
  margin-bottom: 3px;
}
.nl-form input[type=text],
.nl-form input[type=email] {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid #ccc;
  font-size: 12px;
  margin-bottom: 7px;
  font-family: Arial, sans-serif;
}
.nl-form .nl-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
}
.nl-form .nl-btn:hover { background: var(--red-dk); }

/* ── PHOTO GALLERY ────────────────────────────────── */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.gallery a { display: block; }
.gallery a img {
  width: 160px;
  height: 118px;
  object-fit: cover;
  border: 1px solid #ccc;
  transition: opacity .18s;
}
.gallery a:hover img { opacity: .82; }
.gallery-section { margin-bottom: 18px; }
.gallery-section h3 {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

/* ── PRODUCTS TABLE (overview page) ──────────────── */
.prod-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.prod-table td {
  width: 50%;
  border: 1px solid #ddd;
  padding: 8px 10px;
  vertical-align: top;
  font-size: 12px;
}
.prod-table td ul { padding-left: 14px; }
.prod-table td ul li { margin-bottom: 3px; }
.mfr-list { list-style: none; padding: 0; font-size: 13px; line-height: 1.8; }
.mfr-list li { padding: 1px 0; }
.mfr-list a { color: var(--red); }

/* ── PARTNERS GRID ────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0;
}
.partners-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  min-height: 80px;
  text-decoration: none;
}
.partners-grid a:hover { border-color: var(--red); }
.partners-grid a img { max-height: 60px; max-width: 150px; object-fit: contain; }

/* ── CONTACT ──────────────────────────────────────── */
.contact-cols { display: flex; gap: 26px; margin-bottom: 20px; }
.contact-info { font-size: 13px; line-height: 1.8; flex: 1; }
.contact-info strong { font-size: 14px; display: block; margin-bottom: 6px; }
.contact-map img { max-width: 100%; border: 1px solid #ccc; }
.contact-map { flex: 1; }

.cform label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 3px;
}
.cform input[type=text],
.cform input[type=email],
.cform input[type=tel],
.cform select,
.cform textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  font-size: 13px;
  font-family: Arial, sans-serif;
  margin-bottom: 10px;
  background: #fff;
}
.cform textarea { min-height: 90px; resize: vertical; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cform .submit-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}
.cform .submit-btn:hover { background: var(--red-dk); }
.msg-ok  { background: #e8f5e8; border: 1px solid #5a5; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.msg-err { background: #fdecea; border: 1px solid #c55; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }

/* ── PRODUCT THUMB STRIP (bottom of sub-pages) ─────── */
#thumb-strip {
  width: 960px;
  background: #f0f0f0;
  border-top: 2px solid #ddd;
  padding: 14px 10px;
  overflow: hidden;
  clear: both;
  margin-top: 10px;
}
#thumb-strip .inner {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.thumb-item { text-align: center; flex: 1; }
.thumb-item a { display: block; text-decoration: none; }
.thumb-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ccc;
  transition: opacity .18s;
}
.thumb-item a:hover img { opacity: .82; }
.thumb-item h4 {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
  margin-top: 5px;
  letter-spacing: 0.03em;
}
.thumb-item a:hover h4 { color: var(--red); }

/* ── FOOTER ───────────────────────────────────────── */
#footer {
  width: 960px;
  background: var(--nav);
  border-top: 2px solid var(--red);
  padding: 14px 10px;
  overflow: hidden;
  clear: both;
}
#footer .foot-left {
  float: left;
  color: #999;
  font-size: 12px;
  line-height: 1.7;
}
#footer .foot-left a { color: #bbb; }
#footer .foot-left a:hover { color: #fff; text-decoration: none; }
#footer .foot-right {
  float: right;
  text-align: right;
}
#footer .foot-right img { max-height: 28px; opacity: .7; }
#footer .copy { clear: both; text-align: center; color: #666; font-size: 11px; padding-top: 8px; }

/* ── CLEARFIX ─────────────────────────────────────── */
.cf::after { content: ''; display: table; clear: both; }
