/* Better Source Supply, LLC. — Main Stylesheet */
/* Colors: Red #E10707, Dark #363839 (header/footer), White #fff, LightGray #f6f6f6, Border #e0dede */

@import url('https://fonts.googleapis.com/css2?family=Antic+Slab&family=PT+Sans:wght@400;700&display=swap');

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

body {
  font-family: 'PT Sans', Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, h5, h6, a, nav, .btn, footer {
  font-family: Helvetica, Arial, sans-serif;
}

a { color: #E10707; text-decoration: none; transition: color .2s; }
a:hover { color: #b00505; }

img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ───────────────────────────────────────── */
header {
  background: #363839;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
}
.logo img { height: 50px; width: auto; }

nav ul { list-style: none; display: flex; gap: 0; }
nav ul li a {
  display: block; padding: 12px 18px;
  color: #fff; font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: .5px;
  position: relative;
  transition: color .2s;
}
nav ul li a::before {
  content: ''; position: absolute; top: 0;
  left: 18px; right: 18px; height: 3px;
  background: #E10707; transform: scaleX(0);
  transition: transform .2s;
}
nav ul li a:hover,
nav ul li a.active {
  color: #E10707;
}
nav ul li a:hover::before,
nav ul li a.active::before {
  transform: scaleX(1);
}

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ── Hero / Slider ────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  height: 500px; background: #000;
}
.hero-slides { display: flex; height: 100%; transition: transform .6s ease; }
.hero-slide {
  min-width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  background-color: #000;
}
.slide-img-wrap {
  position: relative; display: inline-block;
  height: 100%;
}
.slide-img-wrap .slide-img {
  height: 100%; width: auto; display: block;
}
.slide-img-wrap .slide-logo {
  position: absolute; top: 15px; left: 15px;
  width: 180px; height: auto;
}
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; border: none;
  font-size: 20px; cursor: pointer; transition: background .2s;
}
.hero-nav:hover { background: rgba(0,0,0,1); }
.hero-nav.prev { left: 15px; }
.hero-nav.next { right: 15px; }

/* ── Section Utilities ────────────────────────────── */
.section { padding: 50px 0; }
.section-alt { background: #f6f6f6; }
.section-title {
  font-size: 28px; font-weight: 700; margin-bottom: 10px;
}
.section-title::after {
  content: ''; display: block; width: 100%;
  height: 1px; background: #e0dede; margin-top: 10px;
}
.text-center { text-align: center; }

/* ── Service Cards (Home) ─────────────────────────── */
.cards { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.card {
  flex: 1 1 280px; max-width: 340px; text-align: center;
}
.card img { width: 200px; height: auto; margin-bottom: 18px; }
.card h2 { font-size: 22px; margin-bottom: 8px; }
.card p { font-size: 15px; text-align: left; }

/* ── Why Best / Mission (Home) ────────────────────── */
.two-col { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.two-col > div { flex: 1 1 400px; }

.checklist { list-style: none; }
.checklist li {
  font-size: 20px; font-weight: 700; line-height: 2;
  padding-left: 32px; position: relative;
}
.checklist li::before {
  content: '\2713'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #E10707; color: #fff; font-size: 12px;
}

.mission h2 { font-size: 20px; line-height: 1.5; margin-bottom: 12px; }

/* ── Vendor Carousel ──────────────────────────────── */
.vendor-carousel {
  display: flex; gap: 13px; overflow-x: auto; padding: 10px 0;
  scrollbar-width: thin;
}
.vendor-carousel img {
  height: 70px; width: auto; flex-shrink: 0;
  border-radius: 4px; transition: transform .2s;
}
.vendor-carousel img:hover { transform: scale(1.08); }

/* ── CTA Banner ───────────────────────────────────── */
.cta-banner {
  background: #f6f6f6; border: 1px solid #f6f6f6;
  border-top: 3px solid #E10707;
  padding: 30px 40px; margin: 40px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.cta-banner h2 { font-size: 22px; flex: 1; }
.cta-banner .sub { color: #666; font-size: 14px; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 28px;
  background: #E10707; color: #fff; font-weight: 600;
  border: none; border-radius: 2px; cursor: pointer;
  font-size: 15px; text-transform: uppercase;
  transition: background .2s;
}
.btn:hover { background: #b00505; color: #fff; }

/* ── Products Tables ──────────────────────────────── */
.products-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.products-table td {
  padding: 10px 15px; border-bottom: 1px solid #eee;
  font-size: 15px; width: 33.33%;
}
.products-table tr:hover td { background: #fafafa; }

/* ── About Page ───────────────────────────────────── */
.about-text p { font-size: 16px; margin-bottom: 14px; }
.progress-bars { margin-top: 20px; }
.progress-item { margin-bottom: 12px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 14px; margin-bottom: 4px;
}
.progress-bar {
  height: 37px; background: #f6f6f6; border-radius: 3px; overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%; background: #E10707; border-radius: 3px;
  display: flex; align-items: center; padding: 0 12px;
  color: #fff; font-weight: 700; font-size: 14px;
  min-width: fit-content;
}

/* ── Team Grid ────────────────────────────────────── */
.team-grid { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.team-member { flex: 1 1 200px; max-width: 250px; text-align: center; }
.team-member img {
  width: 100%; max-width: 220px; height: auto; border-radius: 4px;
  margin-bottom: 12px;
}
.team-member .name { font-size: 18px; font-weight: 700; }
.team-member .title { font-size: 14px; color: #666; margin-bottom: 8px; }
.team-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 4px;
  background: #e8e8e8; color: #bebdbd; margin: 0 3px;
  font-size: 16px; transition: background .2s, color .2s;
}
.team-social a:hover { background: #E10707; color: #fff; }

/* ── Contact Page ─────────────────────────────────── */
.contact-layout { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.contact-map { flex: 1 1 450px; min-height: 350px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 350px; border: 0; }
.contact-form { flex: 1 1 400px; }
.contact-form label {
  display: block; font-weight: 700; margin-bottom: 5px; font-size: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #ddd;
  border-radius: 3px; font-size: 15px; margin-bottom: 15px;
  font-family: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #E10707; outline: none; }

/* Status messages */
.msg-success { background: #d4edda; color: #155724; padding: 12px 18px; border-radius: 4px; margin-bottom: 20px; }
.msg-error   { background: #f8d7da; color: #721c24; padding: 12px 18px; border-radius: 4px; margin-bottom: 20px; }

/* ── Spotlight Vendor Cards (Products) ────────────── */
.spotlight-cards { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.spotlight-card {
  flex: 1 1 280px; max-width: 340px;
  border: 1px solid #bfbfbf; padding: 20px; text-align: center;
}
.spotlight-card img { max-height: 250px; width: auto; margin-bottom: 10px; }
.spotlight-card h3 { font-size: 20px; font-weight: 700; }

/* ── Services Page ────────────────────────────────── */
.service-row {
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
  padding: 40px 0; border-bottom: 1px solid #e0dede;
}
.service-row:last-child { border-bottom: none; }
.service-img { flex: 1 1 400px; text-align: center; }
.service-img img { max-height: 337px; width: auto; }
.service-text { flex: 1 1 400px; }
.service-text h2 { font-size: 24px; margin-bottom: 15px; }
.service-text h2::after {
  content: ''; display: block; width: 100%;
  height: 1px; background: #e0dede; margin-top: 8px;
}
.service-text p { font-size: 15px; line-height: 1.7; }

/* ── Footer ───────────────────────────────────────── */
footer {
  background: #363839; color: #aaa; padding: 25px 0;
  font-size: 14px;
}
footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 15px;
}
footer .info span { padding-right: 10px; }
footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: #aaa; margin-left: 8px;
  transition: color .2s;
}
footer .social a:hover { color: #fff; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #363839; }
  nav ul.open { display: flex; }
  nav ul li a { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); }

  .hero { height: 300px; }
  .two-col, .contact-layout { flex-direction: column; }
  .cards { flex-direction: column; align-items: center; }
  .team-grid { flex-direction: column; align-items: center; }
  .cta-banner { flex-direction: column; text-align: center; }
  .service-row { flex-direction: column; }

  .products-table td { display: block; width: 100%; }
}
