/* Liberty County Home Buyer Guide — Blog Stylesheet
   Shared across the blog index and all blog post pages.
   Hunter green / navy / white palette, matching the homepage.
*/

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

:root {
  --green: #2d4636;
  --green-deep: #1f3326;
  --green-mid: #3a5a44;
  --green-soft: #557d61;
  --sage: #b6cdb8;
  --navy: #14253f;
  --navy-soft: #2c4666;
  --white: #ffffff;
  --paper-soft: #f1f5f1;
  --line: #e0e7e1;
  --ink: #1b2620;
  --ink-soft: #4c5852;
  --ink-muted: #6b756f;
  --shadow: 0 8px 28px rgba(31,51,38,0.10);
  --shadow-lg: 0 22px 50px rgba(31,51,38,0.20);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.brand { font-size: 1.05rem; font-weight: 700; color: var(--green); letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; }
.brand small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--ink-muted); margin-top: 3px; letter-spacing: 0.04em; text-transform: uppercase; }
.header-nav { display: flex; gap: 1.5rem; align-items: center; }
.header-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.header-nav a:hover { color: var(--green); }
.header-nav .nav-cta {
  background: var(--green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}
.header-nav .nav-cta:hover { background: var(--green-mid); color: white; }

/* ===== BLOG INDEX HERO ===== */
.blog-hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(20,37,28,0.93) 0%, rgba(31,51,38,0.80) 100%),
    url('../city-of-hinesville.jpg') center 60%/cover no-repeat,
    var(--green-deep);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.blog-hero .eyebrow {
  display: inline-block;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.blog-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.86); max-width: 600px; margin: 0 auto; }

/* ===== POST GRID ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); color: var(--ink); }
.post-card .tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--paper-soft);
  color: var(--green-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}
.post-card h2 { font-size: 1.25rem; color: var(--green); line-height: 1.25; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.post-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1rem; flex-grow: 1; }
.post-card .read { color: var(--green-soft); font-weight: 700; font-size: 0.9rem; }

/* ===== ARTICLE PAGE ===== */
.article-header {
  background: var(--paper-soft);
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs span { margin: 0 0.4rem; }
.article-header .tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--green);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.byline { font-size: 0.92rem; color: var(--ink-muted); }
.byline a { color: var(--ink-muted); }

article { padding: 2.5rem 0 1rem; }
article h2 {
  font-size: 1.6rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
article h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0.5rem; }
article h3 {
  font-size: 1.2rem;
  color: var(--green-mid);
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
article p { margin-bottom: 1.1rem; }
article ul, article ol { margin: 0.5rem 0 1.1rem 1.5rem; }
article li { margin-bottom: 0.4rem; }
article strong { color: var(--green); }
article a { color: var(--green-mid); }

/* Answer block for AI extraction */
.answer-block {
  background: var(--paper-soft);
  border-left: 4px solid var(--green);
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
}
.answer-block p:last-child { margin-bottom: 0; }

/* Callout */
.callout {
  background: #eef3ee;
  border: 1px solid #d5e2d7;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.75rem 0;
}
.callout strong { color: var(--green); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.93rem;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
thead { background: var(--green); color: var(--white); }
th { padding: 0.75rem 0.9rem; text-align: left; font-weight: 600; }
td { padding: 0.75rem 0.9rem; border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: var(--paper-soft); }

/* FAQ */
.faq { margin-top: 1rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--white);
}
.faq details[open] { border-color: var(--green-soft); }
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--green);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-soft); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 0.75rem; margin-bottom: 0; }

/* In-article CTA */
.cta-box {
  background:
    linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  padding: 2.25rem 2rem;
  border-radius: 14px;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.6rem; }
.cta-box p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 1.4rem; }
.cta-box a {
  display: inline-block;
  background: var(--white);
  color: var(--green);
  padding: 0.85rem 2rem;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
}
.cta-box a:hover { background: var(--paper-soft); }

/* Sources + author */
.sources {
  background: var(--paper-soft);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.sources h3 { margin-top: 0; color: var(--green); }
.sources ul { margin-left: 1.25rem; }
.sources a { color: var(--green-mid); }

.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2.5rem 0;
}
.author-bio img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio h3 { margin: 0 0 0.3rem; color: var(--green); }
.author-bio .credentials { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.6rem; }
.author-bio p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.author-bio a { color: var(--green-mid); }

/* Continue reading */
.continue-reading { margin: 2.5rem 0; }
.continue-reading h2 { font-size: 1.4rem; color: var(--green); }
.continue-reading ul { list-style: none; margin-left: 0; }
.continue-reading li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.continue-reading li:last-child { border-bottom: none; }
.continue-reading a { color: var(--green); font-weight: 600; text-decoration: none; }
.continue-reading a:hover { color: var(--green-soft); }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 2.5rem 0 1.5rem; font-size: 0.88rem; margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; margin-bottom: 1.75rem; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.7rem; }
.footer p { margin-bottom: 0.4rem; line-height: 1.55; }
.footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.4rem; font-size: 0.78rem; line-height: 1.55; opacity: 0.75; }
.footer-disclaimer p { margin-bottom: 0.5rem; }
.footer-disclaimer a { color: rgba(255,255,255,0.85); }
.ehl { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.ehl svg { width: 30px; height: 30px; color: rgba(255,255,255,0.9); flex-shrink: 0; }
.ehl span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.9); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  body { font-size: 16px; }
  article h2 { font-size: 1.35rem; }
  .post-grid { grid-template-columns: 1fr; padding: 2rem 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .author-bio { flex-direction: column; align-items: center; text-align: center; }
  .header-nav { gap: 1rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 0.6rem 0.7rem; }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible { outline: 3px solid var(--green-soft); outline-offset: 2px; }
