/* ============================================
   Heine Propane — Guides Stylesheet
   Extends css/styles.css for long-form content
   ============================================ */

/* ── Guide Hero ───────────────────────────── */
.guide-hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  padding: 6rem 0 4rem;
  text-align: center;
}

.guide-breadcrumb {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.guide-breadcrumb a {
  color: #C8232B;
  transition: color 0.2s;
}

.guide-breadcrumb a:hover {
  color: #D94048;
}

.guide-breadcrumb span {
  color: #fff;
}

.guide-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.guide-subtitle {
  font-size: 1.25rem;
  color: #C8232B;
  font-weight: 600;
  margin-bottom: 2rem;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.95rem;
  color: #999;
}

@media (max-width: 640px) {
  .guide-hero {
    padding: 4rem 0 3rem;
  }
  .guide-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── Guide Container ──────────────────────── */
.guide-section {
  padding: 3rem 0;
}

.guide-container {
  max-width: 800px;
}

.guide-article {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e1e6ed;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.read-time {
  font-size: 0.85rem;
  color: #999;
  white-space: nowrap;
}

.guide-article h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2rem 0 1rem;
}

.guide-article h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin: 1.5rem 0 0.75rem;
}

.guide-article p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.guide-article ul,
.guide-article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.guide-article li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  list-style: inherit;
}

.guide-article strong {
  font-weight: 600;
  color: var(--dark);
}

.back-to-top {
  display: inline-block;
  margin-top: 2rem;
  color: #C8232B;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* ── TL;DR Box ────────────────────────────── */
.tldr-box {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.tldr-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #B45309;
}

.tldr-header svg {
  flex-shrink: 0;
}

.tldr-header strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.tldr-box p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #78350F;
  margin-bottom: 1.5rem;
}

.tldr-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .tldr-actions {
    flex-direction: column;
  }
  .tldr-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Table of Contents ────────────────────── */
.toc-box {
  background: #f4f6f9;
  border: 1px solid #e1e6ed;
  border-radius: 8px;
  padding: 2rem;
}

.toc-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0.75rem;
}

.toc-list a {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
  padding-left: 0;
}

.toc-list a:hover {
  color: #C8232B;
  padding-left: 8px;
}

/* ── Callout Boxes ────────────────────────── */
.callout-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid;
}

.callout-box svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.callout-box strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.callout-box p {
  margin-bottom: 0;
  line-height: 1.7;
}

.callout-info {
  background: #E0F2FE;
  border-color: #3B82F6;
  color: #1E3A8A;
}

.callout-success {
  background: #D1FAE5;
  border-color: #22C55E;
  color: #065F46;
}

.callout-warning {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #78350F;
}

.callout-danger {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #7F1D1D;
}

/* ── Customer Quotes ──────────────────────── */
.customer-quote {
  background: #fff;
  border-left: 4px solid #C8232B;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-radius: 6px;
}

.customer-quote p {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.customer-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: #5a6477;
  font-weight: 600;
}

/* ── Pros/Cons Grid ───────────────────────── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros,
.cons {
  padding: 1.5rem;
  border-radius: 8px;
}

.pros {
  background: #D1FAE5;
  border: 1px solid #86EFAC;
}

.cons {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
}

.pros h4,
.cons h4 {
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
}

.pros ul,
.cons ul {
  margin: 0;
  padding-left: 1.25rem;
}

.pros li,
.cons li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

/* ── Comparison Tables ────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-radius: 6px;
  overflow: hidden;
}

.comparison-table thead {
  background: var(--dark);
  color: var(--white);
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #e1e6ed;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

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

@media (max-width: 640px) {
  .comparison-table {
    font-size: 0.85rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* ── CTA Breaks ───────────────────────────── */
.cta-break {
  background: linear-gradient(135deg, #C8232B 0%, #A01B22 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 4rem 0;
}

.cta-break h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.cta-break p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rcs-widget-placeholder {
  margin-top: 1rem;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .cta-break {
    padding: 2rem 1.5rem;
  }
  .cta-actions {
    flex-direction: column;
  }
  .cta-actions .btn {
    width: 100%;
  }
}

/* ── Final CTA Box ────────────────────────── */
.final-cta-box {
  background: #f4f6f9;
  border: 2px solid #e1e6ed;
  border-radius: 8px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.final-cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.final-cta-box h3 a {
  color: #C8232B;
}

.final-cta-box p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

.final-cta-box .divider {
  margin: 2rem 0;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

#hubspot-form-container {
  margin: 2rem 0;
}

.rcs-widget-container {
  margin: 2rem 0;
}

/* ── Trust Badges ─────────────────────────── */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.trust-badges .badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.trust-badges .badge svg {
  fill: #C8232B;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .trust-badges {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile Responsiveness ────────────────── */
@media (max-width: 768px) {
  .guide-section {
    padding: 2rem 0;
  }
  
  .guide-article {
    margin-bottom: 3rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .toc-box,
  .tldr-box,
  .callout-box {
    padding: 1.5rem;
  }
}
