/* ================================================
   HOME PAGE  —  /css/home.css
   Extends publicrecordsservice-shared.css.
   Only homepage-specific rules live here.
   ================================================ */

/* --------------------------------------------------
   HERO — centered, no sidebar
   -------------------------------------------------- */
.home-hero {
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--prs-border);
  padding: 52px 0 48px;
  text-align: center;
}

.home-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.home-hero-inner .badge {
  margin-bottom: 18px;
}

.home-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: #10243f;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.home-subhead {
  font-size: 18px;
  color: #334155;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Search form container — left-aligned inside centered hero */
.home-search-wrap {
  text-align: left;
  margin-bottom: 18px;
}

/* Compact notice/disclosure line below search */
.home-notice-inline {
  font-size: 13px;
  color: var(--prs-muted);
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

.home-notice-sep {
  display: inline-block;
  margin: 0 6px;
  opacity: 0.4;
}

/* --------------------------------------------------
   MAIN — full width, no sidebar
   -------------------------------------------------- */
.home-main {
  display: block;
}

/* --------------------------------------------------
   SECTIONS
   -------------------------------------------------- */
.home-section {
  padding: 56px 0;
}

.home-section--shaded {
  background: var(--prs-bg);
  border-top: 1px solid var(--prs-border);
  border-bottom: 1px solid var(--prs-border);
}

.home-section-header {
  max-width: 640px;
  margin-bottom: 28px;
}

.home-section-header h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: #10243f;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.home-section-header p {
  font-size: 17px;
  color: #334155;
  margin: 0;
}

/* --------------------------------------------------
   CARD GRID — 4 col → 2 col → 1 col
   -------------------------------------------------- */
.home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-card {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--prs-border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.home-card:hover {
  border-color: var(--prs-blue);
  box-shadow: 0 4px 14px rgba(30, 115, 255, 0.07);
  text-decoration: none;
}

.home-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #10243f;
  margin: 0 0 6px;
  line-height: 1.3;
}

.home-card p {
  font-size: 13px;
  color: var(--prs-muted);
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------
   STATE GRID — 5 col → 3 col → 2 col
   -------------------------------------------------- */
.home-state-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.home-state-link {
  display: block;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--prs-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--prs-blue);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.home-state-link:hover {
  border-color: var(--prs-blue);
  background: var(--prs-soft);
  text-decoration: none;
}

/* --------------------------------------------------
   FAQ — constrained width for readability
   -------------------------------------------------- */
.home-faq-wrap .faq-list {
  max-width: 780px;
}

.home-faq-wrap .faq-item h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #10243f;
}

.home-faq-wrap .faq-item p {
  font-size: 16px;
  margin: 0;
  color: #334155;
}

/* --------------------------------------------------
   AUTHOR SECTION
   -------------------------------------------------- */
.home-author-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.home-author-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--prs-bg);
  border: 1px solid var(--prs-border);
  border-radius: 14px;
  padding: 28px 32px;
}

.home-author-photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--prs-border);
  display: block;
}

.home-author-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--prs-muted);
  margin: 0 0 4px;
}

.home-author-name {
  font-size: 22px;
  font-weight: 800;
  color: #10243f;
  margin: 0 0 2px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.home-author-title {
  font-size: 14px;
  color: var(--prs-blue-dark);
  font-weight: 600;
  margin: 0 0 12px;
}

.home-author-bio {
  font-size: 16px;
  color: #334155;
  margin: 0 0 16px;
  line-height: 1.65;
  max-width: 680px;
}

.home-author-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.home-author-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--prs-blue);
  text-decoration: none;
}

.home-author-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   RESPONSIVE
   -------------------------------------------------- */
@media (max-width: 1060px) {
  .home-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .home-hero {
    padding: 36px 0 32px;
  }

  .home-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-state-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-section {
    padding: 40px 0;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 28px 0 24px;
    text-align: left;
  }

  .home-hero-inner {
    max-width: 100%;
  }

  .home-hero-inner h1 {
    font-size: 1.75rem;
  }

  .home-subhead {
    font-size: 16px;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-state-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-section {
    padding: 32px 0;
  }

  .home-section-header {
    margin-bottom: 20px;
  }

  .home-notice-inline {
    font-size: 12px;
  }

  .home-notice-sep {
    display: none;
  }

  .home-notice-inline strong:last-of-type {
    display: block;
    margin-top: 6px;
  }

  /* Author card stacks on mobile */
  .home-author-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .home-author-photo img {
    width: 64px;
    height: 64px;
  }

  .home-author-name {
    font-size: 20px;
  }
}
