/* ============================================
   NKY Legal Reporters — styles.css
   Aesthetic: Editorial / Legal — refined, authoritative, serif-forward
   Color: Deep navy + warm cream + brass accent
   ============================================ */

:root {
  --navy:        #0f1f3d;
  --navy-mid:    #1a3260;
  --navy-light:  #243f7a;
  --brass:       #b5893a;
  --brass-light: #d4a84b;
  --cream:       #f7f3ec;
  --cream-dark:  #ede6d8;
  --white:       #ffffff;
  --ink:         #1a1a1a;
  --ink-mid:     #3d3d3d;
  --ink-light:   #6b6b6b;
  --border:      #d4c9b8;
  --border-dark: #b5a898;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --radius: 4px;
  --shadow: 0 2px 12px rgba(15,31,61,0.10);
  --shadow-lg: 0 8px 32px rgba(15,31,61,0.14);

  --max-width: 1200px;
  --gutter: 1.5rem;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-mid); text-decoration: underline; }
a:hover { color: var(--brass); }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--brass);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo img { height: 40px; width: auto; }
.main-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.main-nav a {
  color: rgba(247,243,236,0.82);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover {
  color: var(--brass-light);
  background: rgba(255,255,255,0.07);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,31,61,0.92) 45%, rgba(15,31,61,0.60) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 700px;
}
.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-light);
}
.hero-sub {
  font-size: 1.0625rem;
  color: rgba(247,243,236,0.85);
  margin-bottom: 2rem;
  max-width: 560px;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s;
}
.btn-primary {
  background: var(--brass);
  color: var(--navy);
  border-color: var(--brass);
}
.btn-primary:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247,243,236,0.5);
}
.btn-ghost:hover {
  background: rgba(247,243,236,0.1);
  border-color: var(--cream);
  color: var(--cream);
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brass-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.65);
  margin-top: 0.2rem;
}

/* ---- FILTER BAR ---- */
.filter-bar {
  background: var(--navy-mid);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(181,137,58,0.25);
  position: sticky;
  top: 66px;
  z-index: 90;
}
.filter-bar .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.6);
  white-space: nowrap;
}
.filter-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  border: 1px solid rgba(247,243,236,0.22);
  background: transparent;
  color: rgba(247,243,236,0.75);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--navy);
  font-weight: 600;
}

