/* ============================================================
   GARAGE SHOP LAWN — Blog Theme
   Mobile-first, clean reading, fast scanning
   ============================================================ */

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

:root {
  --green: #1B4332;
  --green-light: #2D6A4F;
  --green-pale: #D8F3DC;
  --gold: #D4A017;
  --gold-light: #F4D03F;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-light: #777;
  --bg: #FAFAF8;
  --bg-alt: #F0EDE8;
  --white: #fff;
  --border: #E5E2DC;
  --radius: 8px;
  --max-width: 720px;
  --max-width-wide: 1080px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-light); text-decoration: none; }
a:hover { color: var(--green); }

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 1.25rem auto 0;
  padding: 0 1.5rem;
  color: var(--text-light);
  font-size: .88rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--green);
}

.breadcrumb-sep {
  display: inline-block;
  margin: 0 .45rem;
  color: var(--text-light);
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  background: var(--green);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-logo:hover { color: var(--gold-light); }
.nav-logo-img { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: .75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-toggle { display: flex; }
}

/* ── Homepage Hero ────────────────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.home-hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.home-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .home-hero { padding: 2rem 1rem 1.5rem; }
  .home-hero h1 { font-size: 1.7rem; }
  .home-tagline { font-size: .95rem; }
}

/* ── Featured Post ────────────────────────────────────────── */
.featured-post {
  max-width: var(--max-width-wide);
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
.featured-link {
  display: block;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.featured-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  color: var(--white);
}
.featured-image {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
}
.featured-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.featured-content {
  padding: 2rem 2.5rem;
}
.featured-content .post-category {
  background: rgba(255,255,255,.15);
  color: var(--gold-light);
  border: none;
}
.featured-content h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.6rem;
  margin: .75rem 0;
  line-height: 1.3;
}
.featured-content p {
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.read-more {
  font-weight: 600;
  color: var(--gold-light);
  font-size: .95rem;
}

@media (max-width: 640px) {
  .featured-content { padding: 1.5rem; }
  .featured-content h2 { font-size: 1.3rem; }
}

/* ── Post Grid (Homepage + Category) ─────────────────────── */
.post-grid {
  max-width: var(--max-width-wide);
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  color: var(--text);
}
.post-card-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.post-card-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: .5rem 0;
  color: var(--text);
}
.post-card p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.55;
  flex: 1;
}
.post-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

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

/* ── Post Category Badge ──────────────────────────────────── */
.post-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green);
  background: var(--green-pale);
  padding: .2rem .6rem;
  border-radius: 4px;
}

/* ── Article / Post Page ──────────────────────────────────── */
.post {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.post-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.post-header h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--text);
  margin: .75rem 0 .5rem;
}
.post-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.post-meta-sep { color: var(--border); }

@media (max-width: 640px) {
  .post-header { padding: 1.5rem 0 1rem; }
  .post-header h1 { font-size: 1.5rem; }
}

/* ── Post Hero Image ──────────────────────────────────────── */
.post-hero {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.post-hero img {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
}
@media (max-width: 600px) {
  .post-hero img { height: 220px; }
}

/* ── Post Body ────────────────────────────────────────────── */
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-body h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.45rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-top: .5rem;
  line-height: 1.3;
}

.post-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 .75rem;
}

.post-body p {
  margin-bottom: 1.25rem;
}

.post-body ul, .post-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.post-body li {
  margin-bottom: .5rem;
}

.post-body strong {
  color: var(--text);
  font-weight: 600;
}

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Quick Answer / TL;DR Box — the scanners love this */
.post-body .quick-answer {
  background: var(--green-pale);
  border: 1px solid #B7E4C7;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.post-body .quick-answer strong:first-child {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--green);
  margin-bottom: .5rem;
}

/* Pro Tip / Warning boxes */
.post-body .tip-box {
  background: #FFF8E1;
  border: 1px solid #FFECB3;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.post-body .tip-box strong:first-child {
  color: var(--gold);
}

.post-body .warning-box {
  background: #FFF3F0;
  border: 1px solid #FFCDD2;
  border-left: 3px solid #E53935;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}

/* Comparison / spec highlights */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.post-body th {
  background: var(--green);
  color: var(--white);
  padding: .65rem .85rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
}
.post-body td {
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--border);
}
.post-body tr:nth-child(even) td {
  background: var(--bg-alt);
}

@media (max-width: 640px) {
  .post-body { font-size: 1rem; }
  .post-body h2 { font-size: 1.25rem; }
  .post-body table { font-size: .82rem; }
  .post-body th, .post-body td { padding: .5rem .6rem; }
}

/* ── Post Footer ──────────────────────────────────────────── */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-share {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  color: var(--text-secondary);
}
.post-share strong { color: var(--text); }

.post-related h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ── Category Pages ───────────────────────────────────────── */
.category-header {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.category-header h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2rem;
  color: var(--green);
}
.category-header p {
  color: var(--text-secondary);
  margin-top: .5rem;
}

.category-grid {
  max-width: var(--max-width-wide);
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
  color: var(--text);
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.category-card h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: .25rem;
}
.category-card p {
  font-size: .85rem;
  color: var(--text-light);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--green);
  color: rgba(255,255,255,.7);
  padding: 2rem 1rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  text-align: center;
}
.footer-inner p { font-size: .85rem; margin-bottom: .75rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }

/* ── Category Hub Intro ──────────────────────────────────── */
.category-intro {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.7;
}
.category-intro p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.category-intro .start-here {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.category-intro .start-here strong {
  color: var(--green);
  font-size: .95rem;
}
.category-intro .start-here ul {
  list-style: none;
  margin-top: .5rem;
  padding: 0;
}
.category-intro .start-here li {
  margin-bottom: .4rem;
  padding-left: 1.25rem;
  position: relative;
}
.category-intro .start-here li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}
.category-intro .start-here a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--green-pale);
  transition: border-color .15s;
}
.category-intro .start-here a:hover {
  border-color: var(--green);
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
