/* ============================================================
   BankruptcyGuideNKY — styles.css
   Aesthetic: Editorial legal — deep navy authority, amber accents,
   Playfair Display headlines, Source Sans Pro body
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=Source+Sans+3:wght@300;400;500;600&family=Source+Serif+4:ital,wght@0,400;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #0f1f3d;
  --navy-mid:   #1a3060;
  --navy-light: #243d70;
  --amber:      #d4862a;
  --amber-light:#e8a84c;
  --cream:      #faf7f2;
  --warm-white: #ffffff;
  --text-dark:  #1a1a2e;
  --text-body:  #3a3a52;
  --text-muted: #6b6b85;
  --border:     #ddd8cf;
  --success:    #2e7d52;
  --alert:      #c0392b;
  --shadow-sm:  0 2px 8px rgba(15,31,61,0.08);
  --shadow-md:  0 6px 24px rgba(15,31,61,0.12);
  --shadow-lg:  0 16px 48px rgba(15,31,61,0.16);
  --radius:     4px;
  --radius-lg:  8px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-light); text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--amber);
  box-shadow: var(--shadow-md);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--warm-white);
  letter-spacing: -0.01em;
}
.logo-name span { color: var(--amber); }
.logo-tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--amber); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(212,134,42,0.08) 0%, transparent 60%),
    url('/images/hero.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-light) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(212,134,42,0.2);
  border: 1px solid rgba(212,134,42,0.4);
  color: var(--amber-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--warm-white); margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--amber);
  display: block;
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,134,42,0.3);
}
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  text-decoration: none;
}
.btn-navy {
  background: var(--navy);
  color: var(--warm-white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--warm-white);
  text-decoration: none;
}

/* ── Urgency Strip ─────────────────────────────────────────── */
.urgency-strip {
  background: var(--amber);
  padding: 0.6rem 0;
  text-align: center;
}
.urgency-strip p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.02em;
}
.urgency-strip a { color: var(--navy); text-decoration: underline; }

/* ── Section Scaffolding ───────────────────────────────────── */
.section { padding: 4rem 0; }
.section--alt { background: var(--warm-white); }
.section--dark { background: var(--navy); color: var(--warm-white); }
.section--dark h2, .section--dark h3 { color: var(--warm-white); }
.section--dark p { color: rgba(255,255,255,0.78); }

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.section-header { margin-bottom: 2.5rem; }
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 0.5rem;
}

/* ── Chapter Cards (directory) ─────────────────────────────── */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.chapter-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.chapter-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.chapter-card.featured { border-top-color: var(--amber); }
.chapter-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.chapter-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.chapter-card p { font-size: 0.9rem; color: var(--text-muted); }
.chapter-card .btn { margin-top: 1rem; font-size: 0.82rem; padding: 0.5rem 1rem; }

/* ── Location Directory ────────────────────────────────────── */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.location-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.location-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.state-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--amber);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-family: 'Source Sans 3', sans-serif;
}
.location-card .address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.location-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.location-meta span {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.location-meta .label {
  font-weight: 600;
  color: var(--navy);
  min-width: 70px;
  flex-shrink: 0;
}
.location-card .btn { margin-top: 1.25rem; width: 100%; text-align: center; font-size: 0.82rem; }

/* ── Steps ─────────────────────────────────────────────────── */
.steps-list {
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.step-num {
  width: 3rem;
  height: 3rem;
  background: var(--navy);
  color: var(--amber);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h4 { margin-bottom: 0.35rem; }
.step-body p  { font-size: 0.92rem; color: var(--text-muted); }

/* ── Fee Table ─────────────────────────────────────────────── */
.fee-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--warm-white);
}
thead {
  background: var(--navy);
  color: var(--warm-white);
}
thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
tbody td { padding: 0.85rem 1rem; vertical-align: top; }
tbody td:first-child { font-weight: 600; color: var(--navy); }
.highlight-row td { background: rgba(212,134,42,0.06); }

/* ── Calculator ────────────────────────────────────────────── */
.calculator-box {
  background: var(--warm-white);
  border: 2px solid var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.calculator-box h3 { margin-bottom: 1.25rem; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.calc-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.calc-field input,
.calc-field select {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--cream);
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color 0.2s;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--navy-mid);
}
.calc-result {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: none;
}
.calc-result.visible { display: block; }
.calc-result h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.calc-result .result-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.calc-result .result-line:last-child { border-bottom: none; font-weight: 600; color: var(--navy); }
.calc-disclaimer { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ── Checklist Download ────────────────────────────────────── */
.checklist-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.checklist-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}
.checklist-body { flex: 1; min-width: 200px; }
.checklist-body h3 { color: var(--warm-white); margin-bottom: 0.35rem; }
.checklist-body p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: var(--amber); }
.faq-chevron {
  font-size: 1.2rem;
  transition: transform 0.25s;
  color: var(--amber);
  flex-shrink: 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}
.faq-answer-inner {
  padding-bottom: 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-answer  { max-height: 600px; }

/* ── Alert / Notice Box ────────────────────────────────────── */
.notice {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}
.notice-info  { background: rgba(15,31,61,0.06); border-left: 3px solid var(--navy-mid); }
.notice-warn  { background: rgba(212,134,42,0.08); border-left: 3px solid var(--amber); }
.notice-alert { background: rgba(192,57,43,0.08); border-left: 3px solid var(--alert); }
.notice strong { display: block; margin-bottom: 0.25rem; }

/* ── Comparison ────────────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.compare-col {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-col-header {
  padding: 1rem 1.25rem;
  background: var(--navy);
  color: var(--warm-white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.compare-col-header.ky { background: var(--navy); }
.compare-col-header.oh { background: var(--navy-mid); }
.compare-col ul {
  list-style: none;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.compare-col ul li {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.5;
}
.compare-col ul li::before {
  content: '▸';
  color: var(--amber);
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #080f1e;
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-brand .logo-name { font-size: 1.05rem; margin-bottom: 0.5rem; display: block; }
.footer-brand p { font-size: 0.82rem; line-height: 1.65; }
.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--amber); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .checklist-card { flex-direction: column; }
  .hero { padding: 3rem 0 2.5rem; }
}
@media (max-width: 480px) {
  .step { grid-template-columns: 2.5rem 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