/* ---- SECTIONS ---- */
section { padding: 4rem 0; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-intro {
  font-size: 1rem;
  color: var(--ink-mid);
  margin-bottom: 2.5rem;
  max-width: 700px;
  font-weight: 300;
}

/* ---- DIRECTORY LISTING ---- */
.directory-section { background: var(--cream); }
.listing-grid {
  display: grid;
  gap: 1.5rem;
}
.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.listing-header {
  background: var(--navy);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.listing-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.listing-location {
  font-size: 0.8125rem;
  color: rgba(247,243,236,0.7);
}
.listing-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-rush    { background: #d63e3e; color: #fff; }
.badge-video   { background: #2a6dd9; color: #fff; }
.badge-remote  { background: #2a9d6d; color: #fff; }
.badge-realtime { background: var(--brass); color: var(--navy); }

.listing-body { padding: 1.25rem 1.4rem; }
.listing-details { margin-bottom: 1rem; }
.detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-weight: 600;
  color: var(--ink-light);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.detail-val { color: var(--ink); }
.detail-val a { color: var(--navy-mid); }
.listing-note {
  font-size: 0.875rem;
  color: var(--ink-mid);
  background: var(--cream);
  border-left: 3px solid var(--brass);
  padding: 0.6rem 0.9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.directory-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--ink-light);
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}

/* ---- BY COUNTY ---- */
.by-county { background: var(--navy); }
.by-county h2 { color: var(--cream); }
.by-county .section-intro { color: rgba(247,243,236,0.72); }
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.county-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(247,243,236,0.12);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: background 0.2s;
}
.county-card:hover { background: rgba(255,255,255,0.09); }
.county-flag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.county-flag.ky { background: var(--brass); color: var(--navy); }
.county-flag.oh { background: #c5262c; color: #fff; }
.county-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.county-seat {
  font-size: 0.8125rem;
  color: rgba(247,243,236,0.55);
  margin-bottom: 0.85rem;
}
.county-card ul { padding: 0; }
.county-card li {
  font-size: 0.875rem;
  color: rgba(247,243,236,0.80);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
  border-bottom: 1px solid rgba(247,243,236,0.07);
}
.county-card li:last-child { border-bottom: none; }
.county-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--brass);
}
.county-firms {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: rgba(247,243,236,0.65);
  font-style: italic;
}
.county-firms strong { color: var(--brass-light); font-style: normal; }

/* ---- HOW IT WORKS ---- */
.how-it-works { background: var(--cream-dark); }
.steps-list { list-style: none; padding: 0; display: grid; gap: 1.4rem; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.step-content p { font-size: 0.9375rem; color: var(--ink-mid); }

/* ---- RATES TABLE ---- */
.rates-section { background: var(--white); }
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.rates-table thead tr {
  background: var(--navy);
  color: var(--cream);
}
.rates-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.rates-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rates-table tr:nth-child(even) td { background: var(--cream); }
.rates-table tr:hover td { background: var(--cream-dark); }
.rates-table td:first-child { font-weight: 600; color: var(--navy-mid); }
.rates-note {
  font-size: 0.875rem;
  color: var(--ink-mid);
  background: rgba(181,137,58,0.08);
  border: 1px solid rgba(181,137,58,0.3);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

/* ---- CALCULATOR ---- */
.calculator-section { background: var(--cream-dark); }
.calculator-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: flex-start;
}
.calc-inputs {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.calc-group {
  margin-bottom: 1.25rem;
}
.calc-group:last-child { margin-bottom: 0; }
.calc-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.calc-hint {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-light);
}
.calc-group select,
.calc-group input[type="range"] {
  width: 100%;
}
.calc-group select {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--cream);
  color: var(--ink);
  appearance: auto;
}
.calc-group input[type="range"] {
  accent-color: var(--navy);
  margin-bottom: 0.3rem;
}
.calc-group output {
  display: block;
  font-size: 0.875rem;
  color: var(--navy-mid);
  font-weight: 600;
}
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.radio-label, .check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 300 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ink-mid);
  cursor: pointer;
}
.radio-label input, .check-label input { accent-color: var(--navy); }

.calc-results {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 130px;
  box-shadow: var(--shadow-lg);
}
.calc-results h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(247,243,236,0.15);
}
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(247,243,236,0.08);
  font-size: 0.875rem;
  color: rgba(247,243,236,0.80);
}
.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0 0;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brass-light);
}
.calc-disclaimer {
  font-size: 0.775rem;
  color: rgba(247,243,236,0.45);
  margin-top: 1rem;
  font-style: italic;
  line-height: 1.4;
}

/* ---- FAQ ---- */
.faq-section { background: var(--cream); }
.faq-list { display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--brass);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { background: var(--cream); }
.faq-item p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--ink-mid);
  line-height: 1.7;
  border-top: 1px solid var(--cream-dark);
  padding-top: 0.9rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  border-top: 2px solid var(--brass);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(247,243,236,0.6);
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-brand img { margin-bottom: 0.1rem; }
.footer-nav h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brass-light);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-nav ul li {
  padding: 0.2rem 0;
}
.footer-nav ul li a {
  font-size: 0.875rem;
  color: rgba(247,243,236,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav ul li a:hover { color: var(--brass-light); }
.footer-nav ul li:not(:has(a)) {
  font-size: 0.875rem;
  color: rgba(247,243,236,0.45);
}
.footer-bottom {
  border-top: 1px solid rgba(247,243,236,0.1);
  padding: 1rem 0;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(247,243,236,0.38);
  text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .calculator-wrap {
    grid-template-columns: 1fr;
  }
  .calc-results { position: static; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --gutter: 1rem; }
  section { padding: 3rem 0; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(247,243,236,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 1.25rem; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .filter-bar { position: static; }

  .hero { min-height: 420px; }
  .hero-stats { gap: 1.5rem; }

  .listing-header { flex-direction: column; }
  .detail-row { grid-template-columns: 110px 1fr; }

  .county-grid { grid-template-columns: 1fr; }

  .step { grid-template-columns: 40px 1fr; gap: 0.9rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  .rates-table { font-size: 0.82rem; }
  .rates-table th, .rates-table td { padding: 0.55rem 0.65rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-ctas { flex-direction: column; }
  .btn { text-align: center; }
  .filter-group { gap: 0.3rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.28rem 0.65rem; }
}
