/* ==========================================================================
   AutoRebuildFax — Terms & Conditions  (terms.blade.php)
   Prefix: tc-*
   ========================================================================== */

/* ── Page header (SIGNATURE) ─────────────────────────────────────────── */
.tc-page-head {
  background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2.5rem;
}
.tc-page-head::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,26,31,.24) 0%, transparent 70%);
  pointer-events: none;
}
.tc-page-head-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.tc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: .74rem;
}
.tc-breadcrumb a {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .2s;
}
.tc-breadcrumb a:hover { color: rgba(255,255,255,.70); }
.tc-breadcrumb-sep { color: rgba(255,255,255,.18); font-size: .68rem; }
.tc-breadcrumb span:last-child { color: rgba(255,255,255,.50); }
.tc-page-head-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.tc-page-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tc-page-eyebrow i { color: rgba(138,26,31,.75); }
.tc-page-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
}
.tc-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tc-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.50);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}
.tc-meta-pill i { color: rgba(138,26,31,.70); }
.tc-section-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.tc-section-count-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255,255,255,.12);
  line-height: 1;
  font-family: 'Outfit', 'Inter', sans-serif;
}
.tc-section-count-label {
  font-size: .68rem;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Body layout ─────────────────────────────────────────────────────── */
.tc-body-wrap {
  background: #f5f5f7;
  padding: 2.5rem 0 3rem;
}
.tc-body-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.tc-sidebar {
  scrollbar-width: none;
}
.tc-sidebar::-webkit-scrollbar { display: none; }
.tc-toc-card {
  background: #fff;
  border: 1px solid #e8e8eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tc-toc-head {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f2;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: #8e8e93;
  margin: 0;
}
.tc-toc-list {
  list-style: none;
  margin: 0; padding: 8px 0;
}
.tc-toc-item { margin: 0; }
.tc-toc-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  font-size: .78rem;
  color: #696665;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
  line-height: 1.35;
}
.tc-toc-link:hover {
  color: #8a1a1f;
  background: rgba(138,26,31,.04);
  text-decoration: none;
}
.tc-toc-link.is-active {
  color: #8a1a1f;
  border-left-color: #8a1a1f;
  background: rgba(138,26,31,.05);
  font-weight: 600;
}
.tc-toc-num {
  font-size: .64rem;
  font-weight: 700;
  color: rgba(138,26,31,.55);
  background: rgba(138,26,31,.08);
  border-radius: 4px;
  padding: 1px 5px;
  flex: 0 0 auto;
}
.tc-toc-link.is-active .tc-toc-num {
  background: rgba(138,26,31,.14);
  color: #8a1a1f;
}

/* Sidebar quick-links card */
.tc-sidebar-quick {
  background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
  border-radius: 14px;
  overflow: hidden;
  padding: 14px 16px;
  position: relative;
}
.tc-sidebar-quick::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,26,31,.28) 0%, transparent 70%);
}
.tc-sidebar-quick-head {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}
.tc-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .2s ease;
}
.tc-sidebar-link:last-child { border-bottom: none; }
.tc-sidebar-link:hover { color: #fff; text-decoration: none; }
.tc-sidebar-link i { color: rgba(138,26,31,.70); font-size: .85rem; }

/* ── Main content ────────────────────────────────────────────────────── */
.tc-main { min-width: 0; }

/* Intro callout */
.tc-intro {
  background: #fff;
  border: 1px solid #e8e8eb;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 1.125rem;
  border-left: 3px solid #8a1a1f;
}
.tc-intro p {
  font-size: .875rem;
  color: #696665;
  margin: 0;
  line-height: 1.7;
}
.tc-intro p + p { margin-top: 8px; }
.tc-intro strong { color: #24272c; }

/* Section blocks */
.tc-section {
  background: #fff;
  border: 1px solid #e8e8eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.125rem;
  scroll-margin-top: 80px;
}
.tc-section:last-child { margin-bottom: 0; }

/* Section 3 (vehicle services) gets subtle rebuild accent */
.tc-section.tc-section--rebuild {
  border-color: rgba(138,26,31,.18);
}
.tc-section.tc-section--rebuild .tc-section-head {
  background: linear-gradient(135deg, #21252f 0%, #1d2129 100%);
}

.tc-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid #f0f0f2;
  background: #fff;
}
.tc-section.tc-section--rebuild .tc-section-head {
  border-bottom-color: rgba(255,255,255,.07);
}
.tc-section-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #8a1a1f;
  font-size: .62rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.tc-section-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(138,26,31,.07);
  color: #8a1a1f;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.tc-section.tc-section--rebuild .tc-section-icon {
  background: rgba(138,26,31,.18);
  color: rgba(255,255,255,.80);
}
.tc-section-title {
  font-size: .88rem;
  font-weight: 700;
  color: #24272c;
  margin: 0;
  line-height: 1.3;
}
.tc-section.tc-section--rebuild .tc-section-title {
  color: #fff;
}

/* Rebuild interactivity badge */
.tc-rebuild-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: .66rem;
  font-weight: 700;
  background: rgba(20,160,119,.15);
  border: 1px solid rgba(20,160,119,.25);
  color: #14a077;
  flex-shrink: 0;
}
.tc-rebuild-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #14a077;
  flex: 0 0 auto;
  animation: tc-pulse 2s ease-in-out infinite;
}
@keyframes tc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

