/* Custom CSS for Leak Repairing Masters LA */
:root {
  --color-primary: #111827;
  --color-cta: #121c28;
  --color-footer: #0a1017;
  --color-accent: #b61722;
  --color-accent-hover: #da3437;
  --color-surface: #f8f9fa;
  --color-surface-low: #f4f5f7;
  --color-outline: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: #191c1d;
  background-color: var(--color-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.025em;
}

/* Hide scrollbar for clean aesthetic */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface);
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

/* Fade-up animations (moved to index.html for JS safety) */

/* Global Hover Enhancements */
a, button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .hover-lift {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Utilities */
.text-balance {
  text-wrap: balance;
}

/* TOC & Sticky Sidebar styles */
.toc-sidebar {
  position: sticky;
  top: 100px; /* Below header */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Callout Box (Pro tip / Warning) */
.callout {
  border-left-width: 4px;
  border-radius: 0 12px 12px 0;
}
.callout-warning {
  border-left-color: var(--color-accent);
  background-color: rgba(182, 23, 34, 0.05);
}
.callout-pro {
  border-left-color: var(--color-primary);
  background-color: var(--color-surface-low);
}

/* Mobile Sticky Call Bar Safe Area */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}
.mobile-call-bar {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 20px));
}



/* Fade-up animations (JS Safe) */
.fade-up {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-enabled .fade-up:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}
