/* Fleetstop Trailers — single project stylesheet (Pure.css provides the base) */

:root {
  --brand-blue: #002f6c;
  --brand-blue-85: rgba(0, 47, 108, 0.85);
  --brand-orange: #e87722;
  --text: #333;
  --muted: #555;
  --line: #e0e0e0;
  --light-bg: #f5f5f5;
  --page-gutter: 5em;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand-blue); }

h1, h2, h3 { color: var(--brand-blue); line-height: 1.2; }

/* ---- Layout shell ---- */
.page {
  display: flex;
  flex-direction: column;
  padding: 1em var(--page-gutter);
  flex: 1 0 auto;
}

main { flex: 1 0 auto; }

section { margin-bottom: 2.5em; }

section h2 {
  border-bottom: 2px solid var(--brand-orange);
  padding-bottom: 0.3em;
}

address { font-style: normal; line-height: 1.8; }

/* ---- Transition notice ---- */
.site-notice {
  background: #f5f0e8;
  border-top: 3px solid #8a7355;
  border-bottom: 1px solid #d4c9b0;
  padding: 1em var(--page-gutter);
  font-size: 0.95em;
  line-height: 1.7;
  color: #3a3028;
}
.site-notice p { margin: 0.4em 0; }
.site-notice a { color: #5a3e28; }

/* ---- Header ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.75em var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}
.site-brand img { height: 50px; width: auto; display: block; }
.header-contact { text-align: right; }
.header-contact .phone {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--brand-blue);
  text-decoration: none;
  display: block;
}
.header-meta {
  font-size: 0.8em;
  color: var(--muted);
  display: flex;
  gap: 0.75em;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.header-meta .social a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.5em;
}
.header-meta .social a:hover { color: var(--brand-blue); text-decoration: underline; }

/* ---- Nav ---- */
.site-nav {
  background: var(--brand-blue);
  padding: 0.25em var(--page-gutter);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.site-nav .pure-menu-link { color: #fff; }
.site-nav .pure-menu-link:hover,
.site-nav .pure-menu-active > .pure-menu-link { background: rgba(255, 255, 255, 0.15); color: #fff; }
.site-nav .pure-menu-children {
  background: #fff;
  border-radius: 4px;
  min-width: 190px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.site-nav .pure-menu-children .pure-menu-link { color: var(--brand-blue); }
.site-nav .pure-menu-children .pure-menu-link:hover { background: var(--brand-blue); color: #fff; }

/* ---- Footer ---- */
footer.flex {
  display: flex;
  gap: 1em;
  padding: 2em 0;
  flex-wrap: wrap;
}
footer.flex > * {
  flex: 1 1 220px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1em;
}
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
footer.flex .footer-brand { background: var(--brand-blue); border-color: var(--brand-blue); }
footer.flex > div:first-child { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
footer.flex > div:first-child a { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0 0 0.5em; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social a { margin-right: 0.75em; }
.copyright { color: var(--muted); font-size: 0.85em; }

/* ---- Hero carousel ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: #000;
  margin: 0 calc(-1 * var(--page-gutter)) 2.5em;
}
.carousel { position: relative; width: 100%; }
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 480px; object-fit: cover; display: block; }
.carousel-caption {
  position: absolute;
  bottom: 2em;
  left: 2em;
  background: var(--brand-blue-85);
  color: #fff;
  padding: 0.4em 1em;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: 600;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 47, 108, 0.6);
  color: #fff;
  border: none;
  font-size: 2.5em;
  line-height: 1;
  padding: 0.1em 0.4em;
  cursor: pointer;
  z-index: 10;
  border-radius: 3px;
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(0, 47, 108, 0.9); }
.carousel-prev { left: 1em; }
.carousel-next { right: 1em; }
.carousel-dots {
  position: absolute;
  bottom: 0.75em;
  right: 1.5em;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active { background: #fff; }

/* ---- Home intro ---- */
.about-intro { max-width: 820px; }
.wabash-logo { display: block; max-width: 300px; margin-bottom: 1em; }
.parts-logo { max-width: 200px; height: auto; }

/* ---- Cards ---- */
.cards { display: flex; flex-wrap: wrap; gap: 16px; margin: 1.5em 0; }
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 220px;
  text-align: center;
}
.card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.card-content { padding: 1em; }
.card-title { font-weight: bold; margin-bottom: 0.5em; color: var(--brand-blue); }
.card a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--brand-blue);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.875em;
}
.card a:hover { background: var(--brand-orange); }

/* ---- Buttons ---- */
.pure-button-primary,
a.pure-button-primary { background: var(--brand-blue); color: #fff; }
a.pure-button { margin-bottom: 0.3em; }

/* ---- Forms ---- */
.site-form { max-width: 720px; margin-top: 1em; }
.form-grid { display: flex; gap: 1em; flex-wrap: wrap; }
.form-grid > .field { flex: 1 1 100%; }
.form-grid > .field-half { flex: 1 1 calc(50% - 0.5em); }
.field { margin-bottom: 1em; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25em; }
.site-form input,
.site-form select,
.site-form textarea { width: 100%; }
.form-note { font-size: 0.85em; color: var(--muted); }
.form-status { margin-bottom: 1em; font-weight: 600; }
.form-status:empty { margin: 0; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-ok { color: #1a7f37; }
.form-status.is-error { color: #b42318; }

/* ---- Location ---- */
.location-detail { display: flex; flex-wrap: wrap; gap: 2em; margin-bottom: 1.5em; }
.branch-map iframe { border: 0; border-radius: 8px; width: 100%; }
.inventory-tabs { margin-bottom: 1em; }
.inventory-note {
  background: var(--light-bg);
  border-left: 4px solid var(--brand-orange);
  padding: 1em 1.25em;
  border-radius: 4px;
  margin-bottom: 2em;
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.gallery-grid figcaption { margin-top: 0.4em; font-size: 0.9em; color: var(--muted); }

/* ---- Link list ---- */
.link-list { line-height: 1.9; }

/* ---- Responsive ---- */
@media (max-width: 48em) {
  :root { --page-gutter: 1em; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .header-contact, .header-meta { text-align: left; justify-content: flex-start; }
  .carousel-slide img { height: 300px; }
  .carousel-caption { left: 1em; bottom: 1em; font-size: 0.95em; }
  .form-grid > .field-half { flex: 1 1 100%; }
  .card { width: 100%; }
}
