/* ==========================================================================
   TANKLESS WATER HEATER REPAIR — DEDICATED STYLESHEET
   Page: /tankless-water-heater-repair-long-beach-ca/
   Design Standard: Long Beach Water Heater Design System (Homepage Reference)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. STANDARDIZED SECTION VERTICAL SPACING & ALTERNATING SYSTEM
   -------------------------------------------------------------------------- */
.section-padding {
  padding-top: clamp(3.5rem, 5.5vw, 5rem);
  padding-bottom: clamp(3.5rem, 5.5vw, 5rem);
  box-sizing: border-box;
  position: relative;
}

.section-padding-lg {
  padding-top: clamp(4rem, 6vw, 5.75rem);
  padding-bottom: clamp(4rem, 6vw, 5.75rem);
  box-sizing: border-box;
  position: relative;
}

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

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
  padding-right: clamp(1rem, 2.5vw, 1.5rem);
  box-sizing: border-box;
}

.max-w-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-750 {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   1. UTILITY CLASSES (LAYOUT, TYPOGRAPHY, SPACING, COLORS)
   -------------------------------------------------------------------------- */
.flex {
  display: flex;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-15 {
  gap: 15px;
}

.gap-20 {
  gap: 20px;
}

.grid {
  display: grid;
}

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

@media (max-width: 540px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.w-full {
  width: 100%;
}

.w-40 {
  width: 40px;
}

.h-40 {
  height: 40px;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.text-xs {
  font-size: 0.78rem;
}

.text-sm {
  font-size: 0.88rem;
}

.text-lg {
  font-size: 1.15rem;
}

.text-xl {
  font-size: 1.35rem;
}

.text-2xl {
  font-size: 1.65rem;
}

.text-primary {
  color: var(--color-blue, #1E5B9B) !important;
}

.text-secondary {
  color: #486581 !important;
}

.text-danger {
  color: #E53E3E !important;
}

.text-muted {
  color: #627D98 !important;
}

.italic {
  font-style: italic;
}

.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 16px;
}

.border {
  border: 1px solid #E2E8F0;
}

.border-danger {
  border: 2px solid #FEB2B2;
}

.shadow-sm {
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.04);
}

.shadow-md {
  box-shadow: 0 10px 25px -5px rgba(16, 42, 67, 0.1), 0 8px 10px -6px rgba(16, 42, 67, 0.04);
}

.p-10 {
  padding: 10px;
}

.p-20 {
  padding: 20px;
}

.p-25 {
  padding: 25px;
}

.p-30 {
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-25 {
  margin-top: 25px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-40 {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

.notice-box {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.badge-danger {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.bg-danger-light {
  background-color: #FFF5F5;
}

/* --------------------------------------------------------------------------
   2. SECTION HEADER STANDARDIZATION
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-blue, #1E5B9B);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  color: var(--color-navy, #102A43);
  line-height: 1.22;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.015em;
}

.section-header .section-intro {
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.65;
  color: #486581;
  margin: 0 auto;
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   3. TWO-COLUMN LAYOUT SYSTEM
   -------------------------------------------------------------------------- */
.two-column-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 3.5vw, 3.25rem);
  align-items: center;
}

.two-column-layout:has(> .image-col:first-child) {
  grid-template-columns: 0.85fr 1.15fr;
}

.two-column-layout .content-col h3 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--color-navy, #102A43);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.two-column-layout .content-col p {
  font-size: 0.95rem;
  color: #486581;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.two-column-layout .content-col p:last-child {
  margin-bottom: 0;
}

.two-column-layout .image-col {
  width: 100%;
}

.two-column-layout .image-col img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(16, 42, 67, 0.1), 0 8px 10px -6px rgba(16, 42, 67, 0.04);
  border: 1px solid #E2E8F0;
  display: block;
}

.two-column-layout .caption-box {
  font-size: 0.84rem;
  color: #627D98;
  font-style: italic;
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .two-column-layout,
  .two-column-layout:has(> .image-col:first-child) {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   4. SECTIONS 1 & 5: SERVICE FEATURES GRID (3 CARDS)
   -------------------------------------------------------------------------- */
.service-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.service-feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.service-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16, 42, 67, 0.08);
  border-color: var(--color-blue, #1E5B9B);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(30, 91, 155, 0.08);
  color: var(--color-blue, #1E5B9B);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.service-feature-card h3 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy, #102A43);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.service-feature-card p {
  font-size: 0.93rem;
  color: #486581;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 860px) {
  .service-features-grid {
    grid-template-columns: 1fr;
  }
}

/* Local Coverage Banner */
.local-coverage-box {
  background: linear-gradient(135deg, #F0F7FD 0%, #FFFFFF 100%);
  border: 1px solid #BAE3F8;
  border-radius: 16px;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  box-shadow: 0 4px 14px rgba(30, 91, 155, 0.06);
  text-align: center;
}

.local-coverage-box h3 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy, #102A43);
  margin-bottom: 0.5rem;
}

.local-coverage-box p {
  font-size: 0.93rem;
  color: #486581;
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. SECTION 2: COMMON PROBLEMS GRID (6 CARDS)
   -------------------------------------------------------------------------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.problem-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.04);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(16, 42, 67, 0.08);
  border-color: var(--color-blue, #1E5B9B);
}

.problem-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-blue, #1E5B9B);
  background: rgba(30, 91, 155, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.problem-card h3 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy, #102A43);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.problem-card p {
  font-size: 0.91rem;
  color: #486581;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.clean-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #EDF2F7;
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #486581;
  margin-top: auto;
}

.clean-bullet-list li {
  line-height: 1.5;
}

.clean-bullet-list li strong {
  color: var(--color-navy, #102A43);
  font-weight: 700;
}

@media (max-width: 992px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --------------------------------------------------------------------------
   6. SECTION 3: STEP-BY-STEP DIAGNOSTICS
   -------------------------------------------------------------------------- */
.diagnostic-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.step-card:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  border-color: var(--color-blue, #1E5B9B);
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.06);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E5B9B 0%, #0F3C68 100%);
  color: #FFFFFF;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(30, 91, 155, 0.25);
  margin-top: 2px;
}

.step-card h4 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy, #102A43);
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
}

.step-card p {
  font-size: 0.9rem;
  color: #486581;
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. CHECKLIST ITEMS & NUMBERED LISTS
   -------------------------------------------------------------------------- */
.custom-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.93rem;
  color: #486581;
  line-height: 1.55;
}

.checklist-item::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30, 91, 155, 0.1);
  color: var(--color-blue, #1E5B9B);
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item strong {
  color: var(--color-navy, #102A43);
  font-weight: 700;
}

.styled-numbered-list {
  list-style: none;
  counter-reset: custom-step;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.styled-numbered-list li {
  counter-increment: custom-step;
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.93rem;
  color: #486581;
  line-height: 1.55;
}

.styled-numbered-list li::before {
  content: counter(custom-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-blue, #1E5B9B);
  color: #FFFFFF;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.styled-numbered-list li strong {
  color: var(--color-navy, #102A43);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE COMPARISON TABLES
   -------------------------------------------------------------------------- */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.05);
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  margin-top: 2rem;
}

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

.styled-comparison-table th {
  background: #0F3C68;
  color: #FFFFFF;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 1rem 1.25rem;
  letter-spacing: 0.02em;
  border: none;
}

.styled-comparison-table td {
  padding: 0.95rem 1.25rem;
  font-size: 0.9rem;
  color: #334E68;
  border-bottom: 1px solid #E2E8F0;
  line-height: 1.5;
  vertical-align: middle;
}

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

.styled-comparison-table tbody tr:hover {
  background-color: #F0F7FD;
}

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

/* --------------------------------------------------------------------------
   9. BRAND CARDS GRID (6 CARDS)
   -------------------------------------------------------------------------- */
.brand-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.brand-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(16, 42, 67, 0.08);
  border-color: var(--color-blue, #1E5B9B);
}

.brand-card h3 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy, #102A43);
  margin-bottom: 0.5rem;
}

.brand-card p {
  font-size: 0.9rem;
  color: #486581;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .brand-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .brand-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. PROCESS STEPS GRID (5 STEPS)
   -------------------------------------------------------------------------- */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.process-step-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.75rem 1.15rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 42, 67, 0.08);
  border-color: var(--color-blue, #1E5B9B);
}

.process-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E5B9B 0%, #0F3C68 100%);
  color: #FFFFFF;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 12px rgba(30, 91, 155, 0.25);
  flex-shrink: 0;
}

.process-step-card h3 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy, #102A43);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.process-step-card p {
  font-size: 0.88rem;
  color: #486581;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1024px) {
  .process-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   11. SAFETY ALERT BANNER
   -------------------------------------------------------------------------- */
.safety-alert-banner {
  background: #FFF5F5;
  border: 2px solid #FEB2B2;
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.08);
}

.safety-icon-wrapper svg {
  width: 42px;
  height: 42px;
  color: #E53E3E;
  flex-shrink: 0;
}

.safety-alert-banner h2 {
  color: #9B2C2C !important;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-bottom: 0.65rem;
}

.safety-alert-banner p {
  color: #742A2A;
  font-size: 0.94rem;
  line-height: 1.6;
}

.emergency-safety-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 640px) {
  .emergency-safety-list {
    grid-template-columns: 1fr;
  }
}

.emergency-safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #742A2A;
  font-size: 0.92rem;
  line-height: 1.5;
}

.emergency-safety-list li::before {
  content: "⚠️";
  font-size: 1rem;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   12. CALL BANNER INLINE & HIGHLIGHT CARDS
   -------------------------------------------------------------------------- */
.call-banner-inline {
  background: linear-gradient(135deg, #F0F7FD 0%, #FFFFFF 100%);
  border: 1px solid #BAE3F8;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(30, 91, 155, 0.05);
}

.call-banner-inline p.font-bold {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.05rem;
  color: var(--color-navy, #102A43);
  margin-bottom: 0.35rem;
}

.highlight-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
}

/* Mobile Responsiveness Guard */
img {
  max-width: 100%;
  height: auto;
}
