/* ============================================
   RichmondCarDeals.com — Blog Stylesheet
   Matches main site: navy #08111F, gold #C9A55A
   Fonts: Inter (body) + Playfair Display (headings)
   ============================================ */

:root {
  --navy:        #08111F;
  --navy-mid:    #0F2040;
  --gold:        #C9A55A;
  --gold-light:  #E2C07A;
  --white:       #FFFFFF;
  --off-white:   #F7F5F0;
  --text-body:   #2C3A4A;
  --text-muted:  #6B7A8D;
  --border:      #E4EAF2;
  --max-width:   1100px;
  --post-width:  720px;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-body);
  line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

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

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

/* ---- HEADER ---- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(201,165,90,0.2);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-richmond { color: var(--white); }
.logo-car      { color: var(--gold); }
.logo-dot      { color: var(--text-muted); font-weight: 400; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold); }

.btn-nav {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--gold-light) !important; }

/* ---- BLOG HERO ---- */
.blog-hero {
  background: var(--navy);
  padding: 64px 0 56px;
  border-bottom: 2px solid var(--gold);
}
.blog-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.blog-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ---- BLOG POST LIST ---- */
.blog-list {
  padding: 56px 0 80px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover {
  box-shadow: 0 4px 24px rgba(8,17,31,0.1);
  border-color: var(--gold);
}

@media (min-width: 640px) {
  .post-card {
    flex-direction: row;
  }
  .post-card-img-wrap {
    width: 260px;
    flex-shrink: 0;
  }
}

.post-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.post-category {
  background: rgba(201,165,90,0.15);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
}

.post-date, .post-readtime {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.post-title a { color: var(--navy); }
.post-title a:hover { color: var(--gold); }

.post-summary {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-readmore {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
}
.post-readmore:hover { color: var(--gold-light); }

.no-posts { color: var(--text-muted); padding: 40px 0; }
.no-posts a { color: var(--gold); }

/* ---- SINGLE POST ---- */
.post-single {
  padding: 56px 0 80px;
}

.post-container {
  max-width: var(--post-width);
}

.post-header {
  margin-bottom: 32px;
}

.post-title-single {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 16px 0 12px;
}

.post-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.post-hero-img {
  margin: 0 0 36px;
  border-radius: 10px;
  overflow: hidden;
}
.post-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* ---- POST CONTENT TYPOGRAPHY ---- */
.post-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}

.post-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.post-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}

.post-content p { margin-bottom: 20px; }

.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
}
.post-content li { margin-bottom: 6px; }

.post-content strong { color: var(--navy); font-weight: 600; }

.post-content a { color: var(--gold); border-bottom: 1px solid rgba(201,165,90,0.3); }
.post-content a:hover { color: var(--gold-light); }

.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--off-white);
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.post-content th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
}
.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.post-content tr:nth-child(even) td { background: var(--off-white); }

/* ---- INLINE CTA ---- */
.post-cta {
  background: var(--navy);
  border-radius: 10px;
  padding: 36px 40px;
  margin: 48px 0 32px;
  text-align: center;
}
.post-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.post-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--gold-light); color: var(--navy); }

/* ---- POST FOOTER ---- */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.back-to-blog {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.back-to-blog:hover { color: var(--gold); }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: var(--off-white);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* ---- DEAL ALERT SECTION ---- */
.deal-alert {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.deal-alert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.deal-alert-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.deal-alert-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 420px;
}
.deal-alert-form {
  flex-shrink: 0;
}
/* Deal Alert Form */
#da-form { display: flex; flex-direction: column; gap: 10px; }
.da-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.da-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  flex: 1;
  min-width: 160px;
  outline: none;
  background: var(--white);
  color: var(--text-body);
  transition: border-color 0.2s;
}
.da-input:focus { border-color: var(--gold); }
.da-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.da-btn:hover { background: var(--navy-mid); }
.da-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.da-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.da-disclaimer a { color: var(--text-muted); text-decoration: underline; }
.da-success {
  background: rgba(201,165,90,0.1);
  border: 1px solid rgba(201,165,90,0.3);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
}
.da-error {
  background: rgba(220,50,50,0.08);
  border: 1px solid rgba(220,50,50,0.25);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #c0392b;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  padding: 28px 0;
  text-align: center;
}
.site-footer p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.site-footer a { color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: var(--gold); }
.footer-disclaimer { font-size: 0.72rem !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .site-nav a:not(.btn-nav) { display: none; }
  .post-card-body { padding: 20px; }
  .post-cta { padding: 28px 24px; }
  .deal-alert-inner { flex-direction: column; }
  #deal-alert-placeholder { flex-direction: column; }
  #deal-alert-placeholder input { min-width: unset; width: 100%; }
}
