/* ================================================
   SMARTLAKE MOTORS — blog-post.css
   Shared stylesheet for all individual blog pages
   Lives at: assets/blog-post.css
   Used by: pages/blogs/*.html
   ================================================ */


/* ── VARIABLES ────────────────────────────────── */

:root {
  --sl-blue:           #005EAB;
  --sl-blue-dark:      #004a8a;
  --sl-blue-light:     #4a90c4;
  --sl-gold:           #C9A84C;
  --sl-gold-pale:      rgba(201, 168, 76, 0.10);
  --sl-gold-dark:      #a8882e;
  --sl-black:          #0D0D0D;
  --sl-dark:           #1B2A3B;
  --sl-gray:           #555;
  --sl-gray-light:     #888;
  --white:             #ffffff;
  --gray-50:           #F7F9FC;
  --gray-100:          #f0f2f5;
  --gray-200:          #e2e6ea;
  --font-body:         'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-padding:   80px;
  --container-padding: clamp(20px, 5vw, 60px);
  --transition-base:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:         0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md:         0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:         0 8px 32px rgba(0, 0, 0, 0.14);
  --article-width:     780px;
}


/* ── RESET & BASE ─────────────────────────────── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--sl-black);
  background: var(--white);
  line-height: 1.6;
  min-width: 320px;
}

::selection {
  background: rgba(201, 168, 76, 0.25);
  color: inherit;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }


/* ── CONTAINER ────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.article-container {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}


/* ── UTILITIES ────────────────────────────────── */

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sl-gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1rem;
}


/* ══════════════════════════════════════════════════
   ARTICLE HERO
══════════════════════════════════════════════════ */

.article-hero {
  position: relative;
  margin-top: 6em;
  min-height: 420px;
  height: fit-content;
  max-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,13,13,0.82) 0%,
    rgba(13,13,13,0.60) 50%,
    rgba(13,13,13,0.28) 100%
  );
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(36px, 6vw, 72px);
  max-width: 820px;
  animation: articleHeroIn 0.7s ease 0.1s both;
}

@keyframes articleHeroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb inside hero */
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-breadcrumb a,
.hero-breadcrumb span {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.hero-breadcrumb a:hover {
  color: var(--sl-gold);
}

.hero-breadcrumb .bc-sep {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
}

.hero-breadcrumb .bc-current {
  color: rgba(255,255,255,0.9);
}

.article-category-tag {
  display: inline-block;
  background: var(--sl-gold);
  color: var(--sl-dark);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.article-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 16px;
  max-width: 760px;
}

.article-hero-inner .hero-intro {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.article-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.article-meta-chip svg {
  flex-shrink: 0;
  color: var(--sl-gold);
}


/* ══════════════════════════════════════════════════
   ARTICLE BODY WRAPPER
══════════════════════════════════════════════════ */

.article-body-section {
  padding: 64px 0 80px;
  background: var(--white);
}

/* ToC */
.article-toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--sl-blue);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.article-toc h2 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sl-blue);
  margin-bottom: 14px;
}

.article-toc ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-toc li {
  font-size: 0.9rem;
  color: var(--sl-dark);
}

.article-toc a {
  color: var(--sl-dark);
  transition: color 0.2s;
  font-weight: 500;
}

.article-toc a:hover {
  color: var(--sl-blue);
}


/* ── ARTICLE PROSE ────────────────────────────── */

.article-prose {
  font-size: 1.0625rem;
  line-height: 1.82;
  color: #1a1a1a;
}

.article-prose p {
  margin-bottom: 1.4rem;
}

.article-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--sl-dark);
  margin: 2.6rem 0 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
  scroll-margin-top: 100px;
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--sl-dark);
  margin: 2rem 0 0.8rem;
  scroll-margin-top: 100px;
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-prose ul li::marker {
  color: var(--sl-blue);
}

.article-prose ol li::marker {
  color: var(--sl-blue);
  font-weight: 700;
}

.article-prose li {
  line-height: 1.75;
}

.article-prose strong {
  font-weight: 600;
  color: var(--sl-dark);
}

/* .article-prose a {
  /* color: var(--sl-gold); */
  /* font-weight: 500; */
  /* border-bottom: 1px solid rgba(0,94,171,0.25); */
  /* transition: all 0.2s; */
/* }  */

/* .article-prose a:hover {
  color: var(--sl-blue-dark);
  border-bottom-color: var(--sl-blue);
} */


/* ── CALLOUT BOXES ────────────────────────────── */

.tip-box,
.warning-box,
.info-box {
  border-radius: 10px;
  padding: 18px 22px;
  margin: 2rem 0;
  font-size: 0.97rem;
  line-height: 1.72;
}

.tip-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  color: #14532d;
}

.tip-box strong {
  color: #15803d;
}

.warning-box {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  color: #7c2d12;
}

.warning-box strong {
  color: #c2410c;
}

.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--sl-blue);
  color: #1e3a5f;
}

.info-box strong {
  color: var(--sl-blue-dark);
}


