/*
 * Theme Name:   BootScore Child
 * Theme URI:    https://bootscore.me/
 * Description:  BootScore child theme — includes Tax Report landing page styles.
 * Author:       Your Name
 * Template:     bootscore
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  bootscore-child
 */

/* ================================================================
   IMPORT PARENT THEME
================================================================ */
@import url("../bootscore/style.css");

/* ================================================================
   DESIGN TOKENS
================================================================ */
:root {
  --tr-cream:       #faf8f4;
  --tr-dark:        #0d0d0d;
  --tr-dark-alt:    #1a1a2e;
  --tr-accent:      #c8973a;       /* gold / italic accent */
  --tr-accent-warm: #d4845a;       /* warm orange from heatmap palette */
  --tr-muted:       #6b7280;
  --tr-border:      #e5e0d8;
  --tr-card-bg:     #ffffff;
  --tr-band-bg:     #0f1623;       /* dark editorial band */
  --tr-quote-bg:    #111827;
  --tr-font-serif:  'Georgia', 'Times New Roman', serif;
  --tr-font-sans:   "Montserrat", sans-serif;
  --tr-radius:      6px;
  --tr-radius-lg:   12px;
}

/* ================================================================
   BASE / GLOBAL
================================================================ */
#tax-report-page {
  font-family: var(--tr-font-sans);
  color: var(--tr-dark);
  background: var(--tr-cream);
}

#tax-report-page section {
  padding: 200px 0;
}

.tr-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--tr-dark);
}

.tr-section-sub {
  color: var(--tr-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.page-template-page-tax-report .navbar {
  background-color: #112C40;
  border-bottom: 2px solid #FFC034;
}

/* ================================================================
   BADGE
================================================================ */
.tr-badge {
  display: inline-block;
  background: #fff3e0;
  color: var(--tr-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ================================================================
   HERO
================================================================ */
.tr-hero {
  background: var(--tr-cream);
  padding-top: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--tr-border);
}

.tr-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--tr-dark);
}

.tr-hero__title em {
  font-style: italic;
  color: var(--tr-accent);
  font-family: var(--tr-font-serif);
}

.tr-hero__lead {
  font-size: 1.05rem;
  color: var(--tr-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ================================================================
   INSIGHT CARD (Hero sidebar)
================================================================ */
.tr-insight-card {
  background: #ffffff;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-lg);
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.tr-insight-card__icon {
  font-size: 1.4rem;
  color: var(--tr-accent);
  display: block;
  margin-bottom: 8px;
}

.tr-insight-card__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tr-muted);
  margin-bottom: 10px;
}

.tr-insight-card__text {
  font-size: 0.93rem;
  color: var(--tr-dark);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ================================================================
   HEATMAP
================================================================ */
.tr-heatmap {
  background: var(--tr-dark);
  color: #fff;
  padding: 64px 0;
}

.tr-heatmap .tr-section-title,
.tr-heatmap .tr-section-sub {
  color: #fff;
}

.tr-heatmap .tr-section-sub {
  color: rgba(255,255,255,0.65);
}

.tr-heatmap__frame {
  position: relative;
}

.tr-heatmap__map {
  position: relative;
  width: 100%;
}

#tr-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.tr-state-path {
  stroke: #0d0d0d;
  stroke-width: 1;
  cursor: pointer;
  transition: opacity 0.15s;
}

.tr-state-path:hover {
  opacity: 0.75;
  stroke-width: 1.5;
}

.tr-heatmap__stats {
  display: flex;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.tr-heatmap__stat {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--tr-radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tr-heatmap__stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tr-heatmap__stat-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.tr-heatmap__stat-state {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.tr-heatmap__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}

.tr-heatmap__legend-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.tr-heatmap__legend-bar {
  height: 10px;
  border-radius: 5px;
}

.tr-heatmap__legend-bar--neutral {
  width: 60px;
  background: #6b7280;
}

.tr-heatmap__legend-bar--hot {
  flex: 1;
  background: linear-gradient(to right, #FAC775, #D85A30, #A32D2D);
}

.tr-map-tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--tr-radius);
  padding: 10px 14px;
  font-size: 0.82rem;
  pointer-events: none;
  display: none;
  z-index: 10;
  min-width: 160px;
}

.tr-map-tooltip__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0d0d0d;
  margin-bottom: 4px;
}

.tr-map-tooltip__score {
  font-size: 0.8rem;
  color: #6b7280;
}

.tr-map-tooltip__bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  display: none;
}

/* ================================================================
   BUTTONS
================================================================ */
.tr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--tr-radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.tr-btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.tr-btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
  color: #fff;
}

