/* KansasCityCriminalLaw.com — rank-and-rent legal site styling.
   Deep navy + warm cream + restrained gold. Serif headlines, system sans body. */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@500;600;700&display=swap');

:root {
  --ink:        #0f172a;
  --ink-soft:   #1e293b;
  --muted:      #475569;
  --muted-2:    #64748b;
  --bg:         #faf8f3;
  --bg-card:    #ffffff;
  --navy:       #1e3a8a;
  --navy-deep:  #0c1e4a;
  --gold:       #b8860b;
  --gold-soft:  #d4a52f;
  --line:       #e2e8f0;
  --line-soft:  #f1f5f9;
  --serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.1), 0 2px 4px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.14), 0 4px 8px rgba(15,23,42,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: .2em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin-top: 2.2em; color: var(--navy-deep); }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
h2:first-child, h3:first-child { margin-top: 0; }
p { margin: 0 0 1.2em; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(30,58,138,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s, color .15s;
}
a:hover { color: var(--navy-deep); text-decoration-color: currentColor; }
strong { color: var(--ink-soft); font-weight: 600; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin: .4em 0; }
ul ul, ol ol { margin: .2em 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

/* ============ HEADER ============ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,243,.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  color: var(--navy-deep); text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: .55rem;
}
.logo svg { color: var(--gold); flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a {
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
}
.header-nav a:hover { color: var(--navy); }

@media (max-width: 820px) {
  .header-nav { gap: 1rem; }
  .header-nav a { font-size: .85rem; }
}
@media (max-width: 680px) {
  .header-nav { display: none; }
  .site-header .inner { padding: .8rem 1rem; }
}

main { min-height: 60vh; }
article {
  max-width: 760px; margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ============ HOMEPAGE HERO ============ */

.hero {
  position: relative; color: #fff;
  padding: 5.5rem 1.5rem 8rem;
  text-align: center; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,24,60,.74) 0%, rgba(8,18,46,.90) 100%),
    url('/images/hero-library.jpg') center 38%/cover no-repeat,
    var(--navy-deep);
}
/* refined gold hairline along the top edge */
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--gold-soft) 50%, transparent 95%);
  z-index: 3;
}
.hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.hero .eyebrow { position: relative; padding-bottom: .5rem; }
.hero .eyebrow::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--gold-soft);
}
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 600; letter-spacing: -0.015em; margin-bottom: .7rem;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.6;
  color: rgba(255,255,255,.92); max-width: 660px; margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions a.primary,
.btn-primary {
  background: var(--gold); color: var(--navy-deep); font-weight: 700;
  padding: .9rem 1.7rem; border-radius: 6px; text-decoration: none;
  transition: background .15s, transform .1s; box-shadow: var(--shadow-md);
}
.hero-actions a.primary:hover,
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); color: var(--navy-deep); }
.hero-actions a.secondary,
.btn-secondary {
  background: transparent; color: #fff; font-weight: 600;
  padding: .9rem 1.7rem; border-radius: 6px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.4);
}
.hero-actions a.secondary:hover,
.btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; }
.trust-line {
  margin-top: 1.8rem; font-size: .9rem; color: rgba(255,255,255,.75);
  display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap;
}
.trust-line span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-line span::before { content: '●'; color: var(--gold); font-size: .55rem; }

/* ============ FEATURE BAR ============ */

.feature-bar {
  max-width: 1140px; margin: -4.5rem auto 0; padding: 0 1.5rem;
  position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.feature-card {
  background: #fff; border-radius: 10px; padding: 1.5rem 1.3rem;
  box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold);
}
.feature-card strong {
  display: block; font-family: var(--serif); font-size: 1.1rem;
  color: var(--navy-deep); margin: .7rem 0 .25rem; font-weight: 600;
}
.feature-card span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.icon-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-circle.gold { background: linear-gradient(135deg, var(--gold) 0%, #9a6f08 100%); }

/* ============ SECTIONS ============ */

.section { padding: 4.5rem 1.5rem; }
.section--white { background: #fff; }
.section--cream { background: var(--bg); }
.section--navy {
  background:
    linear-gradient(135deg, rgba(8,18,46,.86) 0%, rgba(12,30,74,.80) 100%),
    url('/images/gavel.jpg') center 40%/cover no-repeat, var(--navy-deep);
  color: #fff;
  position: relative;
}
.section--navy::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--gold-soft) 50%, transparent 95%);
}
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 2.8rem; }
.section-head h2 { margin: 0 0 .5rem; }
.section--navy .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section--navy .section-head p { color: rgba(255,255,255,.85); }

