/* =============================================================
   DrainWorks Incorporated — styles.css
   Global stylesheet for all pages
   ============================================================= */

/* =========================
   CSS Variables
========================= */
:root {
  --primary-blue: #1E448F;
  --primary-red: #9e1e1e;
  --dark-gray: #2f2f2f;
  --light-gray: #f5f5f5;
}

/* =========================
   Base / Reset
========================= */
body {
  font-family: 'Roboto Condensed', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--dark-gray);
  background-color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
}

a {
  text-decoration: none;
}

/* Add consistent vertical padding to all sections */
section {
  padding-top: 35px !important;
  padding-bottom: 35px !important;
}

/* =========================
   Top Bar
========================= */
.top-bar {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-weight: boldc;
  font-size: 0.95rem;
}

.top-bar a {
  color: #ffffff;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* =========================
   Navigation
========================= */
.custom-nav {
  background-color: #ffffff;
  border-bottom: 2px solid #dcdcdc;
}

.navbar-brand {
  color: var(--primary-red) !important;
  font-weight: bold;
  font-size: 1.8rem;
}

.site-logo {
  height: 60px;
  width: auto;
}

.navbar .nav-link {
  color: #222222 !important;
  font-weight: 600;
  margin-left: 10px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-red) !important;
}

/* =========================
   Hero Section
========================= */
.hero-section {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(22, 59, 122, 0.75),
      rgba(26, 68, 148, 0.72),
      rgba(12, 32, 66, 0.82)
    ),
    url('../img/hero-vans.jpg') center center / cover no-repeat;

  min-height: 65vh;
  padding: 100px 20px;
  display: flex;
  align-items: center;
}

/* Keeps text above the gradient overlay */
.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1,
.hero-section p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.65);
}

/* =========================
   Section Headings
========================= */
section h2,
.why-us h2 {
  color: var(--primary-red);
  font-weight: bold;
}

.why-us {
  background-color: #e8eef7;
}

.text-muted {
  color: #6c757d !important;
}


/* =========================
   Service Cards
========================= */
.card {
  border: none;
  border-top: 4px solid var(--primary-blue);
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.card-title,
.card h3,
.card h5 {
  color: var(--dark-gray);
  font-weight: bold;
}

.service-card {
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.service-card h5 {
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Thumbnail images inside service cards */
.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Full-width image in the homepage intro section */
.service-img {
  height: 320px;
  width: 100%;
  object-fit: cover;
}

/* =========================
   Review Boxes
========================= */
.review-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.review-text {
  font-style: italic;
  color: #333;
  margin-bottom: 10px;
}

.review-author {
  font-weight: bold;
  color: var(--primary-blue);
}

/* Link below reviews pointing to Google */
.reviews-link {
  font-weight: 500;
  color: var(--primary-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.reviews-link:hover {
  color: var(--primary-red);
  border-bottom: 1px solid var(--primary-red);
}

/* =========================
   Quick Info Strip
========================= */
.quick-info {
  background-color: #e2e2e2;
  border-top: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
}

.quick-info h5 {
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.quick-info p {
  color: #222222;
  font-weight: 500;
}

.quick-info a {
  color: var(--primary-red);
  font-weight: 600;
}

.quick-info a:hover {
  color: #8f1b1b;
}

/* Vertical dividers between columns */
.quick-info .col-md-4 {
  border-right: 1px solid #e5e5e5;
}

.quick-info .col-md-4:last-child {
  border-right: none;
}

.quick-info .small {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #555555 !important;
}

/* =========================
   Services Preview List (Homepage)
========================= */
.service-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.service-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--primary-blue);
  background-color: #ffffff;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-list li strong {
  font-size: 1.05rem;
  color: var(--primary-blue);
  white-space: nowrap;
}

/* Stack label and description on small screens */
@media (max-width: 576px) {
  .service-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* =========================
   Forms
========================= */
.form-control {
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ccc;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(31, 78, 163, 0.15);
}

/* =========================
   Buttons / CTAs
========================= */

/* Primary blue buttons */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #15397d;
  border-color: #15397d;
}

/* Red call-to-action buttons */
.btn-danger {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #861919;
  border-color: #861919;
}

/* =========================
   Team Cards
========================= */
/* Standard team member photo height */
.team-card img {
  height: 220px;
  object-fit: cover;
}

.team-card .card-body {
  padding: 2rem;
}

/* Founder card is slightly taller to give him a bit more presence */
.founder-card img {
  height: 260px;
  object-fit: cover;
}

/* =========================
   Google Maps Embed
========================= */
.map-container {
  margin-top: 20px;
  border: 2px solid var(--primary-blue);
  border-radius: 10px;
  overflow: hidden; /* clips the iframe to the border-radius */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

/* =========================
   Diagnostic Services Box (Services page)
========================= */
.diagnostic-box {
  background-color: #f8f9fa;
  border-left: 3px solid var(--primary-blue);
  border-radius: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem !important;
}

.diagnostic-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.diagnostic-left {
  flex: 2;
}

.diagnostic-right {
  flex: 1;
}

.diagnostic-box p,
.diagnostic-box li {
  font-size: 0.95rem;
}

.diagnostic-list {
  padding-left: 1.2rem;
}

/* Stack columns on mobile */
@media (max-width: 768px) {
  .diagnostic-content {
    flex-direction: column;
  }
}

/* =========================
   Video Embed (Services page)
========================= */
.video-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  border-radius: 12px;
}

/* =========================
   Scroll-to-Top Button
========================= */
#scrollTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  /* Hidden by default — JS adds .visible class after 300px scroll */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background-color: var(--primary-red);
}

/* =========================
   Footer
========================= */
.site-footer {
  background-color: var(--primary-blue);
  color: #ffffff;
  margin-top: 1.5rem;
  padding-top: 25px;
}

.footer-top {
  padding-bottom: 12px;
}

.footer-logo {
  max-width: 210px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #dbe6ff;
}

.footer-badge p,
.site-footer p {
  color: #ffffff;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Payment method icons and text badges */
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.payment-badges img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.payment-badges span {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;

  padding: 0 12px;

  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0 14px;
  margin-top: 10px;
}

/* =========================
   Responsive Tweaks
========================= */
@media (max-width: 768px) {

  /* Stack top bar items vertically on small screens */
  .top-bar .container {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .hero-section {
    padding: 50px 20px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .navbar .nav-link {
    margin-left: 0;
  }

  .site-logo {
    height: 50px;
  }

  /* Stack quick-info dividers vertically */
  .quick-info .col-md-4 {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
  }

  .quick-info .col-md-4:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-logo {
    max-width: 220px;
  }

  .footer-top {
    text-align: center;
  }

  .payment-badges {
    justify-content: center;
  }
}

/* =========================
   Van Photo Caption
========================= */

.van-caption {
  font-size: 1rem;
  color: #666666;
  font-style: italic;
  text-align: center;
  margin-top: 10px;
}