/* ── SERVICE TABLE ────────────────────────────── */

.service-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0 2rem;
  font-size: 0.9375rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-table thead tr {
  background: var(--sl-blue);
  color: var(--white);
}

.service-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.service-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.18s;
}

.service-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.service-table tbody tr:hover {
  background: rgba(0,94,171,0.04);
}

.service-table td {
  padding: 13px 18px;
  vertical-align: top;
  line-height: 1.6;
}

.service-table td:first-child {
  font-weight: 600;
  color: var(--sl-blue);
  white-space: nowrap;
}


/* ── FAQ SECTION ──────────────────────────────── */

.faq-section {
  margin: 2.6rem 0;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sl-dark);
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question.open {
  background: var(--gray-50);
  color: var(--sl-blue);
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--sl-blue);
  transition: transform 0.28s ease;
}

.faq-question.open svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--sl-gray);
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

.faq-answer.open {
  display: block;
}


/* ── AUTHOR BLOCK ─────────────────────────────── */

.article-author-block {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 3rem 0 2rem;
}

.author-avatar-lg {
  width: 58px;
  height: 58px;
  min-width: 58px;
  background: var(--sl-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.author-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sl-dark);
  margin-bottom: 3px;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--sl-gray);
  line-height: 1.5;
  margin: 0;
}

.author-info .author-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sl-blue);
  border-bottom: 1px solid rgba(0,94,171,0.2);
  transition: all 0.2s;
}

.author-info .author-cta:hover {
  color: var(--sl-blue-dark);
  border-bottom-color: var(--sl-blue);
}


/* ── ARTICLE TAGS ─────────────────────────────── */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2rem 0 3rem;
}

.article-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--sl-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
}

.article-tag:hover {
  background: var(--sl-blue);
  color: var(--white);
  border-color: var(--sl-blue);
}


/* ══════════════════════════════════════════════════
   INLINE ARTICLE CTA
══════════════════════════════════════════════════ */

.article-cta-strip {
  background: linear-gradient(135deg, var(--sl-blue) 0%, var(--sl-blue-dark) 100%);
  border-radius: 16px;
  padding: 36px 40px;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.article-cta-strip h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.article-cta-strip p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

.article-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cta-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--sl-blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 8px;
  transition: var(--transition-base);
  white-space: nowrap;
}

.cta-btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.cta-btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.55);
  transition: var(--transition-base);
  white-space: nowrap;
}

.cta-btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}


/* ══════════════════════════════════════════════════
   RELATED ARTICLES
══════════════════════════════════════════════════ */

.related-section {
  background: var(--gray-50);
  padding: 64px 0;
  border-top: 1px solid var(--gray-200);
}

.related-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.related-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--sl-dark);
  margin-top: 6px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sl-blue);
}

.related-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray-100);
}

.related-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--sl-dark) 0%, var(--sl-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
}

.related-card-body {
  padding: 20px 22px 22px;
}

.related-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sl-gold-dark);
  background: var(--sl-gold-pale);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.related-card-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sl-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-card-body p {
  font-size: 0.875rem;
  color: var(--sl-gray);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-read-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sl-blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.related-card:hover .related-read-link {
  gap: 9px;
}

.related-card-meta {
  font-size: 0.8rem;
  color: var(--sl-gray-light);
}


/* ══════════════════════════════════════════════════
   CONTACT CTA (bottom of page)
══════════════════════════════════════════════════ */

.contact-cta {
  background: var(--sl-dark);
  padding: 64px 0;
  text-align: center;
}

.contact-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-cta p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 28px;
  border-radius: 8px;
  transition: var(--transition-base);
}

.cta-btn.primary {
  background: var(--sl-blue);
  color: var(--white);
  border: 2px solid var(--sl-blue);
}

.cta-btn.primary:hover {
  background: var(--sl-blue-dark);
  border-color: var(--sl-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,94,171,0.4);
}

.cta-btn.secondary {
  background: #25d366;
  color: var(--white);
  border: 2px solid #25d366;
}

.cta-btn.secondary:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
}

.cta-btn.outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.cta-btn.outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */

.footer-cont {
  background: var(--sl-black);
  color: rgba(255,255,255,0.78);

}



/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */


@media (max-width: 640px) {
  .article-hero {
    min-height: 340px;
    height: auto;
    max-height: none;
    padding-bottom: 0;
    margin-top: 5em;
  }

  .article-hero-inner {
    padding: 24px 20px 36px;
  }

  .article-hero-inner h1 {
    font-size: 1.65rem;
  }

  .article-body-section {
    padding: 40px 0 60px;
  }

  .article-toc {
    padding: 18px 20px;
  }

  .article-prose h2 {
    font-size: 1.25rem;
  }

  .article-author-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .article-cta-strip {
    flex-direction: column;
    padding: 28px 24px;
    text-align: center;
  }

  .article-cta-btns {
    width: 100%;
    justify-content: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}


/* ── FAQ Script behaviour ─────────────────────── */
/* (accordion is CSS-only-toggle via JS class) */