/* ==========================================================================
   TANKLESS WATER HEATER REPLACEMENT — DEDICATED STYLESHEET
   Page: /tankless-water-heater-replacement-long-beach-ca/
   Design Reference: Homepage (index.html) Benchmark Standard
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SECTION PADDING & SYSTEM CONTAINER
   -------------------------------------------------------------------------- */
.section-padding {
  padding: clamp(3rem, 5vw, 4.75rem) 0 !important;
  position: relative;
}

.section-padding-lg {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 !important;
}

.bg-white {
  background-color: #FFFFFF !important;
}

.bg-light {
  background-color: #F8FAFC !important;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.bg-off-white {
  background-color: #F1F5F9 !important;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.max-w-600 { max-width: 600px !important; }
.max-w-750 { max-width: 750px !important; }
.max-w-800 { max-width: 800px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.text-center { text-align: center !important; }
.justify-center { justify-content: center !important; }
.items-center { align-items: center !important; }
.flex { display: flex !important; }
.block { display: block !important; }
.gap-10 { gap: 10px !important; }
.gap-15 { gap: 15px !important; }
.gap-30 { gap: 30px !important; }
.gap-40 { gap: 40px !important; }
.mt-5 { margin-top: 5px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.my-15 { margin-top: 15px !important; margin-bottom: 15px !important; }
.my-20 { margin-top: 20px !important; margin-bottom: 20px !important; }
.p-15 { padding: 15px !important; }
.p-20 { padding: 20px !important; }
.p-25 { padding: 25px !important; }
.p-30 { padding: clamp(20px, 3vw, 30px) !important; }
.p-50 { padding: clamp(30px, 5vw, 50px) !important; }
.w-full { width: 100% !important; }
.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 14px !important; }
.rounded-xl { border-radius: 18px !important; }
.border { border: 1px solid #E2E8F0 !important; }
.shadow-sm { box-shadow: 0 2px 8px rgba(16, 42, 67, 0.05) !important; }
.shadow-md { box-shadow: 0 6px 20px rgba(16, 42, 67, 0.08) !important; }
.shadow-lg { box-shadow: 0 12px 30px rgba(16, 42, 67, 0.12) !important; }
.text-sm { font-size: 0.92rem !important; line-height: 1.6 !important; }
.text-xs { font-size: 0.82rem !important; }
.text-blue { color: #1673B8 !important; }
.text-orange { color: #DD6B20 !important; }
.text-green { color: #10B981 !important; }

/* --------------------------------------------------------------------------
   2. SECTION HEADERS & LEAD PARAGRAPHS
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 2rem;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1673B8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: #102A43;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
}

.section-intro, .section-lead {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  color: #475569;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. RESPONSIVE GRIDS
   -------------------------------------------------------------------------- */
.grid {
  display: grid !important;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 991px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* --------------------------------------------------------------------------
   4. CRITICAL FIX: COMPARISON-CARD PARAGRAPH FLEX OVERRIDE
   -------------------------------------------------------------------------- */
.comparison-card > p:last-child,
.comparison-card p,
.comparison-card .check-list li,
.decision-factor-card p,
.symptom-item p {
  display: block !important;
  flex-direction: initial !important;
  word-break: normal !important;
  white-space: normal !important;
  line-height: 1.7 !important;
  color: #334E68 !important;
}

.comparison-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 16px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 15px rgba(16, 42, 67, 0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.comparison-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(16, 42, 67, 0.1) !important;
}

.comparison-card h3 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #102A43;
  margin-top: 10px;
  margin-bottom: 12px;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-badge.bg-blue {
  background: #EBF8FF;
  color: #1673B8;
  border: 1px solid #BEE3F8;
}

.card-badge.bg-green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* --------------------------------------------------------------------------
   5. SERVICE FEATURE CARDS (SECTION 1)
   -------------------------------------------------------------------------- */
.service-feature-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 4px 15px rgba(16, 42, 67, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(16, 42, 67, 0.08);
  border-color: #CBD5E1;
}

.service-feature-card .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #EBF8FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #1673B8;
  border: 1px solid #BEE3F8;
}

.service-feature-card .feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.service-feature-card h3 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #102A43;
  margin-top: 0;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.service-feature-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. DIAGNOSTIC SYMPTOM CARDS (SECTION 2: WARNING SIGNS)
   -------------------------------------------------------------------------- */
.symptom-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.symptom-item {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-left: 4px solid #1673B8 !important;
  border-radius: 14px !important;
  padding: 1.25rem !important;
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.symptom-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.08) !important;
}

.symptom-item h3 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #102A43;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.symptom-item p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Caption Card */
.caption-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid #1673B8;
}

.caption-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #102A43;
  margin: 0 0 0.35rem 0;
}

.caption-card p {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0;
}

.rounded-image {
  border-radius: 16px;
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   7. DECISION FACTOR CARDS (SECTION 3)
   -------------------------------------------------------------------------- */
.decision-factor-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: clamp(20px, 2.5vw, 28px) !important;
  box-shadow: 0 4px 15px rgba(16, 42, 67, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.decision-factor-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(16, 42, 67, 0.08) !important;
}

.decision-factor-card .factor-header h3 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #102A43;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. STYLED COMPARISON TABLE & RESPONSIVE CONTAINER
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(16, 42, 67, 0.04);
}

.styled-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.styled-comparison-table th {
  background-color: #102A43;
  color: #FFFFFF;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #0F172A;
  white-space: nowrap;
}

.styled-comparison-table td {
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: #334E68;
  border-bottom: 1px solid #E2E8F0;
  line-height: 1.55;
}

.styled-comparison-table tr:nth-child(even) td {
  background-color: #F8FAFC;
}

.styled-comparison-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   9. SAFETY CARDS, BRAND CARDS, COST FACTORS
   -------------------------------------------------------------------------- */
.safety-card,
.brand-card,
.cost-factor-card,
.upgrade-benefit-card,
.choice-matrix-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  padding: clamp(20px, 2.5vw, 25px) !important;
  box-shadow: 0 3px 10px rgba(16, 42, 67, 0.04) !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.safety-card:hover,
.brand-card:hover,
.cost-factor-card:hover,
.upgrade-benefit-card:hover,
.choice-matrix-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08) !important;
}

.safety-card h4,
.brand-card h3,
.cost-factor-card h4,
.upgrade-benefit-card h4,
.choice-matrix-card h4 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-weight: 800;
  color: #102A43;
  margin-top: 0;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.safety-card p,
.brand-card p,
.cost-factor-card p,
.upgrade-benefit-card p,
.choice-matrix-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.badge-pill {
  display: inline-block;
  padding: 4px 10px;
  background: #EBF8FF;
  color: #1673B8;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. TIMELINE PROCESS (SECTION 10: 5-STEP PROCESS)
   -------------------------------------------------------------------------- */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 850px;
  margin: 2rem auto 0;
}

.timeline-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(16, 42, 67, 0.04);
}

.timeline-marker {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1673B8;
  color: #FFFFFF;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 115, 184, 0.35);
}

.timeline-content h3 {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #102A43;
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.timeline-content p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* Bullet Lists & Checklists */
.styled-bullet-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.styled-bullet-list li,
.check-list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

.styled-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0.35rem;
  color: #1673B8;
  font-size: 1.4rem;
  line-height: 1;
  top: -2px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 800;
  font-size: 1rem;
  top: 0;
}

/* --------------------------------------------------------------------------
   11. DEFENSIVE VISIBILITY OVERRIDES
   -------------------------------------------------------------------------- */
#related-guides .heater-type-card-v2 {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* --------------------------------------------------------------------------
   12. MOBILE NAVIGATION DRAWER
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .site-header {
    position: relative;
    z-index: 10000;
  }
}