.tr-btn--dark {
  background: var(--tr-dark);
  color: #fff;
}

.tr-btn--dark:hover {
  background: #333;
  color: #fff;
}

.tr-btn--outline-dark {
  background: transparent;
  border-color: var(--tr-dark);
  color: var(--tr-dark);
}

.tr-btn--outline-dark:hover {
  background: var(--tr-dark);
  color: #fff;
}

/* ================================================================
   KEY FINDINGS
================================================================ */
.tr-findings {
  background: #fff;
}

.tr-finding-card {
  padding: 20px 16px;
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-lg);
  height: 100%;
  transition: box-shadow 0.2s;
}

.tr-finding-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tr-finding-card__icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.tr-finding-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--tr-dark);
}

.tr-finding-card__text {
  font-size: 0.82rem;
  color: var(--tr-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ================================================================
   EDITORIAL BAND
================================================================ */
.tr-band {
  background: var(--tr-band-bg);
  color: #fff;
}

.tr-band__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.tr-band p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
}

/* ================================================================
   TOP STATE CARDS
================================================================ */
.tr-top-states {
  background: var(--tr-cream);
}

.tr-state-card {
  background: var(--tr-card-bg);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-lg);
  padding: 28px 24px;
  height: 100%;
  transition: box-shadow 0.2s;
}

.tr-state-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.tr-state-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.tr-state-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  color: var(--tr-dark);
}

.tr-state-card__rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tr-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tr-state-card__text {
  font-size: 0.88rem;
  color: var(--tr-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.tr-state-card__factor {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tr-accent-warm);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ================================================================
   TABLES
================================================================ */
.tr-tables {
  background: #fff;
}

.tr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tr-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tr-muted);
  padding: 10px 12px;
  border-bottom: 2px solid var(--tr-border);
  text-align: left;
}

.tr-table tbody tr {
  border-bottom: 1px solid var(--tr-border);
  transition: background 0.15s;
}

.tr-table tbody tr:hover {
  background: #f9f7f4;
}

.tr-table tbody td {
  padding: 12px 12px;
  color: var(--tr-dark);
}

.tr-table tbody td:last-child {
  font-weight: 700;
  color: var(--tr-accent-warm);
}

/* ================================================================
   RELAXED LIST
================================================================ */
.tr-relaxed-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tr-relaxed-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--tr-radius);
  border: 1px solid var(--tr-border);
  background: #f9f7f4;
  transition: background 0.15s;
}

.tr-relaxed-item:hover {
  background: #f0ece4;
}

.tr-relaxed-item__num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--tr-accent);
  min-width: 28px;
}

.tr-relaxed-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--tr-dark);
  font-weight: 700;
}

.tr-relaxed-item span {
  font-size: 0.78rem;
  color: var(--tr-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ================================================================
   QUOTE BAND
================================================================ */
.tr-quote-band {
  background: var(--tr-quote-bg);
  color: #fff;
  padding: 80px 0;
}

.tr-quote-band__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--tr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tr-quote-band__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tr-quote-band__avatar-fallback {
  position: absolute;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}

.tr-quote-band__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
  text-align: center;
}

.tr-quote-band__title-label {
  font-size: 0.75rem;
  color: var(--tr-accent);
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tr-quote {
  font-family: var(--tr-font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-style: italic;
  line-height: 1.65;
  color: #fff;
  border-left: 4px solid var(--tr-accent);
  padding-left: 24px;
  margin-bottom: 20px;
}

.tr-quote-band__bio {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 0;
}

/* ================================================================
   METHODOLOGY CTA
================================================================ */
.tr-methodology {
  background: var(--tr-cream);
  border-top: 1px solid var(--tr-border);
}

.tr-methodology__text {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--tr-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.tr-methodology__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ================================================================
   RESPONSIVE TWEAKS
================================================================ */
@media (max-width: 767.98px) {
  #tax-report-page section {
    padding: 48px 0;
  }

  .tr-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .tr-insight-card {
    margin-top: 2rem;
  }

  .tr-heatmap__download {
    position: static;
    display: block;
    width: fit-content;
    margin-top: 12px;
  }

  .tr-quote-band .col-lg-2 {
    margin-bottom: 2rem;
  }

  .tr-quote {
    padding-left: 16px;
    font-size: 1.1rem;
  }
}