/**
 * BioRecoveryUSA — Homepage Stylesheet (br-home.css)
 * Loaded exclusively on the front page.
 * Eye-comfort colors, human-centered spacing, responsive grids.
 */

.br-home-root {
  background-color: var(--page-bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* Common Section Padding */
.br-section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.br-section-header {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 54px);
}

.br-sub-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 10px;
}

.br-section-heading {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}

.br-section-sub {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.br-hero-section {
  position: relative;
  background: linear-gradient(135deg, #0e2218 0%, #153827 50%, #0d2218 100%);
  color: #ffffff;
  padding: clamp(54px, 6vw, 84px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.br-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.88fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.br-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #c8edd9;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.br-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.br-hero-title {
  font-size: clamp(2.35rem, 4.4vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.br-hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.7;
  color: #d1e5da;
  max-width: 600px;
  margin: 0 0 28px 0;
}

.br-hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.br-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #d6e8de;
}

.br-trust-item svg {
  color: #34d399;
  flex-shrink: 0;
}

/* Hero Finder Card */
.br-hero-finder-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.br-finder-head {
  margin-bottom: 18px;
}

.br-finder-title {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.br-finder-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0;
}

.br-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.br-search-icon {
  position: absolute;
  left: 14px;
  color: var(--ink-muted);
  pointer-events: none;
}

.br-search-input-wrap input[type="search"] {
  width: 100%;
  padding: 14px 110px 14px 44px;
  background: var(--surface-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  color: var(--ink);
  outline: none;
  transition: all 0.15s ease;
}

.br-search-input-wrap input[type="search"]:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.br-search-submit-btn {
  position: absolute;
  right: 6px;
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.br-search-submit-btn:hover {
  background: var(--brand-light);
}

.br-quick-tags {
  margin-top: 14px;
}

.br-quick-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.br-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.br-quick-pill {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.br-quick-pill:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand);
}

/* ============================================================
   2. SAFETY FIRST STEPS
   ============================================================ */
.br-safety-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.br-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.br-action-card {
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.br-action-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.br-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.br-action-title {
  font-size: 1.18rem;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.br-action-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================================
   3. SITUATION NAVIGATOR (6 Cards)
   ============================================================ */
.br-situations-section {
  background: var(--page-bg);
}

.br-situations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
}

.br-situation-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none !important;
  color: var(--ink);
  transition: all 0.2s ease;
}

.br-situation-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.br-situation-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.br-situation-card:hover .br-situation-icon-wrap {
  background: var(--brand);
  color: #ffffff;
}

.br-situation-body {
  display: flex;
  flex-direction: column;
}

.br-situation-title {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.br-situation-desc {
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--ink-muted);
  margin: 0 0 14px 0;
}

.br-card-link-arrow {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   4. COMPREHENSIVE KNOWLEDGE BASE (13 Guides)
   ============================================================ */
.br-library-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.br-library-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.br-sidebar-sticky {
  position: sticky;
  top: 96px;
}

.br-sidebar-title {
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.br-sidebar-desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0 0 24px 0;
}

.br-filter-buttons {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.br-filter-btn {
  width: 100%;
  text-align: left;
  background: var(--page-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.br-filter-btn:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand);
}

.br-filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.br-sidebar-callout {
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.br-sidebar-callout h4 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.br-sidebar-callout p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.br-text-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.br-text-link:hover {
  text-decoration: underline;
}

/* Guides Grid & Cards */
.br-search-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.br-clear-btn {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.br-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.br-guide-card {
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.br-guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.br-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.br-card-category-badge {
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
}

.br-card-read-time {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.br-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.br-card-title a {
  color: inherit;
  text-decoration: none;
}

.br-card-title a:hover {
  color: var(--brand);
}

.br-card-excerpt {
  font-size: 0.91rem;
  line-height: 1.58;
  color: var(--ink-muted);
  margin: 0 0 16px 0;
}

.br-card-footer {
  margin-top: auto;
}

.br-card-action {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.br-card-action:hover {
  text-decoration: underline;
}

.br-empty-notice {
  text-align: center;
  padding: 48px 24px;
  background: var(--page-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
}

.br-btn-reset {
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   5. REALITY CHECK: COSTS & INSURANCE
   ============================================================ */
.br-financial-section {
  background: var(--page-bg);
}

.br-two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.br-info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow-sm);
}

.br-box-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.br-box-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
}

.br-box-header h3 {
  font-size: 1.45rem;
  color: var(--ink);
  margin: 0;
}

.br-box-p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.br-feature-list {
  list-style: none;
  margin: 0 0 26px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.br-feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.br-feature-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--brand);
  font-size: 1.4rem;
}

.br-box-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.br-box-link:hover {
  text-decoration: underline;
}

/* ============================================================
   6. CONTRACTOR VETTING CHECKLIST
   ============================================================ */
.br-checklist-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.br-checklist-wrapper {
  max-width: 960px;
  margin-inline: auto;
}

.br-checklist-intro {
  margin-bottom: 36px;
}

.br-checklist-intro h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 12px;
}

.br-checklist-intro p {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.br-questions-list {
  display: grid;
  gap: 18px;
}

.br-question-item {
  display: flex;
  gap: 20px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.br-q-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.br-q-content h4 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.br-q-content p {
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================================
   7. FREQUENTLY ASKED QUESTIONS (Accordion)
   ============================================================ */
.br-faq-section {
  background: var(--page-bg);
}

.br-faq-accordion {
  max-width: 880px;
  display: grid;
  gap: 14px;
}

.br-faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.br-faq-item[open] {
  border-color: var(--brand);
}

.br-faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  background: var(--surface);
  list-style: none;
  user-select: none;
}

.br-faq-summary::-webkit-details-marker {
  display: none;
}

.br-faq-toggle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  transition: transform 0.2s ease;
}

.br-faq-item[open] .br-faq-toggle {
  transform: rotate(45deg);
}

.br-faq-answer {
  padding: 0 24px 22px 24px;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--ink-2);
}

.br-faq-answer p {
  margin: 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .br-hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .br-library-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .br-sidebar-sticky {
    position: static;
  }
  .br-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .br-filter-btn {
    width: auto;
  }
}

@media (max-width: 640px) {
  .br-situations-grid,
  .br-two-column-grid {
    grid-template-columns: 1fr;
  }
  .br-situation-card {
    flex-direction: column;
    gap: 16px;
  }
  .br-question-item {
    flex-direction: column;
    gap: 12px;
  }
}
