/* Senior Move Guide — Editorial Design */
:root {
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --accent: #1A3A5C;
  --accent-light: #2255A4;
  --accent-warm: #C47A2B;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --bg: #FAFAF9;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --content-width: 720px;
  --wide-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 5rem; }
body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-light); }
img { display: block; max-width: 100%; }

/* ── Site Header ── */
.site-header {
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

/* ── Home Hero ── */
.home-hero {
  background: linear-gradient(135deg, #1A3A5C 0%, #0D2440 100%);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.home-hero-inner { max-width: 720px; margin: 0 auto; }
.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
}
.home-sub {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin-top: 1.2rem;
  line-height: 1.6;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--accent-warm);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: #a86520; color: #fff; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Trust Bar ── */
.trust-bar {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  background: var(--bg-card);
}
.trust-bar-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.trust-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.trust-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Guides Section ── */
.guides-section { padding: 4rem 2rem; }
.directory-promo {
  background: #EFF4FA;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.directory-promo .btn-primary { margin-top: 1rem; }
.section-inner { max-width: var(--wide-width); margin: 0 auto; }
.section-inner h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-inner p { font-family: var(--sans); color: var(--text-muted); margin-bottom: 1.5rem; }
.section-sub { font-size: 1rem; }

/* ── Guide Cards ── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
  overflow: hidden;
}
.guide-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #CBD5E1; }
.guide-card-img-wrap { width: 100%; height: 180px; overflow: hidden; }
.guide-card-img { width: 100%; height: 180px; object-fit: cover; object-position: center; display: block; transition: transform 0.3s ease; }
.guide-card:hover .guide-card-img { transform: scale(1.03); }
.guide-card-inner { padding: 1.5rem; }
.guide-keyword {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
}
.guide-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.guide-desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.guide-link {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}
.empty-state { color: var(--text-muted); font-style: italic; }

/* ── Article Hero Image ── */
.article-hero-img-wrap {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}
.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Article Layout ── */
.article-wrap { max-width: var(--wide-width); margin: 0 auto; padding: 0 2rem 4rem; }
.article-hero {
  padding: 3rem 0 2rem;
  max-width: var(--content-width);
}
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.meta-dot { color: #D1D5DB; }

.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── TOC Sidebar ── */
.toc-sidebar { position: sticky; top: 5rem; }
.toc-sticky { padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; }
.toc-sticky-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.toc-sticky ol { list-style: none; padding: 0; }
.toc-sticky li { margin-bottom: 0.4rem; }
.toc-sticky a {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 0.15rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: color 0.1s, border-color 0.1s;
}
.toc-sticky a:hover { color: var(--accent); }
.toc-sticky a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.toc-mobile { display: none; }

/* ── Article Content ── */
.article-content { min-width: 0; }
.lead-paragraph {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.article-section { margin-bottom: 3rem; }
.article-section h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.article-section h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
}
.article-section p { margin-bottom: 1rem; }
.article-section p:last-child { margin-bottom: 0; }

/* ── Quick Answer Box ── */
.quick-answer-box {
  background: #EFF4FA;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.quick-answer-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.quick-answer-box ul {
  list-style: none;
  padding: 0;
}
.quick-answer-box li {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
  line-height: 1.5;
}
.quick-answer-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Directory CTA Box ── */
.directory-cta-box {
  background: #F0F7FF;
  border: 1px solid #BDD7F5;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
}
.directory-cta-box p { margin: 0; }

/* ── FAQ Section ── */
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item { margin-bottom: 1.75rem; border-bottom: 1px solid var(--border); padding-bottom: 1.75rem; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.faq-item p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* ── Article Footer CTA ── */
.article-footer-cta {
  background: linear-gradient(135deg, #1A3A5C 0%, #0D2440 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 3rem;
}
.article-footer-cta p {
  font-family: var(--sans);
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}
.article-footer-cta .btn-primary { margin: 0; }

/* ── Directory Coming Soon ── */
.directory-coming {
  max-width: 600px;
  margin: 6rem auto;
  text-align: center;
  padding: 0 2rem;
}
.directory-coming h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.coming-sub {
  font-family: var(--sans);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.directory-coming p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.directory-coming .btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  background: var(--bg-card);
}
.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-inner p { font-family: var(--sans); font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-family: var(--sans); font-size: 0.85rem; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ── State Cards & Cities ── */
.state-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.state-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #CBD5E1; }
.state-card-inner { padding: 1.25rem 1.5rem; }
.state-card h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.state-card p { font-family: var(--sans); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.state-nav ul { list-style: none; padding: 0; }
.state-nav li { margin-bottom: 0.35rem; }
.state-nav a { font-family: var(--sans); font-size: 0.82rem; color: var(--text-muted); text-decoration: none; }
.state-nav a:hover { color: var(--accent); }
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.city-blurb {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
.city-blurb h3 { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--accent); }
.city-blurb p { font-family: var(--sans); font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-sidebar { display: none; }
  .toc-mobile { display: block; margin-bottom: 2rem; }
  .toc-mobile details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; }
  .toc-mobile summary { padding: 0.75rem 1rem; font-family: var(--sans); font-size: 0.9rem; cursor: pointer; color: var(--text-muted); }
  .toc-mobile ol { list-style: none; padding: 0 1rem 1rem; }
  .toc-mobile li { margin-bottom: 0.4rem; }
  .toc-mobile a { font-family: var(--sans); font-size: 0.85rem; color: var(--accent); }
  .article-hero h1 { font-size: 1.7rem; }
  .home-hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .trust-bar-inner { gap: 1.5rem; }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #E8E8E8;
    --text-muted: #9CA3AF;
    --bg: #111827;
    --bg-card: #1F2937;
    --border: #374151;
  }
  .home-hero { background: linear-gradient(135deg, #0D1F33 0%, #070F1A 100%); }
  .directory-promo { background: #1A2433; }
  .quick-answer-box { background: #162033; }
  .directory-cta-box { background: #162033; border-color: #2A4A6B; }
  .article-footer-cta { background: linear-gradient(135deg, #0D1F33 0%, #070F1A 100%); }
}