/* ============ PRACTICE-AREA CARDS ============ */

.practice-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem;
}
.practice-grid li { margin: 0; }
.practice-grid a {
  display: block; height: 100%;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.6rem 1.4rem;
  text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative; overflow: hidden;
}
.practice-grid a:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--navy);
}
.practice-grid a::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  opacity: 0; transition: opacity .15s;
}
.practice-grid a:hover::before { opacity: 1; }
.practice-grid .icon-circle { margin-bottom: 1rem; }
.practice-grid strong {
  display: block; font-family: var(--serif); font-size: 1.25rem;
  color: var(--navy-deep); font-weight: 600; margin-bottom: .35rem;
}
.practice-grid span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.practice-grid .more {
  display: inline-block; margin-top: .8rem; font-size: .85rem;
  font-weight: 600; color: var(--navy); letter-spacing: .02em;
}

/* ============ PROCESS STEPS ============ */

.process-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.process-grid li { margin: 0; }
.process-step {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 2rem 1.5rem; text-align: center; height: 100%;
  position: relative;
}
.process-step .step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep);
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.process-step .icon-circle { margin: .6rem auto 1rem; }
.process-step strong {
  display: block; font-family: var(--serif); font-size: 1.2rem;
  color: var(--navy-deep); margin-bottom: .4rem;
}
.process-step span { color: var(--muted); font-size: .95rem; }

/* ============ LINK / GUIDE LISTS ============ */