/* Section body */
.tc-section-body { padding: 1.25rem; }
.tc-section-body p {
  font-size: .875rem;
  color: #696665;
  line-height: 1.75;
  margin-bottom: .875rem;
}
.tc-section-body p:last-child { margin-bottom: 0; }
.tc-section-body strong { color: #24272c; }

/* Sub-sections */
.tc-subsection { margin-bottom: 1rem; }
.tc-subsection:last-child { margin-bottom: 0; }
.tc-subsection-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: #24272c;
  margin-bottom: 6px;
}
.tc-subsection-head::before {
  content: '';
  width: 3px; height: 14px;
  border-radius: 2px;
  background: rgba(138,26,31,.35);
  flex: 0 0 auto;
}

/* Lists */
.tc-list {
  list-style: none;
  margin: 0 0 .875rem; padding: 0;
}
.tc-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 4px 0;
  font-size: .875rem;
  color: #696665;
  line-height: 1.6;
}
.tc-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(138,26,31,.50);
  flex: 0 0 auto;
  margin-top: 8px;
}

/* Warning callout (for disclaimer / liability sections) */
.tc-warn-callout {
  background: rgba(255,169,32,.05);
  border: 1px solid rgba(255,169,32,.20);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: .875rem;
  font-size: .82rem;
  font-weight: 700;
  color: #903f00;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.tc-warn-callout i { color: #ffa920; flex: 0 0 auto; margin-top: 1px; }

/* Contact card (bottom SIGNATURE) */
.tc-contact-card {
  background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
  border-radius: 14px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  margin-top: 1.125rem;
}
.tc-contact-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,26,31,.28) 0%, transparent 70%);
  pointer-events: none;
}
.tc-contact-head {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: rgba(255,255,255,.35);
  margin-bottom: 4px;
}
.tc-contact-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.tc-contact-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.tc-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
}
.tc-contact-item-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(138,26,31,.15);
  border: 1px solid rgba(138,26,31,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  flex: 0 0 auto;
}
.tc-contact-label {
  font-size: .68rem;
  color: rgba(255,255,255,.28);
  margin-bottom: 1px;
}
.tc-contact-val { color: rgba(255,255,255,.70); }
.tc-contact-val a {
  color: rgba(255,255,255,.70);
  text-decoration: none;
  transition: color .2s;
}
.tc-contact-val a:hover { color: #fff; text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tc-body-inner { grid-template-columns: 1fr; }
  .tc-sidebar { position: static; max-height: none; margin-bottom: 1.25rem; }
  .tc-toc-card, .tc-sidebar-quick { display: block; }
}
@media (max-width: 575px) {
  .tc-page-head { padding: 1.75rem 0 1.5rem; }
  .tc-contact-items { grid-template-columns: 1fr; }
  .tc-page-head-layout { flex-direction: column; gap: 12px; }
  .tc-section-count { display: none; }
}
