/*
Theme Name: Black Hills Mobile Diagnostics
Theme URI: https://blackhillsmobilediagnostics.com
Author: Dean Halvorson & ChatGPT
Author URI: https://blackhillsmobilediagnostics.com
Description: A clean, mobile-focused diagnostics theme matched to Dynamic Auto Diagnostics, built for Black Hills Mobile Diagnostics as a classic theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bhmd
*/

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #181818;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: #0f6fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Layout */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  color: #ffffff;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  max-height: 60px;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-description {
  font-size: 0.8rem;
  opacity: 0.8;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-navigation a {
  color: #ffffff;
  font-weight: 500;
}

.main-navigation a:hover {
  color: #cfdcff;
}

/* Hero */
.hero {
  position: relative;
  color: #ffffff;
  background-image: url('assets/images/bhmd-header-mountains.png');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.78), rgba(5,25,60,0.82));
}

.hero-inner {
  position: relative;
  padding: 6rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #cfdcff;
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-lede {
  font-size: 1rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
  color: #e5ecff;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: #0f6fff;
  border-color: #0f6fff;
  color: #ffffff;
}

.btn-primary:hover {
  background: #0b54c3;
  border-color: #0b54c3;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Hero contact info */
.hero-contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.9rem;
  color: #d1ddff;
  margin-top: 0.5rem;
}

.hero-contact-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero badge box */
.hero-badge {
  background: rgba(9,14,28,0.96);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

.hero-badge h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6f9cff;
  margin-bottom: 0.5rem;
}

.hero-badge ul {
  list-style: none;
  font-size: 0.85rem;
  color: #e2ebff;
}

.hero-badge li + li {
  margin-top: 0.4rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-heading {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 0.98rem;
  max-width: 40rem;
  color: #4c5568;
  margin-bottom: 2rem;
}

/* Three column cards */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.card {
  border-radius: 14px;
  border: 1px solid #e2e6f0;
  padding: 1.4rem 1.3rem;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(15,30,60,0.03);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.92rem;
  color: #555e70;
}

/* Side-by-side section */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: start;
}

.benefit-list {
  list-style: none;
  font-size: 0.94rem;
  color: #444d62;
}

.benefit-list li + li {
  margin-top: 0.3rem;
}

/* Fleet band */
.fleet-band {
  background: #050815;
  color: #ffffff;
}

.fleet-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.3rem;
  align-items: center;
}

.fleet-band h2 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.fleet-metadata {
  font-size: 0.9rem;
  color: #c1c8de;
}

.fleet-metadata strong {
  color: #ffffff;
}

/* Footer */
.site-footer {
  background: #050612;
  color: #b8c0d8;
  padding: 2.5rem 0 1.2rem;
  font-size: 0.85rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(0, 1.2fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-height: 40px;
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  color: #b8c0d8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #15182a;
  padding-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .fleet-band-inner,
  .split-section,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .hero-inner {
    padding: 4.5rem 0 3rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .card-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}