.link-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem 1.4rem;
}
.link-grid li { margin: 0; }
.link-grid a {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: 7px; text-decoration: none; color: var(--ink-soft);
  font-weight: 500; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.link-grid a:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.link-grid a svg { color: var(--gold); flex-shrink: 0; }
.link-grid .sub { color: var(--muted-2); font-size: .85rem; font-weight: 400; }

.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.guide-list li { margin: 0; }
.guide-list a {
  display: block; background: var(--bg-card);
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 1.2rem 1.4rem; text-decoration: none; color: var(--ink);
  transition: box-shadow .15s, border-left-color .15s;
}
.guide-list a:hover { box-shadow: var(--shadow-sm); border-left-color: var(--navy); }
.guide-list a strong {
  display: block; font-family: var(--serif); font-size: 1.15rem;
  color: var(--navy-deep); margin-bottom: .35rem; font-weight: 600;
}
.guide-list a span { color: var(--muted); font-size: .94rem; }
.guide-list .cornerstone a {
  border-left-color: var(--navy);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

/* ============ FEATURED CARD (cornerstone) ============ */

.featured {
  display: flex; gap: 1.6rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 2rem; box-shadow: var(--shadow-md);
}
.featured .featured-icon {
  width: 88px; height: 88px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.featured h3 { margin: 0 0 .4rem; font-size: 1.4rem; }
.featured p { margin: 0 0 .8rem; color: var(--muted); }
.featured a.more { font-weight: 600; }
@media (max-width: 560px) { .featured { flex-direction: column; text-align: center; } }

/* ============ CLOSING BAND ============ */

.closing-band { text-align: center; }
.closing-band h2 { color: #fff; }
.closing-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 1.8rem; }
.closing-band .hero-actions { margin-top: .5rem; }

/* ============ PAGE HERO (interior pages) ============ */

.page-hero {
  background:
    linear-gradient(180deg, rgba(10,24,60,.82) 0%, rgba(8,18,46,.92) 100%),
    url('/images/law-books.jpg') center 45%/cover no-repeat, var(--navy-deep);
  color: #fff; padding: 3.25rem 1.5rem 3.75rem; position: relative;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--gold-soft) 50%, transparent 95%);
}
.page-hero .inner { max-width: 880px; margin: 0 auto; position: relative; }
.page-hero .breadcrumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.page-hero .breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-hero .breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.page-hero .meta { margin-top: .8rem; color: rgba(255,255,255,.85); font-size: 1rem; }

article.has-hero { padding-top: 2.5rem; }
article.has-hero > h1:first-of-type { display: none; }

/* ============ ARTICLE INTERNAL NAV ============ */

.cluster, .geo-links {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.4rem 1.6rem; margin: 2.4rem 0; box-shadow: var(--shadow-sm);
}
.cluster h2, .geo-links h2 {
  font-size: 1.05rem; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin: 0 0 1rem; font-weight: 600;
}
.cluster ul, .geo-links ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem 1.2rem;
}
.cluster li, .geo-links li { padding: .3rem 0; margin: 0; }
.cluster a, .geo-links a { font-weight: 500; }

/* ============ FAQ ============ */

.faqs {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem 1.6rem; margin: 2.4rem 0;
}
.faqs h2 {
  font-family: var(--sans); font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin: .8rem 0 .4rem; font-weight: 600;
}
.faqs details { border-bottom: 1px solid var(--line-soft); padding: 1rem 0; }
.faqs details:last-child { border-bottom: 0; }
.faqs summary { cursor: pointer; list-style: none; padding-right: 2rem; position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 300; color: var(--muted); line-height: 1;
}
.faqs details[open] summary::after { content: '\2212'; }
.faqs summary h3 {
  display: inline; font-family: var(--sans); font-size: 1.02rem;
  font-weight: 600; color: var(--ink); margin: 0;
}
.faqs details p { margin: .8rem 0 0; color: var(--muted); }

/* ============ DISCLAIMER + FOOTER ============ */

.disclaimer {
  background: #fefbf3; border: 1px solid #e8d48a; border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 1.2rem 1.4rem; font-size: .92rem;
  color: #6b5a1f; line-height: 1.6; max-width: 1100px; margin: 0 auto 1.5rem;
}
.disclaimer strong { color: #5a4a16; }

.site-footer {
  background: #fff; border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem 2rem; font-size: .92rem; color: var(--muted); margin-top: 0;
}
.site-footer .inner { max-width: 1100px; margin: 0 auto; }
.site-footer nav {
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
  margin: 1rem 0; font-size: .92rem;
}
.site-footer nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { color: var(--navy); text-decoration: underline; }
.site-footer .copyright { text-align: center; color: var(--muted-2); font-size: .85rem; margin-top: 1rem; }

/* ============ MOBILE ============ */

@media (max-width: 900px) {
  .feature-bar { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  article { padding: 1.5rem 1.1rem 3rem; }
  .hero { padding: 3.5rem 1.2rem 6rem; }
  .section { padding: 3rem 1.1rem; }
  .feature-bar { grid-template-columns: 1fr; margin-top: -3.5rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
}

/* ============ HEADER DROPDOWN (Practice Areas) ============ */

.nav-dd { position: relative; }
.nav-dd-toggle {
  font-family: var(--sans); font-size: .92rem; font-weight: 500;
  color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem; padding: 0;
}
.nav-dd-toggle svg { transition: transform .15s; }
.nav-dd-toggle:hover { color: var(--navy); }
.nav-dd:hover .nav-dd-toggle,
.nav-dd:focus-within .nav-dd-toggle { color: var(--navy); }
.nav-dd:hover .nav-dd-toggle svg,
.nav-dd:focus-within .nav-dd-toggle svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: .55rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .3rem;
  min-width: 480px;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.nav-dd-menu::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block; padding: .55rem .8rem; border-radius: 6px;
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
}
.nav-dd-menu a:hover { background: var(--bg); color: var(--navy); }

/* ============ PARTNER CTA ============ */

.partner-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; padding: 3.25rem 1.5rem; text-align: center;
  position: relative;
}
.partner-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--gold-soft) 50%, transparent 95%);
}
.partner-cta-inner { max-width: 640px; margin: 0 auto; }
.partner-cta h2 { color: #fff; margin: .3rem 0 .6rem; }
.partner-cta > .partner-cta-inner > p { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.partner-btn {
  display: inline-block; background: var(--gold); color: var(--navy-deep);
  font-weight: 700; padding: .95rem 1.9rem; border-radius: 6px;
  text-decoration: none; margin: 1rem 0 .4rem; box-shadow: var(--shadow-md);
  transition: background .15s, transform .1s;
}
.partner-btn:hover { background: var(--gold-soft); color: var(--navy-deep); transform: translateY(-1px); }
.partner-fineprint {
  font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.5;
  margin: 1rem auto 0; max-width: 520px;
}

/* ============ BLOG ============ */

.guide-list .post-date {
  display: block; margin-top: .5rem; font-size: .82rem;
  font-weight: 600; color: var(--gold); letter-spacing: .02em;
}
.blog-post .page-hero .meta,
article.blog-post + * { }

