/* ============================================
   Highline Motorsports Technical Blog
   Style Sheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: #0066B1;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #004c8c;
}

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

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: #1a1a1a;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  background: #1C1C1C;
  border-bottom: 10px solid #0066B1;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:hover {
  color: #fff;
}

.logo-accent {
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 15px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
}

.nav-schedule-btn {
  background: #0066B1;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background 0.2s !important;
  cursor: pointer;
  border: none;
}

.nav-schedule-btn:hover {
  background: #005299 !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #1C1C1C;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    z-index: 1000;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #333;
  }

  .nav-links li a {
    display: block;
    padding: 15px 10px;
    font-size: 1rem;
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 10px;
  }

  .nav-schedule-btn {
    width: 100%;
    text-align: center;
    display: block;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, rgba(0,102,177,0.85) 0%, rgba(0,76,140,0.9) 100%), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 70px 20px 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-primary:hover {
  background: #f5f5f5;
  color: #333;
}

.btn-outline {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background: #f5f5f5;
  color: #333;
}

.btn-blue {
  background: #0066B1;
  color: #fff;
}

.btn-blue:hover {
  background: #005299;
  color: #fff;
}

/* Search Bar */
.search-bar {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: #fff;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input::placeholder {
  color: #999;
}

.search-bar input:focus {
  border-color: #0066B1;
  box-shadow: 0 0 0 3px rgba(0,102,177,0.1);
}

.search-bar .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.1rem;
  pointer-events: none;
}

/* ============================================
   BLOG CONTENT LAYOUT
   ============================================ */
.blog-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

@media (max-width: 800px) {
  .blog-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px 50px;
  }
}

/* --- Sidebar --- */
.sidebar {}

.sidebar-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-section h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 16px;
  font-weight: 700;
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 0;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: #333;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.category-list li a:hover,
.category-list li a.active {
  background: #0066B1;
  color: #fff;
}

.category-count {
  background: none;
  color: #888;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
}

.category-list li a:hover .category-count,
.category-list li a.active .category-count {
  background: none;
  color: rgba(255,255,255,0.8);
}

/* --- Articles Grid --- */
.articles-section h2 {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 650px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Article Card --- */
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 20px;
}

.card-body {
  padding: 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.category-tag {
  background: #0066B1;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-date,
.card-readtime {
  font-size: 0.85rem;
  color: #888;
}

.card-date::before {
  content: '';
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-body h3 a {
  color: #1a1a1a;
}

.card-body h3 a:hover {
  color: #0066B1;
}

.card-excerpt {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.55;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0066B1;
}

.read-more:hover {
  color: #004c8c;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
  font-size: 0.9rem;
  color: #888;
}

.breadcrumb a {
  color: #0066B1;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #ccc;
}

/* Article Hero */
.article-hero {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.article-hero .placeholder-img {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* Article Content */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-meta .category-tag {
  font-size: 0.8rem;
}

.article-meta .date,
.article-meta .readtime,
.article-meta .author {
  font-size: 0.9rem;
  color: #888;
}

.article-container h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 30px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
  line-height: 1.75;
  color: #444;
}

.article-body ul,
.article-body ol {
  margin-bottom: 18px;
  color: #444;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.article-body strong {
  color: #1a1a1a;
}

/* Info Box */
.info-box {
  background: #f0f7ff;
  border-left: 4px solid #0066B1;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.info-box p {
  margin-bottom: 0;
  color: #333;
}

/* Warning Box */
.warning-box {
  background: #fff8f0;
  border-left: 4px solid #e67e22;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.warning-box p {
  margin-bottom: 0;
  color: #333;
}

/* Cost Comparison */
.cost-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

@media (max-width: 500px) {
  .cost-comparison {
    grid-template-columns: 1fr;
  }
}

.cost-box {
  padding: 24px;
  border-radius: 10px;
  text-align: center;
}

.cost-box.dealer {
  background: #fff0f0;
  border: 2px solid #e74c3c;
}

.cost-box.highline {
  background: #f0fff4;
  border: 2px solid #27ae60;
}

.cost-box .cost-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cost-box .cost-amount {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.cost-box.dealer .cost-amount {
  color: #e74c3c;
}

.cost-box.highline .cost-amount {
  color: #27ae60;
}

.cost-box .cost-desc {
  font-size: 0.85rem;
  color: #888;
}

/* Inline Placeholder Images */
.article-body .inline-image {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
}

.article-body .inline-image .placeholder-img {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.article-body .inline-image figcaption {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #0066B1 0%, #004c8c 100%);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 50px 0 0;
  color: #fff;
}

.cta-box h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 12px;
  border: none;
  padding-bottom: 0;
}

.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.cta-box .cta-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.cta-box .cta-phone a {
  color: #fff;
}

.cta-box .cta-phone a:hover {
  text-decoration: underline;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1C1C1C;
  color: #ccc;
  padding: 60px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 500px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #aaa;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #0066B1;
}

.footer-schedule-btn {
  display: inline-block;
  background: #0066B1;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 10px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.footer-schedule-btn:hover {
  background: #005299;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding: 25px 20px;
  margin-top: 50px;
  font-size: 0.85rem;
  color: #777;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 1.1rem;
  display: none;
}

.no-results.visible {
  display: block;
}

.hidden {
  display: none !important;
}

/* Placeholder image backgrounds */
.placeholder-img.bg-dme {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.placeholder-img.bg-frm {
  background: linear-gradient(135deg, #1a3a4a 0%, #2c5364 100%);
}

.placeholder-img.bg-vanos {
  background: linear-gradient(135deg, #1c2833 0%, #2e4053 100%);
}

.placeholder-img.bg-oil {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

.placeholder-img.bg-engine {
  background: linear-gradient(135deg, #0c2340 0%, #1a3a5c 100%);
}

.placeholder-img.bg-generic {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

/* Programs / special boxes */
.program-box {
  background: #f0fff4;
  border: 2px solid #27ae60;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 30px 0;
}

.program-box .program-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #27ae60;
  margin-bottom: 4px;
}

.program-box .program-period {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 12px;
}

.program-box h3 {
  margin-bottom: 12px;
}

.program-box p {
  color: #666;
}

.program-box ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 400px;
  margin: 16px auto;
}

.program-box ul li {
  padding: 6px 0;
  color: #444;
}

.program-box ul li::before {
  content: '✓ ';
  color: #27ae60;
  font-weight: 700;
}

/* Back to blog link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0066B1;
  margin-bottom: 20px;
}

.back-link:hover {
  color: #004c8c;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .cta-box,
  .hamburger {
    display: none;
  }

  .article-container {
    padding: 0;
    max-width: 100%;
  }
}
