/* ============================================
   Rebate hub (/rebate/)
   Builds on locations.css (loc-*) and services2.css (sv2-cta)
   ============================================ */

/* Hero: text on dark panel, photo on its own card (no overlay) */
.rb-hero2 {
  background: linear-gradient(135deg, #0d192e 0%, #1a2a4a 100%);
  padding: 140px 0 90px;
  color: var(--color-white);
}

.rb-hero2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: center;
}

.rb-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: var(--fs-sm);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.65);
}

.rb-crumb a,
.rb-crumb span {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  color: inherit;
}

.rb-crumb a:hover { color: var(--color-white); }

.rb-hero2 h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 52px);
  line-height: 1.12;
  text-transform: uppercase;
  background: var(--sv2-gradient, linear-gradient(90deg, #69eefd 0%, #efc052 54.33%, #f19231 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.rb-hero2-lead {
  font-size: clamp(1rem, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 0 32px;
}

.rb-hero2-cta.loc-hero-cta {
  min-width: 0;
  height: 64px;
  padding: 0 40px;
  font-size: 19px;
}

.rb-updated {
  display: block;
  margin-top: 16px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.rb-hero2-media {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rb-hero2-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.rb-hero2-media figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 25, 46, 0.78);
  color: var(--color-white);
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .rb-hero2 { padding: 112px 0 48px; }
  .rb-hero2-grid { grid-template-columns: 1fr; gap: 28px; }
  .rb-hero2 h1 { font-size: 28px; line-height: 1.15; margin-bottom: 14px; }
  .rb-hero2-lead { font-size: 16px; margin-bottom: 22px; }
  .rb-hero2-cta.loc-hero-cta { width: 100%; height: 56px; font-size: 16px; padding: 0 24px; }
  .rb-hero2-media { aspect-ratio: 16 / 10; border-radius: 16px; }
  .rb-hero2-media img { object-position: 50% 70%; }
}

/* Short answer box */
.rb-answer .container { max-width: 900px; }

.rb-answer-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 5px solid #f19231;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.rb-answer-box ul {
  margin: var(--space-md) 0 0;
  padding-left: 1.2em;
  list-style: disc;
}

.rb-answer-box li {
  font-size: var(--fs-lg);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

/* Comparison table */
.rb-compare .container { max-width: 1100px; }

.rb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  margin-top: var(--space-xl);
}

.rb-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--fs-base);
}

.rb-table th,
.rb-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.5;
}

.rb-table thead th {
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
}

.rb-table tbody th {
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  width: 22%;
  background: var(--color-bg-alt);
}

.rb-table tbody tr:last-child th,
.rb-table tbody tr:last-child td { border-bottom: 0; }

.rb-yes { color: #1a7f37; font-weight: var(--fw-semibold); }
.rb-no { color: var(--color-text-light); }

.rb-note {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-top: var(--space-md);
}

/* Content sections */
.rb-section .container { max-width: 900px; }

.rb-body p,
.rb-body li {
  font-size: var(--fs-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

.rb-body p { margin-bottom: var(--space-lg); }

.rb-body ul,
.rb-body ol {
  padding-left: 1.4em;
  margin: 0 0 var(--space-lg);
}

.rb-body ul { list-style: disc; }
.rb-body ol { list-style: decimal; }

.rb-body li::marker { color: #f19231; }

.rb-sources ul { list-style: disc; }

.rb-body li { margin-bottom: var(--space-sm); }

.rb-body strong { color: var(--color-text); }

.rb-body h3 {
  font-size: var(--fs-2xl);
  margin: var(--space-xl) 0 var(--space-md);
}

/* Small data tables inside sections */
.rb-mini {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rb-mini th,
.rb-mini td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-base);
}

.rb-mini thead th {
  background: var(--color-bg-alt);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
}

.rb-mini tr.is-now td {
  background: rgba(241, 146, 49, 0.12);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
}

/* State cards (jump links) */
.rb-states {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.rb-state-card {
  display: block;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}

.rb-state-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rb-state-card .rb-state-tag {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f19231;
}

.rb-state-card h3 {
  font-size: var(--fs-xl);
  margin: var(--space-sm) 0;
}

.rb-state-card p {
  font-size: var(--fs-base);
  color: var(--color-text-light);
  margin: 0;
}

/* Callout */
.rb-callout {
  background: var(--color-white);
  border-left: 4px solid #f19231;
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: 0 0 var(--space-lg);
}

.rb-callout p { margin: 0; }

/* Sources */
.rb-sources .container { max-width: 900px; }

.rb-sources ul {
  padding-left: 1.2em;
  margin: var(--space-md) 0 0;
}

.rb-sources li {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.rb-sources a { text-decoration: underline; }

.rb-disclaimer {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-top: var(--space-lg);
}

@media (max-width: 900px) {
  .rb-states { grid-template-columns: 1fr; }
  .rb-answer-box { padding: var(--space-lg); }
}

.rb-swipe { display: none; }

@media (max-width: 760px) {
  .rb-swipe {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: #f19231;
    margin-top: var(--space-sm);
  }
  .rb-table { min-width: 640px; font-size: var(--fs-sm); }
  .rb-table th, .rb-table td { padding: 12px 14px; }
  .rb-table tbody th,
  .rb-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 118px;
    min-width: 118px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
  }
  .rb-table thead th:first-child { background: var(--color-dark); }
  .rb-callout { padding: var(--space-md) var(--space-lg); }
}
